1.8 KiB
title, date, draft, summary, images
title | date | draft | summary | images | |
---|---|---|---|---|---|
Framework joystick | 2025-07-11T22:11:00+01:00 | false | PSP joystick extension with ch32v003 for framework laptops... |
|
I attended 38c3 last year and it was amazing as always. I brought a modified robot vacuum to the event (it has BLDC motors and goes fast). But I forgot the gamepad so I chouldn't even drive it around :/
So instead of goofing around I goofed around in KiCad and make this1:
I ordered the PCBs just before leaving for new years eve. And with every PCB project I needed a secound iteration. The error that got me wasn't actually in the design. I left the tickness of the PCB at the standard of 1.6mm and so the USB-C plug did not fit as its designed for 0.8mm PCBs 🤦.
It wasn't nice but by bending all of the USB-C plug's pins I was able to solder them. After flashing the gamepad example from cnlohr's software usb library for the ch32v0032 it just works :D It could use some offset calibration (leaving the joystick in the middle does not result in it reporting 0,0) and the imu sensor i added has no driver yet, but I was able to control the robot at this point so I call the project done for now :)
...I put the design files3 and the code on github. So feel free to make your own (there be dragons; no documentation, ask questions maybe)