GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - zebreus/rudelblinken-legacy: Syncing and blinking cat ears

BranchesTags
Open more actions menu

Latest commit

 

History

45 Commits
45 Commits

Folders and files

NameName
Last commit message
Last commit date
.packages
.packages
 
 
experiments
experiments
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
ambient-light.toit
ambient-light.toit
 
 
basic-firefly.toit
basic-firefly.toit
 
 
communication.toit
communication.toit
 
 
esp32c3-firmware.envelope
esp32c3-firmware.envelope
 
 
firefly.toit
firefly.toit
 
 
flake.lock
flake.lock
 
 
flake.nix
flake.nix
 
 
flash-all.sh
flash-all.sh
 
 
led.toit
led.toit
 
 
main.toit
main.toit
 
 
package.lock
package.lock
 
 
package.yaml
package.yaml
 
 
parts
parts
 
 
schematic.pdf
schematic.pdf
 
 
sync.toit
sync.toit
 
 
upgrade.toit
upgrade.toit
 
 
ws2812.toit
ws2812.toit
 
 

Repository files navigation

rudelblinken

Synced blinking catears

You probably want to use the rust rewrite at github.com/zebreus/rudelblinken-rs

Notes

Less of a Readme, more a unstructured braindump

Hardware

There is a custom catears 3d model that is designed to make it easy to attach LED strips. There are also rudelblinken PCBs that contain everything you need and fit perfectly on the catears. You can find the schematics at oshwlab.com/zebreus/rudelblinken . Be aware that the current revision still has some design flaws.

Updating all cat ears nearby

If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization. - Gerald Weinberg

Sometimes you may want to update all cat ears. This is the (for now untested) protocol I would use:

  1. Make sure you have jaguar version v1.41.0 installed. Running nix develop in this repo will install it for you.

  2. Setup an WiFi AP on channel 6 with the SSID: rudelctrl and the password 22po7gl334ai. On linux you can use the following command:

sudo create_ap --freq-band 2.4 -c 6 YOUR_WIFI_DEVICE YOUR_WIFI_DEVICE 'rudelctrl' '22po7gl334ai'

I usually use a second laptop for that.

  1. Connect your machine to the AP

  2. Make sure UDP port 1990 is open on your machine

  3. Turn on your own cat ears and run jag scan to verify you can find them and figure out their name. Then try jag container install rudelblinken main.toit -d NAME_OF_YOUR_CATEARS to verify that everything works on your device.

  4. Run around with your devices like a mad cat and run make install-all repeatedly to update all cat ears in range

Hardware

rudelblinken is based on ESP32-C3 supermicro boards. Each device controls a single color LED strip. This should keep the hardware setup quite, simple requiring only a esp board, a mosfet, an LED strip and some wires for each node.

For now I just blink the builtin LEDs of the boards, more detail will follow once I built the actual hardware.

Software stack

The software for rudelblinken is written in toit, a high-level language designed for ESP32 programming. The devices are flashed with the jaguar firmware, which makes it possible to deploy toit programs over WiFi. Each device tries to connect to a hotspot named rudelctrl with the password 22po7gl334ai. It is important that you use channel 6. You can start an AP with that configuration using make start-ap. You can also set your own WiFi and password when flashing the devices.

The devices communicate using the ESP-NOW protocol. ESP-NOW was choosen over WiFi, because WiFi is not connectionless. ESP-NOW was choosen over BLE, because it seems like the only way for connectionless communication. There are BLE advertisments but the ESP does not have an API to send a single advertisment, only to start sending in a given interval. ESP-NOW uses WiFi vendor-specific action frames. As it is using the WiFi hardware, it is limited to operating on the same channel as our WiFi connection. To receive messages from other devices they need to use the same channel. For rudelblinken this is channel 6. There are some limitations, when using ESP-NOW and WiFi at the same time.

For this reason toit does not allow ESP-NOW and WiFi to coexist. To fix this issue we use a custom envelope with a patched version of toit, that has removed the checks for coexistance and is patched so the ESP-NOW channel follows the WiFi channel and defaults to 6. So when you are flashing your esps with jaguar you need to use the custom envelope. The custom envelope also has a patch that lets any program access the name of the device. To built the patched firmware and flash a device with it run make flash-DEVICENAME.

Flashed devices will attempt to connect with the control AP and can be programmed via WiFi. Use make run-all to run the main program on all connected devices. Use make install-all to install the main program over multiple reboots on all devices. make uninstall-all to uninstall on all devices.

Build instructions

You can find some basic instructions on how to build your own rudelblinken cat ears based on a ESP32-C3 supermini board at https://md.darmstadt.ccc.de/rudelblinken-mrmcd

About

Syncing and blinking cat ears

rudelb.link

Resources

Readme
AGPL-3.0 license
Activity

Stars

21 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.