Sensors Project questions
fresh
Posts: 8
Hello all. Pleased to be here. I have a few questions regarding the BASIC Stamp.
A) How do constants (CON) contribute, in terms of their size, to memory use?
I want to export data to a spreadsheet and to my personal website. Perhaps one could point me in the direction of some documentation?
I have code regarding the 1st question if anyone wants to see it. It's demo code though, and I know it fits in memory.
A) How do constants (CON) contribute, in terms of their size, to memory use?
I want to export data to a spreadsheet and to my personal website. Perhaps one could point me in the direction of some documentation?
I have code regarding the 1st question if anyone wants to see it. It's demo code though, and I know it fits in memory.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Run
Memory Map
(For memory usage - experiment.)
As to exporting to Microsoft Excel (if you are using that), I found a bunch of stuff by searching google.com for the words...
microsoft excel input serial port
http://www.google.com/#hl=en&q=microsoft+excel+input+serial+port&aq=f&aqi=&aql=&oq=microsoft+excel+input+serial+port&gs_rfai=&fp=3582fcc58a84fb8f
Using CON shouldn't increase memory use at all. The PBASIC editor replaces the constant throughout your code with the value you specify in the CON statement. An experiment as bill suggests may reveal this.
Are you aware of PLX DAQ? : http://www.parallax.com/ProductInfo/Microcontrollers/PLXDAQDataAcquisitiontool/tabid/393/Default.aspx
Rick
Note that "code check" and the memory map only shows you what the IDE will download -- it doesn't actually read the memory of the BS2.
And yes, typically you'd run a program on the BS2 that uses SERIN/SEROUT like "SEROUT 16, 16468, [noparse][[/noparse]"Hi", CR]" to send data to the PC.
Then, on the PC you'll need to run a program to read the serial port.
What I want to work on now is sending multiple SERINs and SEROUTs. Is there a trick to getting the receiver correctly pick out which message is which? Thanks!
EDIT: I forgot to mention that I'm working with the RF transmitter, which limits message size to 2 words.
Mike: Should I use an if...elseif statement with the different WAITs?
Post Edited (fresh) : 4/6/2010 6:15:54 PM GMT
Post Edited (fresh) : 4/6/2010 6:43:10 PM GMT
Now I need to send data to PLXDAQ and accept incoming data from an RF antenna. The problem is, I can't get PLXDAQ to work with the code for the RF SERIN in the program; I know this because when I remove it, plxdaq works fine. When I leave it in, even if the RF receiver is not receiving data, plxdaq will not work. I would greatly appreciate any and all help with this problem.
Post Edited (fresh) : 4/13/2010 9:50:34 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Now my problem is that I am trying to run the RF in the same room as another set of RF sensors, and it isn't working. The other guy's sensors work but they bump off mine. I've tried everything I can think of, including using different preambles, but I still can't get a signal across.
For future questions ... Please provide enough information at the beginning about your project, what devices you're using, how they're all connected, and what code you're using. This piecemeal approach is not a good use of your own or anyone else's time.
One more question: the code I'm using is partially taken from the demo code posted by Parallax with the modules. I want to enter the Parallax RF contest. I've put this bit in the beginning of my code.
I've also marked the blocks I've directly borrowed from the Hitachi and Sensirion codes as being from their respective demos. I've changed the formatting and flow of the code for the Sensirion. The code for the RF transmitter and receiver has been adapted to a transceiver and receiver but uses some of the same variables, although the preambles and message data are different. I've kept most of the variables from the sources.
Please tell me if this is OK and tell me what changes I should make to be in compliance. Thank you.