Motor HAT NotImplementedError

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
SpudLord
 
Posts: 2
Joined: Tue Jan 18, 2022 12:27 pm

Motor HAT NotImplementedError

Post by SpudLord »

I have a brand new Raspberry Pi 4B (2GB RAM) and a brand new Adafruit DC + Stepper Motor HAT (https://www.adafruit.com/product/2348).
I have put a GPIO Extension Header otherwise the HAT interferes with the RPi 4's PoE headers.

I have enabled i2c and ran

Code: Select all

sudo i2cdetect -y 1
to find it but it doesn't show up. Now I can get it to show up (I haven't soldered it yet but pushing on it allows it to show up on i2c addresses 0, 60 and 0, 70) but my code keeps on giving me the same error:

Traceback (most recent call last):
from adafruit_motorkit import MotorKit
import board
File "/usr/local/lib/python3.9/dist-packages/board.py", line 285, in <module>
raise NotImplementedError(
NotImplementError: Adafruit-PlatformDetect version 3.19.2 was unable to identify the board and/or microcontroller running the Linux Platform. Please make sure you have the latest packages running: 'pip3 install --upgrade adafruit-blinka adafruit-platformdetect'

I have taken a picture and put it on Google Drive for you to read fully if the above is confusing. See the link below

I have ran the code to update it and it has all come back saying it is updated. Has Adafruit dropped support for this HAT? Or will it not work with RPi 4? Or do I need to modify some files?

Please help!

https://rb.gy/wybqzj

User avatar
dastels
 
Posts: 15664
Joined: Tue Oct 20, 2015 3:22 pm

Re: Motor HAT NotImplementedError

Post by dastels »

You haven't soldered the headers on the hat? Can you post a clear photo of what you have?

You generally have no guarantee of anything working if the appropriate parts (headers in the hat in this case I'm guessing) aren't soldered.

Dave

User avatar
SpudLord
 
Posts: 2
Joined: Tue Jan 18, 2022 12:27 pm

Re: Motor HAT NotImplementedError

Post by SpudLord »

I've managed to get it working before with no solder but that was years ago on a RPi 3B+

I know it needs to be soldered but my point is that I can get it to show up on i2c but the Adafruit module still doesn't detect the board

User avatar
dastels
 
Posts: 15664
Joined: Tue Oct 20, 2015 3:22 pm

Re: Motor HAT NotImplementedError

Post by dastels »

Again, all bets are off unless it's soldered. You have no reason to expect a good connection. Especially with a high(ish) speed complex protocol like I2C. Not being soldered is a huge source of failure. Until you get that out of the picture, there's little point in thinking about the problem.

Dave

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”