Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
DIY Microcontroller Projects for Hobbyists

You're reading from  DIY Microcontroller Projects for Hobbyists

Product type Book
Published in Jul 2021
Publisher Packt
ISBN-13 9781800564138
Pages 320 pages
Edition 1st Edition
Languages
Authors (2):
Miguel Angel Garcia-Ruiz Miguel Angel Garcia-Ruiz
Profile icon Miguel Angel Garcia-Ruiz
Pedro Cesar Santana Mancilla Pedro Cesar Santana Mancilla
Profile icon Pedro Cesar Santana Mancilla
View More author details

Table of Contents (16) Chapters

Preface Chapter 1: Introduction to Microcontrollers and Microcontroller Boards Chapter 2: Software Setup and C Programming for Microcontroller Boards Chapter 3: Turning an LED On or Off Using a Push Button Chapter 4: Measuring the Amount of Light with a Photoresistor Chapter 5: Humidity and Temperature Measurement Chapter 6: Morse Code SOS Visual Alarm with a Bright LED Chapter 7: Creating a Clap Switch Chapter 8: Gas Sensor Chapter 9: IoT Temperature-Logging System Chapter 10: IoT Plant Pot Moisture Sensor Chapter 11: IoT Solar Energy (Voltage) Measurement Chapter 12: COVID-19 Digital Body Temperature Measurement (Thermometer) Chapter 13: COVID-19 Social-Distancing Alert Chapter 14: COVID-19 20-Second Hand Washing Timer Other Books You May Enjoy

Showing the timer on an LCD

In this section, we explain how to connect and use the 1602 LCD to show the timer on it. Figure 14.1 shows the Fritzing diagram similar to the one explained in Chapter 5, Humidity and Temperature Measurement:

Figure 14.1 – The LCD connected to the Blue Pill microcontroller board

Figure 14.1 – The LCD connected to the Blue Pill microcontroller board

The following are the steps for connecting the LCD to the Blue Pill, following the diagram from Figure 14.1:

  1. Connect the Blue Pill's GND (also labeled as G) pins to the solderless breadboard rails.
  2. Connect the Blue Pill's 5V pin (providing 5 volts) to the breadboard rails.
  3. Connect the USB cable to the Blue Pill and then to your computer or a USB power bank.
  4. Insert the LCD's 16 pins into the solderless breadboard.
  5. Connect the LCD's VSS pin to ground (the lower breadboard rail).
  6. Connect the LCD's VDD pin to 5 volts (the lower breadboard rail).
  7. Connect the 2.2k ohm resistor to the LCD&apos...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}