CONSTRUCTION GUIDE Remote Big Wheel. Robobox. Level VIII

Size: px
Start display at page:

Download "CONSTRUCTION GUIDE Remote Big Wheel. Robobox. Level VIII"

Transcription

1 CONSTRUCTION GUIDE Remote Big Wheel Robobox Level VIII

2 Remote Big Wheel In this box we will learn about an advanced use of motors and infrared emission & reception through a unique robot: the Big Wheel. Balancing between its two giant wheels, it will go faster than the previous robots and can be remotely controlled to do anything. Pièces 2X Big Wheels 1X Robobox Nano 2X Wheel Plugs 1X Mini USB Cable 1X Joystick 1X Clipper Instructions We suggest that you follow these instructions step by step. Additional details are available on your member space on Robobox.io. Please don t hesitate to ask any question, we will answer them promptly. Good luck!

3 _0_ 1NTR0DUCT10N The goal of our program will be to remotely control, through a Joystick, our Big Wheel. The communication between the Joystick and the robot will be done with infra-red. We have already seen in the past the principles of infrared communication, here we will go a little further by creating our own protocol. We will therefore develop a language that will be used to transport information from one card to another. Our goal will be to follow the process below: We move the Joystick 1 Position of joystick is saved in X & Y coordinates (between 0 and 1023) The position is converted into an infrared signal 2 3 Signal reception 6 Signal Emission 5 An 'identifier' is added so that our infrared signal to differentiate between X & Y 4 Position is converted Signal is decoded into action for the back into position 7 robot 8

4 Step 2 Step 1 _1_ EMISSION Pin3 GND-GND GND Our first circuit is quite simple. Here we will build the transmitter, a true remote control capable of transmitting the position of the joystick through an infrared LED. For this, we plug the NANO card on a mini Breadboard, then connect the IR LED on pin 3 (anode) and on the GND (cathode). Then we plug the GND on the GND, the 5V on the 5V, the X on the A3, the Y on the A2 and the SW on the A1. Our joystick is plugged in, now let's move to a more complex stage, sending the position of the joystick through the LED. #include <IRremote.h> IRsend irsend; void setup() { Serial.begin(9600); void loop() { int X = analogread(a3); int Y = analogread(a2); X = X/100; Y = Y/100; Crypt(X,'x'); Crypt(Y,'y'); At first and as usual, we will include librairies. Here we will add 'IRremote.h' for sending messages via infrared LED. As we did in month 5 we ll create an object called 'IRsend and initialize the communication in series in 'setup'. This serial communication will help us verify our code. Then we enter the 'loop' function, in this function, we read the position of the two axes of the joystick (x and y) thanks to 'analogread'. We will then send this position into a function which will be in charge of converting the position into an infrared signal and then send it, ie steps 3, 4 and 5 of the previous diagram.

