area3001 / IRA2020Arduino

Arduino code for the IRA 2020 PCB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IRA2020Arduino

Arduino code for the IRA 2020 PCB

Install

Configure

  • Change WIFI & PSK to your local Wifi settings
  • in Platformio.ini change upload_port to your local COM port

NATS Clients in WSL

  • first install GO: sudo apt install golang-go
  • Install pub & sub: ** go get github.com/nats-io/go-nats-examples/tools/nats-pub ** go get github.com/nats-io/go-nats-examples/tools/nats-sub
  • Add ~/go/bin to PATH
  • nats-pub -s nats://demo.nats.io area3001.blink 10
  • ./nats-sub -s nats://demo.nats.io:4222 "area3001.*"

NATS Server from Source:

  • go get github.com/nats-io/nats-streaming-server

SOME RGB Strings

  • AAQD/wAAAP8AAAD///// = 4 pixel RGB = R, G, B, Wh

SOME FX Strings

  • AAAA/wAAAP8A = fast red/green loop
  • AAoA/wAAAP8A = slow red/green loop
  • AQoA////AAAA = random white pixels
  • AgoA////AAD/ = blue/white fgnd/bgnd loop
  • BHg3AKoAqgCq = Fire FX

ENCODING WEBSITE: https://base64.guru/converter/encode/hex

https://lastminuteengineers.com/esp32-ota-web-updater-arduino-ide/

TODO:

  • NAME NATS CB + EEPROM SPACE + FIXED length 32 bytes > done
  • use header config to determine to which server to connect
  • implement emergency light > done
  • make sure we send full error message back and not NOK > done
  • put name in announce message > done
  • send IR on a topic > done
  • make OTA server configurable

https://www.arduino.cc/reference/en/libraries/sunset/ also see platform.io libraries

About

Arduino code for the IRA 2020 PCB


Languages

Language:C++ 62.6%Language:C 36.2%Language:CMake 1.2%