magudaman wrote:Oh no not another project I must start!!! Very Very cool, I was looking to do something similar my self since I was finding nothing on the market that could pull this off inexpensively. Thank you very much Jeremy for putting this up and sharing with everyone PS where did you get that rocker switch that is in the photo near your throttle in the first post?
magudaman wrote:Alright I have been working on my own version of this little circuit for the last week but have changed the code quite a bit to allow for up to 30ah packs and would be independent of the controller. I am using a hall effect open loop current sensor to give the current readings. I would really like to add an LCD display to just interpret serial and give a percent and a fullness gauge. Since I have ditched the voltage sense part of the circuit I do have an extra output line. Is this within the capabilities of the 08, I do see that it can only do 4800 baud out the serial connections and all the cheap lcd units I see only have 9600 baud.
magudaman wrote:I was thinking about dropping the average current sampling rate to 50 so I can save to eprom each round so users can shut down at any time. Is there enough time in a cycle for this in your experiences?
magudaman wrote:I see that you dump out a calibration pulse but how did you actually interpret that and calibrate your setup?
magudaman wrote:I am also trying to get a consistent 5v and picked up some linear regulators that are good from 20-125v. So far in testing them they are consuming about 1.3 watts while my 5v output is only needing 0.075w. Is there any more efficient way to get 5v at such low power levels?
texaspyro wrote:One thing that you should do to extend EEPROM life in micros is first read the EEPROM value and compare to what you want to write. If they are the same, don't bother writing it. Very simple, very obvious, and for some strange reason it is seldom done. I know of one commercial product was killing its micro in under a month because of this very issue.
Another useful thing to do is after reading or writing an EEPROM location or page, read an EEPROM page that is not used by your code (for several reasons the page starting at address 0 is usually best... i.e. some micros are know to corrupt this page). This will leave the EEPROM address pointer pointing to unused data. This will minimize the chance of useful data being corrupted during power cycles/glitches.
BenMoore wrote:Regarding cheap and effective display options, could these units be employed?
Price is about $9 (inc post):
http://cgi.ebay.com.au/Digital-Thermome ... 2367wt_918
Just cut off the sensor and feed it a (biased and scaled) analogue voltage?
The numerical display and scale (-10 to 80C or the F equivalent mode) wouldn't be so helpful, but could simply be masked to leave the 19 segment LCD dot graph.
Weather proofing would also be required.
BTW, I'm a long time fan of your work here on ES Jeremy!
magudaman wrote:Ok so I decided to go to the 10 segment led display for my unit after seeing how simple the LM3914 type unit is but have run into an issue. It seems that I ended up with a PWM output range of 155 to about 280. I have the equation setup so it sweeps that range based on percentage and is calibrated. But the new issue seems that my lm3914 is not very linear. It shows about 50 percent at about the 70% mark but then slows down end correctly when expected. I did have to use a capacitor to filter the PWM output so the display wouldn't go crazy.
What gives any ideas?
gwhy! wrote:Have you used any pd or have setup the input to the lm chip at all ?. I just ran the filtered PWM signal straight into the chip ( I think from memory it was about 0-1.2v fsd ), I cant say as I notice this non-lin on my one. I have since changed it, and now only use one led to indicate low capacity ( off/on and flash ) and 2 other leds to indicate battery voltage ( blue(on/flash then off) red (on/flash), I personally find the voltage indicator more use than the other functions.
otas wrote:Exactly, but I wanted to KISS - keep it simple s... LED's will start dropping off after approx 70% remaining power, which I think is acceptable. For me at least...
Users browsing this forum: Eccotec and 5 guests