Postingan

Menampilkan postingan dari Juni, 2018

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 dischargePin   3        #define resistorValue  10000.0F  //Remember, we've used a 10K resistor to charge the capacitor unsigned long startTime;

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();                                                        //Start I2C as master   //Serial.begin(57600);                                               //Use only for debugging   pinMode(13, OUTPUT);                                                 //Set outpu

Arduino DC current & voltage meter with LCD

Gambar
Arduino DC voltage and current meter Max. voltage= 50v Max. current = 30A (There are 3 types of ACS712 sensor, 5A, 20A, 30A) Parts list: Arduino board LCD 16x2 Current sensor ACS712 (There are 3 types of ACS712 sensor, 5A, 20A, 30A) Connecting wire Potentiometer 10K Resistor 10K Resistor 100K Resistor 220 ohm Breadboard Wiring: Video:  Please subscribe to my YouTube channel here:  https://www.youtube.com/c/EngMousaalkaabi?sub_confirmation=1 Code: #include <LiquidCrystal.h> LiquidCrystal lcd(7, 8, 9, 10, 11, 12); //Measuring Current Using ACS712 (30A) const int analogIn = 0; //Connect current sensor with A0 of Arduino const int analogIn2 = 1; //Connect voltage sensor with A1 of Arduino int mVperAmp = 66; // use 100 for 20A Module and 185 for 5A Module int RawValue= 0; int VolValue= 0; int ACSoffset = 2500; double Voltage = 0; //voltage measuring double Voltage2 = 0; //voltage measuring double Amps = 0;// Current measuring double Volt = 0;// voltage measuring void setup() {   //bau