Site Tools


workshops:archived:arduino_beginners_workshop_1

Arduino Beginners Workshop Notes - 2012 Workshop

Planned Outline

First Day

  • Membership sign up - http://morphia.mhv/mhvdb/signup (link only works inside the space's network)
  • Workshop induction
  • Arduino software - install from http://arduino.cc or from local network share.
  • First part of comic - http://www.jodyculkin.com/comics-2/introduction-to-arduino (printed copies & local network share also.)
  • Finish getting everyone up and running
  • Everyone's Arduino blinking, follow the steps in the comic for first Blink Example (page ??)
  • Explain setup() and loop(), mess with the delays and see what happens
  • Next section is breadboarding LEDs & resistors, word about electricity first:
  • Basics of electricity
  • Don't worry about understanding everything in the first pages of the comic right away, but ask us if something is bothering you.
  • Working from USB is pretty safe
  • Some components have positive and negative sides (electric current can go the wrong way)
  • Some components (LEDs) need resistors to protect them (some devices can get too much electric current through them)
  • Breadboard with LEDs & resistors.
  • Double check wiring before hooking it up to the Arduino
  • Go on in the comic - switches, potentiometers.
  • This is a good time to go back and read start of comic for some electricity principles.
  • Arduino Examples, Arduino Learning page - http://arduino.cc/en/Tutorial/HomePage
  • Serial output - write a simple sketch to output serial.
  • Go through a piezo output as a group
  • Find the Arduino tutorial for speakers, write a sketch, upload it.
  • Temperature/humidity sensor DHT-11 - downloading a library, copying their sample code.
  • This one is quite complicated and has a lot of steps, but it's as hard as it will get today.
  • Go through some example sensors as a group (“code dojo” style?)
  • At least one “analog output” sensor wired to an analog input - flash an LED based on a level

Second Day

See ArduinoWorkshopSessionTwo

  • Explain every sensor
  • Program logic & variables
  • Maybe do a project together that combines 2-3 sensors into one thing?
  • Talk about people's ideas for projects, go into groups?

Actual Program as it ran

Day 1

Vague Schedule

  • Introductons
  • Wiki page and wifi
  • Membership sign up - http://morphia.mhv/mhvdb/signup (link only works inside the space's network)
  • Workshop induction
  • Arduino software - install from http://arduino.cc or from local network share.
  • First part of comic - http://www.jodyculkin.com/comics-2/introduction-to-arduino (printed copies & local network share also.)
  • Finish getting everyone up and running
  • Everyone's Arduino blinking, follow the steps in the comic for first Blink Example (page ??)
  • Explain setup() and loop(), mess with the delays and see what happens
  • Next section is breadboarding LEDs & resistors, word about electricity first:
  • Basics of electricity
    • Don't worry about understanding everything in the first pages of the comic right away, but ask us if something is bothering you.
    • Working from USB is pretty safe
    • Some components have positive and negative sides (electric current can go the wrong way)
    • Some components (LEDs) need resistors to protect them (some devices can get too much electric current through them)
  • Breadboard with LEDs & resistors.
    • Double check wiring before hooking it up to the Arduino

Day 2

Schedule

  • Check everyone's progress in the comic - switches, potentiometers.
  • This is a good time to go back and read start of comic for some electricity principles - resistance, identifying a resistor, choosing resistor for LEDs.
  • Where to find information - Arduino Examples, Arduino Learning page - http://arduino.cc/en/Tutorial/HomePage , googling w/ Arduino
  • Sensor identification - DxArduinoModulePack and googling chip names.
  • Split into confident programmers & beginner programmers. Suggest confident programmers work in pair or small groups. Pair programming.

Beginner Programming

  • Serial output - write a simple sketch to output serial. Essential for prototyping/debugging/iterating.
  • setup() & loop() - Serial.println(“Hello World”) demo (different in setup() as in loop()
  • if statements
  • variables (making a button press counter)
  • while loops, for loops (button pressed 10 times before the light comes on.)
  • Go through a piezo output as a group
    • Find the Arduino tutorial for speakers, write a sketch, upload it.
  • Go through some example sensors as a group - working together
    • At least one “analog output” sensor wired to an analog input - flash an LED based on a level

Next Session

  • Temperature/humidity sensor DHT-11 - downloading a library, copying their sample code.
    • This one is quite complicated and has a lot of steps, but it's as hard as it will get today.

Day 3

Rundown

  • Membership
  • New bits

Rest in no particular order:

  • how to choose the right resistor
  • happy to work on something together as a group, similar to the last workshop
  • get the buzzer thing to work
  • look at ways to fix the 'servo jitter' that some people were seeing. Using a capacitor works, but Gene also found that using 'three horizontal bars on the breadboard as “commons” to connect the Pot, Servo, and Arduino' worked, so maybe try that out too.
  • get a KY-032 Proximity Sensor working
  • see if any of the heartbeat sensors work
  • get an RGB LED to work
  • is it possible to drive more than one servo from the arduino?
  • connecting the arduino to an external power source
  • dimming LED's
workshops/archived/arduino_beginners_workshop_1.txt · Last modified: 2014/11/11 01:23 by jambulance