pi-power-hub

Public

@vladbalmos

Download board files

Files for version 1. Pick what you came for.

Share pi-power-hub

Check access before sharing the link.

Who can open this board

Anyone can open this board. No sign-in is required.

This link opens the latest version. Copying it does not grant additional access.

Loading 3D model… large boards can take a moment.

README

System requirements

  • micropython
  • ampy
  • minicom (optional)

Development

Build micropython:

cd [mycropython-dir]
make -C mpy-cross

cd [mycropython-dir]/ports/rp2
make -j4 BOARD=PICO_W submodules
make -j4 BOARD=PICO_W clean
make -j4 BOARD=PICO_W

Set wifi SSID & password:

cp wifi_credentials.template src/wifi_credentials.py
# edit src/wifi_credentials.py and add SSID & SSID password

Init:

pip3 install -r requirements.txt
./setup.sh
make build

Run:

make run

Clean

make clean

Upload

make upload

Build

make build

Topics

  • vb/devices/power/pihub/request
    • device subscribes for state change requests
  • vb/devices/power/pihub/response
    • device publishes state changes
  • vb/devices/request
    • device subscribes for registration requests
  • vb/devices/response
    • device publishes device registration data

Status LED meanings:

  • red
    • board initializing
  • blue
    • connecting to mqtt server
  • green
    • connected to mqtt server
  • yellow
    • lost connection to mqtt
Comments

No comments yet. Be the first to ask about this board.

Ask about this board

Sign in to BoardRepo

New here? Signing in creates your account; there is no separate sign-up.