Postingan

Menampilkan postingan dengan label AC 110v-220v Projects

220v Photocell switch with 2 wires

Gambar
Photocell or auto dark activated switch using for running garden or street lights in the night and turns them OFF at the day time automatically so it helps to power saving. The traditional photocell has two problems: 1-Standby power loss (around 1.6W) 2-Has 3 wires which is difficult to install I designed and make a new circuit that haven't those two problems. Parts list: IC 4093 SCR c106m LDR Bridge diode 4A Resistor 1M Resistor 30K Zener diode 9.1V 1/4W Circuit diagram: Important notes: 1- For this circuit you can only use SCR with sensitive gates such as BT169 or C106M 2- The IC used in this circuit is 4093 because it is micro-power IC , you can't use other NAND or NOT gate ICs.  3- Max. Load this circuit can handle is depend on SCR and bridge diode. The circuit can handle about 4A if used SCR C106M and 4A Bridge diode. 4- This circuit deal with 110/220V AC so can be very dangerous if you touch any component in the circuit. Video:

How to convert a square modified wave inverter to pure sine wave

Gambar
In this project i conver a modified sine wave of an inverter to pure wave using microcontroller (Arduino) and low pass filter(LPF). Watch this video here . Parts list: Arduino Inductor 900mH(2pcs) Capacitor 2 to 3uF 400V Capacitor 0.8uF(800nF) 400V Capacitor 1000uF 16V Transformer 220v to 6v Potentiometer 100K Resistor 750R   Video: Code: void setup() {   pinMode(3, OUTPUT);   pinMode(4, OUTPUT); } void loop(){   {   digitalWrite(3, HIGH);   digitalWrite(4, HIGH);   }   delayMicroseconds(1500);     {   digitalWrite(3, HIGH);   digitalWrite(4, LOW);   }   delayMicroseconds(75);   {   digitalWrite(3, HIGH);   digitalWrite(4, HIGH);   }   delayMicroseconds(50);   {   digitalWrite(3, HIGH);   digitalWrite(4, LOW);   }   delayMicroseconds(150);   {   digitalWrite(3, HIGH);   digitalWrite(4, HIGH);   }   delayMicroseconds(125);   {   digit...

Arduino calculate the capacitor value for PFC

Gambar
Calculation of capacitor value for PFC using Arduino By this Arduino project you can find out the capacitor value needed for PFC (Power Factor Correction) using arduino without any mathematical process.   Following image show you the value given by arduino and the value given by the PFC app. that available for Android in google play for free. both give me the same value. Then i connect a capacitor with value given by arduino and the PF become unity When no load connected When the load is resistive Parts list: Arduino board Energy meter module Pzem-004t   LCD 16x2 with I2C adapter board Connecting wires Wiring: Video: Code: #include "math.h" #include <Wire.h> #include <LiquidCrystal_I2C.h> #include <SoftwareSerial.h> // Arduino IDE <1.6.6 #include <PZEM004T.h> LiquidCrystal_I2C lcd(0x27,16,2); PZEM004T pzem(2,3);  // (RX,TX) connect to TX,RX of PZEM IPAddress ip(192,168,1,1); void setup() {   Serial.begin(9600);   pzem.setAddress(ip); ...

Arduino 220V AC Dimmer (JLCPCB)

Gambar
220V AC Dimmer using Arduino and making PCB order from JLCPCB  Wiring: Convert to PCB using EasyEDA: PCB order on JLCPCB.COM: Parts list: Arduino Nano Triac driver MOC3021 Optocoupler  PC817 Resistor 100K (2pcs) Resistor 470R (2pcs) Resistor 100R 1W Resistor 330R Resistor 10K Capacitor 100nF 400V 7Segment (Common cathode) Triac BT136 Diode bridge 0.5A IR receiver 1838B Terminal connector 2Pin (2pcs)  Push-button switch (2pcs) Download my Gerber File from here: https://drive.google.com/open?id=1DStmUIO0fcXJRmCG-zzzemJQBiqQ22zv Video:  Code: #include "IRremote.h" //-----( Declare Constants )----- int receiver = 9; //-----( Declare objects )----- IRrecv irrecv(receiver);           // create instance of 'irrecv' decode_results results;            // create instance of 'decode_results' //-----( Declare Variables )----- #include <TimerOne.h>   ...

Arduino 220v switch using fingerprint scanner FPM10A

Gambar
This arduino project used fingerprint scanner module FPM10A for turns ON/OFF some AC or DC loads by fingerprint. In this project we should using two different codes, the first code is for saving your fingerprint on the memory of the module, and the second code used for scanning the fingerprint of people in each time to compare that with saved fingerprint on the memory. Parts list: Arduino board (UNO or Nano) LCD display 16X2 Fingerprint scanner FPM10A   One channel relay module Breadboard Connecting wires Potentiometer 1K Resistor 220 ohm Please subscribe to my YouTube channel here:  https://www.youtube.com/c/EngMousaalkaabi?sub_confirmation=1 Follow this steps: 1- Install the library from here 2- Connect the module and the relay as shown in this picture 3- Go to Example and upload the enroll code to arduino 4- Open the serial monitor and insert a number between 1 to 127 then put your finger and scan it several time to saved that on the module, i saved my thumb and inde...

Arduino 220V AC Power meter using PZEM004T

Gambar
Arduino 220V AC Power meter using PZEM004T Library : https://github.com/olehs/PZEM004T Part list: Arduino board LCD 16x2 PZEM004T module Resistor 220 ohm Potentiometer 10K Video:  CODE: #include <SoftwareSerial.h> // Arduino IDE <1.6.6 #include <PZEM004T.h> #include <LiquidCrystal.h> LiquidCrystal lcd(7, 8, 9, 10, 11, 12); PZEM004T pzem(2,3);  // (RX,TX) connect to TX,RX of PZEM IPAddress ip(192,168,1,1); void setup() {   Serial.begin(9600);   pzem.setAddress(ip);   lcd.begin(16, 2); // lcd rows and columns    } void loop() {     float v = pzem.voltage(ip);   if (v < 0.0) v = 0.0;   Serial.print(v);Serial.print("V; ");   lcd.setCursor(0,0);   lcd.print("V= ");   lcd.setCursor(2,0);   lcd.print(v);   float i = pzem.current(ip);   if (i < 0.0) i = 0.0;   Serial.print(i);Serial.print("A; ");   lcd.setCursor(9,0);   lcd.print("A= ");   lcd.setCursor(11,0); ...

High voltage probe for multimeter

Gambar
High voltage probe for multimeter

Power factor measurment using Arduino

Gambar
In this project i used arduino and XOR gate to power factor measurement. What is power factor? Power factor is a number between 0 and 1 refers to phase shift between voltage phase and current phase in AC appliance. How to measure PF with Microcontroller (Arduino)? To measuring the power factor with microcontrollers in the first we used Op-Amp to zero cross detection to find the phase shift between current and voltage phase, the op-amp convert the sine wave signal comes from CT and PT with different amplitude to square wave with about 4v amplitude, then we connect these two square wave to XOR gate inputs.  XOR gate output will be 1 just when the inputs have different signals so when the load is resistive XOR gate output is 0 because both voltage and current phases start and ends in the same time, but when the load is inductive or capacitive XOR output is 1 because there are phase shaft between voltage and current, Hence we can find the power factor by measuring the " ON-time "...

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...