Please note: Friday June 18 is a holiday celebrating Juneteenth, please allow extra time for your order to arrive and plan accordingly.
0

Getting Pico(RP2040) to workwith DRV2605L breakout
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Getting Pico(RP2040) to workwith DRV2605L breakout

by Morven on Tue Jun 01, 2021 7:48 pm

I am having trouble getting the pico to work over i2c with the DRV2605L. I followed the instructions in the these two posts, https://learn.adafruit.com/getting-started-with-raspberry-pi-pico-circuitpython/pinouts and https://learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout/arduino-code?view=all to setup CircuitPython on the pico, I just want to run the sample as shown in the guide to play through the different preset affects:

Code: Select all | TOGGLE FULL SIZE
import time

import board
import busio

import adafruit_drv2605

i2c = busio.I2C(board.GP1, board.GP0)
drv = adafruit_drv2605.DRV2605(i2c)

effect_id = 1
while True:
    print("Playing effect #{0}".format(effect_id))
    drv.sequence[0] = adafruit_drv2605.Effect(effect_id)
    drv.play()
    time.sleep(0.5)
    drv.stop()
    effect_id += 1
    if effect_id > 123:
        effect_id = 1


But I am getting and error complaining
RuntimeError: No pull up found on SDA or SCL; check your wiring
, which from my understanding through reading the guide in the seconf link and some google search, this breakout board should already have 10K pull ups build in, not sure what I am doing wrong here.
Currently I have GPIO 0(SDA) and 1(SCL) of the pico directly connected to the DRV2605L breakout sda and scl correspondingly, and 3v3out(pico) <-> Vin, GND<->GND. Is this wiring wrong, do I actually need to add some external pullup resistors? I also tried getting this to work through the PICO c/c++ sdk and micropython i2c scanner code, but the motor driver is not showing up with those methods either. Any help is appreciated, thanks a lot.

Morven
 
Posts: 6
Joined: Tue Jun 01, 2021 7:29 pm

Re: Getting Pico(RP2040) to workwith DRV2605L breakout

by tannewt on Tue Jun 01, 2021 8:02 pm

What version of CircuitPython are you using? Make sure it's the latest (6.3.0 is being released now.) There was some I2C issues in older versions.

tannewt
 
Posts: 2428
Joined: Thu Oct 06, 2016 8:48 pm

Re: Getting Pico(RP2040) to workwith DRV2605L breakout

by Morven on Tue Jun 01, 2021 8:11 pm

Thanks for the quick reply, Adafruit CircuitPython 6.2.0 on 2021-04-05; Raspberry Pi Pico with rp2040 is what I see when connected through minicom, I downloaded the uf2 from here https://circuitpython.org/board/raspberry_pi_pico/.

Morven
 
Posts: 6
Joined: Tue Jun 01, 2021 7:29 pm

Re: Getting Pico(RP2040) to workwith DRV2605L breakout

by Morven on Tue Jun 01, 2021 8:13 pm

Should I switch to 6.3.0, I was using 6.2.0 cause it still says unstable for 6.3.0

Morven
 
Posts: 6
Joined: Tue Jun 01, 2021 7:29 pm

Re: Getting Pico(RP2040) to workwith DRV2605L breakout

by Morven on Tue Jun 01, 2021 8:28 pm

Played around a bunch more, tried with the newer
Adafruit CircuitPython 6.3.0-rc.0 on 2021-05-25; Raspberry Pi Pico with rp2040
, and just sanity checking, I also tested a different pico and or DR2605L breakout, still getting the same error.

Morven
 
Posts: 6
Joined: Tue Jun 01, 2021 7:29 pm

Re: Getting Pico(RP2040) to workwith DRV2605L breakout

by tannewt on Wed Jun 02, 2021 11:16 am

Ya, generally with bugs its good to try the latest versions, even if the releases are unstable.

Please post a picture showing everything connected. This error often happens when things aren't well connected.

tannewt
 
Posts: 2428
Joined: Thu Oct 06, 2016 8:48 pm

Re: Getting Pico(RP2040) to workwith DRV2605L breakout

by Morven on Thu Jun 03, 2021 6:55 am

Here's my current wiring. I have tried have straight jumper wires between them before, last thing I haven't tried is soldering them which I don't really want to do yet until get the setup working. Thanks for the help.
Attachments
20210603_063503-min.jpg
Wiring different angle
20210603_063503-min.jpg (665.49 KiB) Viewed 175 times
20210603_063449-min.jpg
Wiring
20210603_063449-min.jpg (854.45 KiB) Viewed 175 times

Morven
 
Posts: 6
Joined: Tue Jun 01, 2021 7:29 pm

Re: Getting Pico(RP2040) to workwith DRV2605L breakout

by tannewt on Thu Jun 03, 2021 3:28 pm

You'll need to solder in the pin headers for a reliable connection. You could use a grabber to connect otherwise: https://www.pomonaelectronics.com/produ ... test-clips

tannewt
 
Posts: 2428
Joined: Thu Oct 06, 2016 8:48 pm

Re: Getting Pico(RP2040) to workwith DRV2605L breakout

by Morven on Tue Jun 08, 2021 9:13 am

My orders of a soldering tools just arrived, and as you suggested soldering helped to keep reliable connections. Now it works as expected, thanks for you help.

Morven
 
Posts: 6
Joined: Tue Jun 01, 2021 7:29 pm

Re: Getting Pico(RP2040) to workwith DRV2605L breakout

by tannewt on Wed Jun 09, 2021 1:38 pm

Great! I'm glad it is working for you.

tannewt
 
Posts: 2428
Joined: Thu Oct 06, 2016 8:48 pm

Please be positive and constructive with your questions and comments.