Postingan

Menampilkan postingan dengan label arduino

Using ultrasonic sensor without arduino

Gambar
Using ultrasonic sensor without arduino Parts list: IC 555 IC KA2284 LED(5pcs) Ultrasonic receiver & transmitter Resistor 1K Resistor 2.2K Resistor 10K Resistor 100 ohm Potentiometer 10K (2pcs) Capacitor 10uF (4pcs) Capacitor 3.3nF Transistor 2N2222 Buzzer There are 2 ways to using Ultrasonic sensor without microcontroller: First way, the buzzer turns ON when you put your hand near the sensor   Second way the LED bar show you the distance level between the sensor and the objects. Video: More information in the 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); ...

Design and make a big LED 7-Segment for Arduino

Gambar
Design and make a big LED 7-Segment for Arduino using BCD to 7segment IC 4511 Parts list: IC4511 LED (35pcs) Resisror 120R (7pcs) Male header pin (6 pin+3 pin) Connecting wires Gerber file: https://drive.google.com/open?id=11R5_IPifnDhEPtdtgeX3StvApPpHDora Circuit: IMPORTANT NOTE: IC 4511 has sourcing current=25mA for each segment, I used five parallel Green LEDs for each segment,i test the total current drawing is only 20mA(4mA each LED), but if you want to use another LED color which make the total current drawing more than 25mA for each segment so you have to add switching transistor for each segment. I chooses Green color LED because draw very very low current and make the circuit simple as possible(No switching transistor needed). Video:  Code:  void setup(){   pinMode(2, OUTPUT); //A   pinMode(3, OUTPUT); //B   pinMode(4, OUTPUT); //C   pinMode(5, OUTPUT); //D } void loop(){     //Number Zero   digitalWrite(2, LOW);   digitalWrite(...

Arduino spirit Level using gyroscope with LED

Gambar
Arduino spirit Level using gyroscope with 11-LED Parts list: Arduino Nano: https://goo.gl/Gox61E Gyroscope: https://goo.gl/vxP6zG Prototype Breadboard: https://goo.gl/jxEJx5 LED Kit: https://goo.gl/UDemfT Resistor Kit: https://goo.gl/TvFJWz Circuit: Video: Code: #include <Wire.h> //Declaring some global variables int gyro_x, gyro_y, gyro_z; long gyro_x_cal, gyro_y_cal, gyro_z_cal; boolean set_gyro_angles; long acc_x, acc_y, acc_z, acc_total_vector; float angle_roll_acc, angle_pitch_acc; float angle_pitch, angle_roll; int angle_pitch_buffer, angle_roll_buffer; float angle_pitch_output, angle_roll_output; long loop_timer; int temp; void setup() {   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);   Wire.begin();     ...

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 Capacitor tester with LCD

Gambar
By this arduino project you can measure the capacity of capacitors with value between 0.1uF to 3500uF. Here arduino calculate the capacity value by measuring the time required to charge the capacity to reach 63.2% of source voltage(According to Capacitor time constant formula ), then divided this time by resistor value which is 10K to find out the capacitor value. Parts list: Arduino Board LCD 16x2 Breadboard  Connecting wire Potentiometer 10K Resistor 10K Resistor 220 ohm(2pcs) Wiring: 10K resistor used for charging the capacitor and 220 ohm used for discharging.   Capacitor under test with 47uF nominal value Capacitor Charge and discharge curve on oscilloscope: Code:  #include <Wire.h> #include <LiquidCrystal.h> LiquidCrystal lcd(7, 8, 9, 10, 11, 12); #define analogPin      0          #define chargePin      13         #define...

Arduino Spirit Level with LCD

Gambar
Arduino Spirit Level with LCD Parts list: Arduino board LCD 16x2 Gyroscope MPU-6050 Potentiometer 10K Resistor 220 ohm Breadbord Connecting wire Wiring: Video: Code: #include <LiquidCrystal.h> LiquidCrystal lcd(7, 8, 9, 10, 11, 12); #include <Wire.h> //Declaring some global variables int gyro_x, gyro_y, gyro_z; long acc_x, acc_y, acc_z, acc_total_vector; int temperature; long gyro_x_cal, gyro_y_cal, gyro_z_cal; long loop_timer; int lcd_loop_counter; float angle_pitch, angle_roll; int angle_pitch_buffer, angle_roll_buffer; boolean set_gyro_angles; float angle_roll_acc, angle_pitch_acc; float angle_pitch_output, angle_roll_output; //Initialize the LCD library //LiquidCrystal_I2C lcd(0x27,16,2); void setup() {   Wire.begin();                                          ...