DRV8333 for Raspberry Pi Pico

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ZackDaQuack
 
Posts: 6
Joined: Wed Jul 28, 2021 2:50 pm

DRV8333 for Raspberry Pi Pico

Post by ZackDaQuack »

Hi! I am having trouble with the Adafruit DRV8833 (https://www.adafruit.com/product/3297). I am trying to get my Raspberry Pi Pico control a DC motor (https://www.adafruit.com/product/3777) I tried toggling Pins, but it won't work. I also measured the Pins with my multimeter and here are the results: AIN1 and AIN2 have 3.3V power. AOUT and BOUT has around .3V, which is not enough for the motor because the minimum Voltage is 3V. I am also coding this using micro-python because i am a beginner.

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: DRV8333 for Raspberry Pi Pico

Post by adafruit_support_carter »

Please post a photo of your setup showing how everything is wired together.

How are you programming the Pico?

User avatar
ZackDaQuack
 
Posts: 6
Joined: Wed Jul 28, 2021 2:50 pm

Re: DRV8333 for Raspberry Pi Pico

Post by ZackDaQuack »

Setup
Setup
Photo on 7-28-21 at 2.22 PM.jpg (163.45 KiB) Viewed 118 times
I am programing using micro-python on Thonny.

EDIT: I don't know if i need to power up the VM Pin

User avatar
ZackDaQuack
 
Posts: 6
Joined: Wed Jul 28, 2021 2:50 pm

Re: DRV8333 for Raspberry Pi Pico

Post by ZackDaQuack »

In the picture the wheel isn't connected because i am just measuring the voltage of the output pins.

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: DRV8333 for Raspberry Pi Pico

Post by adafruit_support_carter »

Yep, need to apply motor power of the VM pin. See here for general pinout info:
https://learn.adafruit.com/adafruit-drv ... rd/pinouts

Are you using a Python library for motor control? Or just toggling pins directly?

User avatar
ZackDaQuack
 
Posts: 6
Joined: Wed Jul 28, 2021 2:50 pm

Re: DRV8333 for Raspberry Pi Pico

Post by ZackDaQuack »

I am just trying to toggle them manually. Here is the code:

from machine import Pin
motor = Pin(0, Pin.OUT)
motor.value(1)

I already read the article and I am still confused. Do i need to supply power through the VMotor Pins?

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: DRV8333 for Raspberry Pi Pico

Post by adafruit_support_carter »

You need to supply power for the motors on the VN pin.

User avatar
ZackDaQuack
 
Posts: 6
Joined: Wed Jul 28, 2021 2:50 pm

Re: DRV8333 for Raspberry Pi Pico

Post by ZackDaQuack »

Ok, i connected everything (I think) and it seems like the controller is waiting for instructions. How am I supposed to tell it what to do by toggling GPIO Pins?

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: DRV8333 for Raspberry Pi Pico

Post by adafruit_support_carter »

To move in one direction, set:
AIN1 = HIGH
AIN2 = LOW
to move in the other direction
AIN1 = LOW
AIN2 = HIGH
This assumes you are connected to the AOUT pins. If you are connected to the BOUT pins, same thing but with BIN1/2.

From the datasheet here:
https://cdn-learn.adafruit.com/assets/a ... rv8833.pdf
control.jpg
control.jpg (41.89 KiB) Viewed 91 times

User avatar
ZackDaQuack
 
Posts: 6
Joined: Wed Jul 28, 2021 2:50 pm

Re: DRV8333 for Raspberry Pi Pico

Post by ZackDaQuack »

Thanks for the help! I figured it out. I set the SLP Pin to high and everything worked!

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

Return to “General Project help”