SlideShare a Scribd company logo
2
Most read
14
Most read
Omer Kilic | omer@tinkersoc.org
Interfacing?AB
Standard Computer InterfacesWiredUSBSerial PortParallel PortFirewireEthernetAnd others…Wireless
WiFi
Bluetooth
IrDA‘Embedded’ InterfacesSPII2C1-WireUNI/OAnd others…
RS232 – The Serial PortAsynchronous serial communications protocolNo clock is sent - the receiver must provide the clock signalData rate must be known by transmitter and receiverArduino implements a ‘virtual’ serial port via USBhttp://arduino.cc/en/Reference/Serial
Voltage LevelsDifferent devices may have different voltage levelsExample: RS232Voltage levels specified as +12/-12 volts in the standardHooking these levels up to the micro will FRY it!Solution: Use a level converter
RS232 Level Converter
Virtual COM PortsSerial port via USBApplications think they are talking to a serial port, which is emulated by the driversNo need to have a physical serial port!Most new machines don’t have them anywayA LogicalChoice(tm) !
Example Project: ThermometerA temperature sensor is connected to an analog input on the ArduinoArduino periodically reports the temperature back to PCPC uses this data to plot graphs etc.
It’s an analog world…Digital – only has two values: on/offAnalog – has many (infinite) valuesComputers don’t really do analogSo they fake it, with quantizationFrom Tod E. Kurt’s ‘Spooky Projects’ notes - http://todbot.com/blog/spookyarduino/
Thermometer: Arduino CodeintsensorPin = 0;	// the analog pin that the sensor is connected tovoid setup(){Serial.begin(9600);}void loop(){//getting the voltage reading from the temperature sensorint reading = analogRead(sensorPin);  // converting that reading to voltage, for 3.3v arduino use 3.3float voltage = reading * 5.0 / 1024; // print out the voltageSerial.print(voltage); Serial.println(" volts");// now print out the temperaturefloattemperatureC = (voltage - 0.5) * 100;  // converting from 10 mV per degree with 500 mV offset // to degrees ((voltage - 500mV) times 100)Serial.print(temperatureC); Serial.println(" degress C");delay(1000);	// wait a second}From Ladyada’s TMP36 Tutorial -  http://www.ladyada.net/learn/sensors/tmp36.html
Thermometer: PC SideRead the incoming data every X seconds (cron)Collect and plot temperature graphs (rrdtool)Example: thermostat-graphhttp://www.anders.com/projects/thermostat-graph/Not an Arduino project but easily hackable!

More Related Content

PPT
Arduino presentation by_warishusain
ODP
Introduction to Arduino
PPTX
What are the different types of arduino boards
PPTX
Introduction to Arduino
PDF
Introduction to Arduino Programming
PPTX
Introduction to Arduino
PPS
What is Arduino ?
PPT
arduino-ppt
Arduino presentation by_warishusain
Introduction to Arduino
What are the different types of arduino boards
Introduction to Arduino
Introduction to Arduino Programming
Introduction to Arduino
What is Arduino ?
arduino-ppt

What's hot (20)

PPTX
Arduino Microcontroller
PPTX
Tinkercad Workshop PPT, Dept. of ECE.pptx
PPTX
Introduction to Arduino Hardware and Programming
PPT
Arduino
PPTX
Ardui no
PDF
Arduino presentation
PPTX
Introduction to arduino ppt main
PPT
Intro to Arduino
PPTX
Using 8051 microcontroller based washing machine control ppt
PPTX
IoT Based Home Automation System Presantation
PPTX
Introduction to the Arduino
PPTX
Different Arduino Boards
PPTX
Fun with arduino
PPTX
PPT ON Arduino
PPTX
Internet of things - challenges scopes and solutions
PPTX
Introduction to Internet of Things (IoT)
PPTX
Arduino and robotics
PPTX
Internet of Things (IoT) Based Smart Security & Home Automation System.
PDF
Introduction of Arduino Uno
PPTX
Optical mouse working principle
Arduino Microcontroller
Tinkercad Workshop PPT, Dept. of ECE.pptx
Introduction to Arduino Hardware and Programming
Arduino
Ardui no
Arduino presentation
Introduction to arduino ppt main
Intro to Arduino
Using 8051 microcontroller based washing machine control ppt
IoT Based Home Automation System Presantation
Introduction to the Arduino
Different Arduino Boards
Fun with arduino
PPT ON Arduino
Internet of things - challenges scopes and solutions
Introduction to Internet of Things (IoT)
Arduino and robotics
Internet of Things (IoT) Based Smart Security & Home Automation System.
Introduction of Arduino Uno
Optical mouse working principle
Ad

