Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.88 KB

README.md

File metadata and controls

35 lines (25 loc) · 1.88 KB

Archived project - This functionality is now being continued in https://github.com/sjefferson99/pico-boat-assistant

Pico-Power

Introduction

Pico W based relay controller for web based control of DC and AC circuits onboard.

This code is built around the Pimoroni Pico W firmware v1.19.9: https://github.com/pimoroni/pimoroni-pico/releases/download/v1.19.9/pimoroni-picow-v1.19.9-micropython.uf2

Hardware

Usage

  • Populate wifi SSID and password in the config.py file
  • Set the startup relay states in the config.py file using the dictionary format example given.
  • Determine pico IP from DHCP server (hostname appears to be "PYBD")
  • Navigate to http://:80 for further instructions

LED behaviour

Board power

The board has a power LED to show that the Pico AND the relay board have power i.e. 5v on VBUS as opposed to just VSYS.

Relay state

The relays each have an LED to show relay state on/off.

Pico LED

The Pico LED is normally off in proper operation.

When connecting to the wifi the LED will flash once per second. Should the conection fail, the LED will flash 5 times per second for the retry backoff period then loop back to connecting.

Connectivity watchdog

Refer to the config file comments for options to enable polling a specified website at a given interval for a successful http response and take action to reset a specified relay and rerun the wifi connection on any failures.