chytech 0 Posted December 27, 2012 Share Posted December 27, 2012 Very good, it is usefull Quote Link to post Share on other sites
juani_c 66 Posted March 22, 2013 Share Posted March 22, 2013 I have a doubt about the INA219 resolution. The bus voltage measurement has two full-scale ranges: 16V or 32V, but for what i understand from the datasheet the resolution is allways 4mV. This makes sense with the 16V range because it has a 12 bit adc, so 16/4096=0.0039 V The 32 range should have twice that resolution, wright? Quote Link to post Share on other sites
oPossum 1,083 Posted March 22, 2013 Author Share Posted March 22, 2013 The resolution of the bus voltage register is always 4 mV. The resolution of the ADC is programmable up to 12 bits. So in some cases the lower bit(s) of the bus voltage register may not change. The ADC reading is shifted internally as necessary to maintain the same reading granularity in the register. juani_c 1 Quote Link to post Share on other sites
4yang 0 Posted November 15, 2013 Share Posted November 15, 2013 Just wonder if i could use the same codes in Energia software? Quote Link to post Share on other sites
Rei Vilo 692 Posted November 16, 2013 Share Posted November 16, 2013 Just wonder if i could use the same codes in Energia software? You can have a look at http://forum.43oh.com/topic/3954-energia-library-i%C2%B2c-voltage-current-power-ina219-sensor/'>[Energia Library] I 4yang 1 Quote Link to post Share on other sites
4yang 0 Posted December 8, 2013 Share Posted December 8, 2013 (edited) @@oPossum.... i tried to build the circuit as it is shown in the vam_meter_schematic picture file. but the LCD do not show anything. may i know if the capacitor u used in this is a ceramic ones or electrolytic capacitor?The back light is working but it did not display the power up logo---> msp430 and INA219 Edited December 8, 2013 by bluehash [ADMIN] Issued opossum call. Quote Link to post Share on other sites
oPossum 1,083 Posted December 10, 2013 Author Share Posted December 10, 2013 Ordinary ceramic monolithic caps. Make sure your LCD module does not have a pullup resistor on the reset line - some do, some don't. If it does, you will have to remove it. The LCD reset circuit used by this project will not work with a pullup resistor on the LCD reset line. Quote Link to post Share on other sites
Rei Vilo 692 Posted December 17, 2013 Share Posted December 17, 2013 I packed an INA219 and a MSP430G2553 with a 128x64 OLED screen into a compact 6x3cm box to measure the volt-amp-watt of my fischertechnik models. One simple bulb lamp uses almost 1W! So large models can easily add up to various amps... putting the batteries under heavy stress. The screen comes from Digole and features an I reaper7, Rickta59, dubnet and 1 other 4 Quote Link to post Share on other sites
Lord anubis 1 Posted January 12, 2014 Share Posted January 12, 2014 Hi, if I want to use two or three INA219's, do I need to worry about the V- and GND or when two V- are have the same starting point but V+ ( of course ) not, visa versa? I wil do another display of course. Thank you Quote Link to post Share on other sites
4yang 0 Posted March 9, 2014 Share Posted March 9, 2014 may I know how do u guys connect the V+ and V- of this project to the load?the shunt im using is 0.05ohms... Quote Link to post Share on other sites
Rei Vilo 692 Posted March 9, 2014 Share Posted March 9, 2014 @@4yang Configure the INA219using the tool INA219EVM Software supplied by Texas Instruments. ?The data sheet explains how to connect the V+=power source, the V-=load and the GND=ground. Quote Link to post Share on other sites
nickds1 11 Posted July 21, 2014 Share Posted July 21, 2014 Using templates allows the compiler to do compile time optimization that is not possible with C or C++ classes. It knows the pins and ports won't change at run time, so it can generate optimal code for I/O. This results in code that is smaller, faster and uses less RAM. The compiler will in-line optimise the methods if required (helps if declared "inline") - if the ports definitions are const (which they are) the optimisations should be exactly the same as a templated class - you instantiate a static instance of the LCD class anyway... not sure what, if anything, is gained from using templates here other than a whole bunch of typing... just wondering... Further, using an initialiser list in the LCD constructor would allow class-local constants to be fixed during construction which is somewhat neater than using blank namespace or static consts and creates better encapsulation (compile -O3 or -finline-functions). There should be no extra costs in memory/stack/efficiency in using this method, but there'd be a bunch less text and the code would arguably be a load clearer Nice project, BTW. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.