DATALOGGER

28Feb07

For this exercise in Sensor Workshop i decided to try the third option in the given data-logging methods:
1. Arduino -> Processing -> PHP -> Text
2. Arduino -> Processing -> PHP -> MySQL
3. Arduino -> Xport -> PHP -> MySQL
Sending the byte value from the Arduino through the Lantronics XPortxport-data.jpg

where it calls upon a php script to write the incoming values and time stamp into a mySQL table on the itp server. Through much trial and error due o lack of experience with mySQL and php, i managed to get this. But half way though, and in the midst of WTF!!!, i did the first option – just in case. Here’s a screen shot of the data stored from a potentiometer.

picture-2.png

I had worked with the XPort before, though not in conjunction with php and mySQL. The starting point in the code was taken from here.

My first mySQL setup, ever:

picture-5.png

Ardunio was calling the server and waiting for it to respond, waiting for an ASCI “C” to be sent back to let it know that it had connected. I however did not get that message. As seen in terminal through telnet:picture-1.png

picture-4.png

As yet, i do not know the reasons why….



One Response to “DATALOGGER”  

  1. We use thepicaxe o8m as a data logger very cheap & works a treat.
    Requirements Program “stamp plot light ” down load picaxe routine + picake logger board.
    Picaxo8 has a A to D convert er in built we have used this on the following, voltage recorder from solar radio telescope, home built seismograph etc.
    Wivscope could be useed I suspect.
    It convert A to Data & sends via 9 pin DB9 plug to game port of computer.
    This could be converted with a cable I think This is next project in coming winter.
    One thing we found.The plot looks good on screen but when printed used heaps of toner./ink We then desided to use an intergrater circuit. This prints the plot like a line graph. Exellent Stamp plot light has programable time stamps that can be set.

    If you require further info can forward all by E-mail.
    Regards John Mcmanus


Leave a Reply