Viewers also liked (20)

ODP
Interfacing to lcd with arduino
PPTX
Lcd with arduino uno
PPTX
Arduino uno lcd display 16x2
ODP
BlueMaemo - Bluetooth HID mouse & keyboard for Maemo
PPT
Bluetooth android application For interfacing with arduino
PPTX
Interfacing bluetooth with arduino
PPTX
Getting Started with Raspberry Pi and Arduino
PPTX
Main schotky diode
PPTX
RFID and IR Based Attendance System
PPT
WATER LEVEL MEASURE AND CONTROL WITH ULTRASONIK SENSOR AND ARDUINO UNO
PPTX
RFID Based Student Attendance Management System in India
DOCX
Arduino lcd display
PPTX
RFID attendance system
DOCX
Design Development of Water Monitoring Systems by Using Arduino and Sensors
PPTX
LCD Theory and Working Principles
PPTX
Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
PPTX
Soil Moisture Sensor and Arduino
PDF
Arduino uno
PPTX
Introduction to arduino
PDF
LinkedIn SlideShare: Knowledge, Well-Presented
Interfacing to lcd with arduino
Lcd with arduino uno
Arduino uno lcd display 16x2
BlueMaemo - Bluetooth HID mouse & keyboard for Maemo
Bluetooth android application For interfacing with arduino
Interfacing bluetooth with arduino
Getting Started with Raspberry Pi and Arduino
Main schotky diode
RFID and IR Based Attendance System
WATER LEVEL MEASURE AND CONTROL WITH ULTRASONIK SENSOR AND ARDUINO UNO
RFID Based Student Attendance Management System in India
Arduino lcd display
RFID attendance system
Design Development of Water Monitoring Systems by Using Arduino and Sensors
LCD Theory and Working Principles
Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
Soil Moisture Sensor and Arduino
Arduino uno
Introduction to arduino
LinkedIn SlideShare: Knowledge, Well-Presented
Ad

Similar to Interfacing with Arduino (20)

PPT
Arduino is an open-source electronics platform that has an easy-to-use physic...
PPT
Fundamentals of programming Arduino-Wk2.ppt
PPT
Arduino wk2
PPT
IoT Basics with few Embedded System Connections for sensors
PPTX
INTODUCTION OF IOT AND INTERFACING WITH ARDUINO UNO
PPT
introduction to arduino and digital input and output, Data representation and...
PDF
Arduino spooky projects_class3
PPTX
arduinoedit.pptx
PPTX
2012 1 arduino_rs232
PDF
Arduino Workshop @ MSA University
PPTX
BURO Arduino Workshop
PPTX
02 General Purpose Input - Output on the Arduino
PPTX
Arduino.pptx
PDF
C programming of an ARM microcontroller and writing UART serial communication...
PDF
Device Operation using PC by Arduino (1).pdf
DOCX
Arduino windows remote control
PDF
Lab2ppt
PDF
Cassiopeia Ltd - standard Arduino workshop
PDF
introductiontoarduino-111120102058-phpapp02.pdf
PPTX
Introduction to arduino!
Arduino is an open-source electronics platform that has an easy-to-use physic...
Fundamentals of programming Arduino-Wk2.ppt
Arduino wk2
IoT Basics with few Embedded System Connections for sensors
INTODUCTION OF IOT AND INTERFACING WITH ARDUINO UNO
introduction to arduino and digital input and output, Data representation and...
Arduino spooky projects_class3
arduinoedit.pptx
2012 1 arduino_rs232
Arduino Workshop @ MSA University
BURO Arduino Workshop
02 General Purpose Input - Output on the Arduino
Arduino.pptx
C programming of an ARM microcontroller and writing UART serial communication...
Device Operation using PC by Arduino (1).pdf
Arduino windows remote control
Lab2ppt
Cassiopeia Ltd - standard Arduino workshop
introductiontoarduino-111120102058-phpapp02.pdf
Introduction to arduino!

More from Omer Kilic (16)

