Add RP2040 microcontroller subcircuit - #78
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Jul 13, 2026
Contributor
Author
|
CC @Abse2001 wdyt? i want to merge this then start improving the schematic to make it more RP2040-like- but lmk wyt |
seveibar
marked this pull request as ready for review
July 20, 2026 22:47
Contributor
Author
|
@Abse2001 you probably have a better PR, but i really want to start trying to use this to build a motor controller- maybe you can replace it? lmk wyt- i'd be down to completely nix it, but the sooner i get going the sooner i think i'll figure out what features we'll need |
|
Thank you for your contribution! 🎉 PR Rating: ⭐ Track your contributions and see the leaderboard at: tscircuit Contribution Tracker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Microcontroller_RP2040subcircuit adapted from abse/gameboy@tscircuit/commonImpact
Consumers can now use:
GPIO, USB, and debug pins can also be connected through the component's
connectionsprop. The subcircuit includes its USB-C receptacle and support circuitry.Footprint conversion
The JLCPCB/EasyEDA copper was evaluated in component-local coordinates with circuit-json-to-footprinter#12. All imported parts recover at 100% copper IoU with matching pin positions:
qfn56_thermalpad3.1mmx3.1mm_p0.4001mm_w7.8999mm_h7.9001mm_pw0.2mm_pl0.85mmsod123w_p3.4mm_pw0.95mmled_p1.498mm_pw0.8mm_ph0.8mmcrystalsmdpushbuttondfn6_missing(5)_p0.95mm_w3.2001mm_pin1location(rightside,bottom)wsonusbcmidmount16_pinstart13@tscircuit/footprinteris updated to^0.0.380for globalpin1location(...)support. Orientation is now encoded in the AP2112 footprinter string instead of a separate componentpcbRotation. The RP2040 base QFN orientation already places pin 1 on the left edge near the top (leftside,top), so it needs no suffix.The RP2040's generated
thermalpadhint is explicitly aliased to pin 57/GND, with a render test covering that electrical mapping.Validation
bun test— 5 passing tests, including a complete circuit render with zero circuit errors and the RP2040 thermal-pad mappingbunx tsc --noEmitbun run buildbun run format:checkbun run build:circuit— all 12 circuits built; existing supplier metadata and component-model warnings were emittedbun run snapshot:update— refreshed PCB, schematic, and 3D snapshots for all 12 circuitsbun run snapshot— all snapshots matchcircuit-json-to-footprinter: 17 tests passing, including exact recovery of the oriented AP2112 footprint withoutpcbRotation