⚡ Educational Hardware Sponsor COPPA / Learner Safe
Entering Lab in 5s...
RP2040 Suite Logo

⚙️ RP2040 MicroPython Laboratory Suite

Interactive Mechatronics Visualizers, Motor Dynamics, and Embedded Physics Curriculum

Author & Creator: Dr. Jorge Victor M. Sales (swordeye / thearbiter) | License: CC BY-NC-SA 4.0
🤖 Foundations, Pedagogy & Assessment

🤖 4 Pillars of Mechatronics Explorer

Interactive 3D-feel camera zoom system isolating the 4 core pillars (Mechanical, Electronics, Software, Control) with interactive playgrounds and diagnostic inquiry checks.

3D SVG Zoom Inquiry Lab 4 Pillars
Launch 4 Pillars Hub →

📝 40-Minute Timed Exam Review

Randomized 20-question review exam sampled from a 100-question master bank. Features student registration, countdown HUD, topic filtering at splash setup, and cloud logging to Google Sheets.

40 Min Timer 20 Questions Google Sheets Log CSV Export
Launch Exam Review →
⚡ Actuators & Motor Dynamics

⚙️ Stepper Phase Excitation & Matrix

Explore 4-phase stator sequences, Full-Step vs Wave Drive, MicroPython step index logic, and 1.8° angle stepping calculations.

Wave Drive Full-Step while True step_index % len
Launch Simulator →

🧲 Stepper Torque & Rotor Vector Physics

Simulate salient-pole tooth rotor geometry, flux lines, load torque stalling limits, and vector superposition.

Salient Rotor Magnetic Vectors Holding Torque Stall Jitter
Launch Simulator →

🏎️ DC Motor & DRV8833 Dual PWM

Explore directional H-Bridge logic, dual PWM inputs on IN1 & IN2, supply voltage ($VM$) scaling, dynamic fast-decay braking, and coasting mechanics.

DRV8833 Dual PWM VM Supply Scaling Fast Decay Brake
Launch Simulator →

🌊 PWM Signal & Frequency Waveform Visualizer

Analyze pulse-width modulation waveforms, duty cycle percentages, and high-frequency switching dynamics in real-time.

PWM.freq() duty_u16 Waveform Oscilloscope
Launch Simulator →

🎯 Servo PWM & Angle Mapping

Visualize 50Hz PWM signal timing (1ms–2ms pulse widths) mapped directly to RP2040 16-bit MicroPython duty_u16 registers.

50 Hz PWM duty_u16 Position Control
Launch Simulator →

🎵 Servo Metronome & Musical Timing

Model sinusoidal pendulum oscillation, 50 Hz PWM duty cycle calculations, tempo (BPM) dynamics, and time signatures driving an SG90 servo.

50 Hz PWM BPM Tempo duty_u16 Sweep Harmonic Motion
Launch Simulator →

🔋 Servo Supply Voltage & Stall Current

Analyze voltage drops, power rail sag under high load, stall currents, and power decoupling strategies in robotics.

Voltage Sag Stall Current Power Decoupling
Launch Simulator →

🤖 2WD Differential Mobile Robot

Model differential kinematic steering, pivot vs tank turns, wheel velocity vectors, and dual H-Bridge PWM outputs.

Kinematics Tank Turn Differential Drive
Launch Simulator →
🌱 Sensors, Compound Logic & Protocols

💨 Air Quality Sensor & Relay Exhaust Fan

Model MQ-135 / MQ-2 gas concentration PPM sensing, ADC voltage conversion, dual-threshold hysteresis relay control, and animated exhaust fan purging.

MQ-135 Gas ADC0 GP26 Relay GP16 Hysteresis
Launch Simulator →

🌱 Soil Moisture v1.2 & DC Irrigation Pump

Model inverse capacitive dielectric voltage ($3.0\text{V} = \text{Dry}$, $1.2\text{V} = \text{Wet}$), soil evaporation, optocoupled relay switching, and hysteresis cooldown.

Capacitive v1.2 DC Pump Motor Relay NO/COM 10s Hysteresis
Launch Simulator →

💧 Water Level Sensor & Automated Pump

Model water tank volume depth sensing via 12-bit ADC (GP26), dual-threshold hysteresis refill logic, optocoupled pump relay control, piezobuzzer alerts, and code inspection.

Water Level ADC ADC0 GP26 Pump Relay GP16 Hysteresis Refill
Launch Simulator →

🚨 Flood Barrier Shutter & Warning Relay

Model water threat depth sensing (GP26), dual-threshold hysteresis shutter closure, motorized barrier relays (GP16), warning strobes, and web audio sirens.

Flood Sensing ADC0 GP26 Shutter Relay GP16 Warning Strobe
Launch Simulator →

🎛️ Potentiometer Signal Processing (ADC to PWM)

Visualize 10kΩ rotary potentiometer wiper voltage remapped from 12-bit ADC registers ($0–4095$) directly into 16-bit PWM duty cycles ($0–65535$).

ADC.read_u16() PWM.duty_u16() 10kΩ Potentiometer Signal Scaling
Launch Simulator →

🌱 Automated Greenhouse Roof & Single-Wire

Model 40-bit Single-Wire pulse-width timing and compound boolean logic (if ... and) driving a motorized roof and fan.

DHT11 / Single-Wire 40-Bit Frame if ... and Vent Servo
Launch Simulator →

🌊 Waterproof DS18B20 & 16-Bit Math

Simulate submerged probe thermal dynamics, 3.0V–5.5V VCC vs Parasite Power, 64-bit laser ROM IDs, and Hex → 16-Bit Two's Complement math.

DS18B20 / 1-Wire Parasite Power 64-Bit ROM Two's Complement
Launch Simulator →

🔘 Digital Switches & Push Button Visualizer

Explore digital input reading (`pin.value()`), tactile switch debouncing, and active-HIGH vs active-LOW logic circuits.

Pin.IN Debouncing Digital Input
Launch Simulator →

🔘 GPIO Pull-Up / Pull-Down Resistors

Master Active-HIGH vs Active-LOW GPIO inputs, internal RP2040 ~50kΩ pulls, and floating state noise suppression.

Pin.PULL_UP Pin.PULL_DOWN Floating Noise
Launch Simulator →

🚨 PIR Motion Sensor & Hardware IRQs

Compare hardware edge interrupts (.irq()) against continuous polling loops in low-power embedded computing.

Pin.IRQ_RISING ISR Handler Power Efficiency
Launch Simulator →

🌐 I2C Bus & Proximity Sensor

Understand 2-wire SDA/SCL serial protocols, 7-bit slave device addresses, and register byte buffer reads.

I2C Protocol SDA / SCL 7-Bit Addressing
Launch Simulator →

⚡ I2C Event Interrupts & Handlers

Simulate interrupt-driven I2C bus communications for real-time sensor processing without blocking main CPU loops.

I2C IRQ Bus Events Non-blocking
Launch Simulator →

🚁 6-DoF Flight Dynamics & Quadcopter Physics

Apply rotational mechanics, moments of inertia, counter-rotational torque, and motor thrust vectors to simulated drone flight.

Pitch & Roll Yaw Torque MPU6050 IMU
Launch Simulator →