Web Cam
Web enabled pan/tilt web cam with Arduino and PHP – Part 4
by Aneal on Feb.21, 2010, under Arduino, Web Cam
So here is Part 4 of this project. If you haven’t read the first 3 posts, I suggest you go back and do that first, unless you enjoy being confused about what’s going on.
This step will cover the physical hardware build and give some insight and tips to think about when (if) you build one of these.
I personally like to build things. I like getting my hands dirty, and coming up with clever ways to solve problems. Perhaps I missed my calling? I should have been an engineer or something. Nah, I use rubber bands and scotch tape too often as can be witnessed in the pics below. First a pic of the whole project:
Web enabled pan/tilt web cam with Arduino and PHP – Part 3
by Aneal on Feb.21, 2010, under Arduino, Web Cam
If you haven’t already checked out Part 1 or Part 2 of this tutorial, I suggest you do so now so you can catch up!
This is the part of the project that took me the longest to figure out. It isn’t because I’m some sort of slacker when it comes to PHP, it’s just that I was unaware that each time a connection to the serial port of the Arduino is made (or broken) it resets the device. I’ll go into this more in a moment, but for now let’s look at the full PHP code used to talk to the Arduino:









