0
\$\begingroup\$

I need to find out which GPIO pin on the raspberry pi will be connected to which module when I fit the Adeept Motor Hat v2.0 on the 40 GPIO pins. I am attaching the image and the schematic of the motor hat.

Motor hat which fits on the 40 GPIO pins of Raspberry pi

Here is a link to the schematic.

Alternate link to the schematic

PS. Since I am new to this I am not sure if this can be figured out or not. Thanks!

\$\endgroup\$
7
  • \$\begingroup\$ Which Raspberry Pi? Also your link doens't work. \$\endgroup\$
    – Swedgin
    Mar 2, 2020 at 13:56
  • \$\begingroup\$ Raspberry Pi 3B+, sir. \$\endgroup\$
    – Vaibhav
    Mar 2, 2020 at 14:11
  • \$\begingroup\$ pdfhost.io/v/… Link to the schematic. Please see if this works? \$\endgroup\$
    – Vaibhav
    Mar 2, 2020 at 14:15
  • \$\begingroup\$ PCA9685 as motor driver HAT: with the correct speaker (read: motor) this PWM control adjustable from about 24 Hz to 1526 Hz makes this HAT a nice sound card! \$\endgroup\$
    – Huisman
    Mar 2, 2020 at 15:38
  • 1
    \$\begingroup\$ You will hear the motor making sound because the PWM modulating range lies within the hearing range. They should have used the PCA9635 instead, which is around 97.6 kHz (The PCA9635 however has lower PWM resolution) \$\endgroup\$
    – Huisman
    Mar 2, 2020 at 18:01

1 Answer 1

1
\$\begingroup\$

You've already found the schematic for the Motor Hat.

enter image description here

Now we need the schematic of the GPIO pins of the Raspberry Pi. That's why I asked which one you use. Since AFAIK they are not all equal. RPi 3B+ schematic GPIO:

enter image description here

Now we check the 40 pins, and see if they are equal. And they are! Even the warning in the picture of the RPi is correct in the schematic of the Motor Hat.

So we can conclude that the module will fit.

Additional comment from OP:

can you help me with respect to the modules and the pins ie (ultrasonic sensor, line tracking sensor, motor1, motor2, RGB led1, RGB led2). I wanted to know that which module will connect to which GPIO pins so that I can program in python using those GPIO pins ie. when I connect the sensors to the HAT, which pins should I use while programming ?

You do this by checking the datasheet your link. So for example in the case of tracking, ultrasonic sensor and the WS2812

enter image description here

  • tracking: connects to GPIO19, GPIO16, GPIO20
  • ultrasonic: connects to GPIO11, GPIO08
  • WS2812: connects to GPIO12
\$\endgroup\$
6
  • \$\begingroup\$ Sir, can you help me with respect to the modules and the pins ie (ultrasonic sensor, line tracking sensor, motor1, motor2, RGB led1, RGB led2). I wanted to know that which module will connect to which GPIO pins so that I can program in python using those GPIO pins ie. when I connect the sensors to the HAT, which pins should I use while programming ? Thanks. \$\endgroup\$
    – Vaibhav
    Mar 2, 2020 at 15:54
  • \$\begingroup\$ @Vaibhav updated my answer \$\endgroup\$
    – Swedgin
    Mar 2, 2020 at 16:34
  • \$\begingroup\$ Thanks, Sir! Sir, what about Motor 1 and Motor 2? Also, Sir what are the parallel rows of black, red, and yellow pins on the hat(refer to the diagram) \$\endgroup\$
    – Vaibhav
    Mar 2, 2020 at 16:43
  • \$\begingroup\$ @Vaibhav check the datasheet. I'm not going to copy pasta another picture here. You can see that motorA and motorB are connected to an L298. Looking at the schematic you can see that pin 7, 8, 9 and pin 13, 14, 15 are connected to the RPi with their respective GPIO pins. \$\endgroup\$
    – Swedgin
    Mar 2, 2020 at 17:41
  • \$\begingroup\$ @Vaibhav Also I dont understand what you mean by the diagram \$\endgroup\$
    – Swedgin
    Mar 2, 2020 at 17:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.