#hataday Motor HAT for Raspberry Pi @raspberry_pi #raspberrypi #hat
Next up is a spin of our popular Adafruit Motor Shield but in HAT form. We can control 4 DC motors or 2 Steppers (or combination) and to allow for microstepping and precise motor control, a PCA9685 acts as an I2C PWM driver/GPIO controller.
In a nutshell a HAT is a rectangular board (65x56mm) that has four mounting holes in the (nicely rounded) corners that align with the mounting holes on the B+, has a 40W GPIO header and supports the special autoconfiguration system that allows automatic GPIO setup and driver setup. The automatic configuration is achieved using 2 dedicated pins (ID_SD and ID_SC) on the 40W B+ GPIO header that are reserved for an I2C EEPROM. The EEPROM holds the board manufacturer information, GPIO setup and a thing called a ‘device tree‘ fragment – basically a description of the attached hardware that allows Linux to automatically load the required drivers.