0.91 "Oled Display for Arylic AMP Devices
Visualization Control with ESP32 and Display OLED 0.91 ”
This project uses an ESP32S in conjunction with a Display OLED 0.91 ” to display information about the status of an audio amplifier. The code allows you to receive commands through a UART communication ( Serial ) to switch between different display modes, such as signal source, volume, bass, the sharp and more. Additionally, a STANDBY mode function has been implemented that displays an on-screen “STANDBY” message and blinks every 2 seconds until a command is received to return to SOURCE mode.
- ESP32 ( A NodeMCU ESP32S has been used in this example )
- OLED display ( A 128x32 pixel I2C OLED display ) has been used
- Audio Amplifier with the ability to send UART commands through its serial port ( u2Stream PRO_V4 )
Connect the components following these connections:
- OLED display:
- Pin VCC at 5V
- Pin GND to GND
- Pin SDA to pin SDA of ESP32 ( for example, pin 21 )
- Pin SCL to SCL pin of ESP32 ( for example, pin 22 )
- ESP32 module:
- VCC at 5V
- GND to GND
- RX to the Amplifier TX ( for example, pin 16 )
- TX to Amplifier RX ( for example, pin 17 )
- Audio Amplifier:
- Connect the serial port of the amplifier to the UART of the ESP32 ( for example, GND, RX_PIN and TX_PIN )
The code uses the following libraries for the correct operation of the OLED display and UART communication:
- Wire.h: For I2C communication with the OLED display.
- Adafruit_GFX.h: For graphics and text handling on the OLED display.
- Adafruit_SSD1306.h: For the control of the OLED display.
- HardwareSerial.h: For UART communication ( Serial ) with the audio amplifier.
- The code allows you to receive commands through UART communication and switch between different display modes.
- Display modes include signal source, volume, bass, treble, and BLANK ( still not implemented ) mode to turn off the screen.
- A STANDBY mode has been implemented that displays an on-screen “STANDBY” message and blinks every 2 seconds until a command is received to return to SOURCE mode.
- The code is capable of processing specific commands ( SRC, VOL, BAS, TRE, CHN, LED, BTC, VBS, BEP ) and updating the information on the screen accordingly.
- Connect the components as indicated in the “Connections” section".
- Upload the code to ESP32 using Arduino’s IDE.
- Connect the audio amplifier and make sure it is sending UART commands through the serial port.
- Observe the information on the screen and control the different display modes by sending the corresponding commands through the UART communication.
- If you want to add more commands or functionalities, you can modify the function processUARTCommand to handle new commands and update information on screen as needed.
This project has been created by Richard Mequert [ Zerous ] and is inspired by the work of ResinChem Tech and the documentation of the libraries used.
The code is in this repository.