Postingan

Menampilkan postingan dari November, 2015

Turn ON-OFF electric appliance using Arduino bluetooth HC-06

Gambar
You can run some electric appliances (AC load) or some LED lamps(DC load) by Bluetooth from your mobile using Arduino. Parts list: Arduino board https://goo.gl/XR3mXG Resistor 100 ohm(12pcs) (Resistor kit https://goo.gl/p4JvQY ) Relay module 8 channel https://goo.gl/G5Uf3S LED (12pcs) https://goo.gl/SPCY5o Bluetooth module HC-06 https://goo.gl/hQfuXz Adapter 9v 1A https://goo.gl/xL3ZCi Breadboard https://goo.gl/rGuHzY Connecting Wires https://goo.gl/BVC3pM   IMPORTANT NOTES: 1-RX pin of bluetooth module connected to TX of arduino board and the TX pin of bluetooth module connected to RX of arduino board. 2-You must use 9v adapter rather than 9v battery when you use relay channel module because the battery become empty quickly. 3-When you want upload the programming code to arduino board, first remove the RX and TX pins. 4-Old versions of arduino program can't used for this project so you have to install   new version of arduino program from arduino site for free . Mobile and Bluet

Simplest 220v motion light switch

Gambar
This circuit is a motion switch that can run 110/220v AC lamp up to 10A. the circuit based on PIR motion sensor module HC-SR501, however you can use any other type but must pays attention to pin configuration(Vout in some modules is the first pin). motion sensor module is very cheap, i bought  it from Aliexpress by only 0.96$ with free shipping. When you buy a PIR motion module usually it not contain LDR so if you want use it for  running the lamp by motion just in dark so you have to add the LDR to that, that is very easy as you can see in the picture there are LDR interface under PIR plastic cover. After making the circuit put it in a plastic box such as ceiling fan regulator box for electrical insulation. Parts list: PIR motion sensor HC-SR501 Transistor 2N2222 12v relay Diode 1N4007 Zener diode 12v 1W Diode bridge 1A Capacitor 220uF 25v Capacitor 330nF 400v Resistor 1k Resistor 270 ohm 2W NOTES: 1-Don't touch the circuit when it connected to electric line. 2-Even after pluggi

LED chaser with 12 LEDs using arduino

Gambar
LED chaser with 12 LEDs using arduino. Parts list: Arduino Board https://goo.gl/XR3mXG LEDs (12pcs) https://goo.gl/SPCY5o Resistor 100 ohm(12pcs) (Resistor kit https://goo.gl/p4JvQY ) Connecting Wires https://goo.gl/BVC3pM Breadboard https://goo.gl/rGuHzY     Please subscribe to my YouTube channel here:  https://www.youtube.com/c/EngMousaalkaabi?sub_confirmation=1 void setup(){   pinMode(2, OUTPUT);   pinMode(3, OUTPUT);   pinMode(4, OUTPUT);   pinMode(5, OUTPUT);   pinMode(6, OUTPUT);   pinMode(7, OUTPUT);   pinMode(8, OUTPUT);   pinMode(9, OUTPUT);   pinMode(10, OUTPUT);   pinMode(11, OUTPUT);   pinMode(12, OUTPUT);   pinMode(13, OUTPUT); } void loop(){     digitalWrite(4, HIGH);   delay(100);   digitalWrite(4, LOW);   delay(100);   digitalWrite(4, HIGH);   delay(100);   digitalWrite(4, LOW);   delay(100);   digitalWrite(8, HIGH);   delay(100);   digitalWrite(8, LOW);   delay(100);   digitalWrite(8, HIGH);   delay(100);   digitalWrite(8, LOW);   delay(100);   digitalWrite(2, HIGH);

Display 4 digits on 7 segments using arduino

Gambar
You can display 4 digits on the 7segments using arduino. the number must insert in "serial monitor" by PC. NOTES: 1-use 4 resistors 220ohm through digit1, digit2, digit3 and digit4 to protection. 2-7segments is common cathode. /*  4 digit 7 segment LED display common cathode boolean DigitOn = LOW; boolean DigitOff = HIGH; boolean SegOn=HIGH; boolean SegOff=LOW; int DigitPins[] = {2, 3, 4, 5}; int SegmentPins[] = {6, 7, 8, 9, 10, 11, 12, 13}; //looks terrible, but I didn't find a way to copy Arrays or merge them from parts //N is for numbers and NxP is a number with a decimal point behind int BLANK[] = {LOW, LOW, LOW, LOW, LOW, LOW, LOW, LOW}; int N0[]    = {HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, LOW, LOW}; int N0P[]   = {HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, LOW, HIGH}; int N1[]    = {LOW, HIGH, HIGH, LOW, LOW, LOW, LOW, LOW}; int N1P[]   = {LOW, HIGH, HIGH, LOW, LOW, LOW, LOW, HIGH}; int N2[]    = {HIGH, HIGH, LOW, HIGH, HIGH, LOW, HIGH, LOW}; int N2P[]   = {HIGH, HIGH, LOW,

110/220v Aoutomatic light switch (Photocell)

Gambar
This is an automatic light switch circuit (Photocell), can run 220v lamps in night automatically up to 10A. Advantages of this circuit: 1-have 5 seconds delay time 2-can run up to 10A load 3-can use for any lamp types such as LED, CFL, low pressure sodium, high pressure sodium, ...etc. 4-adjustable light sensitivity by potentiometer Parts list: Transistor 2N5551(2pcs) Relay 12v LDR Potentiometer 25k Bridge diode 1A Zener diode 12v 1W Diode 1N4007 Capacitor 330-820uF 400v Capacitor 100uF 25v(2pcs) Resistor 270 ohm 2W Resistor 10k Resistor 2.2k Resistor 33 ohm you must put it in a small transparent plastic box for electric and moisture insulation. NOTES: 1-Don't touch the circuit when it connected to electric line. 2-Put it away from lamps light (above the lamp)  As you see in this pic. i used 3A relay rather than 10A to make the circuit small as possible since my loads consume very low current   In following video you can see step by step making this Photocell:

Running 70 LEDs by 1.5v AA battery

Gambar
By this circuit you can run more than 70 LEDs by an AA battery. The circuit draw 100 to 200 mA from the battery. you can find the choke coil from a mobile charger or old flash camera or rechargeable fly zapper. Parts list: Transistor 2N2222 Resistor 1k Chock coil LED(70pcs) Battery 1.5v NOTE: 1-test the output voltage before connecting that to the parallel LEDs. (2-3v is good) 2-using bigger transformer(choke coil) and power transistor maybe raise the output voltage up to 100v.    

1.5v Flasher with 25 LEDs

Gambar
This is an amazing LED flasher that run by only 1.5v AA battery. The circuit based on joule thief method. main circuit was designed by handmade choke coil but i change that to this new circuit that don't need to coil making because that was very difficult. you can use an electric zapper choke coil. the flashing speed can change by potentiometer. A new 1.5v alkaline battery can run this circuit for more than 30 hours(by lowest flashing speed). I test this circuit by 25 LEDs but you can add more. Zapper choke coil usually have 6pin and 3 internal coil. in first you should determine that by an ohmmeter, then put that in the circuit. the temperature of  transistor raise in high speed flashing, so need to a heatsink.  Parts list: Transistor 2N2222 Resistor 100 ohm Potentiometer 1k Capacitor 100uF 35v Chock coil of old camera or electric zapper or mobile charger Battery 1.5v AAA or AA LED Diode 1N4007 Diac DB3