Docsity

Button Base IoT Password, Cheat Sheet of Technology

Partial preview of the text

Download Button Base IoT Password and more Cheat Sheet Technology in PDF only on Docsity!

WORKSHOP 4: 26/7/

Continue from workshop 3

  • Add an LCD to display messages and notification
  • Redirect all messages that send to Serial Monitor by sending to LCD. circuit (schema): sketch (codes) with explain:

I will explain the new function and variables since some of the codes are reused from another workshop. New variable:

  • LiquidCrystal lcd(0, 1, 2, 3, 4, 5); this define the pin for the LCD which is an instance of the LiquidCrystal library is created, specifying the pins for RS, E, D4, D5, D6, and D7. Function:
  • Change include: LCD_display();this is for showing the message to the LCD.
  • Same goes for the other function we will change where we need to show the result message to print out on the serial monitor to the LCD using LCD display.
  • Change the pin of the servo to A0.
  • All other function works the same as they should in the workshop 3. RESULT: Entering passwords:

Correct passwords:

Correct old pass:

Enter new password:

Result: