Matthew McClain

Arduino for Artists: Sketch Downloads

Click on the following links to download the sketch files for the Arduino and Processing sketches in the book. Please note that all Arduino and Processing sketch files must be saved inside a folder with an identical name in order to work - opening the file directly will prompt a pop-up notification that will give you the option to automatically place the sketch inside such a folder, after which the sketch will work as normal.

Part 1: Arduino Basics

Chapter 1: Your First Arduino Sketch

Blink

Chapter 2: Your First Electronic Circuit

Blink (for external LED)

Chapter 3: Adding a Push Button

Button

Chapter 4: The Serial Monitor

Serial_Write

Serial_Read

Blink_Testing

Chapter 5: Functions

First_Function

Variable_Blink

Variable_Blink_Without_Function

Multiplier

Multiplier_Multiple_Definitions

Part 2: Motion

Chapter 6: Infrared Distance Sensors

IR Distance Sensor

Chapter 7: Playing With DC Motors

DC Motor

Chapter 8: Playing With Servo Motors

Servo_Motor

Part 3: Light and Color

Chapter 10: Programming LED Strips

LED_Strip_Wipe

LED_Strip_EraseAll

LED_Strip_Wipe_Parameters

LED_Strip_Color_Tools

LED_Strip_Rainbow_Wipe

LED_Strip_Rainbow

LED_Strip_ColorWheelParticles

Chapter 11: LED Strips: Advanced Hardware

3_LED_Strip_Wipe

Chapter 12: Arduino + Processing

Processing_Connection_Test

Arduino_Connection_Test

Arduino_Change_Background

Processing_Change_Background