Monthly Archives: April 2015

Code Plan

Code Plan

  • Explain basic interaction
  • List Components
  • How each part is going to operate in your project
    • Be precise

Examples

Explanation

User presses the button and cycles through 3 different patterns

Patterns:

  • Blink – 500ms ¬†second delay
  • Fade up then Fade down
  • Off

Components

  • Push Button
  • LED

 

Pseudocode

Push Button

  • Read Button
    • Increase counter
      • Register click on change from high to low

 

Patterns:

Blink

    • Turn LED On
    • Delay
    • Turn LED OFF
    • Delay

Fade up then Fade down

    • Loop increase LED analogwrite by 1 till 255
      • small delay after each increase
    • Loop decrease LED analogwrite by 1 from 255 to 0

OFF

 

Working with simple rf radios

rf reciever –¬†https://www.sparkfun.com/products/10533

rf transmitter –¬†https://www.sparkfun.com/products/10535

A good tutorial on the rf radios.

 

rfradio

These radios operate at a lower baud rate then what we are used to. Normally these radios will operate safely around 1200 bps.

Examples

SimpleRftransmit РSend and Receive an integer. (This examples contains 2 files, the main: simpleRFTransmit and writeRead which contains several functions)

Advanced_receiver and Advanced_transmitter Р This example uses the RadioHead Library. It allows more complex messages to be sent with these transmitters.

How to install Arduino Libraries.

  1. Download the library
  2. Open Arduino
  3. Select Sketch -> Import Library -> Add Library
  4. Select the library zip file

 

Tutorial

DUE April 29

You have to write a tutorial based of a component you are going to use in your project.

  1. Image of component
  2. What does the component do?
  3. How the sensor works?
  4. Diagram of connecting to Arduino
  5. Getting started program
  6. Any Issues or quirks with the sensor

 

Examples

http://oddgui.com/working-with-rotary-encoders/

https://learn.sparkfun.com/tutorials/how-to-use-a-breadboard

https://learn.adafruit.com/