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

⚙️ RP2040 MicroPython Laboratory Suite

Interactive Mechatronics Visualizers, Motor Dynamics, and Embedded Physics Curriculum

Author & Creator: Jorge Victor M. Sales (swordeye / thearbiter) | License: CC BY-NC-SA 4.0
⚡ 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 range(len(pins))
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 H-Bridge

Explore directional H-Bridge logic, PWM duty cycle speed scaling, back-EMF, and active braking vs coasting mechanics.

DRV8833 PWM Speed Active Braking H-Bridge
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 Hardware Loop
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

🌱 Automated Greenhouse Roof & Single-Wire

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

DHT11 / Single-Wire 40-Bit Frame if ... and elif / else
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 → 12-Bit Fixed Point math.

DS18B20 / 1-Wire 3.3V / Parasite Hex → 16-Bit Math range(len(roms))
Launch Simulator →

🎛️ Analog Processing (ADC to PWM)

Visualize RP2040 12-bit ADC reading (0–4095) remapped to 16-bit PWM duty cycles (0–65535) for smooth speed control.

ADC.read_u16() PWM.duty_u16() Signal Scaling
Launch Simulator →

🔘 GPIO Pull-Up / Pull-Down Resistors

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

Pin.PULL_UP Active-LOW Digital Logic
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 Reading

Understand 2-wire SDA/SCL serial protocols, slave device addresses (0x39), and byte buffer memory reads.

I2C Protocol SDA/SCL Register Read
Launch Simulator →

⚡ I2C Event Interrupts

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 & Moments

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

Pitch & Roll Aerodynamics Inertia Matrix
Launch Simulator →