Git Product home page Git Product logo

idd-fa19-lab4's Introduction

Paper Puppets

A lab report by Alana C. Student

In this Report

To submit your lab, clone this repository. You'll need to describe your design, include a video of your paper display in operation, and upload any code you wrote to make it move.

Part A. Actuating DC motors

Link to a video of your virbation motor

vibrating_motor

Part B. Actuating Servo motors

Part 1. Connect the Servo to your breadboard

a. Which color wires correspond to power, ground and signal?

Red: Power

Brown: Ground

Orange: PWM Pin (10)

Part 2. Connect the Servo to your Arduino

a. Which Arduino pin should the signal line of the servo be attached to?

Any PWM Pin (e.g. 9,10,11)

b. What aspects of the Servo code control angle or speed?

The control angle is controlled by the pos variable, and the speed is controlled by delay(X). For example, in the sweep example code's for loop shown below, the servo moves to the angle in the pos variable in Xms amount of time from delay(X).

for (pos = 0; pos <=180; pos +=1){

myservo.write(pos);

delay(15);

}

for (pos = 180; pos>=0; pos -=1){

myservo.write(pos);

delay(15);

}

Part C. Integrating input and output

Include a photo/movie of your raw circuit in action.

This servo moves based on the potentiometer reading, where the 0-1023 analog input values are mapped to the 0-180 degrees that the servo will move. servo

Part D. Paper puppet

a. Make a video of your proto puppet.

proto_puppet

Part E. Make it your own

a. Make a video of your final design.

This design is an updated version of my data logger from lab 3, where the FSR measures how much force is applied which corresponds to how much attention you are giving the puppet. When too much attention is given, the puppet's arms move above its head, when not enough attention is given, the puppet's arms move below its head, and when the right amount of attention is given, the puppet's arms stick straight out. Likewise, once the data logging is complete and the lcd display presents what percent of attention was received in total, if the puppet received too much attention, it waves its arms rapidly above its head 5 times, if the puppet received too little attention, it waves its arms rapidly below its head 5 times, and if it received the perfect amount of attention, it waves its arms more slowly for the full 0 to 180 degree range.

too_much

perfect_amount

too_little

code

idd-fa19-lab4's People

Contributors

alanacrognale avatar zamfi avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.