Programming Examples

Design a counter using an atmega microcontroller (like ATMEGA328P) using Arduino to display the number of entries per day in an office.


practical paper IOT O Level

Design a counter using an atmega microcontroller (like ATMEGA328P) using Arduino to display the number of entries per day in an office.

Components Required:

  • Arduino UNO
  • LCD 16*2
  • Ultrasonic sensor ( for distance measurement)
  • Buzzer
  • Breadboard
  • Jumper wire for connections
  • Resistor and potentiometer for LCD

#include<LiquidCrystal.h>
LiquidCrystal lcd (1,2,4,5,6,7);
void setup()
{ lcd.begin(16,2);
lcd.setCursor(5,0);
lcd.print("WELCOME");
lcd.setCursor(3,1);
lcd.print("TO MY CLASS");
delay(2000);
lcd.setCursor(5,0);
lcd.print("New Way");
lcd.setCursor(3,1);
lcd.print("Of Learning");
delay(2000);
lcd.clear();
}
void loop()
{
lcd.setCursor(2,0);
lcd.print("Arduino class");
lcd.setCursor(2,1);
lcd.print("INFOMAX COMPUTER ACADEMY");
delay(500);
lcd.clear();
lcd.setCursor(2,0);
lcd.print("Arduino class");
delay(500);
}

Output

Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2024 Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz