« LivingArt Crit 02.22.06 | Main | GumDropsWave »

February 28, 2006

Datalogging With Database Assignment

Datalogging

- storing data into a PIC
- how much memory is needed?
- ascii, 8 bits
- http takes in ascii

IMG_2325.JPG

- we need both the lowByte and highByte to get a full resolution of the sensor
- server can read once a second
- terminal : putty on PC
- telnet: itp.nyu.edu, port 80
- in putty, GET /~xxxxxx/index.shtml (whatever file I want to get)

PHP (hypertext preprocessor)
- send out to browser "echo"
$ variables
PIC - processing - net
data using http

application: to represent sensor readings, how it can be used

Assignment
I had just completed a project with Gilad and Tikva in Networked Objects, datalogging pot values on a server to make our very first server-based game, "CatchMeGame." Very slow, since we were constantly reading the sensor values off of the server, but it worked. We used Python as our programming language and used 2 Xports to play our game.

This weekend, Joo Youn and I attemtped at datalogging a simple pot reading onto the server, using Tom's php script , an empty datalog.txt file
and processing with the PIC code.
See here for Network Data Logging Suite.

Breadboard set up to read a simple pot value on ADCIN 0
IMG_2041.JPG
php_datalog.jpg

We uploaded our datalog.txt file and logger.php file up on our itp servers. The sensor values are read, into processing, into php to be written on the server to be stored in the datalog.txt file.

2006-02-26 05:02:53 31680
2006-02-26 05:02:57 53184
2006-02-26 05:02:01 53184
2006-02-26 05:02:05 35712
2006-02-26 05:02:09 24128
2006-02-26 05:02:13 24128
2006-02-26 05:02:17 24128
2006-02-26 05:02:21 24128
2006-02-26 05:02:25 24128
2006-02-26 05:02:29 24128
2006-02-26 05:02:33 24128
2006-02-26 05:02:37 24128
2006-02-26 05:02:41 24128
2006-02-26 05:02:45 24064
2006-02-26 05:02:49 24000
2006-02-26 05:02:53 24000
2006-02-26 05:02:57 24064
2006-02-26 05:02:01 24128

The times seem erratic, which some others had the same result in. I'm thinking that this is a problem on the ITP server end. We have a workshop with Nancy Lewis this Friday regarding the ITP server and I will bring this matter up.

Posted by min at February 28, 2006 06:13 AM

Comments