This repository contains the source code and GUI application for interfacing with the AS1170 Evaluation Kit using an ESP32 microcontroller and a Python-based GUI. The project demonstrates I2C communication, PWM control, and register manipulation for the AS1170 device.
ESP32/: Arduino source code for the ESP32-S2 DevKit M1.AS1170_GUI.exe: Executable GUI application for Windows.docs/: User guides and documentation.
- ESP32-S2 DevKit M1
- Arduino IDE (v2.0.17 or compatible)
- USB to UART driver (CP210x from Silicon Labs)
- Required libraries:
Wire.hSD.hHardwareSerial.hArduino.hdriver/ledc.h
- Install USB Driver: CP210x VCP Drivers – Silicon Labs
- Configure Arduino IDE:
- Add ESP32 board URL:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json - Install ESP32 by Espressif Systems (version 2.0.17)
- Select board:
ESP32S2 Dev Module
- Add ESP32 board URL:
- Connect Hardware:
- SDA (GPIO 14), SCL (GPIO 15), PWM (GPIO 5)
- Connect AS1170 EVK and required pull-up/down resistors
- Upload Code and open Serial Monitor (baud rate: 115200)
- Windows OS
- AS1170 hardware connected via USB
AS1170_GUI.exeexecutable
- Connect the AS1170 hardware to your PC.
- Ensure the USB to UART driver is installed.
- Run
AS1170_GUI.exe.
- Real-time register monitoring and control
- PWM and current configuration
- Fault and status indicators
- Serial communication with ESP32
- Interactive GUI with toolbars, status bar, and configuration panels
- I2C communication with AS1170
- PWM signal generation
- Serial command interface
- Register read/write logic
- Built with PyQt
- Serial communication via Silicon Labs port
- Modular design:
Controller: Manages app lifecycleClientView: Main interactive windowcommands.py: Serial command interface
The GUI communicates with the ESP32 using serial commands:
read: Read register valueswrite: Write to a registerreset: Reset all registersstrobePWM: Trigger PWM output
© ams-OSRAM AG. All rights reserved.
This project is provided for evaluation purposes only. See documentation for legal disclaimers.