Skip to content

APCSLowell/ArduinoController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Use other features of an Adafruit Circuit Playground as an input device in a Processing program


In this Arduino lab you will write a program that uses other features of the Adafruit Circuit Playground as an controller for a Processing program. The circuit playground has 16 inputs. Adafruit has a detailed description here. In addition to the light sensor that we used in the previous assignment, the circuit playground also has a:

  • Temperature Sensor
  • Microphone Audio Sensor
  • Motion Sensor
  • A 3-axis accelerometer
  • Capacitive Touch sensor
  • Two large left and right buttons
  • Slide switch

Here's a sample program that will print the values of 16 inputs. Run the program and then press, touch and manipulate the various sensors to see how they work.

import processing.serial.*;
import cc.arduino.*;
Arduino arduino;

public void setup() {
  size(100, 100);
  arduino = new Arduino(this, Arduino.list()[0], 57600); //change the [0] to a [1] or [2] etc. if your program doesn't work
}

public void draw() {
  background(192);
  for(int i = 0; i < 16; i++)
    System.out.print(i+" "+arduino.analogRead(i) + "\t");
  System.out.println();
}

Write your own program

Using the sample program as a guide, write your own program that uses one or more of the inputs. You may find slides 117 - 120 of the apjavaProcessing slide presentation helpful. Your program doesn't have to work or look like any other, you can add more features to your previous virtual pet program or create a new one. Have fun and be creative!

When you are happy with your program, have a friend make a short video of you using your program. The video need only show your hand, the arduino and your program's output, please don't include anyone's face in the video. Convert the video to an animated gif using a free converter like ezgif.com. Use ezgif's cut video or a similar option to edit your video to under 10 seconds and less than 25MB. Upload your animated gif to your VirtualPet repository. Submit the link to your gif to Google Classroom. Don't forget to click the Mark as done button.

Samples of Student Work

Zoey
Jocelyn
Viva
Kaitlin
Tiffany
Michelle
Jimmy
Alex
Cameron
Mikey
Nash
Federico
Koey
Kenny
Leah
Albert
Tiffany
Keneth
Pansy
Johnny
Chris
Sam
Tyler
Karina
Bruno
Damian
Paolo
William
Alvin
Christina
Haden
Joanne
Irisa
Christopher
Wing
Caitlyn
Breanna
Matthew
Ye
Van
Joshua
Edward
Aiden
Andrew
Jeffrey
Eric
Dylan
Mira
Austin
Jason
Ivana
Gary
Emily
Akemi
William
Stephen
Daniel
Andrew
Luke
Liam
Hayden
Jacob
Noella
Caleb
Gabriel
Eric
Joyce
Vivian
Lexian
Raina
Rafael
Nathaniel
Nicolas
Brian
Justin
Stella
Wendy
Joseph
Joshua
Brianna
Justin
Qiaoyan
Antonio
Caden
TommyJun
David
Darren
Emily
Brennan
Jennifer
Deion
Aaron
Jackie
Christina
Joselino
Nathan
Munkhtushie
Kyle
Noelle
Andy
Audrey
William
Jenna
Ryan
Nathan
Ivy
Gabriel
Joyce
Pyry
Mika
Sophia
Ethan
Emely
Nate
Koen
Annie
Brayden
Jason
Ivan
Tobias
James
Kathleen
Juan
Toby
Ryan
Ryan
Evangeline
Miriam
Loren
Sally
Tennyson
Allynaraizel
Alvin
Sonia
AndreiRock
Maxwell
Humphrey
Hannah Fiona
Isaac
Karla
Saw
Aiden
Theo
Tara
Maya
Dylan
Nicholas
Samson
Patrick
Diego
Luca
Cuiyin
Laura
Noel
YiYuan
Artiom
Marina
Kevin
Samantha
Charlotte
Dylan
Joanna
Andy
Victor
Ivan
Kaijun
Michelle
Kyle
Jerry
Gage
Angela
Diego
Ivona
Sandy
Johnathan
KaloonRidge
Robin
Kayla
Justin
Leanna
Philix
Lixin
Audrey
Emily
Haoheng
Gabriel
Alejandro
Angela
Kelvin
Lily
Aaron
Terrance
Jessica
Grace
Daniil
Matthew
Leanna
Andre
Felicia
Calvin
Aaron
Justin
Kyle
Calvin
Alessandra
Yuxi
Aaron
Hao
Katie
Benjamin
Etienne
Matthew
Wanyan
Kaitlyn
Austin
Tania
Evan
Xiaoyi
Marie-Fleur
Richard
Amy
Lisa
Liheng
Ethan
Ekaterina
Cole
Alice
Raymond
Davyn
Francisco
Omara
Lucas
Jenny
Justin
Ngoc
Yuki
Niko
Naomi
Casper
Charlene
Stanley
Ella
Noah
Yasmine
Ruibin
Wingyan
Joseph
Lilah Jason Ethan Sebastian Ella Myles Oliver Jaden Austin Alyssa Zachary Finley Jamie Jacky Stephanie Jeffrey Zhixuan Jonathan Jaylan Lotusseanna Shea Yatlong Luca Xinuo Blake Cherise Connie Connor Jocelyn Kyle Alan Kunlin

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published