Skip to content

Simple arduino-esp32 example to display realtime ADC and GPIO state

License

Notifications You must be signed in to change notification settings

electricui/eui-esp32-adc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eui-esp32-adc

Simple demonstration of sampling ADC channels and GPIO state. There are only minor changes to the Arduino hardware quickstart guide and user-interface quickstart guide:

ui_screenshot

The log format's it generates are CSV formatted with headers like so:

timestamp,analogA,analogB,digitalA,digitalB,output
01:32:26.299,101,319,0,1,1
01:32:26.320,119,311,0,1,1
01:32:26.339,120,309,0,1,0
01:32:26.359,121,305,1,1,0

Hardware Setup

This assumes an ESP32 board being used with the Arduino framework. For ESP-IDF setup notes, follow the IDF quickstart guide.

I used an Adafruit ESP32 Feather board for this example, flashed with the sketch arduino-adc-example.

Interface

  1. The interface in this reposiory assumes you have arc installed first.
  2. Navigate to the /interface folder with the command-line and run arc install to ensure your system has the necessary dependencies ready,
  3. Run the development sandbox with arc start.
  4. Edit the template with your IDE (we recommend VSCode) and changes will update the sandbox immediately.
    • /interface/src/application/pages/DevicePages/OverviewPage.tsx is responsible for the default UI layout

About

Simple arduino-esp32 example to display realtime ADC and GPIO state

Resources

License

Stars

Watchers

Forks