Skip to content

Analog Shield Library v0.1.1

Choose a tag to compare

@perc-sw perc-sw released this 09 Nov 21:21
· 2 commits to main since this release

Analog Shield Library v0.1.1

Fixes temperature and voltage readings on the Phyduino Pico, and adds a plotter example.

Install: download AnalogShield-0.1.1.zip from this release, then in the Arduino IDE use
Sketch → Include Library → Add .ZIP Library…

Documentation: https://perc-sw.github.io/analog_shield_lib/

Upgrading

Phyduino Pico builds now need the board package phyduino_bsp v0.1.0-rc.2 or later, which
provides analogFullScaleMillivolts(). With v0.1.0-alpha.1 every sketch fails to compile.

Fixed

  • EXT temperatures: TempCelsius(), TempFahrenheit() and TempKelvin() on
    TempSource::EXT left out the R15 / 10K divider, so readings came out far too hot. EXT now
    undoes the same signal path as MCU and reads the sensor's full -50 to 150 °C range.
  • Full scale on the Phyduino Pico: millivolt and temperature readings now use each pin's own
    full scale: 3.3 V on A0-A2 (RP2040 ADC) and 2.048 V on A3-A5 (MAX11635).
    TempMillivolts(TempSource::EXT) and PotMillivolts() were 1.61 times too high. Other boards
    still assume 3.3 V.
  • SerialPlotter documentation: the last value is Channel (0 for A0, 3 for A3), not Switch.

Added

Example Shows
plotter Port of the MicroPython plotter example: raw and conditioned temperatures, encoder clicks, selected channel, potentiometer and VBUS in the Serial Plotter. The switch selects A0 or A3, shown on D1/D2, and both LEDs light if the MAX11635 stops responding. Phyduino Pico only.

Full list of changes: CHANGELOG.md