/Buddy

This is my personal project where I use a Raspberry Pi with an OLED to create a simple robot buddy that talks and conveys its emotions with its eyes. For this DialogFlow is used to talk to and send a message to control the OLED display.

Primary LanguagePython

This project is created to make a buddy for kids to talk to. This is done by using DialogFlow to talk to and an OLED to convey the emotions by displaying the eyes of the buddy.

The OLED is using SPI communication, for this the LUMA-OLED library must be installed. You can find the software in this link: https://luma-oled.readthedocs.io/en/latest/
The pinout of the OLED with the Raspberry Pi 4 is:

Ground - Ground
VCC - 3.3V
SCL - GPOI 11 (SCLK)
SDA - GPIO 10 (MOSI)
RES - GPIO 25
DC - GPIO 24
CS - GPIO 8 (CEO)

To test the connection you can run the random_eyes_generator.py code. For this you also need to download the images file.
You need to download and import the DialogFlow zip file named Friend-Therapy_robot.zip. After that an NGROK webhook must be created in Python to make the connection between the OLED display and DialogFlow. This is explained in this YouTube video: https://www.youtube.com/watch?v=lKNaklJwNzk&t=1103s
After this the Final_Buddy.py file in the Code folder can be used to communicate with your buddy.