The smart dustbin’s lid will open when you go close or put your hand above the lid for a few seconds. If you put a lot of rubbish in it, all the red lights will light up. The red lights will light up based on the amount of trash in it. The green lights indicate the empty space.
This project is about the car’s speedometer. If you press the accelerator button, the km/h will increase and the distance will increase too. The brake button will decrease your km/h and when the km/h hits 0, the distance will stop decreasing. Just imagine that you are driving in your own car!
Include Wire library
Include LiquidCrystal I2C library
Include servo library LiquidCrystal_I2C lcd(0x27, 16, 2);
int angle = 0;
int servoPin = 6;
int brake = 9;
int accel = 8;
int spd = 0;
This game gets faster and faster when you press the correct button. The game code uses a random generator to choose a random LED to light up. If you press on the wrong button, your score will decrease by one.
Hi everyone! I’m Ming Ren and I am currently learning Arduino robotics. I decided to learn as Arduino is very interesting and fun. I hope viewers who are reading right now would try out robotics. You have to practice for your tests too. Have fun!