Welcome to PDX Badgers Pages.
BADGER BADGER BADGER
The Idea
The 2015 badge is a wifi base IoT node. It runs on an esp8266 micro controller, which has an integrated wifi radio, is very inexpensive, and has a good development community. Our code is in github. Some helpful material:
Getting Started
Some of use have node mcu boards as our esp8266 develoment platform for the software. To get it up and running with Arduino, follow the directions at the esp arduino project. With that, you should be able to flash the nodemcu and go through some of the example projects in the esp folder under examples in the arduino IDE.
Sample Commands
There are a few commands that you can give your badger with a sorta RESTy interface at http://your.badgers.ip/command?params.
Command | Action |
---|---|
/flag | the current CTF flag |
/flag?newflag=myflag | set the CTF flag to myflag | /leds | how many LEDs and how are they flashing |
/leds/ | status of all the LEDs |
/leds?m=none | all LEDs off |
/leds?m=all | all LEDs on |
/leds?m=blink | all LEDs blink |
/leds?m=chase | two LEDs chasing along the badge |
/leds?m=twinkle | random LED flashing |
/leds?d=n | status of LED n |
/leds?d=n&s=1 | set LED on (1) or off (2) |
/leds?d=n&r=R&g=G&b=B | set an RGB LED to color #RRGGBB. It has to be turned on/off separately. |