100F10_Arduino and Sensors

100F10_Arduino and Sensors - The Arduino Controller...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: The Arduino Controller & Sensors September 24, 2010 Instructor: David Lovell E-mail: lovell@umd.edu The control of electro- mechanical devices that can perform autonomous or preprogrammed tasks. Robotics MOTIVATION Outline Hardware The Arduino Sensors Homebuilt sensors/actuators Software Arduino Programming Pseudocode Applications Robotics Hovercraft OVERVIEW The Arduino Duemilanove Microcontroller HARDWARE Atmel ATmega 328P 14 digital I/O ports TTL voltage levels 40 mA source/sink 6 pins support PWM output 6 analog input ports 0-5V 10-bit A/D conversion Programmable Arduino C/C++, avr-gcc, avrdude, AVR Studio HARDWARE Digital I/O ports (0-13) 0.35 0.8 2.0 3.3 5.0 V OL V IL V IH V OH TTL Voltage Levels: OUT OUTPUT INPUT LOGIC IN LOGIC Digital Output Pulse Width Modulation HARDWARE This is a way to reduce power to motors, LEDs, etc., by reducing the time- averaged voltage level of a digital output pins 3,5,6,9,10,11 only. If using a transistor driver, this signal can feed the transistor. This is not possible with a relay! Frequency ~500 Hz; Period ~2 ms Digital Pulse Input HARDWARE Measures the length of pulses in microseconds: A: pulseIn(7, HIGH) B: pulse goes high, timer starts C: pulse returns low, timer stops A B C A: pulseIn(7, LOW) B: pulse goes low, timer starts C: pulse returns high, timer stops A B C HARDWARE...
View Full Document

Page1 / 28

100F10_Arduino and Sensors - The Arduino Controller...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online