Clay McPherson
New member
Penny Rover: a 6x6 rocker-bogie rover powered by a Teensy 4.1
Full build log with lots more photos: clay-p-mcpherson.com/projects/autonomous-6x6-rover-build
Penny on her first outdoor test
Penny is a homebuilt six-wheel autonomous rover, loosely inspired by NASA's Perseverance ("Percy") but a lot cheaper. It follows GPS waypoint missions planned in QGroundControl, or it can be driven manually over RC. A Teensy 4.1 handles all the low-level motor control. This includes PID loops for 6 wheel independent traction control, and steering actuators for navigation towards a compass heading. A Raspberry Pi 4B handles the higher level logic and functions.
Code, CAD, schematics and BOM (open source): https://github.com/ClayBuilds/PennyRover
The robot in brief
Onboard camera view while driving
The Pi decides where to go and the Teensy makes the wheels do it, so all the timing-sensitive work stays off Linux/python.
The finished interior: battery box in the middle, control electronics around it
Main electronics bay, labeled
What the Teensy 4.1 is doing
All of this runs in a single main loop. The libraries are Servo, SerialTransfer, Adafruit MMC56x3 and QuickPID.
Custom PCB
Main PCB with the Teensy 4.1
A simple carrier board with terminal blocks for the motors, speed switches and steering, plus an I2C breakout. The perfboard daughterboard holds the battery-sensing voltage dividers.
Results
Penny has successfully completed fully autonomous waypoint missions. Here's a 16-waypoint mission, planned path vs. the logged GPS track, followed by the full telemetry from the same run.
Planned vs actual GPS path
Mission telemetry: wheel speeds, commands, modes, battery and heading
Build and test video:
Full build log with lots more photos: clay-p-mcpherson.com/projects/autonomous-6x6-rover-build
Penny on her first outdoor test
Penny is a homebuilt six-wheel autonomous rover, loosely inspired by NASA's Perseverance ("Percy") but a lot cheaper. It follows GPS waypoint missions planned in QGroundControl, or it can be driven manually over RC. A Teensy 4.1 handles all the low-level motor control. This includes PID loops for 6 wheel independent traction control, and steering actuators for navigation towards a compass heading. A Raspberry Pi 4B handles the higher level logic and functions.
Code, CAD, schematics and BOM (open source): https://github.com/ClayBuilds/PennyRover
The robot in brief
- Drive: six used 12V windshield wiper motors. They're worm-geared, so no brakes are needed, and each has a built-in switch that closes once per revolution.
- Suspension: rocker-bogie made of 2020 extrusion and steel arms. A gearbox acts as the differential between the two sides.
- Steering: four steering wheels driven by two linear actuators pulling bicycle brake cables. They go to ±45°, so it can turn in place.
- Power: e-bike battery with a fuse, contactor, e-stop and voltage/current sensing.
- Navigation: GPS plus an MMC5603 magnetometer.
- Performance: about 1-2 mph and about 45 minutes per charge.
Onboard camera view while driving
The Pi decides where to go and the Teensy makes the wheels do it, so all the timing-sensitive work stays off Linux/python.
The finished interior: battery box in the middle, control electronics around it
Main electronics bay, labeled
What the Teensy 4.1 is doing
All of this runs in a single main loop. The libraries are Servo, SerialTransfer, Adafruit MMC56x3 and QuickPID.
- Six wheel speed PID loops. Each wheel is its own object with its own QuickPID instance. The three wheels on each side share one pair of direction pins to save pins.
- Speed from a once-per-rev switch. At low RPM a slowdown doesn't show until the next pulse. So between pulses, the firmware caps the speed estimate at the most the wheel could be turning without the switch having fired yet, and decays it toward zero. That was enough for low-speed traction control without adding encoders.
- Traction control. Each wheel holds its target RPM under load. If a wheel stalls against an obstacle, its PID raises the duty cycle until it climbs over.
- Steering. The linear actuators take servo PWM, so they run straight off the Servo library. The Teensy calculates Ackermann angles and slows the inside wheels in a turn.
- Heading control. The Pi sends only a goal heading. The Teensy reads the compass over I2C, smooths out noise, and runs the heading PID. When the heading error is large, it toes the wheels to 45° and turns in place. Otherwise, it does minor steering adjustments for fine control.
- Telemetry. It reports battery voltage, current, heading and all six wheel speeds back to the Pi at 2 Hz.
Custom PCB
Main PCB with the Teensy 4.1
A simple carrier board with terminal blocks for the motors, speed switches and steering, plus an I2C breakout. The perfboard daughterboard holds the battery-sensing voltage dividers.
Results
Penny has successfully completed fully autonomous waypoint missions. Here's a 16-waypoint mission, planned path vs. the logged GPS track, followed by the full telemetry from the same run.
Planned vs actual GPS path
Mission telemetry: wheel speeds, commands, modes, battery and heading
Build and test video: