LCD Name Display

by Srishti Dhoundial in Circuits > Microcontrollers

70 Views, 0 Favorites, 0 Comments

LCD Name Display

Screenshot 2024-05-07 052017.png

In This task we will display “YOUR NAME” on 16x2 LCD without I2C module using HAL programming.

Supplies

Screenshot 2024-05-07 052345.png
Screenshot 2024-05-07 052408.png
Screenshot 2024-05-07 052507.png
Screenshot 2024-05-07 052017.png

Supplies Required-:

  1. STM32 Black Pill board (STM32F401C)
  2. 16x2 LCD display
  3. Jumper wires
  4. Breadboard

Step Up STM32 IDE

Install STM32CubeIDE on PC and create a new project for your STM32 Black Pill board.


LCD and STM32 Connections

Screenshot 2024-05-07 052923.png
Screenshot 2024-05-07 053019.png

Pin Configuration

Screenshot 2024-05-07 053141.png

Assign GPIO pins for the LCD and set them as outputs.


Write HAL Code

In an STM32CubeIDE project, create code to set up GPIO pins and an LCD display. Implement functions for transmitting commands and data to the LCD. Additionally, craft a function to showcase "YOUR NAME" on the LCD screen.

Conclusion

Screenshot 2024-05-07 053602.png

Name will be displayed on the LCD screen; therefore We've gained proficiency in connecting a 16x2 LCD to an STM32 microcontroller, particularly the STM32 Black Pill board, without relying on an I2C module. Leveraging STM32CubeIDE and STM32CubeMX, we generated essential initialization code, followed by authoring HAL code for LCD control and text display. This fundamental expertise paves the way for diverse embedded projects utilizing STM32 microcontrollers alongside a range of peripherals.