This interactive command line program is accessed over a serial UART. It controls an ATmega328p Analog-to-Digital Converter on pins PC0 through PC7. The program reads the multidrop address from an RPUadpt shield by an I2C command and uses the address to select which UART commands to respond to. The RPUno has channel 2 connected to measure battery charging current, channel 3 measures battery discharging current, channel 6 measures photovoltaic voltage, and channel 7 the battery voltage. Pluggable connector is available for the user to connect to channel 0 and 1. Two 22mA current sources from the VIN node (which disconnects when the battery does) are also available for sensor loops.
The AVCC reference value now needs to be saved in EEPROM, and the command line interface will use it to report an accurate value over the UART.
An RPUpi shield with Pi Zero host can daisy chain to many RPUno's with RPUadpt shields to take calibrated analog readings over a wide area.
There are improvements that need to be done, but it feels usable to me.
ATmega328p Controller /w pluggable connectors for 6DIO, ICP, 2ADC
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest