Below is the schematics diagram. The R1 controls the sensitivity of the circuit. If R1 is small, like 10k ohm, a little darkness will activate
Category: Arduino & Electronics
Using NPN transistor as a switch
The schematic for the circuit. Using Arduino Uno, 12v led strip, 9v battery and 2N3904 transistor, with some simple code to control on/off. And a
What is BJT transistor – Introduction
There are 2 main types of transitor, namely Bipolar Junction Transistor (BJT) and Field Effect Transistor (FET). Basically both type perform the same function ie.
Connecting an Active Low switch to Arduino
Arduino Uno has a built in ‘pull up’ resistor integrated into its circuit. We can use this resistor by using INPUT_PULL as the mode argument
Connecting a switch to Arduino
This sketch is just a switch connected to Arduino Uno, the voltage is 3.3v, the LED act like a resistor (else the circuit will be
Traffic Lights using Ardino
This project is using Arduino to blink red, yellow and green LEDs. The timing is control by the delay function in the code below. ‘delay(1000)’
