Jan 10
WebVisitors blinker
I already wrote my first Arduino program. It’s really simple but fun
What it does is that every time somebody visits my website, a LED light blinks once in my room, and I get a warm feeling of a visitor
How to do that:
- Burn this code to your Arduino.
- Connect a LED light to pin 12 and ground it.
- Connect your Arduino to your web server through USB.
- Log in to your web server and type: “sudo chmod 666 /dev/ttyUSB0″.
- Add this PHP code to your website header.
- Enjoy!
In case this doesn’t work; try to solve your problem or comment this article and I will try to help you.
21 Comments so far
Leave a comment
Hah! I will try to do one myself, too
(you know it ;))
HOW TO - Make a WebVisitors blinker…
Dimme writes in - WebVisitors blinker is a quick ‘n’ dirty Arduino project. Something very easy to do to get started with Arduino. If you have a web server where you live you can see when somebody visits your……
[…] HOW TO - Make a WebVisitors blinker - Link. […]
[…] HOW TO - Make a WebVisitors blinker - Link. […]
You just got linked on Make - that thing must be blinking like crazy right about now!
Cheers,
Gabriel McGovern
This is a really cool idea! I bet you could bypass the Arduino and use a serial port for a cheap and dirty hack.
[…] Arduino WebVisitors blinker - [Link] […]
How would one set this up if their web server was not local?
This is awesome, and much simpler than the server ringing a bell trick…
Good work ; )
[…] WebVisitors blinker […]
How about for the Powermate!
Looks at this blog if you have a remote server, you can mix the arduino code to get the same result with a led:
http://tinkerlog.com/2007/12/04/arduino-xmas-hitcounter/
[…] WebVisitors Blinker: original idea found on Make! blog […]
You can do the same if you have a remote server.
The only thing you have to do is to put a piece of PHP code into your header, that telnets to a simple server program at your home and initiates the blink LED
Yes, I could bypass Arduino and do it directly from servers serial port, but the thing is that my server only has USB ports.
Thank you for your great response and ideas people!
Well,
It’s not very nice, and clearly not as satisfying, but here’s a bash script one-liner that bypasses the entire project all together (thus avoiding that annoying hassle of buying myself an led, or an arduino, or having to build anything, or plug in a usb cable):
[code removed by admin]
Any hit my site gets, generates a hit for yours, and the webcam (sort of satisfyingly) blinks for us both…
Well Ben Hall,
I don’t really like the idea of sharing your visitors. It will generate huge amounts of load on my server (I guess you have thousands of visitors every second :P) so please stop sending me your visitors.
I come in peace
Yeah, it’s not a very likable idea, but I couldn’t resist posting. It was text hits only at least, only a few kilobytes per hit, so no permanent damage should have been done. -ben
Congratulations. Really fun to see how it blinks when I access the site!
I had never heard about this Arduino board. It looks so fun to play with! I will make one ASAP, and be sure I’ll be back here to check for more nice projects!
cya!
Poy mporoyme na agorasoyme ena Arduino???
I just stumbled into this and find it intriguing. It sounds simple, maybe simple enough for me to try it - even though I rarely touch meddling with electronics. More info please! I have several websites: on/with Yahoo!/Geocities - both free and pro/paid, is it possible for me to rig this on my dial-up system?
v888coolcat@yahoo.com
[…] server and type: “sudo chmod 666 /dev/ttyUSB0″. Add this PHP code to your website header. Enjoy!Link google_color_link = “0000FF”; google_color_url = “777777″; google_color_text = “333333″; //–> […]