Skip to content

penguintutor/badger-pixel-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

98d9444 · Feb 26, 2023

History

10 Commits
Feb 15, 2023
Feb 16, 2023
Feb 21, 2023
Feb 26, 2023
Feb 26, 2023
Feb 15, 2023

Repository files navigation

Badger Pixel Client

Badger 2040W client for the Raspberry Pi Pixel Server.

Badger 2040W with client for Pixel Server

This allows for the control of addressable RGB LED pixels (NeoPixels) using the Badger 2040W hackable ID badge with WiFi. This needs the Raspberry Pi Pixel Server to be installed on a suitable Raspberry Pi and configured.

Install

  • Install the Badger OS image from Pimoroni

  • Update the WiFi login information on the Badger 2040W through the WIFI_CONFIG.py file

  • Copy all the .py files from this repository to the Badger 2040W. This can be done through the Thonny Editor. Turn on the files view to allow you to upload directly, or open the files and use "Save As" selecting to the Raspberry Pi Pico as the destination.

Note: The main.py file will override the Badger OS launcher. This file needs to be called main.py to be called automatically. You could rename the Badger OS main.py which will allow you to restore it in future, or you could save the main.py file under a different name, but it will then need to be launched manually attached to a computer.

  • Update the main.py file with the Pixel Server address in the SERVER_ADDR variable.

Pixel Server configuration

The needs the Raspberry Pi Pixel Server to be installed and configured.

To use the Badger Pixel Client then the server needs to be configured to allow non-authenticated traffic. For security reasons you should only do this for networks or IP addresses that you trust. For example if you would like to do this for your local network then update auth.cfg with the following entry (update IP address range as necessary):

# Authentication rules for Pixel Server
# Following addresses can access without authentication
network_allow_always = 192.168.0.0/24
# Following allowed, but need to authenticate
# 0.0.0.0 = all addresses
network_allow_auth = 0.0.0.0

More Information

For more details see: Penguin Tutor Badger 2040W projects

Bugs / Features

The current setup is designed to replace the Badger OS which runs on the Badger 2040W. This is so that it can be used as a dedicaed home automation lighting system. It may be possible to add this to the Badger

About

Badger 2040W client for the Raspberry Pi Pixel Server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages