SlideShare a Scribd company logo
ARDUINO ENVIRONMENT
TUTORIAL
LAST PICKS
INTRODUCTION TO ARDUINO
• Open-source electronics platform (original source
code is freely available to be redistributed and
modified)
• Arduino Boards: microcontroller that reads input
and turns into outputs (i.e. finger on button turns
on an LED light)
• Instruct Arduino Board using Arduino Programming
Language and Arduino Software (IDE) communicating
through the board’s microcontroller
• Void setup() & Void Loop();
[1]
ARDUINO UNO
• Microcontroller with:
• 14 digital inputs
• 6 analog inputs with 10-bit resolution
• Can be:
• Purchased on eBay for $6
• Programmed in C
• Interfaced to a computer through USB
• Interfaced to many sensors
[3]
TUTORIAL: SETUP
• Buy Arduino UNO board from Adafruit, Element14, or another
Arduino Distributor
• Download the software in this link:
https://www.arduino.cc/en/Main/Software
• Buy a starter electronics kit for building circuits (Optional):
https://www.amazon.com/16Hertz-Electronics-Breadboard-
Resistors-Raspberry/dp/B00J4RN61A
• Launch downloaded software - Arduino IDE
TUTORIAL: INITIALIZING
• Click on Arduino Uno in the
Boards
option under the Tools tab
• Begin writing program:
• Example shown later
TUTORIAL: UPLOADING TO BOARD
• Save your code
• Connect the board to the PC through the microcontroller and USB
port
• Upload to Arduino board by clicking the arrow
• Provide Power to the Arduino board to run indefinitely
TUTORIAL: SHUTTING DOWN
• Remove Power Source to stop the program
• Exit software anytime after upload to board
AN ARDUINO EXAMPLE
Stoplight
[2]
CODE
int red = 10;
int yellow = 9;
int green = 8;
void setup() {
pinMode(red,OUTPUT);
pinMode(yellow,OUTPUT);
pinMode(green,OUTPUT);
digitalWrite(green,HIGH);
Serial.begin(9600);
digitalWrite(green,HIGH);
Serial.println("Begin green
light");
delay(2000);
}
void loop() {
changeLights();
delay(3000);
}
[2]
void changeLights(){
Serial.println("Light Changes");
Serial.println("Yellow");
digitalWrite(green,LOW);
digitalWrite(yellow,HIGH);
delay(3000);
Serial.println("Red");
digitalWrite(yellow,LOW);
digitalWrite(red,HIGH);
delay(5000);
Serial.println("Green");
digitalWrite(yellow,LOW);
digitalWrite(red,LOW);
digitalWrite(green,HIGH);
delay(3000);
}
ARDUINO IN INDUSTRIAL ENGINEERING
• Arduino-based data acquisition
• Interfacing Arduino to Excel, MATLAB, and
LabVIEW
• Arduino-based tensile tester
• Tensile testing done to measure
mechanical properties
• Two parameters measured
• Load applied to sample
• Sample’s extension
• Reprogramming the robotic arm using
Arduino
• Project designed to sort glass and non-
glass waste
• Arm controlled by Arduino microcontroller
• Optical sensor used to distinguish between
parts
Tensile tester wiring
configuration for 5 kg load
cell and ultrasonic sensor
OTHER ARDUINO APPLICATIONS
• Break timer using a Mac computer
• Macs can’t communicate with motors, robots, sensors, etc without
something acting as a translator
• BreakTimer enables Mac to tell whether someone is sitting and if he/she
has been sitting for too long
• Real-time location systems
• GPS continually takes input data from satellite and stores longitude and
latitude
• Arduino Uno takes last received coordinates from GpsGate and sends
message to Google Earth
• Current location can then be shown on platform of choice
• Processing and image compression
• Arduino used as control element to integrate proposed algorithms
• Arduino enables further adjustments
[4], [5], [7]
REFERENCES
[1] Getting Started | Foundation - Introduction. (n.d.). Retrieved November 27, 2017, from
https://www.arduino.cc/en/Guide/Introduction
[2] Lee, J., Stegner, B., & Coburn, J. (2017, January 06). Arduino Programming For Beginners: The Traffic Light
Controller. Retrieved November 27, 2017, from http://www.makeuseof.com/tag/arduino-traffic-light-
controller/
[3] Nichols, D. (2017). Arduino-Based Data Acquisition into Excel, LabVIEW, and MATLAB. Physics Teacher,
55(4), 226-227. doi:10.1119/1.4978720
[4] Jepson, B. (2008). Control the World. Macworld, 25(6), 88-90.
[5] Ibrahim, M. M., & Audah, L. (2017). Real-Time Bus Location Monitoring Using Arduino. AIP Conference
Proceedings, 1883(1), 1-10. doi:10.1063/1.5002034
[6] Arrizabalaga, J. H., Simmons, A. D., & Nollert, M. U. (2017). Fabrication of an Economical Arduino-Based
Uniaxial Tensile Tester. Journal Of Chemical Education, 94(4), 530-533.
doi:10.1021/acs.jchemed.6b00639
[7] Lazar, J., Kostolanyova, K., & Bradac, V. (2017). Processing and Image Compression Based on the Platform
Arduino. AIP Conference Proceedings, 1863(1), 1-4. doi:10.1063/1.4992247
[8] Razali, Z. B., Mohamed Mydin M. Abdul, K., Akmal Kadir, M. A., & Daud, M. H. (2017). Reprogramming the

More Related Content

What's hot

Color Recognition with Matlab Image Processing and Matlab Interfacing with Ar...
Color Recognition with Matlab Image Processing and Matlab Interfacing with Ar...Color Recognition with Matlab Image Processing and Matlab Interfacing with Ar...
Color Recognition with Matlab Image Processing and Matlab Interfacing with Ar...
Sayan Seth
 
Robotics and microcontroller (Introduction to Arduino)
Robotics and microcontroller (Introduction to Arduino)Robotics and microcontroller (Introduction to Arduino)
Robotics and microcontroller (Introduction to Arduino)
Muhammad Bilal
 
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauriArduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Gaurav Pandey
 
LinnStrument : the ultimate open-source hacker instrument
LinnStrument : the ultimate open-source hacker instrumentLinnStrument : the ultimate open-source hacker instrument
LinnStrument : the ultimate open-source hacker instrument
Geert Bevin
 
Multi Sensory Communication 1/2
Multi Sensory Communication 1/2Multi Sensory Communication 1/2
Multi Sensory Communication 1/2
Satoru Tokuhisa
 
Arduino slides
Arduino slidesArduino slides
Arduino slides
sdcharle
 
Arduino
ArduinoArduino
Arduino
ArduinoArduino
From Arduino to LinnStrument
From Arduino to LinnStrumentFrom Arduino to LinnStrument
From Arduino to LinnStrument
Geert Bevin
 
Arduino Introduction Guide 1
Arduino Introduction Guide 1Arduino Introduction Guide 1
Arduino Introduction Guide 1
elketeaches
 
Arduino in Agricoltura -Alessandro Matese
Arduino in Agricoltura -Alessandro MateseArduino in Agricoltura -Alessandro Matese
Arduino in Agricoltura -Alessandro Matese
Alfonso Crisci
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
Omer Kilic
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the Arduino
Wingston
 
Arduino
ArduinoArduino
Arduino
Apu Ghosh
 
Making things sense-Day 2 (May 2011)
Making things sense-Day 2 (May 2011)Making things sense-Day 2 (May 2011)
Making things sense-Day 2 (May 2011)
markumoto
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
Ahmed Sakr
 
Arduino projects-pdf-download-list-jan-2015
Arduino projects-pdf-download-list-jan-2015Arduino projects-pdf-download-list-jan-2015
Arduino projects-pdf-download-list-jan-2015
Hafid Moujane
 
Various input devices showing their features
Various input devices showing their featuresVarious input devices showing their features
Various input devices showing their features
Lavan1997
 
Arduino Intro Guide 2
Arduino Intro Guide 2Arduino Intro Guide 2
Arduino Intro Guide 2
elketeaches
 
Arduino embedded systems and advanced robotics
Arduino embedded systems and advanced roboticsArduino embedded systems and advanced robotics
Arduino embedded systems and advanced robotics
Shubham Bhattacharya
 

What's hot (20)

Color Recognition with Matlab Image Processing and Matlab Interfacing with Ar...
Color Recognition with Matlab Image Processing and Matlab Interfacing with Ar...Color Recognition with Matlab Image Processing and Matlab Interfacing with Ar...
Color Recognition with Matlab Image Processing and Matlab Interfacing with Ar...
 
Robotics and microcontroller (Introduction to Arduino)
Robotics and microcontroller (Introduction to Arduino)Robotics and microcontroller (Introduction to Arduino)
Robotics and microcontroller (Introduction to Arduino)
 
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauriArduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
 
LinnStrument : the ultimate open-source hacker instrument
LinnStrument : the ultimate open-source hacker instrumentLinnStrument : the ultimate open-source hacker instrument
LinnStrument : the ultimate open-source hacker instrument
 
Multi Sensory Communication 1/2
Multi Sensory Communication 1/2Multi Sensory Communication 1/2
Multi Sensory Communication 1/2
 
Arduino slides
Arduino slidesArduino slides
Arduino slides
 
Arduino
ArduinoArduino
Arduino
 
Arduino
ArduinoArduino
Arduino
 
From Arduino to LinnStrument
From Arduino to LinnStrumentFrom Arduino to LinnStrument
From Arduino to LinnStrument
 
Arduino Introduction Guide 1
Arduino Introduction Guide 1Arduino Introduction Guide 1
Arduino Introduction Guide 1
 
Arduino in Agricoltura -Alessandro Matese
Arduino in Agricoltura -Alessandro MateseArduino in Agricoltura -Alessandro Matese
Arduino in Agricoltura -Alessandro Matese
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the Arduino
 
Arduino
ArduinoArduino
Arduino
 
Making things sense-Day 2 (May 2011)
Making things sense-Day 2 (May 2011)Making things sense-Day 2 (May 2011)
Making things sense-Day 2 (May 2011)
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
 
Arduino projects-pdf-download-list-jan-2015
Arduino projects-pdf-download-list-jan-2015Arduino projects-pdf-download-list-jan-2015
Arduino projects-pdf-download-list-jan-2015
 
Various input devices showing their features
Various input devices showing their featuresVarious input devices showing their features
Various input devices showing their features
 
Arduino Intro Guide 2
Arduino Intro Guide 2Arduino Intro Guide 2
Arduino Intro Guide 2
 
Arduino embedded systems and advanced robotics
Arduino embedded systems and advanced roboticsArduino embedded systems and advanced robotics
Arduino embedded systems and advanced robotics
 

Similar to Arduino Environment Tutorial

Introduction to Arduino
Introduction to Arduino Introduction to Arduino
Introduction to Arduino
Dennis Espiritu
 
Arduino
ArduinoArduino
Arduino
Jerin John
 
Arduino day
Arduino dayArduino day
Arduino day
Adedigba Yinka
 
What is Arduino ?
What is Arduino ?What is Arduino ?
What is Arduino ?
Niket Chandrawanshi
 
Introduction to Arduino.pptx
Introduction to Arduino.pptxIntroduction to Arduino.pptx
Introduction to Arduino.pptx
Akshat Bijronia
 
4 Introduction to Arduino.pdf
4 Introduction to Arduino.pdf4 Introduction to Arduino.pdf
4 Introduction to Arduino.pdf
RynefelElopre2
 
Arduino and c programming
Arduino and c programmingArduino and c programming
Arduino and c programming
Punit Goswami
 
Introduction to Arduino Programming: Features of Arduino
Introduction to Arduino Programming: Features of ArduinoIntroduction to Arduino Programming: Features of Arduino
Introduction to Arduino Programming: Features of Arduino
Abhimanyu Sangale
 
IOT WORKSHEET 1.4.pdf
IOT WORKSHEET 1.4.pdfIOT WORKSHEET 1.4.pdf
IOT WORKSHEET 1.4.pdf
MayuRana1
 
Arduino intro.pptx
Arduino intro.pptxArduino intro.pptx
Arduino intro.pptx
AlexRiv4
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
Damien Magoni
 
Arduino
ArduinoArduino
Arduino
ArduinoArduino
Arduino
vipin7vj
 
Interoperability in Internet of Things (IOT)
Interoperability in Internet of Things (IOT)Interoperability in Internet of Things (IOT)
Interoperability in Internet of Things (IOT)
manditalaskar123
 
Building IoT with Arduino Day One
Building IoT with Arduino Day One Building IoT with Arduino Day One
Building IoT with Arduino Day One
Anthony Faustine
 
teststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptxteststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptx
ethannguyen1618
 
arduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdfarduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdf
ssusere5db05
 
Arduino course
Arduino courseArduino course
Arduino course
Ahmed Shelbaya
 
Overview of Arduino by Bamidele Samuel Office.pptx
Overview of Arduino by Bamidele Samuel Office.pptxOverview of Arduino by Bamidele Samuel Office.pptx
Overview of Arduino by Bamidele Samuel Office.pptx
SAMTECH ELECTRONICS CONCEPT
 
Aurdino presentation
Aurdino presentationAurdino presentation
Aurdino presentation
C.Vamsi Krishna
 

Similar to Arduino Environment Tutorial (20)

Introduction to Arduino
Introduction to Arduino Introduction to Arduino
Introduction to Arduino
 
Arduino
ArduinoArduino
Arduino
 
Arduino day
Arduino dayArduino day
Arduino day
 
What is Arduino ?
What is Arduino ?What is Arduino ?
What is Arduino ?
 
Introduction to Arduino.pptx
Introduction to Arduino.pptxIntroduction to Arduino.pptx
Introduction to Arduino.pptx
 
4 Introduction to Arduino.pdf
4 Introduction to Arduino.pdf4 Introduction to Arduino.pdf
4 Introduction to Arduino.pdf
 
Arduino and c programming
Arduino and c programmingArduino and c programming
Arduino and c programming
 
Introduction to Arduino Programming: Features of Arduino
Introduction to Arduino Programming: Features of ArduinoIntroduction to Arduino Programming: Features of Arduino
Introduction to Arduino Programming: Features of Arduino
 
IOT WORKSHEET 1.4.pdf
IOT WORKSHEET 1.4.pdfIOT WORKSHEET 1.4.pdf
IOT WORKSHEET 1.4.pdf
 
Arduino intro.pptx
Arduino intro.pptxArduino intro.pptx
Arduino intro.pptx
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Arduino
ArduinoArduino
Arduino
 
Arduino
ArduinoArduino
Arduino
 
Interoperability in Internet of Things (IOT)
Interoperability in Internet of Things (IOT)Interoperability in Internet of Things (IOT)
Interoperability in Internet of Things (IOT)
 
Building IoT with Arduino Day One
Building IoT with Arduino Day One Building IoT with Arduino Day One
Building IoT with Arduino Day One
 
teststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptxteststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptx
 
arduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdfarduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdf
 
Arduino course
Arduino courseArduino course
Arduino course
 
Overview of Arduino by Bamidele Samuel Office.pptx
Overview of Arduino by Bamidele Samuel Office.pptxOverview of Arduino by Bamidele Samuel Office.pptx
Overview of Arduino by Bamidele Samuel Office.pptx
 
Aurdino presentation
Aurdino presentationAurdino presentation
Aurdino presentation
 

Recently uploaded

5G Radio Network Througput Problem Analysis HCIA.pdf
5G Radio Network Througput Problem Analysis HCIA.pdf5G Radio Network Througput Problem Analysis HCIA.pdf
5G Radio Network Througput Problem Analysis HCIA.pdf
AlvianRamadhani5
 
SCALING OF MOS CIRCUITS m .pptx
SCALING OF MOS CIRCUITS m                 .pptxSCALING OF MOS CIRCUITS m                 .pptx
SCALING OF MOS CIRCUITS m .pptx
harshapolam10
 
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
Gino153088
 
Pressure Relief valve used in flow line to release the over pressure at our d...
Pressure Relief valve used in flow line to release the over pressure at our d...Pressure Relief valve used in flow line to release the over pressure at our d...
Pressure Relief valve used in flow line to release the over pressure at our d...
cannyengineerings
 
AI-Based Home Security System : Home security
AI-Based Home Security System : Home securityAI-Based Home Security System : Home security
AI-Based Home Security System : Home security
AIRCC Publishing Corporation
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
PreethaV16
 
smart pill dispenser is designed to improve medication adherence and safety f...
smart pill dispenser is designed to improve medication adherence and safety f...smart pill dispenser is designed to improve medication adherence and safety f...
smart pill dispenser is designed to improve medication adherence and safety f...
um7474492
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
ecqow
 
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
ijseajournal
 
Accident detection system project report.pdf
Accident detection system project report.pdfAccident detection system project report.pdf
Accident detection system project report.pdf
Kamal Acharya
 
Zener Diode and its V-I Characteristics and Applications
Zener Diode and its V-I Characteristics and ApplicationsZener Diode and its V-I Characteristics and Applications
Zener Diode and its V-I Characteristics and Applications
Shiny Christobel
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
uqyfuc
 
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICSUNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
vmspraneeth
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
Atif Razi
 
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
PriyankaKilaniya
 
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
Paris Salesforce Developer Group
 
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
nedcocy
 
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
upoux
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
shadow0702a
 
OOPS_Lab_Manual - programs using C++ programming language
OOPS_Lab_Manual - programs using C++ programming languageOOPS_Lab_Manual - programs using C++ programming language
OOPS_Lab_Manual - programs using C++ programming language
PreethaV16
 

Recently uploaded (20)

5G Radio Network Througput Problem Analysis HCIA.pdf
5G Radio Network Througput Problem Analysis HCIA.pdf5G Radio Network Througput Problem Analysis HCIA.pdf
5G Radio Network Througput Problem Analysis HCIA.pdf
 
SCALING OF MOS CIRCUITS m .pptx
SCALING OF MOS CIRCUITS m                 .pptxSCALING OF MOS CIRCUITS m                 .pptx
SCALING OF MOS CIRCUITS m .pptx
 
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
 
Pressure Relief valve used in flow line to release the over pressure at our d...
Pressure Relief valve used in flow line to release the over pressure at our d...Pressure Relief valve used in flow line to release the over pressure at our d...
Pressure Relief valve used in flow line to release the over pressure at our d...
 
AI-Based Home Security System : Home security
AI-Based Home Security System : Home securityAI-Based Home Security System : Home security
AI-Based Home Security System : Home security
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
 
smart pill dispenser is designed to improve medication adherence and safety f...
smart pill dispenser is designed to improve medication adherence and safety f...smart pill dispenser is designed to improve medication adherence and safety f...
smart pill dispenser is designed to improve medication adherence and safety f...
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
 
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
 
Accident detection system project report.pdf
Accident detection system project report.pdfAccident detection system project report.pdf
Accident detection system project report.pdf
 
Zener Diode and its V-I Characteristics and Applications
Zener Diode and its V-I Characteristics and ApplicationsZener Diode and its V-I Characteristics and Applications
Zener Diode and its V-I Characteristics and Applications
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
 
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICSUNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
 
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
 
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
 
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
 
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
 
OOPS_Lab_Manual - programs using C++ programming language
OOPS_Lab_Manual - programs using C++ programming languageOOPS_Lab_Manual - programs using C++ programming language
OOPS_Lab_Manual - programs using C++ programming language
 

Arduino Environment Tutorial

  • 2. INTRODUCTION TO ARDUINO • Open-source electronics platform (original source code is freely available to be redistributed and modified) • Arduino Boards: microcontroller that reads input and turns into outputs (i.e. finger on button turns on an LED light) • Instruct Arduino Board using Arduino Programming Language and Arduino Software (IDE) communicating through the board’s microcontroller • Void setup() & Void Loop(); [1]
  • 3. ARDUINO UNO • Microcontroller with: • 14 digital inputs • 6 analog inputs with 10-bit resolution • Can be: • Purchased on eBay for $6 • Programmed in C • Interfaced to a computer through USB • Interfaced to many sensors [3]
  • 4. TUTORIAL: SETUP • Buy Arduino UNO board from Adafruit, Element14, or another Arduino Distributor • Download the software in this link: https://www.arduino.cc/en/Main/Software • Buy a starter electronics kit for building circuits (Optional): https://www.amazon.com/16Hertz-Electronics-Breadboard- Resistors-Raspberry/dp/B00J4RN61A • Launch downloaded software - Arduino IDE
  • 5. TUTORIAL: INITIALIZING • Click on Arduino Uno in the Boards option under the Tools tab • Begin writing program: • Example shown later
  • 6. TUTORIAL: UPLOADING TO BOARD • Save your code • Connect the board to the PC through the microcontroller and USB port • Upload to Arduino board by clicking the arrow • Provide Power to the Arduino board to run indefinitely TUTORIAL: SHUTTING DOWN • Remove Power Source to stop the program • Exit software anytime after upload to board
  • 8. CODE int red = 10; int yellow = 9; int green = 8; void setup() { pinMode(red,OUTPUT); pinMode(yellow,OUTPUT); pinMode(green,OUTPUT); digitalWrite(green,HIGH); Serial.begin(9600); digitalWrite(green,HIGH); Serial.println("Begin green light"); delay(2000); } void loop() { changeLights(); delay(3000); } [2] void changeLights(){ Serial.println("Light Changes"); Serial.println("Yellow"); digitalWrite(green,LOW); digitalWrite(yellow,HIGH); delay(3000); Serial.println("Red"); digitalWrite(yellow,LOW); digitalWrite(red,HIGH); delay(5000); Serial.println("Green"); digitalWrite(yellow,LOW); digitalWrite(red,LOW); digitalWrite(green,HIGH); delay(3000); }
  • 9. ARDUINO IN INDUSTRIAL ENGINEERING • Arduino-based data acquisition • Interfacing Arduino to Excel, MATLAB, and LabVIEW • Arduino-based tensile tester • Tensile testing done to measure mechanical properties • Two parameters measured • Load applied to sample • Sample’s extension • Reprogramming the robotic arm using Arduino • Project designed to sort glass and non- glass waste • Arm controlled by Arduino microcontroller • Optical sensor used to distinguish between parts Tensile tester wiring configuration for 5 kg load cell and ultrasonic sensor
  • 10. OTHER ARDUINO APPLICATIONS • Break timer using a Mac computer • Macs can’t communicate with motors, robots, sensors, etc without something acting as a translator • BreakTimer enables Mac to tell whether someone is sitting and if he/she has been sitting for too long • Real-time location systems • GPS continually takes input data from satellite and stores longitude and latitude • Arduino Uno takes last received coordinates from GpsGate and sends message to Google Earth • Current location can then be shown on platform of choice • Processing and image compression • Arduino used as control element to integrate proposed algorithms • Arduino enables further adjustments [4], [5], [7]
  • 11. REFERENCES [1] Getting Started | Foundation - Introduction. (n.d.). Retrieved November 27, 2017, from https://www.arduino.cc/en/Guide/Introduction [2] Lee, J., Stegner, B., & Coburn, J. (2017, January 06). Arduino Programming For Beginners: The Traffic Light Controller. Retrieved November 27, 2017, from http://www.makeuseof.com/tag/arduino-traffic-light- controller/ [3] Nichols, D. (2017). Arduino-Based Data Acquisition into Excel, LabVIEW, and MATLAB. Physics Teacher, 55(4), 226-227. doi:10.1119/1.4978720 [4] Jepson, B. (2008). Control the World. Macworld, 25(6), 88-90. [5] Ibrahim, M. M., & Audah, L. (2017). Real-Time Bus Location Monitoring Using Arduino. AIP Conference Proceedings, 1883(1), 1-10. doi:10.1063/1.5002034 [6] Arrizabalaga, J. H., Simmons, A. D., & Nollert, M. U. (2017). Fabrication of an Economical Arduino-Based Uniaxial Tensile Tester. Journal Of Chemical Education, 94(4), 530-533. doi:10.1021/acs.jchemed.6b00639 [7] Lazar, J., Kostolanyova, K., & Bradac, V. (2017). Processing and Image Compression Based on the Platform Arduino. AIP Conference Proceedings, 1863(1), 1-4. doi:10.1063/1.4992247 [8] Razali, Z. B., Mohamed Mydin M. Abdul, K., Akmal Kadir, M. A., & Daud, M. H. (2017). Reprogramming the

Editor's Notes

  1. Void setup – initialize all variables (goes through once during setup) Void loop – infinite loop of code that will run the entire time