Memory Stick Datalogger Coding Help
I am having an issue with my data logging program. I've been trying to cut out parts of the tutorial code (http://www.parallax.com/tabid/768/ProductID/434/Default.aspx) on the site but the coding is a little above my knowledge of BASIC. It seems the tutorial writes 5 random numbers to a text file, but I can't seem to understand what the seed files are or how it checks to see if a USB stick is there. All I really want it to do is take data from the PIR sensor (0 and 1) that is attached to the microcontroller and record all of it into a txt file. I have the PIR sensor connected to servo IN15 and have the datalogger set up as shown in the tutorial, but the code seems to have a lot of unnecessary steps that I can't sort through. Any help will be much appreciated.
Comments
The SEROUT in the FOR loop mentioned puts out a write command to the Datalogger. If you look at the description of the commands in the VDAP Firmware documentation on the Datalogger's webstore page, you'll see that there's a byte count that's part of the command. You have to change the byte count if you change the number of bytes being written. There are some examples in the VDAP documentation.
I suggest you spend some time getting familiar with Parallax Basic. The Stamp Editor has copies of the "Stamp Basic Syntax and Reference Manual" and the "What's a Microcontroller?" tutorial in its help files. Both are downloadable from Parallax in the Downloads page on their website.
I now that I'm finished with my classes I was finally able to solved the problem I had with this module. As unbelievable as it may sound, datasheet/manual was not 100% correct, But somehow I managed to get it working
full files and expanation s are in the included file
Thanks to everyone that helped me
Any suggestions?
Bill