Postingan

Menampilkan postingan dari Agustus, 2018

81 LED Matrix X-Y Controlled with two Clock Pulses

Gambar
81 LED Matrix X-Y controlled with two Clock pulses (different frequency) using 4017 IC Parts list: 4017(2pcs) LED (81 pcs) Resistor 330R (9pcs) Resistor 10K (9pcs) Transistor 2N3904 (9pcs) Circuit: Video: 

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);   pinMode(9, OU

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(3, LOW);   digitalWrite(4, LOW);   digitalWrite(5