Sunday, March 23, 2008

Data logging

I worked on it with Seungran and Sunghun. We ordered a DOSon chip and a micro SDcard from sparkfun( DOSon CHIP). Here is a picture of it.
And we connected it to an arduino. First, we tried to use a toggle switch for a reset button but for some reasons it was not working so I made a circuit without it. And we also connected a pot to an analog pin 0 to get some value.

We tried data logging with a sample code from the Sensor Wiki which was named 4dSystems xD Datalogger (Arduino-Processing). We got some data from the pot but it did not seem reliable because values were so unstable and also we could not save any data in the card. We were so confused, because we thought that as long as an arduino got some value (no matter if it was garbage value), it was supposed to be saved in the card. However, data file was saved in the computer.

Here are the text files.
Text 1
Text 2

We were trying to figure out what was wrong, so kept doing same things over and over but the more we tried , the more confused we were. Then Steve brought the new code that he got from Jeff. He changed the delay value in the code and finally we could make Arduino communicate to the chip then save some data to the chip. (Thanks Steve!)

Here are the code for Arduino and the results.
Result 1 , Result 2


Israel F.F. said...

Hi, It's been months since I boought this and I haven't been able to make it work... are you using the new API or the good old one?


ERE Inc said...

Wonderful post.
Thanks for sharing this information with us.
Gas detectors

Anand Tiwari said...

This is really interesting blog on Street light sensor, You are a very skilled blogger. I've joined your rss feed and look forward to seeking more of your excellent post. Also, I've shared your web site in my social networks! Thank You!!!