Badge

 

Introduction

You received a personalized Security Samurai badge! This is a PCB (Printed Circuit Board) that contains a programmable microcontroller. The microcontroller is an ESP32-C3 and comes preflashed with MicroPython, a programming language targeted toward students and beginners that runs on top of embedded systems.

The three buttons on the side are:

  • Enter/Go back (long press)
  • Up
  • Down
The badge comes preloaded with a game "Cho-Han", a favorite guessing game among our Japanese friends.

Howto

If this is your first time tinkering with hardware, you might want to read this article about the MicroPython REPL.

Connect your badge via USB and connect using a terminal program like terminal-s, picocom, or any others.

Note that your badge comes preflashed with custom firmware already. If you accidentally overwrite it, you can ask us to reflash your badge.

Hardware

The badge features an ESP32-C3, which comes with a 32-bit RISC-V single-core processor and integrated Wi-Fi and Bluetooth capabilities. The ESP32-C3 is known for its low power consumption, robust connectivity, and the ability to run complex IoT applications efficiently.

One of the most exciting features of the ESP32-C3 is ESPNow, a protocol that enables low-power, connectionless, peer-to-peer communication between devices. This makes it perfect for building low-latency and low-power wireless networks. You can learn more about using ESPNow with MicroPython by visiting the official MicroPython ESPNow documentation. Hint: you'll need it!

Challenges

Check the Challenges page for the "Hardware Badge" challenge. This is where you'll find the associated tasks!