
Pocketmuseum edu v0
radutolontan/BASM_Pocket_Museum
The Pocket Lab is the next-generation approach to science education. Designed by the Bucharest Applied STEAM Museum, it brings scientific exploration into anyone's hands.

The Pocket Lab is the next-generation approach to science education. Designed by the Bucharest Applied STEAM Museum, it brings scientific exploration into anyone's hands.
Kicad soundcard dev v0 is an open-source printed circuit board by radutolontan, from the radutolontan/BASM_Pocket_Museum repository on GitHub. It is a 4-layer board of 89 × 51 mm with 141 parts on 119 nets, routed with 796 tracks and 176 vias.
It is built around the ESP32-C6-MINI-1U-H4, ES8388 and DM3AT-SF-PEJM5, with the AMS1117-3.3, LSM6DSL and LESD5D5.0CT1G among its other parts. Its parts include 55 resistors, 48 capacitors, 14 diodes, 9 connectors and 6 ICs. It belongs with the ESP32 and RISC-V boards of this library.
The Pocket Lab is the next-generation approach to science education. Designed by the Bucharest Applied STEAM Museum, it brings scientific exploration into anyone's hands. From citizen science projects to fearless exploration (guided or individual), the Pocket Lab illuminates the connections between Science, Technology, Engineering, Art, and Math in the world around us.

The system is built around an ESP32-C6 MINI microcontroller, which offers:
The microcontroller collects data from a suite of sensors (9-DOF IMU, light, pressure, audio) and uses a chain of WS2812B RGB LEDs to relay measurements to the user. An on-board microSD card enables data logging and automated grading of student work. Everything is powered by a 3.7V LiPo cell, which is charged using the USB-C connector.