5 step 3 void Crypt(unsigned int val, char axis){ unsigned int f1; unsigned int f2; int a = 0; unsigned int axiscode[3]; if (axis == 'x'){axiscode[0] = 300; axiscode[1] = 800; axiscode[2] = 300;; _1_ EMISSION This function is quite complex so we will go through it step by step. The Crypt function takes two arguments, an integer 'val' which contains the value of the position of the joystick and an 'axis' letter that tells us whether it is the x or y axis. if (axis == 'y'){axiscode[0] = 500; axiscode[1] = 300; axiscode[2] = 800;; if (val < 5){ f1 = 800; f2 = val+4; f2 = f2*100; ; if (val >= 5){ f1 = 400; f2 = val-1 ; f2 = f2*100; ; unsigned int envoisignal[10] = {5000, axiscode[0], axiscode[1], axiscode[2], f1, f1, f2, f2, 1000,500; while (a < 10){ Serial.print(envoiSignal[a]); Serial.print(','); a++; Serial.println(); irsend.sendraw(envoisignal,11,38); delay(100); id1 X or Y Position id2 & 3 Our signal must contain several pieces of information, first we must recognize it among other signals (remote controls, etc.) so we will use 'identifiers' (id1,2 and 3) to distinguish it. It must also communicate the position of the joystick and the X or Y axis this position relates to. Using the IR signal format, we will convert information into milliseconds, so the X-axis will be translated as 300, 800, 300 while Y will be translated as 500, 300, and 800. Then we will have to give the value of the position, that value will consist of 4 signals: - If the value is less than 5, 800, 800, (value + 4) * 100, (value + 4) * If the value is greater than or equal to 5, 400, 400, (value-1) * 100, (value-1) * 100. We thus find ourselves with a signal defined by 10 variables: id1, id2, id3, X/Y, X/Y, X/Y, posi, posi, posi, posi, id3 Now we just need to send this signal with irsend.

6 #include <IRremote.h> int RECV_PIN = 11; int MotorG = 5; int MotorD = 6; int Coordinate[2]; IRrecv irrecv(recv_pin); decode_results results; void setup() { Serial.begin(9600); irrecv.enableirin(); void loop() { if (irrecv.decode(&results)) { analyze(&results); irrecv.resume(); void analyze(decode_results *results) { int recieved[11]; int count = results->rawlen; for (int i = 0; i < count; i++) { recieved[i] = results->rawbuf[i]*usecpertick; _2_ RECEPTION if (abs(recieved[1] ) < 100 && abs(recieved[9] ) < 100 && abs(recieved[10] - 500) < 100) { char Axis = checkaxis(recieved); int Position = checkvalue(recieved); if (Axis == 'X'){Coordinate[0] = Position; if (Axis == 'Y'){Coordinate[1] = Position; Serial.print('['); Serial.print(Coordinate[0]); Serial.print('-'); Serial.print(Coordinate[1]); Serial.println(']'); Avance(Coordinate); Now that we have defined the emission, let's look at the code that will be executed on the other card, on the reception side. We first import the library for infrared communication. We then define the pin in charge of the data reception (11), then the pins for the left and right motors (5 and 6). As in box 5, we create an object for reception and one for value analysis. In the setup function, we just start the serial communication and initialize the object in charge of receiving the data. In the loop, we insert a condition: If we receive a signal, then we run the function analyze() and then we reset the receiver. As you can see, the function analyze() will be the core of our program. Its role will be to analyze the signal and translate it to an instruction to the car. First, we insert the complete signal in the variable 'recieved'. Then we check that it is indeed one of our signals. If it is one of our signals, we run two functions: checkaxis() to decode the joystick axis and checkvalue() to decode the position. We then display the position of the joystick and ask the car to act according to this information. We will now go through these 3 functions.

7 _2_ RECEPTION Now we will explain the two functions in charge of decrypting and extracting code: The axis and the position of the Joystick. char checkaxis(int *recieved){ int a = recieved[2]; int b = recieved[3]; int c = recieved[4]; int sumdiff = abs(a - 300) + abs(b - 800) + abs(c-300); if(sumdiff < 500){ return 'X'; else{ return 'Y'; ; int checkvalue(int *recieved){ int a = recieved[5]; int b = recieved[6]; int c = recieved[7]; int d = recieved[8]; if ( ((a+b)/2) >700){ return ((c+d)/2)/100-4 ; if ( ((a+b)/2) <600){ return (((c+d)/2)/100) +1; The checkaxis(int* recieved) function will identify the axis concerned. First, you will notice that this function has a rather special argument: (int* recieved), this is a pointer. In this case, the pointer is the link to the position in memory of the first value of the received list. We use a pointer because it is impossible under Arduino to pass an entire list through a function. In memory, the values in the list are placed one after the other, so we can access the rest of the list fairly easily. In a second step, we decrypt the axis. We read the 3 first elements of the list (the signals) that we used to encrypt the axis and we insert them into the variables 'a', 'b' and 'c. Finally, we calculate the absolute difference between these terms and the encryption for X, if the difference is less than 500 then this is the X axis, otherwise it is the Y axis: Signal received : X Signal : Difference = 100 -> Axis = X Difference = > Axis = Y The function checkvalue() works in the same way, this time the first two values 'a' and 'b tell us if the position is greater or less than 5 and the next two give the value of this position. For instance, if the mean of the first two numbers is greater than 700, we consider the value greater than 5. We then do the reverse of the encryption in step 3 : we withdraw 4 and multiply by 100. If the average of the first two numbers is less than 600 then the value is less than 5 and we perform the reverse of the encryption operation of step 3 by adding 1 and multiplying by 100.

8 void Avance(int* Coord){ int vit1 = Coord[0]; int vit2 = Coord[1]; int tempvit; int tempvit1; int tempvit2; if (vit1 >5 && vit2 ==5){ tempvit = map(vit1, 5, 10, 0, 255); analogwrite(motorg,tempvit); analogwrite(motord,tempvit); if(vit1 == 5 && vit2 == 5){ analogwrite(motorg,0); analogwrite(motord,0); if(vit1 == 5 && vit2!= 5){ if(vit2 < 5){ tempvit = map(vit2, 0, 5, 255, 120); analogwrite(motorg,tempvit); if(vit2 > 5){ tempvit = map(vit2, 10, 5, 255, 120); analogwrite(motord,tempvit); if( vit2!= 5){ if(vit1 == 5 && vit2 < 5){ tempvit = map(vit2, 0, 5, 255, 120); analogwrite(motorg,tempvit); if(vit1 == 5 && vit2 > 5){ tempvit = map(vit2, 10, 5, 255, 120); analogwrite(motord,tempvit); if(vit1 > 5 && vit2 > 5){ tempvit1 = map(vit2, 10, 5, 255, 120); analogwrite(motord,tempvit1); tempvit2 = map(vit1, 10, 5, 255, 120); analogwrite(motord,tempvit2); _2_ RECEPTION Finally, we will define the Avance() function. This function takes a list as argument, that contains the position of the joystick along the X and Y axes. The first value: Coord[0] contains the value of the X axis and the second Coord[1] contains the value of the Y axis. According to its values we can define a behavior. Let s consider some cases : [5,5] [10,5] [7,5] [5,10] When the joystick is in position [10,5], or in position [7,5], our robot must go forward proportionally to the value Coord[0], this is our first if condition. When the Joystick is at [5,5], nothing happens, it is at the center, this is our second condition. When the Joystick is at [5,10] it has to turn on itself at a certain speed, this is our 3rd condition. Finally, if none of our axis value are at 5 then the robot must rotate. Now that you have understood the logic of our program, let s build it!

9 Step 3 Step 2 Step 1 _3_ MONTAGE Insert the motors into the Motor Blocks from month 4. Insert the "Uno Card" into the "Cardholder" (CF: left diagram) and paste the "Mini-Breadboard" onto the "Boardholder". You will be able to hang these parts to the robot later. You can now plug in all these elements on the clipper. You will need to reuse parts from previous months like the battery block.

10 Step 5 _3_ MONTAGE Step 6 Step 4 GND-GND Connect two transistors on the breadboard, so that they share a common 'line on the breadboard. This line will be connected to the GND. The center pins of the transistors are connected to pins 5 and 6 of the UNO board. An IR receiver is connected to the other side of the board, connect the transistor s GND pin (center) to the central line of the transistors. Connect its right pin to 5V line and its left pin to pin 11. Finally connect the left line of the breadboard to the GND. 5V 5-T1 6-T2 T1-Mot1- T2-Mot2-5V-Mot2+ 5V-Mot1+ OUT-11 5V-5V Connect the common transistor line to the GND, then connect the free pins of the transistors to the motors and the 5V line of the breaboard to the other poles of the motors. Finally, add the wheels mounted on their axes to the robot.

11 7 _3_ MONTAGE

12 _3_ MONTAGE CHALLENGE Our robotis now assembled, have fun driving it around We now have many challenges to offer, the most important pertains the Avance' function. -> Create a simpler Avance' function without using any If. Good luck!

13 _4_ NOT3S

14

15

16

Lojamundi Tecnologia Sem Limites br

Lojamundi Tecnologia Sem Limites   br IR Remote Aprenda a fazer um controle remoto com arduino Sobre esse artigo Autor: aaron aaron@cubietech.com 2014/02/27 20:49 Copyrights: CC Attribution-Share Alike 3.0 Unported Contribuidores: Cubieboard

More information

User Guide v1.0. v1.0 Oct 1, This guide is only available in English Ce manuel est seulement disponible en Anglais

User Guide v1.0. v1.0 Oct 1, This guide is only available in English Ce manuel est seulement disponible en Anglais ROVER ShiELD User Guide v1.0 v1.0 Oct 1, 2014 This guide is only available in English Ce manuel est seulement disponible en Anglais Description The DFRobotShop Rover Shield is the ideal all in one shield

More information

Lesson 3 Infrared Controlling Car

Lesson 3 Infrared Controlling Car Lesson 3 Infrared Controlling Car 1 The points of section Infrared remote control is a widely used method for remote control. The car has been equipped with infrared receiver and thus allows it to be controlled

More information

EXPERIMENT 7 Please visit https://www.arduino.cc/en/reference/homepage to learn all features of arduino before you start the experiments

EXPERIMENT 7 Please visit https://www.arduino.cc/en/reference/homepage to learn all features of arduino before you start the experiments EXPERIMENT 7 Please visit https://www.arduino.cc/en/reference/homepage to learn all features of arduino before you start the experiments TEMPERATURE MEASUREMENT AND CONTROL USING LM35 Purpose: To measure

More information

CONSTRUCTION GUIDE The pendulumrobot. Robobox. Level X

CONSTRUCTION GUIDE The pendulumrobot. Robobox. Level X CONSTRUCTION GUIDE The pendulumrobot Robobox Level X This box allows us to introduce a key element of modern robotics, the gyroscope accelerometer sensor. As its name suggests, this component has two parts,

More information

DIY Remote Control Robot Kit (Support Android) SKU:COMB0004

DIY Remote Control Robot Kit (Support Android) SKU:COMB0004 DIY Remote Control Robot Kit (Support Android) SKU:COMB0004 Contents [hide] 1 Overall o 1.1 Microcontroller 2 Part List o 2.1 Basic Kit o 2.2 Upgrade Components o 2.3 Additional Parts Required 3 Assembly

More information

Note. The above image and many others are courtesy of - this is a wonderful resource for designing circuits.

Note. The above image and many others are courtesy of   - this is a wonderful resource for designing circuits. Robotics and Electronics Unit 2. Arduino Objectives. Students will understand the basic characteristics of an Arduino Uno microcontroller. understand the basic structure of an Arduino program. know how

More information

Workshop on Microcontroller Based Project Development

Workshop on Microcontroller Based Project Development Organized by: EEE Club Workshop on Microcontroller Based Project Development Presented By Mohammed Abdul Kader Assistant Professor, Dept. of EEE, IIUC Email:kader05cuet@gmail.com Website: kader05cuet.wordpress.com

More information

Grove - Thumb Joystick

Grove - Thumb Joystick Grove - Thumb Joystick Introduction 3.3V 5.0V Analog Grove - Thumb Joystick is a Grove compatible module which is very similar to the analog joystick on PS2 (PlayStation 2) controllers. The X and Y axes

More information

boolean running = false; // false off, true on boolean gezielt = false; // Water turned on on purpose, true=on, false=off

boolean running = false; // false off, true on boolean gezielt = false; // Water turned on on purpose, true=on, false=off // wetcat.ino // program to steer garden watering system #include #include // LED unsigned int LED_PIN_13 = 13; // IR receiver unsigned int RECV_PIN = 11; // IR codes remotes

More information

RGB LED Strip Driver Shield SKU:DFR0274

RGB LED Strip Driver Shield SKU:DFR0274 RGB LED Strip Driver Shield SKU:DFR0274 Contents 1 Introduction 2 Specification 3 Pin Out 4 Sample Code 4.1 LED Strip driving code 4.2 IR Receiving Code 4.3 IR Remote control Demo Introduction The RGB

More information

Robotics/Electronics Review for the Final Exam

Robotics/Electronics Review for the Final Exam Robotics/Electronics Review for the Final Exam Unit 1 Review. 1. The battery is 12V, R1 is 400 ohms, and the current through R1 is 20 ma. How many ohms is R2? ohms What is the voltage drop across R1? V

More information

This is the Arduino Uno: This is the Arduino motor shield: Digital pins (0-13) Ground Rail

This is the Arduino Uno: This is the Arduino motor shield: Digital pins (0-13) Ground Rail Reacting to Sensors In this tutorial we will be going over how to program the Arduino to react to sensors. By the end of this workshop you will have an understanding of how to use sensors with the Arduino

More information

Lab 01 Arduino 程式設計實驗. Essential Arduino Programming and Digital Signal Process

Lab 01 Arduino 程式設計實驗. Essential Arduino Programming and Digital Signal Process Lab 01 Arduino 程式設計實驗 Essential Arduino Programming and Digital Signal Process Arduino Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. It's

More information

EP486 Microcontroller Applications

EP486 Microcontroller Applications EP486 Microcontroller Applications Topic 6 Step & Servo Motors Joystick & Water Sensors Department of Engineering Physics University of Gaziantep Nov 2013 Sayfa 1 Step Motor http://en.wikipedia.org/wiki/stepper_motor

More information

Arduino 101 AN INTRODUCTION TO ARDUINO BY WOMEN IN ENGINEERING FT T I NA A ND AW E S O ME ME NTO R S

Arduino 101 AN INTRODUCTION TO ARDUINO BY WOMEN IN ENGINEERING FT T I NA A ND AW E S O ME ME NTO R S Arduino 101 AN INTRODUCTION TO ARDUINO BY WOMEN IN ENGINEERING FT T I NA A ND AW E S O ME ME NTO R S Overview Motivation Circuit Design and Arduino Architecture Projects Blink the LED Switch Night Lamp

More information

Grove - Thumb Joystick

Grove - Thumb Joystick Grove - Thumb Joystick Release date: 9/20/2015 Version: 1.0 Wiki: http://www.seeedstudio.com/wiki/grove_-_thumb_joystick Bazaar: http://www.seeedstudio.com/depot/grove-thumb-joystick-p-935.html 1 Document

More information

StenBOT Robot Kit. Stensat Group LLC, Copyright 2018

StenBOT Robot Kit. Stensat Group LLC, Copyright 2018 StenBOT Robot Kit 1 Stensat Group LLC, Copyright 2018 Legal Stuff Stensat Group LLC assumes no responsibility and/or liability for the use of the kit and documentation. There is a 90 day warranty for the

More information

Digital Pins and Constants

Digital Pins and Constants Lesson Lesson : Digital Pins and Constants Digital Pins and Constants The Big Idea: This lesson is the first step toward learning to connect the Arduino to its surrounding world. You will connect lights

More information

Smart Objects. SAPIENZA Università di Roma, M.Sc. in Product Design Fabio Patrizi

Smart Objects. SAPIENZA Università di Roma, M.Sc. in Product Design Fabio Patrizi Smart Objects SAPIENZA Università di Roma, M.Sc. in Product Design Fabio Patrizi 1 What is a Smart Object? Essentially, an object that: Senses Thinks Acts 2 Example 1 https://www.youtube.com/watch?v=6bncjd8eke0

More information

Make your own secret locking mechanism to keep unwanted guests out of your space!

Make your own secret locking mechanism to keep unwanted guests out of your space! KNOCK LOCK Make your own secret locking mechanism to keep unwanted guests out of your space! Discover : input with a piezo, writing your own functions Time : 1 hour Level : Builds on projects : 1,,3,4,5

More information

The Arduino C code for the project is given in Appendix A. The general functionality and logic of the code is given as follows:

The Arduino C code for the project is given in Appendix A. The general functionality and logic of the code is given as follows: Objective and Overview The objective of the second project for this course was to explore and design an architectural robotics system or component for use by children, taking into consideration their needs.

More information

m-block By Wilmer Arellano

m-block By Wilmer Arellano m-block By Wilmer Arellano You are free: to Share to copy, distribute and transmit the work Under the following conditions: Attribution You must attribute the work in the manner specified by the author

More information

KNOCK LOCK MAKE YOUR OWN SECRET LOCKING MECHANISM TO KEEP UNWANTED GUESTS OUT OF YOUR SPACE! Discover: input with a piezo, writing your own functions

KNOCK LOCK MAKE YOUR OWN SECRET LOCKING MECHANISM TO KEEP UNWANTED GUESTS OUT OF YOUR SPACE! Discover: input with a piezo, writing your own functions 125 KNOCK LOCK MAKE YOUR OWN SECRET LOCKING MECHANISM TO KEEP UNWANTED GUESTS OUT OF YOUR SPACE! Discover: input with a piezo, writing your own functions Time: 1 HOUR Level: Builds on projects: 1, 2, 3,

More information

Necessary software and hardware:

Necessary software and hardware: Necessary software and hardware: Bases: First, remember that I m a French guy so my English is not perfect ;) If you see any mistakes, don t hesitate to tell me so I can correct them (my email is at the

More information

m-block By Wilmer Arellano

m-block By Wilmer Arellano m-block By Wilmer Arellano You are free: to Share to copy, distribute and transmit the work Under the following conditions: Attribution You must attribute the work in the manner specified by the author

More information

Arduino Programming Part 3. EAS 199A Fall 2010

Arduino Programming Part 3. EAS 199A Fall 2010 Arduino Programming Part 3 EAS 199A Fall 2010 Overview Part I Circuits and code to control the speed of a small DC motor. Use potentiometer for dynamic user input. Use PWM output from Arduino to control

More information

DFRduino Beginner Kit For Arduino V3 SKU:DFR0100

DFRduino Beginner Kit For Arduino V3 SKU:DFR0100 DFRduino Beginner Kit For Arduino V3 SKU:DFR0100 Contents 1 Introduction 2 Getting Started with Arduino 3 Tutorial 3.1 Blinking a LED 3.2 SOS Beacon 3.3 Traffic Light 3.4 Fading Light 3.5 RGB LED 3.6 Alarm

More information

Introduction to Arduino Diagrams & Code Brown County Library

Introduction to Arduino Diagrams & Code Brown County Library Introduction to Arduino Diagrams & Code Project 01: Blinking LED Components needed: Arduino Uno board LED Put long lead into pin 13 // Project 01: Blinking LED int LED = 13; // LED connected to digital

More information

Intro to Arduino. Zero to Prototyping in a Flash! Material designed by Linz Craig and Brian Huang

Intro to Arduino. Zero to Prototyping in a Flash! Material designed by Linz Craig and Brian Huang Intro to Arduino Zero to Prototyping in a Flash! Material designed by Linz Craig and Brian Huang Overview of Class Getting Started: Installation, Applications and Materials Electrical: Components, Ohm's

More information

Parts List. XBEE/Wifi Adapter board 4 standoffs ¼ inch screws Cable XBEE module or Wifi module

Parts List. XBEE/Wifi Adapter board 4 standoffs ¼ inch screws Cable XBEE module or Wifi module Rover Wifi Module 1 Legal Stuff Stensat Group LLC assumes no responsibility and/or liability for the use of the kit and documentation. There is a 90 day warranty for the Sten-Bot kit against component

More information

Introduction to Internet of Things Prof. Sudip Misra Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur

Introduction to Internet of Things Prof. Sudip Misra Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Introduction to Internet of Things Prof. Sudip Misra Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Lecture - 23 Introduction to Arduino- II Hi. Now, we will continue

More information

Parts List. XBEE/Wifi Adapter board 4 standoffs ¼ inch screws Cable XBEE module or Wifi module

Parts List. XBEE/Wifi Adapter board 4 standoffs ¼ inch screws Cable XBEE module or Wifi module Rover Wifi Module 1 Legal Stuff Stensat Group LLC assumes no responsibility and/or liability for the use of the kit and documentation. There is a 90 day warranty for the Sten-Bot kit against component

More information

Arduino Programming and Interfacing

Arduino Programming and Interfacing Arduino Programming and Interfacing Stensat Group LLC, Copyright 2017 1 Robotic Arm Experimenters Kit 2 Legal Stuff Stensat Group LLC assumes no responsibility and/or liability for the use of the kit and

More information

ROBOTLINKING THE POWER SUPPLY LEARNING KIT TUTORIAL

ROBOTLINKING THE POWER SUPPLY LEARNING KIT TUTORIAL ROBOTLINKING THE POWER SUPPLY LEARNING KIT TUTORIAL 1 Preface About RobotLinking RobotLinking is a technology company focused on 3D Printer, Raspberry Pi and Arduino open source community development.

More information

Rover 5. Explorer kit

Rover 5. Explorer kit Rover 5 Explorer kit The explorer kit provides the perfect interface between your Rover 5 chassis and your micro-controller with all the hardware you need so you can start programming right away. PCB Features:

More information

Sten-SLATE ESP Kit. Description and Programming

Sten-SLATE ESP Kit. Description and Programming Sten-SLATE ESP Kit Description and Programming Stensat Group LLC, Copyright 2016 Overview In this section, you will be introduced to the processor board electronics and the arduino software. At the end

More information

Create your own wireless motion sensor with

Create your own wireless motion sensor with Create your own wireless motion sensor with Arduino If you have a friend that has an alarm system in his or her home, I am sure you ve all seen these white motion sensors that are usually fixed above doors

More information

MAE106 Laboratory Exercises Lab # 1 - Laboratory tools

MAE106 Laboratory Exercises Lab # 1 - Laboratory tools MAE106 Laboratory Exercises Lab # 1 - Laboratory tools University of California, Irvine Department of Mechanical and Aerospace Engineering Goals To learn how to use the oscilloscope, function generator,

More information

Sanguino TSB. Introduction: Features:

Sanguino TSB. Introduction: Features: Sanguino TSB Introduction: Atmega644 is being used as CNC machine driver for a while. In 2012, Kristian Sloth Lauszus from Denmark developed a hardware add-on of Atmega644 for the popular Arduino IDE and

More information

Arduino Uno. Power & Interface. Arduino Part 1. Introductory Medical Device Prototyping. Digital I/O Pins. Reset Button. USB Interface.

Arduino Uno. Power & Interface. Arduino Part 1. Introductory Medical Device Prototyping. Digital I/O Pins. Reset Button. USB Interface. Introductory Medical Device Prototyping Arduino Part 1, http://saliterman.umn.edu/ Department of Biomedical Engineering, University of Minnesota Arduino Uno Power & Interface Reset Button USB Interface

More information

Experiment 4.A. Speed and Position Control. ECEN 2270 Electronics Design Laboratory 1

Experiment 4.A. Speed and Position Control. ECEN 2270 Electronics Design Laboratory 1 .A Speed and Position Control Electronics Design Laboratory 1 Procedures 4.A.0 4.A.1 4.A.2 4.A.3 4.A.4 Turn in your Pre-Lab before doing anything else Speed controller for second wheel Test Arduino Connect

More information

Elejandro the Electronic Elephant

Elejandro the Electronic Elephant Anagnost, Newberry 1 Kaitlin Anagnost Alex Newberry 12/4/17 Physics 124 Monday Lab Elejandro the Electronic Elephant Motivation As we enter the age of technology, people rely on convenient, cheap, on the

More information

How to use the Zduino LEE Module with the Trainer Board

How to use the Zduino LEE Module with the Trainer Board How to use the Zduino LEE Module with the Trainer Board Note: If you are going to use the Arduino/Zduino module for this distance training workshop, please download the Arduino software: 1. Connections

More information

FIRE SENSOR ROBOT USING ATMEGA8L

FIRE SENSOR ROBOT USING ATMEGA8L PROJECT REPORT MICROCONTROLLER AND APPLICATIONS ECE 304 FIRE SENSOR ROBOT USING ATMEGA8L BY AKSHAY PATHAK (11BEC1104) SUBMITTED TO: PROF. VENKAT SUBRAMANIAN PRAKHAR SINGH (11BEC1108) PIYUSH BLAGGAN (11BEC1053)

More information

Lesson 8: Digital Input, If Else

Lesson 8: Digital Input, If Else Lesson 8 Lesson 8: Digital Input, If Else Digital Input, If Else The Big Idea: This lesson adds the ability of an Arduino sketch to respond to its environment, taking different actions for different situations.

More information

SPDM Level 2 Smart Electronics Unit, Level 2

SPDM Level 2 Smart Electronics Unit, Level 2 SPDM Level 2 Smart Electronics Unit, Level 2 Evidence Folder John Johns Form 3b RSA Tipton 1.1 describe the purpose of circuit components and symbols. The candidate can describe the purpose of a range

More information

Physics 120/220. Microcontrollers Extras. Prof. Anyes Taffard

Physics 120/220. Microcontrollers Extras. Prof. Anyes Taffard Physics 120/220 Microcontrollers Extras Prof. Anyes Taffard Introduction 2 There are an infinite amount of applications for the Arduino. Lots of interfaces that can be controlled with it. Extension boards

More information

General Syntax. Operators. Variables. Arithmetic. Comparison. Assignment. Boolean. Types. Syntax int i; float j = 1.35; int k = (int) j;

General Syntax. Operators. Variables. Arithmetic. Comparison. Assignment. Boolean. Types. Syntax int i; float j = 1.35; int k = (int) j; General Syntax Statements are the basic building block of any C program. They can assign a value to a variable, or make a comparison, or make a function call. They must be terminated by a semicolon. Every

More information

ArdOS The Arduino Operating System Quick Start Guide and Examples

ArdOS The Arduino Operating System Quick Start Guide and Examples ArdOS The Arduino Operating System Quick Start Guide and Examples Contents 1. Introduction... 1 2. Obtaining ArdOS... 2 3. Installing ArdOS... 2 a. Arduino IDE Versions 1.0.4 and Prior... 2 b. Arduino

More information

Connecting Arduino to Processing a

Connecting Arduino to Processing a Connecting Arduino to Processing a learn.sparkfun.com tutorial Available online at: http://sfe.io/t69 Contents Introduction From Arduino......to Processing From Processing......to Arduino Shaking Hands

More information

The Big Idea: Background: About Serial

The Big Idea: Background: About Serial Lesson 6 Lesson 6: Serial Serial Input Input The Big Idea: Information coming into an Arduino sketch is called input. This lesson focuses on text in the form of characters that come from the user via the

More information

Robotics and Electronics Unit 5

Robotics and Electronics Unit 5 Robotics and Electronics Unit 5 Objectives. Students will work with mechanical push buttons understand the shortcomings of the delay function and how to use the millis function. In this unit we will use

More information

Introduction to Arduino Diagrams & Code Brown County Library

Introduction to Arduino Diagrams & Code Brown County Library Introduction to Arduino Diagrams & Code Project 01: Blinking LED Components needed: Arduino Uno board LED Put long lead into pin 13 // Project 01: Blinking LED int LED = 13; // LED connected to digital

More information

Arduino Programming. Arduino UNO & Innoesys Educational Shield

Arduino Programming. Arduino UNO & Innoesys Educational Shield Arduino Programming Arduino UNO & Innoesys Educational Shield www.devobox.com Electronic Components & Prototyping Tools 79 Leandrou, 10443, Athens +30 210 51 55 513, info@devobox.com ARDUINO UNO... 3 INNOESYS

More information

DESERT CODE CAMP

DESERT CODE CAMP Implementing Multiple Serial Ports On An Arduino DESERT CODE CAMP 2011.2 Presented by Don Doerres Embedded Pro Guy don@azlaborlaw.com THE ARDUINO Arduino is Italian for Strong Friend The basic Arduino

More information

Touch Board User Guide. Introduction

Touch Board User Guide. Introduction Touch Board User Guide Introduction The Crazy Circuits Touch Board is a fun way to create interactive projects. The Touch Board has 11 built in Touch Points for use with projects and also features built

More information

C++ Arrays. To declare an array in C++, the programmer specifies the type of the elements and the number of elements required by an array as follows

C++ Arrays. To declare an array in C++, the programmer specifies the type of the elements and the number of elements required by an array as follows Source: Tutorials Point C++ Arrays C++ Arrays C++ provides a data structure, the array, which stores a fixed-size, sequential collection of elements of the same type An array is used to store a collection

More information

Connecting Arduino to Processing

Connecting Arduino to Processing Connecting Arduino to Processing Introduction to Processing So, you ve blinked some LEDs with Arduino, and maybe you ve even drawn some pretty pictures with Processing - what s next? At this point you

More information

Adapted from a lab originally written by Simon Hastings and Bill Ashmanskas

Adapted from a lab originally written by Simon Hastings and Bill Ashmanskas Physics 364 Arduino Lab 1 Adapted from a lab originally written by Simon Hastings and Bill Ashmanskas Vithayathil/Kroll Introduction Last revised: 2014-11-12 This lab introduces you to an electronic development

More information

This tutorial will show you how to take temperature readings using the Freetronics temperature sensor and an Arduino Uno.

This tutorial will show you how to take temperature readings using the Freetronics temperature sensor and an Arduino Uno. This tutorial will show you how to take temperature readings using the Freetronics temperature sensor and an Arduino Uno. Note that there are two different module types: the temperature sensor module and

More information

Number Name Description Notes Image 0101 Resistor, 100 ohm. brown-black-browngold. ¼ watt, 5% tolerance, red-red-brown-gold. brown-black-red-gold.

Number Name Description Notes Image 0101 Resistor, 100 ohm. brown-black-browngold. ¼ watt, 5% tolerance, red-red-brown-gold. brown-black-red-gold. Passive Components 0101 Resistor, 100 brown-black-browngold. 690620 0102 Resistor, 220 red-red-brown-gold. 690700 0103 Resistor, 1000 brown-black-red-gold. 690865 0104 Resistor, 10k 0201 Capacitor, 1 µf,

More information

Reading ps2 mouse output with an Arduino

Reading ps2 mouse output with an Arduino Reading ps2 mouse output with an Arduino Kyle P & Mike K 4 / 24 / 2012 Our goal was to create a piece of equipment that senses how much a robot drifts left to right by using an optical encoder. Background:

More information

Create moving images in forward and reverse with your Arduino when you connect a motor to an H-bridge and some still images BATTERY POTENTIOMETER

Create moving images in forward and reverse with your Arduino when you connect a motor to an H-bridge and some still images BATTERY POTENTIOMETER ZOETROPE Create moving images in forward and reverse with your Arduino when you connect a motor to an H-bridge and some still images Discover : H-bridges Time : 30 minutes Level : Builds on projects :

More information

Advanced Activities - Information and Ideas

Advanced Activities - Information and Ideas Advanced Activities - Information and Ideas Congratulations! You successfully created and controlled the robotic chameleon using the program developed for the chameleon project. Here you'll learn how you

More information

Quantum Phase Isochromatic Pluckeasy

Quantum Phase Isochromatic Pluckeasy Quantum Phase Isochromatic Pluckeasy Laser Harp for short Paul Holcomb Timothy Tribby Hardware Overview IR Sensors Arduino With ATmega 1280 Motor With Rotating Mirror Laser Module Laser Harp Goals Display

More information

Input Shield For Arduino SKU: DFR0008

Input Shield For Arduino SKU: DFR0008 Input Shield For Arduino SKU: DFR0008 Contents 1 Introduction 2 Specification 3 Pin Allocation 4 Sample Code1 5 Sample Code2 6 Version history Introduction The upgraded Arduino Input Shield includes a

More information

Thumb Joystick Retail. Tools and parts you'll need. Things you'll want to know. How does it work? Skill Level: Beginner. by MikeGrusin March 22, 2011

Thumb Joystick Retail. Tools and parts you'll need. Things you'll want to know. How does it work? Skill Level: Beginner. by MikeGrusin March 22, 2011 Thumb Joystick Retail Skill Level: Beginner by MikeGrusin March 22, 2011 Thank you for purchasing our Thumb Joystick! Whether you're blasting aliens or driving a robot, you'll find it a very useful addition

More information

Physics 364, Fall 2012, Lab #9 (Introduction to microprocessor programming with the Arduino) Lab for Monday, November 5

Physics 364, Fall 2012, Lab #9 (Introduction to microprocessor programming with the Arduino) Lab for Monday, November 5 Physics 364, Fall 2012, Lab #9 (Introduction to microprocessor programming with the Arduino) Lab for Monday, November 5 Up until this point we have been working with discrete digital components. Every

More information

BASIC COMPUTER ORGANIZATION. Operating System Concepts 8 th Edition

BASIC COMPUTER ORGANIZATION. Operating System Concepts 8 th Edition BASIC COMPUTER ORGANIZATION Silberschatz, Galvin and Gagne 2009 Topics CPU Structure Registers Memory Hierarchy (L1/L2/L3/RAM) Machine Language Assembly Language Running Process 3.2 Silberschatz, Galvin

More information

keyestudio ARDUINO super learning kit

keyestudio ARDUINO super learning kit ARDUINO super learning kit 1 Catalog 1. Introduction... 3 2. Component list... 3 3. Project list...10 4. Project details... 11 Project 1: Hello World...11 Project 2: LED blinking... 14 Project 3: PWM...16

More information

Metro Minimalist Clock

Metro Minimalist Clock Metro Minimalist Clock Created by John Park Last updated on 2018-08-22 04:01:22 PM UTC Guide Contents Guide Contents Overview For this build you'll need: Clock Circuit Code the Clock Display the Clock

More information

Laboratory 1 Introduction to the Arduino boards

Laboratory 1 Introduction to the Arduino boards Laboratory 1 Introduction to the Arduino boards The set of Arduino development tools include µc (microcontroller) boards, accessories (peripheral modules, components etc.) and open source software tools

More information

Getting Started Manual for CODIBOT

Getting Started Manual for CODIBOT a Getting Started Manual for CODIBOT Step 1: Open the Box. Step 2: Inside the box you will find the Pre-Assembled body of CODIBOT along with the Add-On packs, Connecting Wires, Nuts & Bolts. Take out the

More information

Physical Computing Self-Quiz

Physical Computing Self-Quiz Physical Computing Self-Quiz The following are questions you should be able to answer by the middle of the semeter in Introduction to Physical Computing. Give yourself 6.5 points for questions where you

More information

Procedure: Determine the polarity of the LED. Use the following image to help:

Procedure: Determine the polarity of the LED. Use the following image to help: Section 2: Lab Activity Section 2.1 Getting started: LED Blink Purpose: To understand how to upload a program to the Arduino and to understand the function of each line of code in a simple program. This

More information

University of Portland EE 271 Electrical Circuits Laboratory. Experiment: Arduino

University of Portland EE 271 Electrical Circuits Laboratory. Experiment: Arduino University of Portland EE 271 Electrical Circuits Laboratory Experiment: Arduino I. Objective The objective of this experiment is to learn how to use the Arduino microcontroller to monitor switches and

More information

Robot Eyes. DAY 3 Let's Make a Robot

Robot Eyes. DAY 3 Let's Make a Robot DAY 3 Let's Make a Robot Objective: Students will learn to use an SR04 Sonar component to measure distance. The Students will then build their robot, establish programming to control the motors and then

More information

AlphaBot2 robot building kit for Arduino

AlphaBot2 robot building kit for Arduino AlphaBot2 robot building kit for Arduino SKU 110060864 Description This AlphaBot2 robot kit is designed to use with an Arduino compatible board UNO PLUS. It features rich common robot functions including

More information

Controlling a fischertechnik Conveyor Belt with Arduino board

Controlling a fischertechnik Conveyor Belt with Arduino board EXPERIMENT TITLE: Controlling a fischertechnik Conveyor Belt with Arduino board PRODUCTS USED: CHALLENGE: AUTHOR: CREDITS: Interface and control a conveyor belt model (24 Volts, fischertechnik) with an

More information

4Serial SIK BINDER //77

4Serial SIK BINDER //77 4Serial SIK BINDER //77 SIK BINDER //78 Serial Communication Serial is used to communicate between your computer and the RedBoard as well as between RedBoard boards and other devices. Serial uses a serial

More information

HUB-ee BMD-S Arduino Proto Shield V1.0

HUB-ee BMD-S Arduino Proto Shield V1.0 HUB-ee BMD-S Arduino Proto Shield V1.0 User guide and assembly instructions Document Version 1.0 Introduction 2 Schematic 3 Quick user guide 4 Assembly 5 1) DIP Switches 5 2) Micro-MaTch Connector Headers

More information

keyestudio keyestudio advanced study kit for Arduino

keyestudio keyestudio advanced study kit for Arduino keyestudio advanced study kit for Arduino Catalog Kit introduction... 1 Introduction of Keyestudio UNO R3 board...1 Introduction of Keyestudio Mega 2560 R3 board... 6 Components List... 9 Project list...14

More information

Using Methods. Writing your own methods. Dr. Siobhán Drohan Mairead Meagher. Produced by: Department of Computing and Mathematics

Using Methods. Writing your own methods. Dr. Siobhán Drohan Mairead Meagher. Produced by: Department of Computing and Mathematics Using Methods Writing your own methods Produced by: Dr. Siobhán Drohan Mairead Meagher Department of Computing and Mathematics http://www.wit.ie/ Topics list Recap of method terminology: Return type Method

More information

IME-100 ECE. Lab 4. Electrical and Computer Engineering Department Kettering University. G. Tewolde, IME100-ECE,

IME-100 ECE. Lab 4. Electrical and Computer Engineering Department Kettering University. G. Tewolde, IME100-ECE, IME-100 ECE Lab 4 Electrical and Computer Engineering Department Kettering University 4-1 1. Laboratory Computers Getting Started i. Log-in with User Name: Kettering Student (no password required) ii.

More information

Introduction to Arduino

Introduction to Arduino Introduction to Arduino Paco Abad May 20 th, 2011 WGM #21 Outline What is Arduino? Where to start Types Shields Alternatives Know your board Installing and using the IDE Digital output Serial communication

More information

Pointers, Arrays and Parameters

Pointers, Arrays and Parameters Pointers, Arrays and Parameters This exercise is different from our usual exercises. You don t have so much a problem to solve by creating a program but rather some things to understand about the programming

More information

Grove - 80cm Infrared Proximity Sensor

Grove - 80cm Infrared Proximity Sensor Grove - 80cm Infrared Proximity Sensor Introduction 3.3V 5.0V Analog The 80cm Infrared Proximity Sensor is a General Purpose Type Distance Measuring Sensor. This sensor SharpGP2Y0A21YK, boasts a small

More information

Introduction to Arduino. Wilson Wingston Sharon

Introduction to Arduino. Wilson Wingston Sharon Introduction to Arduino Wilson Wingston Sharon cto@workshopindia.com Physical computing Developing solutions that implement a software to interact with elements in the physical universe. 1. Sensors convert

More information

Fall Harris & Harris

Fall Harris & Harris E11: Autonomous Vehicles Fall 2011 Harris & Harris PS 1: Welcome to Arduino This is the first of five programming problem sets. In this assignment you will learn to program the Arduino board that you recently

More information

Counter & LED (LED Blink)

Counter & LED (LED Blink) 1 T.R.E. Meeting #1 Counter & LED (LED Blink) September 17, 2017 Contact Info for Today s Lesson: President Ryan Muller mullerr@vt.edu 610-573-1890 Learning Objectives: Learn how to use the basics of Arduino

More information

Section 3 Board Experiments

Section 3 Board Experiments Section 3 Board Experiments Section Overview These experiments are intended to show some of the application possibilities of the Mechatronics board. The application examples are broken into groups based

More information

Dual rocket altimeter using the ATmega 328 microcontroller. The AltiDuo

Dual rocket altimeter using the ATmega 328 microcontroller. The AltiDuo Dual rocket altimeter using the ATmega 328 microcontroller The AltiDuo Version date Author Comments 1.0 29/12/2012 Boris du Reau Initial Version Boris.dureau@neuf.fr 1.1 17/02/2013 Boris du Reau Updated

More information

T-Scratch Basics. Coding with IDE (Software)

T-Scratch Basics. Coding with IDE (Software) T-Scratch Basics Coding with IDE (Software) Learning Objective In this lesson you will learn: T-Scratch Bluetooth-Bluetooth Allow 2 T-Scratch modules to communicate with one another. Using T-Scratch s

More information

Project Development & Background. Equipment List. DC Power Adapter (9V,2A) Ball Castor 7805 IC L293D IC Breadboard & Jumper wires

Project Development & Background. Equipment List. DC Power Adapter (9V,2A) Ball Castor 7805 IC L293D IC Breadboard & Jumper wires Line Following Robot With Color Detection Authors : Md. Risat Abedin, Faysal Alam, Ajwad Muhtasim Dip Department of Electrical & Electronic Engineering Ahsanullah University of Science & Technology Email:

More information

Arduino notes IDE. Serial commands. Arduino C language. Program structure. Arduino web site:

Arduino notes IDE. Serial commands. Arduino C language. Program structure. Arduino web site: 1 Arduino notes This is not a tutorial, but a collection of personal notes to remember the essentials of Arduino programming. The program fragments are snippets that represent the essential pieces of code,

More information

2SKILL. Variables Lesson 6. Remembering numbers (and other stuff)...

2SKILL. Variables Lesson 6. Remembering numbers (and other stuff)... Remembering numbers (and other stuff)... Let s talk about one of the most important things in any programming language. It s called a variable. Don t let the name scare you. What it does is really simple.

More information

Grove - Mini I2C Motor Driver v1.0

Grove - Mini I2C Motor Driver v1.0 Grove - Mini I2C Motor Driver v1.0 Introduction 3.3V 5.0V I2C This Grove - MIni I2C motor driver includes two DRV8830. The DRV8830 provides an integrated motor driver solution for battery-powered toys,

More information

Which LED(s) turn on? May 4, 2018 E40M Spring 2018 T. Diamandis, J. Plummer, R. Howe, C. Z. Lee 1

Which LED(s) turn on? May 4, 2018 E40M Spring 2018 T. Diamandis, J. Plummer, R. Howe, C. Z. Lee 1 Which LED(s) turn on? May 4, 2018 E40M Spring 2018 T. Diamandis, J. Plummer, R. Howe, C. Z. Lee 1 Lab 3b, 3c The LED Cube ENGR 40M Theo Diamandis Stanford University 04 May 2018 Overview Goal: To write

More information