10-05-2020, 02:51 PM
The code is already on gitlab, in a public repo,
I wanted to resolve the interface handling before sharing the link.
First part in that process is to bring up a test node to verify everything on real hardware.
I am currently working on that.
Here is the repo: (remember, the code is a horrible mess, and some core stuff will probably change soon-ish)
https://gitlab.com/maidenOne/trixtestframework/
the wiring for the relay is:
RPI 5V -> Relay 5v
RPI GND -> Relay gnd
RPI GPIO pin -> Relay pin (even if the relay runs on 5v logic, a 3.3V high should trigger)
USB / 5V source -> Relay in, Relay out -> Pinetime 5v pad
USB / GND -> Pinetime GND pad
The wiring for the INA219 and battery is:
RPI I2c -> INA I2C
RPI 3.3V -> INA VCC
RPI GND -> INA GND
PINETIME BATTERY VCC WIRE (RED) -> INA V+
INA V- -> PINETIME PCB Battery pad
BATTERY GND WIRE (BLACK) -> PINETIME PCB Battery pad
I wanted to resolve the interface handling before sharing the link.
First part in that process is to bring up a test node to verify everything on real hardware.
I am currently working on that.
Here is the repo: (remember, the code is a horrible mess, and some core stuff will probably change soon-ish)
https://gitlab.com/maidenOne/trixtestframework/
the wiring for the relay is:
RPI 5V -> Relay 5v
RPI GND -> Relay gnd
RPI GPIO pin -> Relay pin (even if the relay runs on 5v logic, a 3.3V high should trigger)
USB / 5V source -> Relay in, Relay out -> Pinetime 5v pad
USB / GND -> Pinetime GND pad
The wiring for the INA219 and battery is:
RPI I2c -> INA I2C
RPI 3.3V -> INA VCC
RPI GND -> INA GND
PINETIME BATTERY VCC WIRE (RED) -> INA V+
INA V- -> PINETIME PCB Battery pad
BATTERY GND WIRE (BLACK) -> PINETIME PCB Battery pad