0

DC controlled with MAX using Motor Shield V2
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

DC controlled with MAX using Motor Shield V2

by musinou on Fri Mar 18, 2016 11:45 am

Hi,

This code was initially designed for the Sphéro-Automaton, and installation with peristaltic pumps to make molecular cuisine from live sound. It uses multiple Adafruit Motor Shield V2 controlled by MAX via serial.
Later on, documentation and sharable Max/MSP patch development was funded by le Cirque du Soleil.

In case it is useful for someone:
http://liveelectronics.musinou.net/DCMotorsSerialControl.php

musinou
 
Posts: 8
Joined: Sat Aug 15, 2015 11:33 am

Re: DC controlled with MAX using Motor Shield V2

by adafruit_support_bill on Fri Mar 18, 2016 11:58 am

Interesting project! Thanks for posting.

adafruit_support_bill
 
Posts: 64080
Joined: Sat Feb 07, 2009 10:11 am

Re: DC controlled with MAX using Motor Shield V2

by attilafaravelli on Fri Mar 18, 2016 4:28 pm

I've been trying to upload the DCMotorsSerialControl sketch on the Arduino Uno and I got the following error /Users/attilafaravelli/Downloads/musinou_DCMotorsSerialControl_2015-06-20-2/Arduino/DCMotorsSerialControl/DCMotorsSerialControl.ino:21:45: fatal error: utility/Adafruit_PWMServoDriver.h: No such file or directory
#include "utility/Adafruit_PWMServoDriver.h"

I then contacted Musinou on Facebook who's been so kind to suggest removing the following string of text from the sketch: "utility/Adafruit_PWMServoDriver.h"

I did that and now it works, the rather simple Max patch seems rock solid, it basically sends instruction to Arduino through the serial port. I reported this in case someone else encountered the same issue. That mean of course that I cannot use the servos, dc motors work fine so far.

attilafaravelli
 
Posts: 1
Joined: Fri Mar 18, 2016 4:12 pm

Re: DC controlled with MAX using Motor Shield V2

by musinou on Fri Mar 18, 2016 10:44 pm

@attilafaravelli, looks like your Adafruit motor shield library is not installed with Adafruit_PWMServoDriver.h. If you ever need it, you'd need to have a look at the install, to make sure Adafruit_PWMServoDriver.h is present.

Happy that you find the serial connection solid. I used it during a performance, and Le Cirque Du Soleil used it too.

@adafruit_support_bill
pleasure!

musinou
 
Posts: 8
Joined: Sat Aug 15, 2015 11:33 am

Please be positive and constructive with your questions and comments.