Postingan

Arduino 220v AC dimmer with remote control with code

Gambar
This Arduino project help you to control brightness of a 220V dimmable lamp or speed of ceiling fan (or any other electric motor) with an IR remote control using Arduino. Max. power which can controlled with this dimmer depend on triac model.(BT136 can bear 4A according to Datasheet). This project consist of 4 basic parts: 1-Microcontroller(Arduino) 2-Zero-cross detector(Bridge and Optocoupler) 3-Display(7Segment) 4-Phase angel controller(Tiac and Triac driver) The load can controlled by Up and Down bush button or with IR remote controller.  Circuit diagram: Parts list: Arduino UNO https://goo.gl/XR3mXG Optocoupler pc817 Triac driver MOC3021(Or any other Random-phase triac driver) 1 Digit 7 Segment common cathode Triac BT136 Diode bridge(4pcs 1N4007) (Diode kit: https://goo.gl/w1rmcX ) Push button(4pcs) Resistor kit https://goo.gl/p4JvQY Resistor 100K(2pcs) Resistor470 ohm (2pcs) Resistor 330 ohm Resistor 100 ohm 1W Resistor 10K Capacitor 100nF 400v IR receiver 1830B Important NO...

Auto light switch for bathroom using laser and IC4017

Gambar
Many people forgets the bathroom and toilet lamps in ON state, absolutely this causes increasing electric bill and even decrease lamps lifespan. This circuit is a simple way to turning ON and OFF the bathroom or toilet lamp automatically without using microcontroller. The circuit based on the counter IC4017 and laser. when a person go to bathroom his body cut the laser ray that is focused on the LDR in another side of the door frame, connecting and disconnecting the laser ray changed the LDR electric resistance and giving a positive signal to pin14 of the IC4017 through transistor 2N2222, since pin4 jumped to reset pin (pin15) so the output selector will be changed between pin3 and pin2. Pin3 run the transistor to running the relay. Two LEDs showing ON state and OFF state. 330 ohm resistor used to LEDs protection by giving 15mA current to them. You can use any other NPN transistor rather than 2N2222 such as BC547, C9013, 2N5551, etc.  This circuit is suitable for light switching fo...

220V Auto room light switch using Arduino and Lazer (Visitor counter)

Gambar
Many peoples forgets the Room lamps in running state when nobody in the room, this causes increasing electric bill or battery energy losing in solar home. This Arduino project is a visitor counter that turns OFF the lamp when nobody in the room automatically, it also can used for lamps of bathroom, toilet, kitchen, etc. Visitor counter can makes by using different types of sensors, such as IR ray, Ultrasonic, Avoidance sensor, Laser ray, etc. Here i used Laser because the laser has long distance range, Avoidance sensor is very easy to use but its distance rang is lower than 30cm. You can make this project with LCD display for showing the numbers of people in the room but as you can see in the video i don't used display because its not important for me, any way the code is same with or without display. This project help to power consumption optimizing.  Parts list: Arduino board  1 Channel Relay module Laser diode(2 pcs) Light sensor modules(2 pcs) Adapter 5v 200mA If you want ...

AC 220V Frequency counter using arduino

Gambar
In this project i used Arduino and some other electronic components for AC mains frequency measurement. Since Frequency is equal to: 1 divided by time period, so in first we should measure the time period. Time Period is the time of one full wave in AC voltage, means positive half wave+negative half wave. Here i used optocoupler for detecting the frequency of AC voltage. 47K resistor decrease the current to about 5mA for running the optocoupler and one diode for half wave rectification  So the arduino here calculate the ON time and OFF time of optocoupler that connected to Pin 13 in arduino board, then divided 1 by ( ON+OFF ) Time for give the frequency.  Since in arduino code the time always must insert as millisecond so we devide 1000 by ON+OFF Time for give the frequency. The circuit 100% insulated from mains voltage and can not be harmful for your arduino board. You can use any other available optocoupler rather than 817B.  Parts list:  Arduino board LCD display ...

Fridge door alarm circuit with delay time

Gambar
New fridge models contain an alarm to notice door leaves open, it prevent energy losing. This circuit is a simple fridge door alarm that active when the fridges door leaves open for 15 seconds, this delay time depend on 10uF capacitor so you can increase this delay time by increasing the capacitor value. Alarm sound frequency depend on second capacitor value. The circuit run with 9v battery and draw 40mA when the alarm is active and lower than 10mA when it is in standby state. Its better to use a rechargeable 9v battery. Parts list: IC555 (2pcs) Buzzer LDR Resistor 1M Resistor 1.5M Resistor 100K Capacitor 10uF Capacitor 220nF Battery 9v

1.5V Electric fly zapper circuit

Gambar
This circuit is an electric zapper that can convert 1.5v to very high voltage, so it can used as a fly killer. you have to connect two thin metal grid to the output exactly look like to commercial fly zapper. output voltage can reach to more than 2000v. You can use almost any other PNP transistor rather than S8550 and any other NPN transistor rather than S9013. The circuit run with 1.5v and consume 40mA to 100mA. Parts list: Transistor S9013 Transistor S8550 Resistor 30K Capacitor 100nF Capacitor 2uF 400v (8pcs) Diode 1N5408 (8pcs) Transformer 6v Battery 1.5v  Two thin metal grid

220v AC timer using IC 555

Gambar
This is a very useful timer that can run 110/220v AC load up to 10A. This circuit give 5 time periods from 1 minute to 60 minutes, you have to select the time by time selector switch then press START to activating the relay for running the AC load and turning OFF the load after selected time automatically.  Maximum time period in this timer is 60 minutes but if you need to higher period so you have to increase the value of 470uF capacitor or 4M resistor to higher value.  If you need this timer for DC loads so can use second circuit diagram. Parts list: IC 555 Transistor 2N5551 Relay 12v Red LED Green LED Push switch  Selector switch Diode 1N4007 Bridge diode 1A Zener diode 12v 1W Capacitor 470nF 400v Capacitor 220uF 16v Capacitor 100nF Capacitor 470uF 16v Resistor 270 ohm 2W Resistor 30K Resistor 1K(3pcs) Resistor 100K Resistor 500K Resistor 1.5M Resistor 2M Resistor 4M