Hello Gals and Gents,
I am trying to complete a school project, consisting of 4ea recycle bins. I am using 4 servos (SG92R), together with a Geeetech voice recognition module, 1 green LED and an Arduino Uno R3 board. The basic idea is to open/close the lids of the bins with voice commands controlling the servos.
I am powering the Arduino through the barrel jack, with 1ea 9.9 volts, 2200 mAh battery (LifeP04, 3 cels). The servos are powered through the breadboard by using a DC-DC Buck Converter Step Down Module, the input voltage is adjusted to 5.01 volts. Servos and voice module ground wires are common/shared with Arduino.
I use 2 groups of voice commands. Group 1 is imported during initial boot up and has 4 commands:
"Lets Start" = led turns on and the system sets servos to bins closed position and is ready to roll.
"Goodbye" = led off and the system is unusable.
"Open" = Arms the open cycle and imports Group 2.
"Close" = Arms the close cycle and imports Group 2.
Group 2 consists of 5 voice commands:
"Blue", "Yellow", "Orange" and "Green", different bin lids and "All" which moves all 4 servos.
All Group 2 commands import Group 1 back in the system.
The code is compiled and imported successfully.
I really hope I did not get you tired already. The actual problem I have is that after a few initial commands that work (like "Lets Start"-"Open"- "Blue", I get the servos moving by just the "Open" Or "Close" command. I do not understand why this happens. The whole thing becomes inconsistent. Then the voice command becomes unavailable (blinks fast and is not doing anything). I replaced the voice command to troubleshoot a possible hardware failure but to no help.
If you could please have a look at the code I am using and suggest what can cause this, I would be very grateful. Maybe the voice module is not up to standard?
I attached the code I am using as a file (too long, max. limit exceeded).
Thanks in advance for your time and advice,
EasyBusy. _
sketch_jan04b.ino (11.2 KB)