Monthly Archives: June 2018

Parts list: Arduino board LCD 16×2 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 output 13 (LED) as output setup_mpu_6050_registers();                                          //Setup the registers of the MPU-6050 (500dfs / +/-8g) and start the gyro digitalWrite(13, HIGH);                                              //Set digital output 13 high to indicate startup lcd.begin(16, 2);  //LCD order lcd.setCursor(0,0);                                                  //Set the LCD cursor to position to position 0,0 lcd.print(“Spirit Level”);                                         //Print text to screen lcd.setCursor(0,1);                                                  //Set the LCD cursor to position to position 0,1 lcd.print(”     V1.0″);                                             …

Read more

Line Follower Robot Arduino Line Follower Robot follows a black line. arduino project infrared ir sensor line follower COMPONENTS AND SUPPLIES Arduino UNO & Genuino UNO × 1 SparkFun Dual H-Bridge motor drivers L298 × 1 Proximity Sensor × 1 APPS AND ONLINE SERVICES Arduino IDE ABOUT THIS PROJECT Line Follower Robot Best & Fast PCB Supplier (2$ for 10 PCBs) https://jlcpcb.com YouTube A proximity sensor is a sensor able to detect the presence of nearby objects without any physical contact. A proximity sensor often emits an electromagnetic field or a beam of electromagnetic radiation (infrared, for instance), and looks for changes in the field or return signal. Concepts of Line Follower Concept of working of line follower is related to light. We use here the behavior of light at black and white surface. When light fall on a white surface it is almost full reflected and in case of black…

Read more

2/2