https://github.com/charkster/arduino_dac
Arduino library DAC control using a serial (USB) terminal
https://github.com/charkster/arduino_dac
arduino dac qt-py samd21 seeeduino-xiao
Last synced: over 1 year ago
JSON representation
Arduino library DAC control using a serial (USB) terminal
- Host: GitHub
- URL: https://github.com/charkster/arduino_dac
- Owner: charkster
- License: mit
- Created: 2021-07-06T01:48:44.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-10-22T23:33:53.000Z (over 3 years ago)
- Last Synced: 2025-01-13T19:27:27.895Z (over 1 year ago)
- Topics: arduino, dac, qt-py, samd21, seeeduino-xiao
- Language: C++
- Homepage:
- Size: 65.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# arduino_dac
DAC control using a serial (USB) terminal. inplemented using Arduino libraries. Tried this on Adafruit SAMD21 QT PY and Seeeduino Xiao.
Additional offset correction is implemented to allow for very accurate DAC output.
Three ranges are defined by REGION1_LIMIT and REGION2_LIMIT.
OFFSET1_ADJUST is for voltages from 0.0V to REGION1_LIMIT, OFFSET2_ADJUST is for voltages greater than REGION1_LIMIT and less than REGION2_LIMIT. OFFSET3_ADJUST is for voltages above REGION2_LIMIT. The offset adjustments are numbers of LSB to add (or subtract if specified negative).
The "samd21_unique_id" function is used to get a SAMD21's unique ID so that different offsets can be used.
arduino_dac.uf2 works on the SAMD21 QT PY and Seeeduino Xiao boards. It will use zero offsets as your unique_id will not match the two that are hard-coded (they are my parts).