What is Arduino? It's an open source electronics prototyping platform: Open source: resources that can be used, redistributed or rewritten free of charge,

Slides:



Advertisements
Similar presentations
Khaled A. Al-Utaibi Interfacing an LED The Light Emitting Diode (LED) Applications DC Characteristics & Operation Interfacing to.
Advertisements

EMS1EP Lecture 6 Digital Inputs
ARDUINO CLUB What we’re really doing. BASICS The setup() and loop() functions.
ENGG1100 Ch6: Introduction To Engineering Design (Digital Logic) Part 2 of digital logic KH WONG ENGG1100. Ch6-Digital Logic (part2) v3h1.
Lab7: Introduction to Arduino
Anurag Dwivedi & Rudra Pratap Suman.  Open Source electronic prototyping platform based on flexible easy to use hardware and software.
Embedded Sumo 1T4 – 1T5 UTRA.
Re-programming the Simon Says with Arduino Linz Craig, Brian Huang.
ELCT 201 week 13 Analog ON/OFF control system conversion to Digital ON/OFF control system.
©2006 CSUC Institute for Research in Intelligent Systems Introduction to Coding June 15, 2006.
Arduino. Arduino is a tool for making computers that can sense and control more of the physical world than your desktop computer. It's an open-source.
 Main Components:  Sensors  Micro controller  Motor drivers  Chasis.
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
1 Ultrasonic Distance Sensor. 2 How it Works The distance sensor emits short bursts of sound and listens for this sound to echo off of nearby objects.
Embedded Programming and Robotics
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
Motors Make the world go ‘round By Jackson Greer, Room 305.
2.0 EMBEDDED CONTROLLER Engr. Hj. Mohamad Fauzi bin Zakaria Department of Mechatronics and Robotics Engineering Faculty of Electrical and Electronic Engineering.
Flowol subroutines Subroutines are used to:  Simplify your code to make it easier to read (or for someone.
Microcontroller Hands-on Workshop #3 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers November 7, 2009.
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class 2.
Programming Hexors on Arduino Uno. Arduino Uno Arduino is an open-source electronics platform based on easy- to-use hardware and software. It's intended.
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
Introduction to the Arduino
Smart Plant Robot Prepared by Haya De’bas Jumanah Salhab Supervisor Dr. Ra’ed Al-Qadi.
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class3/Lab 2.
Microcontroller Hands-on Workshop #2 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers October 31, 2009.
Microcontrollers, Microcomputers, and Microprocessors
Arduino libraries Datatekniker Udvidet hardware/software.
Robot Project by Ahmad Shtaiyat Supervised by Dr. Salem Al-Agtash.
Robotics Grant Agreement No LLP UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud services for E-Learning in Mechatronics Technology.
Bdps 2 Lecture 2. Circuits and Ohm's Law For resistive circuits.
Atmega328p Introduction for Digital and PWM Output Brion L Fuller II Robotics Club.
Istituto Tecnico Industriale A.Monaco EURLAB Object Detection Object Detection by Ultrasonic How to install and program a ultra sonic sensor with Arduino.
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
ME 120: Arduino Programming Arduino Programming Part 1 ME 120 Mechanical and Materials Engineering Portland State University
1 Transistor. 2 Transistors are used to turn components on and off They come in all different shapes and sizes.
CSE 341 Project : Ultrasonic Radar PRESENTED BY: NAME : AKIFA TASNEEM ID : SECTION: 02 1.
What is programming? Make an algorithm to do something in a specific language programming. – Algorithm: a procedure or formula for solving a problem.
Harpeth Hall Jan 2016 Introduction to Arduino Prepared for Harpeth Hall Winterim January 2016.
Having fun with code, using Arduino in a middle school CS classroom
Arduino.
RASPBERRY PI WORKSHOP.
Obstacle avoiding robot { pixel }
Dr. Kyung Eun Park Summer 2017
Microcontroller basics
Microprocessors Tutorial 1: Arduino Basics
Welcome to Arduino A Microcontroller.
Get Your Project Started with Arduino
Arduino.
Arduino Uno and sensors
Introduction to Arduino Microcontrollers
Roller Coaster Design Project
ARDUINO     What is an Arduino? Features 14 Digital I/O pins 6 Analogue inputs 6 PWM pins USB serial 16MHz Clock speed 32KB Flash memory 2KB SRAM.
What is Arduino? By James Tedder.
FeMaidens Programming
Arduino 101 Credit(s):
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
Welcome to Digital Electronics using the Arduino Board
CSCI1600: Embedded and Real Time Software
Chapter 1 Introduction of Arduino
Arduino Part 4 Let there be more light.
CSCI1600: Embedded and Real Time Software
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Lab #1: Getting Started.
Arduino Uno circuit basics
Obstacle Detection.
Introduction to Arduino
Interrupts.
Presentation transcript:

What is Arduino? It's an open source electronics prototyping platform: Open source: resources that can be used, redistributed or rewritten free of charge, often software or hardware. Electronics: technology which makes use of the controlled motion of electrons through different media. Prototyping: an original form that can serve as a basis or standard for other things. Platform: hardware architecture with software framework on which other software can run..

Basic Arduino program- LED

Explanation of the code-declaring pins We determine and declare pins which we will be using in our program

Input/Output In the void setup we determine our Inputs and Outputs We chose for d1 and d2 to be the outputs while we chose “tipkalo” to be the input

Void loop & IF-ELSE loop In the void loop we write the program which we want to run forever, in other words infinitely(in loops). In the code we are checking if the “tipkalo” is pressed or not. After that, we have a IF-ELSE loop with 2 subprograms, one for the case in which “tipkalo” is pressed and one for the case in which “tipkalo” is not pressed.

Subprogram If the “tipkalo” is pressed the LEDs will alternately light up. The delay is that which makes the LED blink, it puts the LED in a state of doing nothing and hence the light turns off making the illusion of blinking. We chose the delay to be 1000 microseconds, in other words 1 second.

Subprogram If the “tipkalo” is not pressed both LEDs will blink at the same time They will blink in the span of 50ms.

Connecting example In the program “Fritzing”, you can simulate how the physical connecting of the Arduino components will look like.

Project X (Motors controlled by sensors) Made of: 1) H-bridge dual motor control 2)Arduino UNO board 3)Ultrasonic sensor 4)Electromotors 5)Breadbord

