Help? BS2PX missing ram, running hot
Chaps
Posts: 4
I replaced a BS2 with a BS2px24 because I need more ram. It does not appear to have any more available than the BS2 when I run this code. Do you know what I'm doing wrong?
Version 2.2.5, my code looks like this:
'{$STAMP bs2px} (Also tried bs2p, it's not clear what to use here)
longdata VAR Byte(11)
latdata VAR Byte(10)
ns VAR Byte
we VAR Byte
out_of_memory_with_this_variable VAR Byte(11)
Also, the stamp runs too hot to touch for more than a couple of seconds. Is that normal? I am running 2 leds, a push button, and a serial input from a Pharos gps360, the load is not heavy.
I've tried searching the forums, "bs2px declaration" comes up with no results.
Thanks for any help!
Version 2.2.5, my code looks like this:
'{$STAMP bs2px} (Also tried bs2p, it's not clear what to use here)
longdata VAR Byte(11)
latdata VAR Byte(10)
ns VAR Byte
we VAR Byte
out_of_memory_with_this_variable VAR Byte(11)
Also, the stamp runs too hot to touch for more than a couple of seconds. Is that normal? I am running 2 leds, a push button, and a serial input from a Pharos gps360, the load is not heavy.
I've tried searching the forums, "bs2px declaration" comes up with no results.
Thanks for any help!
Comments
·· The BS2px has what's called scratchpad RAM, which cannot be used for variables, per se, but it can be used to store data (126 bytes) which can be handled using the GET and PUT commands.· There also may be other ways to reduce or conserve variable usage in your program.· Perhaps you should post it.· What are you lacking variable space for?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
What's your DC source voltage?· An unregulated wall-pack?· Are you using a Development Board or your own?· Is there a short on the board?
The PDFs state that the voltage range for a BS2 is 5-15VDC and the range for a BS2px is 5-12VDC.·
(just a suggestion)
I was so bleary eyed trying to figure·this out last night that I din't notice that search terms must be seperated by a comma. However, trying a search for "basic, stamp" yields no results!
What I'm attempting to do is·encode a GPS coordinate into a unique filename for calling up data from another (as yet unattached) device. Something like "w36-55e111-55.png" I'm able so far to read the longitude and latitude and hemisphere data, but that leaves me out of variable space to do anything more. I'll try "put"ing the data into the scratchpad and reuse the variable space for further processing.
-Steve
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Incidently, I've found that I can intercept then GPS strings from the Pharos, process out the location, then feed the processed data into the Pharos bluetooth dock with one output pin+ground, yielding a "free" wireless debug port for this and future projects.
Your stamp should not even be getting warm for the most part. Sounds like something you have connected to the pins of your BS2 is draining too much current. You should current test each IN/OUT that your connecting to your BS2, if you don't already have it, think about using 10k resistors between each and every pin out and your circuit.
What I do is try to run my circuit using 10k resistors to protect my stamp2 from leakage thru other chips and devices.
For instance, when I hook up a BS2 to a Shift register (595) I use 3 BS2 pins. Data, Shift, and Latch. The 595 also has power and ground.
If the power or ground were to accidentally get disconnected via bad jumper wire (on a breadboard) or via a bad connection, the 595 will end up pulling power THRU the data, shift and latch wires. So the 595 now is powering its self by draining thru the BS2.... This is potentially very bad, depending on what is hooked up to the 595.
To avoid this STRAY drain, I "protect" my bs2 pins from the 595 by putting 10k resistors inline with each connection.
So... BS2(PIN)
(10k)
(data on 595)
If my device (595) doesn't work right, after doing that, I will lower that one lines resistor down to 1k, which usually fixes it.
Going below 1k doesn't really provide the protection your looking for. Even 1k allows alot. 10k is better, 100k is close to over doing it.
I had one circuit that used battery power, and I needed to minimize any stray drain, I found out that with a 595, and the bs2, I was able to go as high as 100k between the bs2 and the 595, and still have the two communicate good.
So, do some current testing. Your BS2 should NOT be getting hot.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Meh. Nothing here, move along.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
-Steve