BME/ECE 462 Presentation II Arduino basics & Visual display Yue Yin & Chenchen Qi 09/18/2014.
-
Upload
abner-harper -
Category
Documents
-
view
219 -
download
0
Transcript of BME/ECE 462 Presentation II Arduino basics & Visual display Yue Yin & Chenchen Qi 09/18/2014.
Arduino UNO hardware
• Microcontroller: Atmega328
• Operating Voltage: 5V
• Input Voltage (recommended): 7-12V
• Digital I/O Pins: 14 (of which 6 provide PWM output)
• Analog Input Pins: 6
• DC Current per I/O Pin: 40 mA
• DC Current for 3.3V Pin: 50 mA
• Flash Memory: 32 KB
• Clock Speed: 16 MHz
http://arduino-info.wikispaces.com/QuickRef#pwr\
Sample code
Sensor Pin is defined as analog pin 0
Function returns no value; Starts a program and sets initial values
Baud rate is 9600
Prints data to the serial port;Reads the value from specified analog pin
Pauses for 2 ms
http://www.youtube.com/watch?v=10-tkg5Qe9c
Touch shield for Arduino
• 2.8” diagonal color touchscreen TFT
• 240x320 resolution, 18-bit (262,000) color
• High speed SPI display with digital SPI touchscreen driver
• The display uses digital pins 13-9
• Touchscreen controller requires digital pin 8
http://www.youtube.com/watch?v=3exmQfjo-P8
MATLAB
• Real time signal acquisition and processing
• Ex. Real time plotting of distance on MATLAB using Arduino Uno & PING
http://mechatronicstutorials.blogspot.com/2014/06/real-time-plotting-of-distance-on.html
LabVIEW
• Visual programming language
• Data acquisition
• Built-in functions/libraries
• NI LabVIEW Interface for Arduino Toolkit
- Easily control or acquire data from Arduino microcontroller
- Develop algorithm to control Arduino hardware
- Present findings on polished UI
http://sine.ni.com/nips/cds/view/p/lang/en/nid/209835