Posts

Showing posts from January, 2018

How to make an IR toggle switch

Image
Hello, today I will show you how to make an IR toggle switch with Arduino and a Mosfet, it has far more detection range than capacitive touch device and easy to build. The circuit is easy to use and use minimal components to make a job done, now let's start Components list: R1 = 100 ohms resistor R2 = 470 Kilo-ohms resistor R3 = 10 Kilo-ohms resistor R4 =1000 ohms or 1 kilo-ohms IR1 = infrared led IRR1 = infrared receiver led = low forward voltage led, you can find it on any electronic part store Tube1 =Shrink tubing 1 x irf9540n p-type Mosfet If you have the components I list ready, it's time to upload this code to your Arduino UNO r3 /* switch  *   * Each time the input pin goes from LOW to HIGH (e.g. because of a push-button  * press), the output pin is toggled from LOW to HIGH or HIGH to LOW.  There's  * a minimum delay between toggles to debounce the circuit (i.e. to ignore  * noise).    *  * David A...