75Views1Replies

Author Options:

Leonardo - Warning System + Voice Recognition Answered

I designed and built a warning system, using 3 sensors, that detect when an object is approaching. The system also has a toggle switch and a buzzer.

When the toggle switch is in the OFF position: If there are no objects nearby the LED turns GREEN, if either sensor 1 or 3 detect an object the LED turns YELLOW and finally if the object is between sensors 1 and 2 or 2 and 3 the LED turns RED.

When the toggle switch is in the ON position:  Same as OFF position + buzzer  beeping depending on color of LED.

Now I would like to add voice recognition to my system. I purchased a JY-MCU Bluetooth Wireless Serial Port Module and was able to test it using a simple program that changed the color of my LED depending on the command I gave it using my phone.

My problem now is that whenever I tried to add the voice recognition capability to my warning system its not working. The code I'm using makes sense but I'm new at this so I might be missing something. I'll be posting 3 codes: 1)Warning System 2)Test for Voice Recognition 3) Current non-working code.

Comments

The forums are retiring in 2021 and are now closed for new topics and comments.