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
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
3 ways to visualize the result
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
MATLAB Real time signal acquisition and processing Ex. Real time plotting of distance on MATLAB using Arduino Uno & PING
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
Comparisons ProsCons Touch shieldPortable, more like a deviceCost, hard to process data MATLABPowerful data handlingMore code writing LabVIEWGreat interface and librariesNot portable