Hobbyist Toolkit

cancel
Showing results for 
Search instead for 
Did you mean: 

Using LINX I2CWrite to control Qwiic Motor Driver

Hi y'all,

 

I'm trying to control a DC motor using the Qwiic motor driver connected to a Redboard from Sparkfun

(https://learn.sparkfun.com/tutorials/hookup-guide-for-the-qwiic-motor-driver/all

https://www.sparkfun.com/products/15123)

 

I'm trying to send a code through the I2C connection to move the motor that the driver is controlling, but I don't understand how to format the data to get it to actually move. You can see in the case structure that I've tried playing around with different ways of formatting with no success. I feel like I'm missing some piece of information.

 

I've attached my code for reference, and the beginning part is using a DAq system to get a voltage output for a load cell that seems to be working just fine.

 

If anyone has any advice, it'd be greatly appreciated!

0 Kudos
Message 1 of 1
(974 Views)