Hello,
Im in the middle of a project, building RC cars that fight each other. The cars try to target switches on the other cars to lower their health status. Ive already got some LEDs to indicate a hit and now Id like to add some noise. Im wondering how I can create a sound after a hit using a small speaker. I know that the speakers on my stereo have two different wires to complete a circuit. Im wondering if hooking up a small speaker to my stm32F407VG board would be as simple as hooking up an LED, one leg to an output pin and another to ground. Any ideas on speakers, programming sound, or comments in general?
Im in the middle of a project, building RC cars that fight each other. The cars try to target switches on the other cars to lower their health status. Ive already got some LEDs to indicate a hit and now Id like to add some noise. Im wondering how I can create a sound after a hit using a small speaker. I know that the speakers on my stereo have two different wires to complete a circuit. Im wondering if hooking up a small speaker to my stm32F407VG board would be as simple as hooking up an LED, one leg to an output pin and another to ground. Any ideas on speakers, programming sound, or comments in general?