Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Manufacturing process

Build an AI LCD Companion: Your Interactive Buddy

Components and supplies

Build an AI LCD Companion: Your Interactive Buddy
Arduino UNO
×1
Build an AI LCD Companion: Your Interactive Buddy
Rotary potentiometer (generic)
×1
Build an AI LCD Companion: Your Interactive Buddy
Jumper wires (generic)
×19
Build an AI LCD Companion: Your Interactive Buddy
Breadboard (generic)
×1
button
×4
Build an AI LCD Companion: Your Interactive Buddy
Resistor 100 ohm
×3
Build an AI LCD Companion: Your Interactive Buddy
Resistor 221 ohm
×1
Build an AI LCD Companion: Your Interactive Buddy
Adafruit Standard LCD - 16x2 White on Blue
×1

Apps and online services

Build an AI LCD Companion: Your Interactive Buddy
Arduino IDE
Build an AI LCD Companion: Your Interactive Buddy
Arduino Web Editor

About this project

To give you a buddy during lonely times.

Code

  • The code
The codeC/C++
You can extend it if you want, just post the extended code in a comment! Just copy and paste this after "to be continued." -->
lcd.clear();
lcd.print("To be ");
lcd.setCursor(2, 2);
lcd.print("continued.");
delay(2000);
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
const int buttonPin = 9;
int buttonState = 0;
const int buttonPin2 = 10;
const int buttonPin3 = 8;

void setup() {
  // put your setup code here, to run once:
  pinMode(buttonPin, INPUT);
  pinMode(buttonPin2, INPUT);
  pinMode(buttonPin3, INPUT);
    lcd.begin(16, 2);
  lcd.print(" (.)  (.) Hi I");
  lcd.setCursor(2, 2);
  lcd.print("(____) am Robi");
  delay(2000);
  lcd.clear();
    lcd.print(" (.)  (.) You ");
  lcd.setCursor(2, 2);
  lcd.print(" ____ can talk");
    delay(2000);
    lcd.clear();
  lcd.print(" (-)  (-) to ");
  lcd.setCursor(2, 2);
  lcd.print(" (____) me!");
    delay(2000);
    lcd.clear();
    lcd.print(" (.)  (.)Tap");
  lcd.setCursor(2, 2);
  lcd.print(" ____ the");
  delay(2000);
    lcd.clear();
    lcd.print(" (.)  (.) but");
  lcd.setCursor(2, 2);
  lcd.print(" (____) ton");
 delay(2000);

}
void loop() {
  

   buttonState = digitalRead(buttonPin);
  if (buttonState == HIGH) {
    lcd.clear();
    lcd.print("Hello I am");
  lcd.setCursor(2, 2);
  lcd.print("Alexander");
  delay(2000);
  lcd.clear();
 lcd.print(" (*)  (*) Hi!");
  lcd.setCursor(2, 2);
  lcd.print(" (____)");
  delay(2000);
    lcd.clear();
    lcd.print(" (.)  (.)Let's");
  lcd.setCursor(2, 2);
  lcd.print(" ____ play");
  delay(2000);
    lcd.clear();
    lcd.print("OK!");
  lcd.setCursor(2, 2);
  lcd.print(" But Where?");
 delay(2000);
    lcd.clear();
    lcd.print(" (.)  (.) Park");
  lcd.setCursor(2, 2);
  lcd.print(" (____)or home?");
     delay(2000);
    lcd.clear();
    lcd.print("Left = Park");
  lcd.setCursor(2, 2);
  lcd.print("Right = Home");
  delay(2000);
  }
   buttonState = digitalRead(buttonPin2);
  if (buttonState == HIGH) {
    lcd.clear();
    lcd.print("You go to");
  lcd.setCursor(2, 2);
  lcd.print("the Park...");
  delay(2000);
  lcd.clear();
    lcd.print(" (.)  (.) Lets");
  lcd.setCursor(2, 2);
  lcd.print(" ____ swing!");
  delay(2000);
    lcd.clear();
    lcd.print("OK!");
  lcd.setCursor(2, 2);
  lcd.print("You swing...");
  delay(2000);
      lcd.clear();
    lcd.print(" (*)  (*) I'm");
  lcd.setCursor(2, 2);
  lcd.print(" (___) tired");
  delay(2000);
      lcd.clear();
    lcd.print("Me too!");
  lcd.setCursor(2, 2);
  lcd.print("Lets drink.");
  delay(2000);
      lcd.clear();
    lcd.print(" (.)  (.) Yeah");
  lcd.setCursor(2, 2);
  lcd.print(" (____) ");
  delay(2000);
      lcd.clear();
    lcd.print("You go buy");
  lcd.setCursor(2, 2);
  lcd.print("a drink...");
  delay(2000);
      lcd.clear();
    lcd.print(" (*)  (*) Ahh!");
  lcd.setCursor(2, 2);
  lcd.print(" ____ OW!!");
  delay(2000);
      lcd.clear();
    lcd.print("What?");
  lcd.setCursor(2, 2);
  lcd.print("...");
  delay(2000);
      lcd.clear();
    lcd.print(" (*)  (*)Water");
  lcd.setCursor(2, 2);
  lcd.print("  []got in my eye");
  delay(2000);
      lcd.clear();
    lcd.print("To be ");
  lcd.setCursor(2, 2);
  lcd.print("continued.");
  delay(2000);
}
   buttonState = digitalRead(buttonPin3);
  if (buttonState == HIGH) {
    lcd.clear();
    lcd.print("You go to");
  lcd.setCursor(2, 2);
  lcd.print("your home...");
  delay(2000);
     lcd.clear();
    lcd.print(" (.)  (.) WOW!");
  lcd.setCursor(2, 2);
  lcd.print(" ___ Cool!");
  delay(2000);
       lcd.clear();
    lcd.print("You play for");
  lcd.setCursor(2, 2);
  lcd.print("the day...");
  delay(2000);
       lcd.clear();
    lcd.print("To be");
  lcd.setCursor(2, 2);
  lcd.print("continued.");
  delay(2000);
  lcd.clear();
}

}

Schematics

Build an AI LCD Companion: Your Interactive Buddy

Manufacturing process

  1. Build a Simple Obstacle Sensor with Arduino – Easy IR LED & Photodiode Tutorial
  2. DIY Arduino Nano Oscilloscope (10 Hz–50 kHz) with 128×64 LCD
  3. Digital Logic Board Kit: Components & Setup Guide
  4. Arduino MKR1000 WiFi Pick‑to‑Light System – Project 2
  5. Build a Reliable LCD Stopwatch with Arduino Nano – No Potentiometer Needed
  6. Build a Classic Arduino LCD Arcade Game with Buzzer and Joystick
  7. Build a Ninja Dollar LCD Game with Arduino UNO
  8. Hysteresis-Based Arduino Temperature Control System
  9. Ultrasonic Eyes: Interactive 8x8 LED Matrix Distance Sensor
  10. Build an Interactive LCD Game with Arduino UNO