English
Español
PCBWAY PCB service

PCBWAY PCB service

PCBONLINE PCB service






Whistling detection Arduino


gelectric scooter homemade gear arduino



2. Arduino code

2.3 LED strip with MOSFET


Now, all we have to do is connect digital pin 13 to the gate of a N-MOSFET as in the schematic below. You could change the code in order to control all 3 colors of the LED strip. Make the connections below and upload the next code.


whistle led STRIP switch arduino

LED strip switch code:



relay whistle control Arduino

There you go, I can turn on and off the LED strip just by whistling.

Thank you for everything.

Remember to visit my Patreon page.

whistle led STRIP switch arduino