Microcontrollers 1min - due 10/25
Assignment
Create a compelling interaction between Max and the Sparkfun Digital Sandbox (Arduino). You must either send data to Max from the Arduino or send data from Max to the Arduino (or both!).
Places to begin:
example Max files in Help > Reference or Help > Examples folder
combine a preexisting Max patch with the serial patches I give you below
Demonstrate your project during class : share your Max patch and Arduino Sketch.
Sparkfun Digital Sandbox
We'll be writing Arduino code (text) rather than using the graphical programming language called ArduBlock.
Setup
Install FTDI (USB) Drivers = https://www.ftdichip.com/Drivers/VCP.htm
Install the Arduino IDE = https://www.arduino.cc/en/Main/Software
Install the Digital Sandbox board definitions = https://learn.sparkfun.com/tutorials/installing-arduino-ide/board-add-ons-with-arduino-board-manager
Getting Started with the Sandbox Alone
https://learn.sparkfun.com/tutorials/digital-sandbox-arduino-companion
start with 1. Exploring Blink
then do 2. Multi-Blink
realize that 1. Exploring Blink should have run pinMode() in the setup() to declare D13 as OUTPUT (see this article for more info)
16. Servo Sweeper = make sure the "charge" switch on the Digital SandBox is in the "off" position
Digital Sandbox + Max
How serial communication works = https://learn.sparkfun.com/tutorials/serial-communication/all
Here's another helpful tutorial = https://youtu.be/6bT3G4Mep7E
In the ZIP folder below, Windows users may need to edit the Max files due to differences between how Mac and Windows treat the end of the line (LF and CR) ... I'll fix it soon
Example files to download:
Hive 2.0 = https://hopkinsduffield.com/2014/12/11/hive-2-0-documentation/
Last updated