Beginner Friendly: What's for Dinner Arduino Project. Includes Code

by navyab412 in Circuits > Arduino

118 Views, 1 Favorites, 0 Comments

Beginner Friendly: What's for Dinner Arduino Project. Includes Code

What's for Dinner Arduino Project

Are you tired of deciding what to have for dinner every night? Let your Arduino take care of it with this fun and interactive "What's for Dinner?" project! This project uses an Arduino Uno, a 16x2 LCD display, a push button, and a potentiometer to randomly suggest a dinner option from a predefined list. When you press the button, the Arduino will display a random dinner choice on the LCD screen, making meal planning both simple and enjoyable.

Supplies

Arduino Uno board

16x2 LCD Display (with a parallel interface)

Push Button

Potentiometer (10k Ohm)

Breadboard

Jumper Wires

220 Ω resistor

10K Ω resistor

Copy the Fritzing Diagram

Screenshot 2024-07-05 at 4.36.53 PM.png

Use this to set up, detailed instructions below too.

Connect Arduino and Breadboard

  • connect from 5V to positive ground rail
  • connect from GND to negative ground rail

Add LCD Screen


  • VDD: Connect to positive rail
  • GND (VSS): Connect to negative rail
  • VO: Connect to the middle pin of a potentiometer. Connect one end of the potentiometer to 5V and the other end to GND.
  • RS: Connect to Arduino digital pin 12.
  • RW: Connect to negative rail (since we are only writing to the LCD).
  • E: Connect to Arduino digital pin 11.
  • D4-D7: Connect to Arduino digital pins 5, 4, 3, and 2 respectively.
  • A (Anode): Connect through a 220 Ω resistor to positive rail
  • K (Cathode or GND): Connect directly to negative rail.


Add Potentiometer

Connect V0 to the middle pin of a potentiometer. Connect one end of the potentiometer to positive ground rail and the other end to negative ground rail.

Add Button

  • Connect one leg to Arduino digital pin 7.
  • Connect the other leg to GND through a 10k Ohm resistor.


Copy Paste Code in Arduino IDE

Connect Laptop and Arduino With USB Cable

Run the Code

Finished!