DC controlled with MAX using Motor Shield V2

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
musinou
 
Posts: 8
Joined: Sat Aug 15, 2015 11:33 am

DC controlled with MAX using Motor Shield V2

Post by musinou »

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/DCMo ... ontrol.php

User avatar
adafruit_support_bill
 
Posts: 85867
Joined: Sat Feb 07, 2009 10:11 am

Re: DC controlled with MAX using Motor Shield V2

Post by adafruit_support_bill »

Interesting project! Thanks for posting.

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

Re: DC controlled with MAX using Motor Shield V2

Post by attilafaravelli »

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.

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

Re: DC controlled with MAX using Motor Shield V2

Post by musinou »

@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!

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

Return to “Arduino Shields from Adafruit”