Mycodo
Mycodo copied to clipboard
Create Mycodo Output for HiveBoard
Currently to use the HiveBoard with Mycodo, you use quite a few different outputs and a function. i propose a single Output that contains all the different outputs, or all the outputs and the function if possible. i am terrible at programming so figured i would put this here.
Outputs:
mcp23017 the main function of the board uses the same output as mcp23017 with the same i2c address capabilities, default is 0x20
following same addressing as mcp23017: DroneBoard 1 Outputs: CH0-CH3 DroneBoard 2 Outputs: CH4-CH7 DroneBoard 3 Outputs: CH8-CH11
CH12-CH16 are the unique ones, they either activate the led's on the HiveBoard (CH12-CH15) or they are used to control the analog outputs - this currently does not work by default on Mycodo, currently CH12-CH15 are only usable for the LED's
**i might remove this CH12-CH16 led function, it does not seem to have much use, just need to figure out that to use the remaining GPIO pins for if not needed for the analog control
PWM to analog
Follows same output as Raspberry Pi PWM GPIO output
4 channel, so need to select GPIO for each channel or select if being controlled by the mcp23017 chip (CH12-CH15)
the screen
4 line SSD1306 screen same as function.
**the board you have has slightly different addressing for the mcp23017 chip
to simplify the board, i am removing the ability to control the analog circuit from an external source, they will now only be able to be controlled by the mcp23017 chip in future releases so no toggle is needed there, just the DroneBoard control and the single PWM control for CH12-CH15