The power stage is designed for a 500 mAh, 3.7V LiPo cell. Key specifications:
The display consists of a chain of NeoPixel RGB LEDs organized across three zones:
Mode Display (2 LEDs) - Color-coded indication of the actively displayed quantity:
Additional device information is also displayed (e.g., battery state: Blinking Orange = Battery Low; Blinking Green = Charging; Blinking Blue = Fully Charged)
Magnitude Display (3-4 LEDs) - Conveys scalar quantities and magnitudes of vector quantities
Direction Display (3 LEDs) - Conveys qualitative Cartesian components (X, Y, Z) for vector quantities
The Pocket Lab EDU V0 includes the following sensors:
| Sensor | Measurements |
|---|---|
| ICM-20948 | 9-DOF IMU: translational acceleration, rotational velocity, magnetic field strength |
| ICP-20100 | Ambient temperature and air pressure |
| BH1750FVI | Ambient light intensity |
| MMICT390200012 | Microphone: sound pressure level (dB) |
The MCU can be programmed through Joint Download Boot Mode:
The USB-serial connection appears as /dev/ttyACM* (Linux) and allows PlatformIO to flash code to the ESP32-C6.
The software architecture is built around a FreeRTOS task-based design with a central shared_data_buffer for inter-task communication. Tasks are organized into two tiers:
These tasks are always active and form the foundation of the Pocket Lab operation:
These tasks are conditionally enabled based on active applications, demos, or features:
graph TB
subgraph "First-Tier Tasks"
BMS[BMSTask<br/>Power Management]
SENSOR[SensorTask<br/>Data Acquisition]
AUDIO[AudioTask<br/>Audio I/O]
DISPLAY[DisplayTask<br/>Visual Feedback]
end
subgraph "Shared Memory"
BUFFER[(SharedBuffer<br/>Circular Buffer)]
end
subgraph "Application Tasks"
SD[SDManager]
EVAL[EvaluatorTask]
NET[NetworkTask]
end
BMS -->|Power Status| BUFFER
SENSOR -->|Sensor Data| BUFFER
AUDIO -->|Audio Data| BUFFER
BUFFER -->|Latest Data| DISPLAY
BUFFER -->|Historical Data| SDResponsible for initializing, managing, collecting, and processing sensor data. Pushes each new raw reading to the shared_data_buffer. Uses the SensorHAL virtual layer, as implemented in specific_sensor_HAL, to standardize high-level I/O across all sensors.
Furthermore, note that different sensors are sampled at different rates based on their response characteristics and application requirements. The task maintains individual timers for each sensor and only reads when that sensor's interval has elapsed, optimizing power consumption and computational load.
read_rate_Hz), captures a raw reading and commits it to the latest frame of shared_data_bufferResponsible for managing power delivery to the Pocket Lab. Monitors battery health, informs user about remaining run-time, and handles power-up and shut-down of the entire system.
The current BMSTask implementation has several critical issues that will be addressed in future revisions:
BATTERY_ONLY state, missing voltage drops during charging or when connected to USBManages audio input and output operations for the Pocket Lab. The AudioTask is responsible for interfacing with the microphone sensor (MMICT390200012) and any future audio peripherals through a Hardware Abstraction Layer (HAL).
This decouples high-level audio processing from hardware-specific implementations, allowing to scale audio I/O in the future.
Like the SensorTask, the AudioTask writes processed audio data (e.g., sound pressure level in dB, frequency analysis) to the shared_data_buffer.
shared_data_bufferManages the primary user feedback tool, the chain of NeoPixels. A push-button (SW 2 - display mode button) is debounced and used to cycle through DisplayStates. The current DisplayState is color-coded into the Mode Display.
shared_data_buffer. Updates the Magnitude Display and Mode Display to reflect the measurement.The DisplayTask supports two distinct visualization modes selected at boot time by holding (or not holding) the display mode button:
VU mode provides a classic "volume unit" meter visualization reminiscent of analog audio equipment. In this mode, scalar measurements are displayed as a horizontal bar graph using 6 magnitude LEDs. The display shows the normalized percentage of the measurement relative to predefined min/max thresholds for each sensor type.
The magnitude LEDs use a gradient color scheme that transitions smoothly from green (low values) through yellow (mid-range) to red (high values), providing an intuitive visual indication of intensity. The more LEDs that are lit, the closer the measurement is to its maximum threshold. Vector quantities in VU mode display only their magnitude - no directional information is shown.
Binary mode takes a fundamentally different approach by encoding the actual integer value of measurements rather than showing a percentage. This mode provides precise numerical information that can be decoded by reading the LED colors, making it particularly useful for debugging and data verification.
The system uses 4 magnitude LEDs to encode 12-bit values (0-4095) using a novel 3-bit-per-LED color encoding scheme:
How Binary Encoding Works:
Each RGB LED encodes 3 bits of information using its individual color channels:
The LEDs are arranged from left to right, with LED #1 (leftmost) showing bits 0-2, LED #2 showing bits 3-5, LED #3 showing bits 6-8, and LED #4 (rightmost) showing bits 9-11. This arrangement means that more LEDs being lit indicates a larger magnitude.
Color Combinations: The 3 bits per LED create 8 possible states (0-7), each displayed as a distinct color:
000 → OFF001 → BLUE (bit 0 only)010 → YELLOW (bit 1 only)011 → GREEN (bits 0+1: blue+yellow = green)100 → RED (bit 2 only)101 → PURPLE (bits 0+2: blue+red = purple)110 → ORANGE (bits 1+2: yellow+red = orange)111 → WHITE (all three bits active)Example: To encode the value 1059:
0100 0010 0011 = 2⁰ + 2¹ + 2⁵ + 2¹⁰011): Blue + Yellow = GREEN100): Red only = RED000): All off = OFF100): Red only = REDBefore encoding, sensor readings are multiplied by sensor-specific scaling factors (defined as BINARY_MAG_ORDER_* constants) to convert floating-point measurements into integer values. For example, temperature is multiplied by 10, so 25.3°C becomes 253, while pressure is multiplied by 10, converting 101.32 kPa to 1013 (then clamped to 4095). Note that acceleration and gyro measurements are very noisy and flicker significantly; the first two bits are masked, effectively rounding every measurement to a multiple of 4.
Direction Display:
Binary mode also displays vector components (X, Y, Z) using 3 dedicated direction LEDs. Each LED shows its component using a color gradient:
The intensity of the color fades proportionally with the component's magnitude, providing both sign and strength information.
Responsible for gauging user effort and measuring learning outcomes. The EvaluatorTask owns multiple instances of the abstract base class EvaluatorBase.
EvaluatorBase standardizes I/O across all evaluators, such as DisplaySessionEvaluator (which captures aggregate statistics on sensor data while a specific DisplayTask mode is active). This enables automated grading and feedback for educational activities.
Owns operation of the microSD card. It manages access to the storage resource using a separate state machine, handling concurrent read/write requests from multiple tasks.
Manages WiFi and Bluetooth connectivity features. This task is enabled when network-based applications are active (e.g., data streaming, remote monitoring, firmware updates).
Note: Full NetworkTask implementation details are under development.
In order to read and write to the SD card, it must be formatted to FAT32 with an MBR partition table.
lsblk/dev/sdX with your device):sudo umount /dev/sdX*
sudo wipefs --all /dev/sdX
sudo fdisk /dev/sdXWithin fdisk, configure the following:
o → Create a new DOS (MBR) partition tablen → Create a new primary partitiont, then type c → Change partition type to W95 FAT32 (LBA)w → Write changes and exitFormat the partition to FAT32:
sudo mkfs.vfat -F 32 -n SDCARD /dev/sdX1The SD card is now ready for use with the Pocket Lab.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 19 | 0u1 | Capacitor_SMD:C_0402_1005Metric | C202, C203, C204, C207, C307, C308, C309, C310, C402, C404, C406, C407, C409, C411, C415, C416 +3 |
| 15 | 0R | Resistor_SMD:R_0603_1608Metric | R103, R214, R215, R216, R217, R218, R219, R221, R301, R302, R303, R304, R418, R419, R420 |
| 13 | 10k | Resistor_SMD:R_0402_1005Metric | R204, R205, R206, R207, R208, R209, R210, R211, R212, R213, R220, R423, R424 |
| 12 | 1u | Capacitor_SMD:C_0402_1005Metric | C101, C102, C205, C301, C302, C303, C304, C305, C306, C418, C420, C422 |
| 9 | 10u | Capacitor_SMD:C_0603_1608Metric | C201, C206, C401, C403, C405, C408, C410, C412, C423 |
| 7 | LESD5D5.0CT1G | Diode_SMD:D_SOD-523 | D101, D102, D201, D202, D203, D204, D205 |
| 6 | SK6805-EC20 | SK_RGB:SK68xx-EC20 | D301, D302, D303, D304, D305, D306 |
| 5 | 33R | Resistor_SMD:R_0402_1005Metric | R404, R405, R406, R407, R408 |
| 4 | 1k | Resistor_SMD:R_0402_1005Metric | R413, R414, R421, R422 |
| 4 | 2k | Resistor_SMD:R_0402_1005Metric | R104, R402, R411, R415 |
| 4 | 5k1 | Resistor_SMD:R_0402_1005Metric | R101, R102, R201, R202 |
| 3 | 100R | Resistor_SMD:R_0402_1005Metric | R401, R409, R410 |
| 3 | 10R | Resistor_SMD:R_0603_1608Metric | R105, R416, R417 |
| 3 | 22u | Capacitor_SMD:C_0603_1608Metric | C103, C104, C106 |
| 3 | 47u | Capacitor_SMD:C_0603_1608Metric | C105, C424, C425 |
| 3 | BM04B-SRSS-TB | Connector_JST:JST_SH_BM04B-SRSS-TB_1x04-1MP_P1.00mm_Vertical | J204, J205, J206 |
| 2 | 1x6P 2.54mm SMD | Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical_SMD_Pin1Right | J202, J203 |
| 2 | 20p | Capacitor_SMD:C_0402_1005Metric | C413, C414 |
| 2 | AMS1117-3.3 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U101, U102 |
| 2 | BSS138LT3G | Package_TO_SOT_SMD:SOT-23 | Q401, Q402 |
| 2 | L8050QLT1G | Package_TO_SOT_SMD:SOT-23 | Q201, Q202 |
| 2 | PJ31060-I | Connector_Audio:Jack_3.5mm_PJ31060-I_Horizontal | J401, J402 |
| 2 | PTS636 | Button_Switch_SMD:SW_Tactile_SPST_NO_Straight_CK_PTS636Sx25SMTRLFS | SW201, SW202 |
| 1 | 100k | Resistor_SMD:R_0402_1005Metric | R412 |
| 1 | 10n | Inductor_SMD:L_0402_1005Metric | L101 |
| 1 | 2R2 | Resistor_SMD:R_1206_3216Metric | R106 |
| 1 | 470R | Resistor_SMD:R_0402_1005Metric | R203 |
| 1 | 4R7 | Resistor_SMD:R_0402_1005Metric | R403 |
| 1 | DM3AT-SF-PEJM5 | Connector_Card:microSD_HC_Hirose_DM3AT-SF-PEJM5 | J201 |
| 1 | ES8388 | Package_DFN_QFN:QFN-28-1EP_4x4mm_P0.45mm_EP2.6x2.6mm | U401 |
| 1 | ESP32-C6-MINI-1/U | PCM_Espressif:ESP32-C6-MINI-1 | U201 |
| 1 | ICP20100 | Package_LGA:ST_HLGA-10_2x2mm_P0.5mm_LayoutBorder3x2y | U302 |
| 1 | LED | LED_SMD:LED_0402_1005Metric | D103 |
| 1 | LOGO | LOGO | G*** |
| 1 | LSM6DSL | Package_LGA:LGA-14_3x2.5mm_P0.5mm_LayoutBorder3x4y | U301 |
| 1 | MountingHole | MountingHole:MountingHole_3.5mm | H1 |
| 1 | USB_C_Receptacle_USB2.0_16P | Connector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12 | J101 |

