DIY Robot Plugs In a Tesla by Itself, Using Suction Cups on the Car to Push the Charger In

User Avatar Aswinth Raj
Author
Share
Robot Plugging In Tesla Model 3 Charging

Plugging in an EV every evening takes ten seconds, but it is exactly the kind of chore people forget. Maker Mew463 built a robot that does it for a 2021 Tesla Model 3: it waits under the car, rolls out when the car is parked, lifts the charging handle to the port, plugs it in and later unplugs and drives back to its spot. Most of the robot stays under the car while it charges, and the cable runs straight down to the floor, so there is nothing to trip over.

The suction cup trick

Pushing a charging plug home takes real force. People do not notice it because they lean in and brace themselves, but a light robot would simply shove itself backwards. Rather than making the robot heavy, Mew463 fitted it with suction cups driven by a small vacuum pump. The cups grab the panel around the car's charging port, and the car itself becomes the support that takes the insertion force.

The pump motor's current runs through a current sensor. When a proper vacuum forms, the current drops, and that drop tells the robot the cups have sealed, which also confirms it is lined up correctly on the port before it pushes.

How it finds the port

  • Getting close: pre-programmed moves fused with lidar readings bring it roughly into place. Mew463 skipped SLAM because the robot only travels about 2 m.
  • Final alignment: a 1080p camera on a turret tracks a ChArUco board, a chessboard with ArUco markers, cut to fit the panel around the charging port. A single AprilTag gave too much pose error, while the ChArUco board gives a stable position and angle in all six axes.
  • Lighting: a small PCB on the camera carries 8 front and 2 rear NeoPixels, and a simple loop adjusts their brightness until the camera image is well exposed.
  • Going home: after unplugging, the turret spins the camera round to a second board on the garage wall, so the robot can drive back without turning around.

The chassis uses mecanum wheels so it can strafe sideways to line up, and a one-stage elevator lifts the charging handle only when needed, keeping the centre of gravity low while it moves.

Brains and car integration

A Raspberry Pi 5 (8 GB) runs the vision and motion code, with an ESP32-C3 on a custom Pi HAT that also distributes the 12 V input to every module. To talk to the car, Mew463 first tried Tesla's Fleet API, called it a headache, and switched to the paid Tessie API, which sends commands such as open_charge_port and unlock_charge_port. The robot only plugs in when the lidar sees a car in range, the car has left the geofence and come back, and the car reports it is at home, in park and not already connected.

Because of that API step, the build works only with Teslas as it stands; another EV would need its own way to open the port door. The Onshape CAD, PCB layout and code are in the GitHub repository, and the robot is shown working in the maker's demo video. For another Pi 5 robot that combines a camera with motion, see the 1984 Omnibot with a Raspberry Pi 5 brain.

Image credit: Mew463, frame from the demo video, cropped and resized.

About the author: Aswinth Raj is an electronics engineer and the editor of CircuitDigest, where he has published more than 150 hands-on projects and tutorials across Arduino, PIC, ESP32, Raspberry Pi and EV battery systems. He selects the stories on this page for what engineers and makers can actually learn or build from. Connect on LinkedIn

Have any question related to this Article?

Add a comment

No account needed. Your comment appears once a moderator has reviewed it.

Never shown publicly.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.