Initial commit: Minecraft Orb project
ESP32-C3 firmware for interactive treasure hunt device with RFID, OLED display, LED effects, buzzer, and touch input. Includes 3D printable STL files for the enclosure. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
commit
28c36c51f6
36 changed files with 2733 additions and 0 deletions
48
firmware/include/pins.h
Normal file
48
firmware/include/pins.h
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
/**
|
||||
* @file pins.h
|
||||
* @brief Pin definitions for Minecraft Orb - ESP32-C3 SuperMini
|
||||
*
|
||||
* Hardware Configuration:
|
||||
* - SSD1306 OLED Display (128x64) via I2C
|
||||
* - RC522 RFID Reader via SPI
|
||||
* - White LED indicator
|
||||
* - Piezo buzzer for audio feedback
|
||||
* - TTP223 capacitive touch sensor
|
||||
*/
|
||||
|
||||
#ifndef PINS_H
|
||||
#define PINS_H
|
||||
|
||||
// =============================================================================
|
||||
// I2C - SSD1306 OLED Display (Right side of board)
|
||||
// =============================================================================
|
||||
#define I2C_SDA 2 // I2C Data
|
||||
#define I2C_SCL 3 // I2C Clock
|
||||
#define OLED_ADDRESS 0x3C // Default I2C address for SSD1306
|
||||
|
||||
// =============================================================================
|
||||
// SPI - RC522 RFID Reader (Left side of board)
|
||||
// Pin order matches RC522 board: SDA, SCK, MOSI, MISO, RST
|
||||
// =============================================================================
|
||||
#define RC522_CS 6 // SDA - Chip Select for Reader
|
||||
#define SPI_SCK 7 // SCK - SPI Clock
|
||||
#define SPI_MOSI 8 // MOSI - SPI Data Out
|
||||
#define SPI_MISO 9 // MISO - SPI Data In
|
||||
#define RC522_RST 10 // RST - Reset for Reader
|
||||
|
||||
// =============================================================================
|
||||
// LED (Right side of board)
|
||||
// =============================================================================
|
||||
#define LED_WHITE 4 // White LED (via 100 ohm resistor)
|
||||
|
||||
// =============================================================================
|
||||
// Buzzer (Right side of board)
|
||||
// =============================================================================
|
||||
#define BUZZER_PIN 0 // Piezo buzzer (passive)
|
||||
|
||||
// =============================================================================
|
||||
// Touch Sensor (Left side of board)
|
||||
// =============================================================================
|
||||
#define TOUCH_PIN 5 // TTP223 capacitive touch sensor (GPIO0-5 for deep sleep wake)
|
||||
|
||||
#endif // PINS_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue