This video will show you how to talk with your Arduino with the (cheap) Geeetech voice control module. You can then use the code to control a motor or make voice controlled lights. There are a few videos that demonstrate the same thing, however they use a windows machine with Accessport, here I have used CoolTerm on a Mac to send Hex commands to the TTL module.
#include<Servo.h>
byte com = 0;
Servo myServo;
void setup() {
Serial.begin(9600);
myServo.attach(9);
delay(2000);
Serial.write(0xAA);
Serial.write(0x37);
delay(1000);
Serial.write(0xAA);
Serial.write(0x21);
}
void loop() {
while(Serial.available()) {
com = Serial.read();
switch(com) {
case 0x11: //command 1
myServo.write(0);
break;
case 0x12: //command 2
myServo.write(45);
break;
case 0x13: //command 3
myServo.write(90);
break;
case 0x14: //command 4
myServo.write(135);
break;
case 0x15: //command 5
myServo.write(180);
break;
}
}
}
My name is Matthew, I am 26, and I attend the University of Pittsurgh. Currently I am a junior, going for a bachelors in Information Science. I am always looking for someone that would like to embark on a new project or startup. I work as a food server when I am not at school, but would love something a little more technical, if anyone is hiring.