radutolontan/BASM_Pocket_Museum
The Pocket Lab is the next-generation approach to science education. Designed by the Bucharest Applied STEAM Museum, it brings scientific exploration into anyone's hands.


FrWA14/KiCad8_ESP32S3_DevModule_wroom-1_DevelopementBoard
Contient tout les fichier KiCad nécessaire pour faire une carte ESP32S3 avec un module Wroom-1.

schmidtmt/openmotorbridge
The comprehensive technical specification is split into 18 logically organized chapters:



stephaneamans/app-home_automation
The general principle is based on a centralised ECU (Raspbery Pi) with an optional coprpocessor (STM32) used to manage low speed IO.

uw-roamr/roamr
turn your phone into a robot running SLAM with two motors, two control boards, and a bluetooth chip

It measures 89 × 51 mm and has 4 copper layers, 1.61 mm thick.
141 parts, built around the ESP32-C6-MINI-1U-H4, ES8388, DM3AT-SF-PEJM5 and AMS1117-3.3. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the radutolontan/BASM_Pocket_Museum repository on GitHub, at the commit this page was made from: the board is HW_design/DEV_V0/kicad_soundcard_dev_v0/kicad_soundcard_dev_v0/kicad_soundcard_dev_v0.kicad_pcb and its schematic HW_design/DEV_V0/kicad_soundcard_dev_v0/kicad_soundcard_dev_v0/MCU.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask radutolontan before reusing the design.