Top Banner
BME/ECE 462 Presentation II Arduino basics & Visual display Yue Yin & Chenchen Qi 09/18/2014
9

BME/ECE 462 Presentation II Arduino basics & Visual display Yue Yin & Chenchen Qi 09/18/2014.

Dec 18, 2015

Download

Documents

Abner Harper
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: BME/ECE 462 Presentation II Arduino basics & Visual display Yue Yin & Chenchen Qi 09/18/2014.

BME/ECE 462 Presentation II

Arduino basics & Visual display

Yue Yin & Chenchen Qi

09/18/2014

Page 2: 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\

Page 3: BME/ECE 462 Presentation II Arduino basics & Visual display Yue Yin & Chenchen Qi 09/18/2014.

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

Page 4: BME/ECE 462 Presentation II Arduino basics & Visual display Yue Yin & Chenchen Qi 09/18/2014.

3 ways to visualize the result

Page 5: BME/ECE 462 Presentation II Arduino basics & Visual display Yue Yin & Chenchen Qi 09/18/2014.

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

Page 6: BME/ECE 462 Presentation II Arduino basics & Visual display Yue Yin & Chenchen Qi 09/18/2014.

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

Page 7: BME/ECE 462 Presentation II Arduino basics & Visual display Yue Yin & Chenchen Qi 09/18/2014.

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

Page 8: BME/ECE 462 Presentation II Arduino basics & Visual display Yue Yin & Chenchen Qi 09/18/2014.
Page 9: BME/ECE 462 Presentation II Arduino basics & Visual display Yue Yin & Chenchen Qi 09/18/2014.

Comparisons

Pros Cons

Touch shield Portable, more like a device Cost, hard to process data

MATLAB Powerful data handling More code writing

LabVIEW Great interface and libraries Not portable