Week 4 Homework: Final Plush Nightlights Due & Arduino Homework 2

Your plush nightlight projects are due on the blog Tuesday 10/1 by 8pm. Include:

  • Your plush’s final photos in context
  • Your plush’s story (who’s it for/why does it exist/what problem does it solve) – at least two paragraphs, edited by your editing group (list at the bottom of this post)
  • Process photos and sketches
  • Circuit diagram
  • Title: “[Project Title] (Plush Night Light)” for example: “CuddleMonster 4000 (Plush Night Light)”
  • blog post category: Plush Night Light

In class next time, you will present your project from the screen (5-7 minutes each), and should also bring your plush to show the class (and pass around if you are comfortable doing so).

Additional homework this week (due on the blog 8pm Wednesday 10/1):

Complete the following exercises from the Input/Output lesson of the Arduino Class:

  1. Digital Input
  2. The Serial Monitor
  3. Analog Input
  4. Compose a circuit and Arduino sketch of your own, based on examples you’ve completed so far. Your original composition should print something useful to the serial monitor and solve one of the following:
    • two buttons control one LED (on and off)
    • pressing button changes fading animation speed
    • pressing button changes number of LEDs used in for loop iteration
    • three buttons control RGB LEDs to make a color mixer

Post these exercises in the “Arduino Homework Exercises” category on the blog (one post with all exercises titled “[your name]’s Arduino Homework 2).

Include your code in your post by using the html <pre> </pre> tags. Edit this post for an example.

int ledPin = 13; // choose the pin for the LED
int inputPin1 = 3; // button 1
int inputPin2 = 2; // button 2
 
void setup() {
  pinMode(ledPin, OUTPUT); // declare LED as output
  pinMode(inputPin1, INPUT_PULLUP); // make button 1 an input
  pinMode(inputPin2, INPUT_PULLUP); // make button 2 an input
}
 
void loop(){
  if (digitalRead(inputPin1) == LOW) {
    digitalWrite(ledPin, LOW); // turn LED OFF
  } else if (digitalRead(inputPin2) == LOW) {
    digitalWrite(ledPin, HIGH); // turn LED ON
  }
}

Editing groups! Please have the other two people in your group review your plush night light blog text, and make edits based on their feedback:

Regena, Yufeng, and Crystal

Virginia, Wen, and Shuyi

Zhenxuan, Bethany, and Bi

Danna, Mia, and Siddhant

Xiohan, Baoqi and KG

Karan, Joey, and Danica

Author: Becky Stern

Making and sharing are my two biggest passions! I'm a Content Creator at Autodesk and part-time faculty at SVA. Check out all my Instructables and find me as @bekathwia on YouTube, Twitter, and Instagram.