How to voice type and print the text on LCD using Raspberry Pi
Posted: December 11, 2017
Voice typing feature is quite common to mobile phones; it is considered faster and user-friendly to those who find it difficult to type to input the question about which they need information. If typing fast is required or your handicap, this feature works the best for you. In this article, we will input voice via an Android App and the output will be displayed on LCD using Raspberry Pi. This requires a 16x 2 LCD with Raspberry Pi which is equipped with Bluetooth to receive inputs from the mobile phone. Start with Connecting 16x2 LCD with Raspberry Pi: Setting Bluetooth is preceded by interfacing 16x 2 LCD with Raspberry Pi. Bluetooth setup, first we will interface 16x2 LCD as Raspberry Pi accessory. External Adafruit Library is used for making this interface happen. Adafruit Library can be installed using this command: git clone https://github.com/adafruit/Adafruit_Python_CharLCD.git cd ./Adafruit_Python_CharLCD sudo python setup.py install This is followed by importing the library in the python program using the command: import Adafruit_CharLCD as LCD Now, LCD pins are connected with Raspberry Pi with the help of circuit diagram like this: Here is the list of functions provided in Adafruit Library for controlling the LCD.
- lcd.set_cursor(col, row) = Move the cursor to any position at column and row.
- lcd.clear() = To clear the LCD.
- lcd.blink(True) = To blink the cursor (True or False)
- lcd.move_right() = To move the cursor to Right by one position.
- lcd.move_left() = To move the cursor to Left by one position.
- lcd.message(message) = To print the text on LCD.