esc100 design studio
Download
Skip this Video
Download Presentation
ESC100 Design Studio

Loading in 2 Seconds...

play fullscreen
1 / 9

ESC100 Design Studio - PowerPoint PPT Presentation


  • 112 Views
  • Uploaded on

ESC100 Design Studio. Session 3: Arduino Circuitry and Control Prof Anderson, Section 2. preliminaries. Collect Memo Labs Return HW 2(solutions on line) Q About HW 3? Lecture Material? HW4 online today – review and see me tomorrow if you have questions! Use of Office Hours.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' ESC100 Design Studio' - rufus


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
esc100 design studio

ESC100 Design Studio

Session 3: Arduino Circuitry and Control

Prof Anderson, Section 2

preliminaries
preliminaries

Collect Memo Labs

Return HW 2(solutions on line)

Q About HW 3? Lecture Material?

HW4 online today – review and see me tomorrow if you have questions!

Use of Office Hours

amazing engineering
amazing engineering

www.nytimes.com

Learning to FLY

today s exercise
Today’s Exercise

www.sparkfun.com

More Arduino practice.

writingk-8.wikispaces.com

procedure
Procedure

Part 1: Stoplight Design

  • Review the sketch for Circuit 3 (attached) with your lab partner.
  • Review Circuit 3 in the SIK Guide. Try to build the circuit using the circuit diagram on p 28 as your only guide.
  • Add a push button to your circuit.
  • Write your own sketch so that the LED acts like a traffic light and the button acts like a sensor on a cross street and follows the following sequence:
    • LED is normally green
    • When button is pushed there is a 2 sec delay and then the LED turns yellow
    • LED remains yellow for 4 sec and then LED turns red.
    • LED remains red for 8 sec and then the LED returns to normal (Green)
  • Note: Use Circuit 03 and the sensor control code from last week as a guide.
  • Demonstrate functionality to your lab instructor and save your sketch under a new name.
procedure1
Procedure

Part 2: Motor Control

  • Review the sketch for Circuit 12 (attached) with your lab partner.
  • Review Circuit 12 in the SIK Guide. Try to build the circuit using the circuit diagram on p 64 as your only guide. Connect to pin 6 instead of pin 9.
  • Modify sketch for circuit 12 so you use pin 6 instead of pin 9.
  • Run the modified code and verify that it works
  • Add a potentiometer
  • Write your own sketch to use the potentiometer to control the speed of the motor.
  • Demonstrate functionality to your lab instructor and save your sketch under a new name.
  • NOTE: DON’T RUSH – TAKE THE TIME TO LEARN THIS SO YOU CAN APPLY IT TO YOUR PROJECT!
review push buttons
Review Push Buttons

In Setup: pinMode(buttonPin,INPUT_PULLUP);

In Loop :buttonVal=digitalRead(buttonPin); // (1=not pushed 0=pushed))

if (buttonVal==LOW){ //If the button has been pushed

//do something here

}

reporting style
Reporting Style

Individual Memo Lab Report – Due at start of lab next week.

Review guidelines, see me to discuss

get started
Get started!

Work in groups of two:

  • Team 1a: Barhoush & Bauer-Moshi
  • Team 2a: Costa & Fontaine
  • Team 3a: Forti & Gutierrez
  • Team 4a: Kaljulaid & Leone
  • Team 5a: Manus & Matthews
  • Team 1b: McDonnell & Michel
  • Team 2b: Noonan & Rose
  • Team 3b: Schwartz & Ullrich
  • Team 4b: Wojtowicz & Wood
ad