Parts - H-bridge dual motor control H - Bridge dual motor control serves as an aid in the process of connecting so as not to have to connect transistors, resistors and capacitors. (It replaces a large amout of breadboards)

Parts – Arduino UNO board Arduino UNO is a microcontroller which connects a PC to the outside world.

Parts – Ultrasonic sensor A ultrasonic sensors purpose is to detect obstacles and to control the direction of wheels if a obstacle is detected.

Parts - Electromotor Electromotors serve for moving and changing the direction of wheels.

Parts - Breadboard Breadboard is a extension which is used when more pins are needed.

Electromotor controlled by sensors We determine and declare the pins that will be used during the program Determine inputs and outputs. Trigger - ultrasonicsensor Echo - Beep

Voidloop The main code that will constantly repeat It serves to activate ultrasonic sensors and sound at a certain distance from obstacles.

IF ELSE IF-ELSE loop determines the order of execution of seven sub- programs which are used to: -Move forward -Move backward -Break -Silence (Sound off) -Turn left -Turn right

Subprogram 1.)The first subroutine is used to start the engine in the first (and only) gear

Subprogram 2. subroutine is used to stop the engine

Subprogram 3. Used for stopping the motor

Subprogram 4.) Used for repeated activation of sound 5.) For silence

Subprogram 6. & 7. Subroutine used to turn to the left or to the right