Non-volatile storage
jb1311
Posts: 20
Does the SX have a way store a value when powered down? I want to be able to store some values and have the SX 'remember' them even without power. It doesn't look like it has EE memory, but maybe there is some other technique? The are calibration values that won't be available at the time the device is initially programmed.
Comments
·· You can always connect and external EEPROM or NVRAM device.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
There are a plethora of EEPROM devices that also communicate via I2C protocol and you are mainly limited by your pocketbook.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John J. Couture
San Diego Miramar College
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Post Edited (Paul Baker) : 11/15/2005 4:08:18 AM GMT
Two of those AAAA batteries would put out 3V and almost 200mAH of current.
The SX20 only draws 7.5mA at 4MHz, so I bet it would run for a long time at 32kHz.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I wonder if this wire is hot...
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
Those that would give up freedom for security will have neither.
·
What looks even more promising is fractional AA sizes, the ER14250 from http://www.powerstream.com·is a 3.6V 1/2 AA· Lithium Thionyl Chloride High Capacity cell, sold for $3.25 in single, $1.50 in quantities of 100. its capacity is 900mAh, continuous discharge capability of 50mA weights 9g and measures 14.5 dia x 25 mm.
Running the SX @ 3.6V, 32kHz will up the current consumption to 275 µA, but if you use a ultra low power smt LDO regulator such as the TPS77030DBVR, you can drop the voltage supply back down to·3V with only 17 µA consumption by the regulator, resulting in·~190 µA total current, or ~4740 hours or nearly 200 days of continual operation. Plus the charts show for the expected current discharge of the particular battery, the actual capacity is roughly 1175 mAh leading to a lifetime of nearly 6200 hours or 260 days. [noparse]:)[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Post Edited (Paul Baker) : 11/15/2005 7:08:55 PM GMT
I found some 9 volt NiMh batteries that charge all the way up to 9.5V and hold 270 mAH.
If they are constructed as Paul described then I could make a tiny rechargeable 3V device with 270 mAH by using 2 of the AAAA's inside.
I don't have a specific application in mind right now; just thinking about what is the lower size limit for an SX controlled portable device.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I wonder if this wire is hot...
I looked at the battery you linked and it's 1'' long by 1/2" diameter.
Three AAA's together would be about that size and would give 4.5V (or 3.6V for rechargeables) and something like 3000 mAH.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I wonder if this wire is hot...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Post Edited (Paul Baker) : 11/15/2005 7:18:17 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I wonder if this wire is hot...
· Can't you just put a diode in series to drop the voltage down to 3.0V ? I realize it won't be regulated.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
Those that would give up freedom for security will have neither.
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
keep it simple and stupid:
Assuming the voltage drop across the diode is 0.6 Volt, and the current is 275 µA, the power "heating" up the diode is 165 µW. No need to worry about hole-electron recombination effects, etc. .
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
Günther
The whole idea of using the diode is to drop the voltage so the current goes down. Paul said at 3 volts the SX would draw 175 uA. So that would be 175 uA * 0.6V = 105 uW for the diode and 175 uA * 3.0 V= 525 uW for the SX for a total of 630 uW.
Without the diode the power would be 275 uA * 3.6 V = 990 uW, so with the diode the circuit uses 36% less power.
That is how I calculate it anyway. Maybe I'm wrong... No I thought I was wrong once, but I was mistaken [noparse];)[/noparse]
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
Those that would give up freedom for security will have neither.
·
for my "KISS" calculation, I just took the 275 µA, Paul mentioned. I agree, the SX is not simply a resistor, i.e. power consumption vs supply voltage is not a linear function at all.
I support your idea using a diode (or two in series) for reducing the supply voltage instead of using an LDO regulator. The regulator would dissipate similar power as the diode would do for dropping down the voltage plus some additional power "eaten" (i.e. converted to heat) by the regulator's internal circuity.
Nevertheless, this all is a bit of guesswork. Although the SX datasheets present various diagrams showing the relationship between supply voltage, Idd drawn, and clock frequencies, it would be an idea to analyze this in more detail by measuring some "real" SXes under various conditions. I'd really like to do it if I'd only had the time...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
Günther
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
each. On top of that, without an internal fuse in the cell, a short circuit can cause them to explode,
even with an internal fuse, they can detonate if shaken violently enough (1000's of required)
Oh, yeah, don't forget that the FAA won't let you put them on a plane, period! Means UPS, or FEDEX
or DHL ground shipping only... They do have a really nice flat discharge curve, but it's probably better to stick with the other lithium cells...
Power in a diode is equil to V*I period. Delta V changes with I, so·if you have a V-I cirve, you can figure it out·(or set it up and measure it).·Delta V also changes with·temperature, so knowing the ambient operating temperature will help you be more accurate.
Although, I agree that with a good LDO, you can probably get·more life out of the·cell, because the delta V will change to maintain the output voltage, whereas the output voltage with the diode will follow the discharge curve, less the diode voltage, so you will get to an unusable voltage at the SX, when the battery would still run it...
-Dan
Post Edited (dkemppai) : 11/18/2005 4:39:09 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John J. Couture
San Diego Miramar College
I don't understand about the 1M resistor, seems like you would only get 9 microamps out of the battery that way.
Admittedly it would last a long time, but I don't think there's much you could do with it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I wonder if this wire is hot...