Adafruit Motor HAT for pi test examples

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Adafruit Motor HAT for pi test examples

Post by adafruit_support_rick »

What do you get from the command sudo i2cdetect -y 1

User avatar
JTibbetts
 
Posts: 3
Joined: Wed Nov 18, 2015 8:10 am

Re: Adafruit Motor HAT for pi test examples

Post by JTibbetts »

Exactly the same as the other guy

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Adafruit Motor HAT for pi test examples

Post by adafruit_support_rick »

So, I2Cdetect is finding the HAT at 0x60?

What error messages are you getting?

What do you mean, "it won't power the motor"? Do you have an external power supply attached to the HAT?

Can you post some pictures of both sides of the HAT?

User avatar
Darkvadera4b6
 
Posts: 4
Joined: Sat Nov 21, 2015 3:49 pm

Re: Adafruit Motor HAT for pi test examples

Post by Darkvadera4b6 »

I had exactly the same problem when running the dctest.py ir says error check i2c address ..so r u saying that if I change the address to 0x60 instead of 0x61 it'll work ..I'll give this a try when I get home

User avatar
JTibbetts
 
Posts: 3
Joined: Wed Nov 18, 2015 8:10 am

Re: Adafruit Motor HAT for pi test examples

Post by JTibbetts »

Hi, Thanks for trying to help, Found out today that my partner melted the board meaning we will have to replace it, Sorry for wasting your time.

User avatar
adafruit2
 
Posts: 22187
Joined: Fri Mar 11, 2005 7:36 pm

Re: Adafruit Motor HAT for pi test examples

Post by adafruit2 »

updated the code - it should have been 0x60, was a typo!
the current github code is fixed (or, if you have the older code, just change the 0x61 to 0x60)
sorry about that!

User avatar
qd11
 
Posts: 4
Joined: Sun Aug 28, 2016 4:15 pm

Re: Adafruit Motor HAT for pi test examples

Post by qd11 »

Hi there,

I recently purchased Motor Hat and I am experiencing difficulties to get it running.
I followed to the letter the guide here https://learn.adafruit.com/adafruits-ra ... guring-i2c
but when I do sudo i2cdetect -y 1
I get all blanks, i.e.,
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Although: ls /dev/*i2c*
/dev/i2c-1

Respective modules are loaded too.
lsmod
Module Size Used by
...
i2c_dev 5859 0
i2c_bcm2708 4770 0
...

I've got Raspberry Pi 3 model B with Linux RPi3 4.4.13-v7+ #894 SMP Mon Jun 13 13:13:27 BST 2016 armv7l GNU/Linux
Motor Hat is powered, the green "power" diode is lit up.

What seems to be a problem? Thanks.
On the side note, I also have a SenseHat, this guy works ok.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Adafruit Motor HAT for pi test examples

Post by adafruit_support_rick »

post some clear, detailed pictures of both sides of the Hat

User avatar
qd11
 
Posts: 4
Joined: Sun Aug 28, 2016 4:15 pm

Re: Adafruit Motor HAT for pi test examples

Post by qd11 »

Here you go

Image
Image

Do you suspect hw problems?
I could also try to get a fresh raspbian.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Adafruit Motor HAT for pi test examples

Post by adafruit_support_rick »

You haven't soldered anything to the hat. You have to solder on the headers.

User avatar
qd11
 
Posts: 4
Joined: Sun Aug 28, 2016 4:15 pm

Re: Adafruit Motor HAT for pi test examples

Post by qd11 »

OK, I am new to these things, I apologize for my ignorance.
I followed the guide over here https://learn.adafruit.com/simple-raspb ... t/assembly
It says nothing about soldering and SenseHat works without soldering, so I assumed...
All right, thanks for your help, I will solder things as here
https://learn.adafruit.com/adafruit-dc- ... i/assembly

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Adafruit Motor HAT for pi test examples

Post by adafruit_support_rick »

Yeah - the hat is already assembled in the robot tutorial. I'll add a reference to the assembly instructions.

User avatar
qd11
 
Posts: 4
Joined: Sun Aug 28, 2016 4:15 pm

Re: Adafruit Motor HAT for pi test examples

Post by qd11 »

OK, soldered it works as charm. thanks.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”