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:
- Added an additional analog signal to the main chart,
- Used a Switch component to control the output IO
- Added a PolledCSVLogger component for a quick logging demo.
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
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
.
- The interface in this reposiory assumes you have
arc
installed first. - Navigate to the
/interface
folder with the command-line and runarc install
to ensure your system has the necessary dependencies ready, - Run the development sandbox with
arc start
. - 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