TSMurray
Posts: 6
Joined: Tue May 22, 2018 8:29 pm

Stacking Geekworm Motor HAT jumper setting help needed

Tue May 22, 2018 9:00 pm

I recently purchased two Geekworm Motor HAT's for a project involving 6 motors that i'm building for my Raspberry Pi. Unfortunately, it's not clear on how to set their addressing. A similar product, "the Adafruit DC Motor hat" has a set of jumpers on the front that you bridge with solder to program the offset.

The Geekworm model doesn't have that on the front, but has something similar on the back (A0, A1, A2, etc..) and a JP2 solder point. Am i to solder a small wire between one of the A pins and the JP2 to program the offset?

Any help would be GREATLY appreciated. The geekworm site really isn't that helpful.



TSMurray
Posts: 6
Joined: Tue May 22, 2018 8:29 pm

Re: Stacking Geekworm Motor HAT jumper setting help needed

Wed Jun 13, 2018 12:59 am

sorry to be a pest, but I'm really at a loss here. Any help would be appreciated.

pcmanbob
Posts: 4337
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Stacking Geekworm Motor HAT jumper setting help needed

Wed Jun 13, 2018 8:25 am

It might help if you post some good quality pictures of the front and back of the pcb so we can see the A0 A1 A2 A3 as all the pictures I can find on line show just a single pad already soldered.

As always the more information and that includes pictures you provide the better chance people will be able to help.
Remember we want information.......................no information no help
The use of crystal balls & mind reading is not supported

scotty101
Posts: 3083
Joined: Fri Jun 08, 2012 6:03 pm

Re: Stacking Geekworm Motor HAT jumper setting help needed

Wed Jun 13, 2018 9:42 am

How many HATs are you trying to connect?

Generally speaking, if you only want to connect one HAT, you shouldn't need to change anything with the jumpers.
Difficult to give you a good answer given the lack of documentation that exists for this HAT. There is a reason it is cheap....

The only document i can find is this https://github.com/mlichtenstein/31bot/ ... Guide1.pdf
and it doesn't even mention the jumper pins and only briefly mentions stacking.
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

pcmanbob
Posts: 4337
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Stacking Geekworm Motor HAT jumper setting help needed

Wed Jun 13, 2018 12:16 pm

I did manage to find some example python programs for this hat, one of which was for testing 2 hats stacked.

In it is this bit of code

Code: Select all


# bottom hat is default address 0x6f
bottomhat = Raspi_MotorHAT(addr=0x6f)
# top hat has A0 jumper closed, so its address 0x61
tophat = Raspi_MotorHAT(addr=0x61)
so that tells us we need to close the A0 jumper for the second hat, but there is no detail on were or how which is why I asked for some good quality pictures.
Remember we want information.......................no information no help
The use of crystal balls & mind reading is not supported

TSMurray
Posts: 6
Joined: Tue May 22, 2018 8:29 pm

Re: Stacking Geekworm Motor HAT jumper setting help needed

Tue Aug 28, 2018 12:43 pm

Sorry for the lack of posts. Here is what the board looks like. I converted the back to black and white to increase the contrast and make it look clearer.
sm1_small.jpg
sm1_small.jpg (55.8 KiB) Viewed 61 times
The attachment sm1_small.jpg is no longer available

Any help would be greatly appreciated!!!!

TSMurray
Posts: 6
Joined: Tue May 22, 2018 8:29 pm

Re: Stacking Geekworm Motor HAT jumper setting help needed

Tue Aug 28, 2018 12:44 pm

sm2_small.jpg
sm2_small.jpg (37.9 KiB) Viewed 61 times

pcmanbob
Posts: 4337
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Stacking Geekworm Motor HAT jumper setting help needed

Wed Aug 29, 2018 10:53 am

Looking at the second picture you can see the jumper points A0-A3 but it looks like originally there might have been plans for these to be connected to switches as indicated by the silk screen image beside them,
but these are not fitted on the version you have or were never actually implemented on the final design, so I think unless you can get help from the manufacture as to how you use then, I think you are at a dead end and just randomly connecting them is likely to damage the the device and possibly your pi.


I don't think JP2 is anything to do with the addressing jumpers.

One last thought do both of your boards actually use address 0x6f when you communicate with them ?
Remember we want information.......................no information no help
The use of crystal balls & mind reading is not supported

Return to “Beginners”

Who is online

Users browsing this forum: Baidu [Spider], superbogel and 21 guests