These instructions mainly are designed for high school students to get an easy understanding and hand-on experience on how to use Arduino development kit to build a simple hardware device. It will let them understand how sensor work as well as learning some basic C language programming skill.
In this case, user will assemble a voice control swivel stand for use with an iPhone. This will allow voice control use of the phone while doing things like facetiming in groups. Instead of having someone hold the phone while facetiming with multiple people, the phone sits on the stand and can be moved to focus on whomever is speaking with the through the use of sound sensors. Thus, as someone speaks, the phone will turn to face the sound of the voice, focusing on the speaker. This will eliminate clumsy or messy videoing, as well as reducing the chance of dropping or damaging the phone.
Step 1: Materials You Need
1. Arduino Uno Development Board
2. Adafruit Motor Shield V2
3. Sound Sensors (x2)
4. Step Motor
5. Paper Base
Step 2: Download and Install Arduino Software
Go to http://www.arduino.cc/en/Main/Software and download the newest version of Arduino software and install it into your computer.
Step 3: Program Your Arduino
Connect your Arduino board to your computer via USB cable. Copy the code in the image into Ardunio software window and click the arrow button. It burn the program into the board. If the compiler does not compile, make sure you downloaded the <Adafruit_MotorShield.h> into your arduino software. It will take about 30 seconds for the computer to burn the program into the chip. After it finished programming, unplug the USB cable from your computer.
Step 4: Assemble Your Parts I
Stack Arduino board with the motor shield. Connect two microphone sound sensors to the motor shield using jumper wire.
The mircophone sound sensor has three pins each: OUT, GND and VCC. OUT is the signal pin, GND is the ground pin, and VCC is power pin. Connect OUT to A0 and A1 port of the shield. Connect VCC and GND to the 5V and GND port of the shield accordingly. Since there is only one VCC port on the shield. Connect the other to Pin 7. And You program will write Pin 7 to power the sensor. (Pin name is printed on the side of arduino board)
Clip sound sensors to the base using clothespin. Make sure the sensors go on the appropriate sides. (left, right)
Step 5: Assemble Your Parts II
The step motor has two sets of GND and VCC. It has total of 4 wires. Please follow the connection diagram and connect the step motor to the motor shield using jumper wire.
Step 6: Power Your System
Put the phone in the base holder and connect USB cable to Arduino development boards with computer to power the entire system. Ensure that the USB port are lined up accurately. The green LED on Arduino and mircophone sensors will both light up after this step.
The phone will now turn you if you speak up.