PDF
Bare Metal from a Hardware Perspective: Embedded Frameworks & Build Systems
PDF
Gearing up for Volume Manufacturing
PDF
The Process of Shipping Hardware Products
PDF
Confusion of Things — The IoT Hardware Kerfuffle
PDF
Fast and Furious: Overclocking chips for fun and profit
PDF
Cloud, Distributed, Embedded: Erlang in the Heterogeneous Computing World
PDF
Taking Back Embedded: The Erlang Embedded Framework
PDF
Erlang Embedded — Concurrent Blinkenlights and More!
PDF
The Actor Model applied to the Raspberry Pi and the Embedded Domain
PDF
Interfacing the Raspberry Pi to the World
PDF
From Breadboard to Finished Product
PPTX
A Quick Introduction to Programmable Logic
PDF
concurrency.cc OSHUG #3
PPTX
Introduction to XMOS Software Defined Silicon Technology
PPTX
TinkerSoc Electronics 101
PPTX
Beer Bottle Night Lamp
Bare Metal from a Hardware Perspective: Embedded Frameworks & Build Systems
Gearing up for Volume Manufacturing
The Process of Shipping Hardware Products
Confusion of Things — The IoT Hardware Kerfuffle
Fast and Furious: Overclocking chips for fun and profit
Cloud, Distributed, Embedded: Erlang in the Heterogeneous Computing World
Taking Back Embedded: The Erlang Embedded Framework
Erlang Embedded — Concurrent Blinkenlights and More!
The Actor Model applied to the Raspberry Pi and the Embedded Domain
Interfacing the Raspberry Pi to the World
From Breadboard to Finished Product
A Quick Introduction to Programmable Logic
concurrency.cc OSHUG #3
Introduction to XMOS Software Defined Silicon Technology
TinkerSoc Electronics 101
Beer Bottle Night Lamp

Recently uploaded (20)

PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
KodekX | Application Modernization Development
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Big Data Technologies - Introduction.pptx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Cloud computing and distributed systems.
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Machine learning based COVID-19 study performance prediction
“AI and Expert System Decision Support & Business Intelligence Systems”
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
MIND Revenue Release Quarter 2 2025 Press Release
Encapsulation_ Review paper, used for researhc scholars
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Digital-Transformation-Roadmap-for-Companies.pptx
The AUB Centre for AI in Media Proposal.docx
Programs and apps: productivity, graphics, security and other tools
KodekX | Application Modernization Development
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Review of recent advances in non-invasive hemoglobin estimation
Big Data Technologies - Introduction.pptx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Cloud computing and distributed systems.
Reach Out and Touch Someone: Haptics and Empathic Computing
Building Integrated photovoltaic BIPV_UPV.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Machine learning based COVID-19 study performance prediction

Interfacing with Arduino

  • 1. Omer Kilic | omer@tinkersoc.org
  • 3. Standard Computer InterfacesWiredUSBSerial PortParallel PortFirewireEthernetAnd others…Wireless
  • 7. RS232 – The Serial PortAsynchronous serial communications protocolNo clock is sent - the receiver must provide the clock signalData rate must be known by transmitter and receiverArduino implements a ‘virtual’ serial port via USBhttp://arduino.cc/en/Reference/Serial
  • 8. Voltage LevelsDifferent devices may have different voltage levelsExample: RS232Voltage levels specified as +12/-12 volts in the standardHooking these levels up to the micro will FRY it!Solution: Use a level converter
  • 10. Virtual COM PortsSerial port via USBApplications think they are talking to a serial port, which is emulated by the driversNo need to have a physical serial port!Most new machines don’t have them anywayA LogicalChoice(tm) !
  • 11. Example Project: ThermometerA temperature sensor is connected to an analog input on the ArduinoArduino periodically reports the temperature back to PCPC uses this data to plot graphs etc.
  • 12. It’s an analog world…Digital – only has two values: on/offAnalog – has many (infinite) valuesComputers don’t really do analogSo they fake it, with quantizationFrom Tod E. Kurt’s ‘Spooky Projects’ notes - http://todbot.com/blog/spookyarduino/
  • 13. Thermometer: Arduino CodeintsensorPin = 0; // the analog pin that the sensor is connected tovoid setup(){Serial.begin(9600);}void loop(){//getting the voltage reading from the temperature sensorint reading = analogRead(sensorPin); // converting that reading to voltage, for 3.3v arduino use 3.3float voltage = reading * 5.0 / 1024; // print out the voltageSerial.print(voltage); Serial.println(" volts");// now print out the temperaturefloattemperatureC = (voltage - 0.5) * 100; // converting from 10 mV per degree with 500 mV offset // to degrees ((voltage - 500mV) times 100)Serial.print(temperatureC); Serial.println(" degress C");delay(1000); // wait a second}From Ladyada’s TMP36 Tutorial - http://www.ladyada.net/learn/sensors/tmp36.html
  • 14. Thermometer: PC SideRead the incoming data every X seconds (cron)Collect and plot temperature graphs (rrdtool)Example: thermostat-graphhttp://www.anders.com/projects/thermostat-graph/Not an Arduino project but easily hackable!
  • 16. Thank you for listening Any questions?Further questions/comments to omer@tinkersoc.org please…