Skip to content

Combine a SAMD21 and a INA260 to create a USBTMC instrument

License

Notifications You must be signed in to change notification settings

charkster/samd21-usbtmc-ina260

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

samd21-usbtmc-ina260

Combine a SAMD21 and a INA260 to create a USBTMC instrument.

Adafruit SAMD21 QT PY Adafruit INA260 STEMMA QT / QWIIC

SDA, SCL, 3.3V and GND signals shared using the STEMMA QT cable (just add pins to INA260 board). Program the SAMD21 QT_PY board by double-clicking the push-button and drag-n-drop the provided UF2 file

Here are the supported SCPI commands:

*IDN? (query the instrument name, returns 'INA260\nINA260:VOLTAGE? INA260:CURRENT? INA260:POWER?')

*RST (Sends the Reset command to INA260 over I2C)

INA260:VOLTAGE? (query the Bus voltage on INA260)

INA260:CURRENT? (query the current flow on INA260, negative means reverse direction)

INA260:POWER? (query the power on INA260)

My C string parsing is very crude so the SCPI command must match what I have listed above (or be in lowercase). All the major credit goes to Nathan Conrad (TINYUSB's USBTMC author) and Alex Taradov's SAMD21 bare metal peripheral control.

About

Combine a SAMD21 and a INA260 to create a USBTMC instrument

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published