04 Arduino v02
04 Arduino v02
Lecture #4
What is IoT
• Physical objects (or groups of such objects) with sensors, processing
ability, software, and other technologies that connect and exchange
data with other devices and systems over the Internet or other
communications networks
• Due to development of:
• Computers
• Sensors
• Embedded systems Arduino
• Machine learning
Arduino
• An open-source hardware and software company, project, and user
community that designs and manufactures single-board
microcontrollers and microcontroller kits for building digital devices.
• Use variety of microprocessors and controllers
• Equipped with sets of digital and analog input/output (I/O) pins that
may be interfaced to various expansion boards ('shields') or
breadboards (for prototyping) and other circuits.
• Has serial communications interfaces, including Universal Serial Bus
(USB) on some models, which are also used for loading programs
• Can be programmed using Arduino language
Arduino and breadboard
Example of the use of breadboard
Arduino : Hardware and software
“Hello, world” project
Flip-flop project
Program : LED OFF or ON
Program : LED ON and OFF every 1 minute
Program : Dynamic ON and OFF
EXERCISE
Or go to:
https://www.youtube.com/watch?v=Tv2RMlIxBXs
Prelimary steps
• Choose board : Board manager
• Choose library : Include library
• Set preferences :
https://arduino.esp8266.com/stable/package_esp8266com_index.json
Connecting to internet
• Install Blynk
Tools ->
Manage
Library
• http://blynk.io
Connecting to internet
• Open serial monitor
Connecting to internet
• Type “AT” and send
Connecting to internet
• Type “AT+CWMODE=3” and send
Connecting to internet
• Type “AT+CWLAP” and send
Connecting to internet
• Type “AT+CWJAP="Access point name","Password"” and send