Thursday, July 15, 2010

Arduino Duemilanove






Summary
MicrocontrollerATmega328 (datasheet)
Operating Voltage5V
Input Voltage (recommended)7-12V
Input Voltage (limits)6-20V
Digital I/O Pins14 (of which 6 provide PWM output)
Analog Input Pins6
DC Current per I/O Pin40 mA
DC Current for 3.3V Pin50 mA
Flash Memory16 KB (ATmega168) or 32 KB (ATmega328) of which 2 KB used by bootloader
SRAM1 KB (ATmega168) or 2 KB (ATmega328)
EEPROM512 bytes (ATmega168) or 1 KB (ATmega328)
Clock Speed16 MHz

Schematic & Reference Design

EAGLE files: arduino-duemilanove-reference-design.zip

Schematic: arduino-duemilanove-schematic.pdf

Wednesday, July 14, 2010

Component Testing
  • Spectra Symbol flex sensor
    Type: Resistive
    0 deg bend: ~8k ohm
    180 deg bend: ~16k ohm

  • Vibe motor (manu?)
    Seemed like the operating voltage range was between:
    1.5V@60mA - 3.0V@200mA
    -> The motor would quickly heat up (within 10 secs) while running at 3V
    -> Can the Arduino supply this much?

  • Regal mini speaker
    8 ohm, 0.1 W
    Very good high freq. response @ 1 Vpp

  • Crouzet SSR - M-0ACS-315, ELE-0937
    Input: 3.0V@3mA - 8.0V@27mA (15mA@5V)
    Output: 1A, 24-140 VAC
    Freq Response: Start to see roll-off @ ~1MHz

  • Thermister - 103 (?)
    Normal Temp (~70 deg): R = ~10k
    Between fingers for 10 secs: R = 7.3k

  • Photoresistor
    Completely dark: ~1 Mohm
    Indoor flourescent light: ~700 ohm
    Finger over device while indoors: ~4k ohm

Connector Search

Almost all my components are 2-conductor.
Exceptions are:
-IR rangers
-Pots
-Multi-colored LEDs

I'm thinking because this is the case, and because we have limited board space, I was going to use 2.5mm submini phone jacks and plugs for connecting all the sensors and actuators.




Pros:
  • I can buy them in mono or stereo, giving 2 or 3 conductors each.
  • I can buy the cable assemblies already made up for ~2.60 ea. Then I will only need to attach the sensor/actuator, plus an inline resistor for some sensors that require it.
  • I can also buy very small jacks that are either SMT or through-hole, allowing for 14 digital I/O and 6 Analog inputs.
Cons:
  • Just like headphones, the molded plug can become loose on its wires, possibly loosing connection.

Another option would be to use board connectors, similar to what is used for connecting computer fans to motherboards, or really any board to board connection. Only problem with these is that the crimp-style wire connection tends to be a little fragile.

Tomorrow will be tracking down one or two more solutions so that I can order these to have a mock-up, and also to get a feel for the durability of these solutions.

~JWilly

Tuesday, July 13, 2010

The beginning...

The goal of this project is to develop the Tangible Experience Design course here at RIT to better enable Industrial Design students to grasp real-world programming techniques by controlling a microcontroller and sensors and actuators. The task that I, the electronics specialist, must do is to design the base for students to work on, removing some of the engineering aspects to allow the students to focus on control through programming.

The Arduino Duemilanove ATmega328 Starter Kit was chosen to be the central microcontroller board, with sensors and actuators plugging into a daughter board, electrically connected to either the Analog inputs or the Digital outputs. Some simple "glue" circuitry will be required to interface all the sensors to the microcontroller's inputs.


Arduino

From http://www.sparkfun.com
Starter Kit for Arduino - Flex (DEV-09905) 1 @ $59.95
http://www.sparkfun.com/commerce/product_info.php?products_id=9905



Not all of the components seen in the picture will be used for this project, but I'm not setting boundaries at this point.


Development Requirements

  • Transparency – able to see inside enclosure

  • Easy connect/disconnect of sensors, actuators

  • Students won't be building on breadboard, just plugging components into a shield (daughter board)

  • 120VAC Plugs + relay contained/shielded for safety


  1. SSR Relay – AC plug unit

  2. Easy connections for sensors + actuators

  3. Sensors

  • Pressure (Analog)

  • Flex sensor (Analog)

  • Photoresistor (Analog)

  • Thermistor (Analog)

  • Switches (Digital)

  • IR Rangers (Digital?)

  • Potentiometers (Analog)

  1. Actuators

  • Speaker (Digital, PWM)

  • Vibe motors (opt) (Digital, PWM)

  • LEDs (Digital, PWM)

  • SSR + wall plug (Digital, PWM)


The current collection of sensors and other assorted materials is shown in the picture below. What these are to do is still up in the air. Also, a rough sketch of the Arduino board with a daughter board on top (usually called a shield, for some odd reason), with an idea of the interconnect to sensors/actuators.





Tomorrow's task will be to nail down a solid system structure, find interconnects, and characterize the sensors and actuators.

~JWilly