i haven’t posted in a while, but that doesn’t mean i haven’t been doing cool stuff in what little spare time i have. i thought i’d finally record one cool project i finished.
using serproxy, i channeled serial data running through my computer to network traffic. on my machine running a wamp server, i wrote a few php scripts to read the values and with ajax (using jquery) change the color of the screen to green (the farther you are) to red (the closer you are). also, the closer you get, the smaller you get.
and of course, what would a project be like these days without something twittering. you can see what this project twitters here. basically, i operated under the assumption that the closest thing to a realistic use of this system would be twitter whether or not you are at your desk.
so what does this thing do again?
arduino & sonar returns your distance away from the computer and it is displayed on the screen. the farther away you are from the computer the larger the text and the greener the screen. the closer you are, the smaller the text and the redder the screen. get within 5 inches and a buzzer alarms. distance is twittered.
how did i do the color changing?
i just used jquery to dynamically tweak the background rgb values based on the % change in distance from the screen. rgb(red,green,blue)
where’s the source?
you can download it here.
For now, the source is not available. However, if you want it really bad, you can email me and ask for it.