I came across an
instructable about a guy using Arduino to make a lighted orb to alert him when his software builds weren't working. I searched all over and read about Arduino, but I'm still not sure if I totally understand what it is. Perhaps someone here can explain it to me better?
Comments
This is pretty much how machines and devices are programmed. The Arduino seems like a good open way to learn how to make simple robots and things.
EDIT: I should disclaim that I do not yet own an arduino from anyone, but I do plan on buying mine from Maker shed once I decide it's time to do so.
Okay, so it doesn't DO anything, but it is present. I'm still going through the basics of learning how to use it. I'm working my way slowly through the getting started book and the "30 arduino projects for evil geniuses" book.
Today, I managed a minor proof of concept (without using the internet for help) and serial linked two arduinos. One acts as master, the other as slave. The slave sends out a heartbeat which, if the master receives it, causes the master to send out commands to turn off and turn on an LED on the slave.
It's simple, but it proves that I have the skill to make it work. Now, the true test is when the third arduino gets here next month. Thats when I get to see if I can network them all over serial.
Anyway, below is my code for both sides. It's pretty barebones, but if you can think of any way to improve the code, I'd be grateful.
1) A motion detector of some sort that can detect whether to rotate clockwise or counter-clockwise.
2) A motor to rotate the gun.
3) Activating the trigger.
You should be able to do it all with just one.
Components:
Ultrasonic rangefinder
PIR motion detector
3 servos (pan, tilt, trigger)
Wave Shield.
EDIT: looks like a guy has done about 80% of what I want to do and kajigerred the wave shield library to use (those useless) analog pins instead of the default ones. I might do the same thing and bring down the number of needed arduinos to 1.