DRV8333 for Raspberry Pi Pico
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- ZackDaQuack
- Posts: 6
- Joined: Wed Jul 28, 2021 2:50 pm
DRV8333 for Raspberry Pi Pico
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.
- adafruit_support_carter
- Posts: 29154
- Joined: Tue Nov 29, 2016 2:45 pm
Re: DRV8333 for Raspberry Pi Pico
Please post a photo of your setup showing how everything is wired together.
How are you programming the Pico?
How are you programming the Pico?
- ZackDaQuack
- Posts: 6
- Joined: Wed Jul 28, 2021 2:50 pm
Re: DRV8333 for Raspberry Pi Pico
EDIT: I don't know if i need to power up the VM Pin
- ZackDaQuack
- Posts: 6
- Joined: Wed Jul 28, 2021 2:50 pm
Re: DRV8333 for Raspberry Pi Pico
In the picture the wheel isn't connected because i am just measuring the voltage of the output pins.
- adafruit_support_carter
- Posts: 29154
- Joined: Tue Nov 29, 2016 2:45 pm
Re: DRV8333 for Raspberry Pi Pico
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?
https://learn.adafruit.com/adafruit-drv ... rd/pinouts
Are you using a Python library for motor control? Or just toggling pins directly?
- ZackDaQuack
- Posts: 6
- Joined: Wed Jul 28, 2021 2:50 pm
Re: DRV8333 for Raspberry Pi Pico
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?
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?
- adafruit_support_carter
- Posts: 29154
- Joined: Tue Nov 29, 2016 2:45 pm
Re: DRV8333 for Raspberry Pi Pico
You need to supply power for the motors on the VN pin.
- ZackDaQuack
- Posts: 6
- Joined: Wed Jul 28, 2021 2:50 pm
Re: DRV8333 for Raspberry Pi Pico
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?
- adafruit_support_carter
- Posts: 29154
- Joined: Tue Nov 29, 2016 2:45 pm
Re: DRV8333 for Raspberry Pi Pico
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
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
- ZackDaQuack
- Posts: 6
- Joined: Wed Jul 28, 2021 2:50 pm
Re: DRV8333 for Raspberry Pi Pico
Thanks for the help! I figured it out. I set the SLP Pin to high and everything worked!
Please be positive and constructive with your questions and comments.