A pHAT for Raspberry Pi, breaking out the PWM pins and some proto area.
The PWM pins are broken out into four 3-pin connectors that can be used with 5V servos. Granted, it's not recommended to run a servo directly from the pi pins without any protection. But in practice, running micro servos (such as sg90), especially one at a time, should be ok (but do it at your own risk).
In order to enable hardware PWM, the appropriate overlay needs to be enabled in config.txt
. For example:
dtoverlay=pwm-2chan,pin=12,func=4,pin2=13,func2=4
The board also has a couple of STEMMA-QT connectors for I2C convenience.
This was my first attempt at designing a PCB in kicad.
![](https://private-user-images.githubusercontent.com/445552/285348600-d1748a43-8422-45ef-a861-9130384fb440.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjExODg1ODEsIm5iZiI6MTcyMTE4ODI4MSwicGF0aCI6Ii80NDU1NTIvMjg1MzQ4NjAwLWQxNzQ4YTQzLTg0MjItNDVlZi1hODYxLTkxMzAzODRmYjQ0MC5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxN1QwMzUxMjFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jMWVmMWE1NTJhNDhlY2MyNzEyMmM5MWQ1YTU4ODJjYjM2MzBkYWQwNTMxNzg1NzI4NGRlYmU3ODgyNDI4NDY0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9._Yd4L7i1NEy27OLiMqM-enyyJshGIvHlbUS5RBB89bI)
![](https://private-user-images.githubusercontent.com/445552/285348599-fb6683cd-17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