Physical Computing Tutorials

Size: px
Start display at page:

Download "Physical Computing Tutorials"

Transcription

1 Physical Computing Tutorials How to install libraries Powering an Arduino Using an MPR121 capacitive touch sensor Using a Sparkfun MP3 Trigger Controlling an actuator with TinkerKit Mosfet Making sounds with a piezo Using a Sparkfun Sound Detector How to connect a push button or switch Using a HC-SR04 distance sensor Connecting a Potentiometer How to connect a Light Dependent Resistor (LDR) How to use a rotary encoder

2 How to install libraries Arduino libraries are collections of code that are designed to provide additional, reusable functionality or to simplify using external electronic modules. Libraries typically come with examples of how to use them. The library developer usually provides online documentation and explains how it possibly relates to what you are trying to achieve. Installing a library There are three different ways to install libraries; we'll show you each of them. Arduino Library Manager The simplest method of installing libraries is using the Library Manager built into the Arduino IDE. You can access the Library Manager from the menu bar:

3 A new window will open: From here you can search for libraries to use in your code. Only a few libraries are

4 currently available this way, as this feature is relatively new. You will often have to manually download and install a library, following the other two processes. ZIP library Locate and download a library you wish to use. Sometimes the library will download as a *.zip archive, which can sometimes be installed directly without restarting the Arduino IDE. Similar to the Library Manager, this option is in the menu bar: Use the file dialog to locate and select the zip file from your Downloads folder. You will be notified if the installation has been successful otherwise you'll need to install manually. Manually adding libraries This is the original method of adding libraries. 1. Locate the Arduino folder inside your Documents directory. 2. Open the libraries folder. If not found, create a new folder with that name (must be lowercase). 3. Unzip the library archive that you wish to install. 4. Inside the archive you should find a folder bearing the name of the library for

5 example 'MPR121'. 5. Copy this entire folder (named 'MPR121' in our example) into the Arduino's libraries folder. 6. Restart the Arduino IDE. 7. In the menu bar, select Sketch > Include Library. You should now see that your library is listed:

6 Powering an Arduino Here is some resources about powering Arduino or other electronic projects: General How to power an Arduino: How to power a project: What adapter? Portable / Battery powered For portable projects some info on battery usage

7 9V batteries are bad: Motors (To do)

8 Using an MPR121 capacitive touch sensor What is the MPR121? The MPR121 is a tiny microchip formerly manufactured by NXP, now under Resurgent Semiconductor, it is a tiny surface mount device that provides 12 capacitive touch electrodes through an I2C interface. What is capacitive touch? Capacitive touch the the technology used on modern touch sensitive devices such as phone and tablet screens, trackpads and computer mice like Apple's Magic Mouse. Capacitive touch takes advantage of the human body being electrically conductive, this is why using a pen on a smart phone doesn't work and styluses for these devices are made of metal so they will make an electrical connection.

9 Capacitive touch is relatively complex to understand but fundamentally the sensor can detect when you are in proximity or actually touching the electrode, or any conductive part between the chip and the end of the wire. If you extend a wire from the electrode, even if it is shielded with plastic, it will probably detect you touching the wire just the same as the exposed metal part. Different versions of MPR121 The first common use of the MPR121 in physical computing was the now discontinued Sparkfun MPR121 breakout, this is the most commonly available version in the Prototyping Lab here at LCC. MPR121 breakouts from Adafruit and Seedstudio also exist, and we've begin replacing our Sparkfun boards with Adafruit as the Sparkfun boards break and need replacing. Additionally the MPR121 is used in the Bare Conductive Touch Board which is effectively an Arduino Leonardo with an MPR121 and MP3/WAV/OGG/MIDI player (similar to the Sparkfun MP3 Trigger) integrated one board. Key differences

10 Sparkfun MPR121 Power input: 3.3V only! 5V is the primary reason these break. Address: 0x5A is the default address, changing this requires alterations to the board Adafruit MPR121 Power input: 3.3V to 5V Address: 0x5A, it is also relatively easy to configure the address to 0x5B, 0x5C or 0x5D allowing up to 48 electrodes (12 x 4). Wiring Wiring is pretty simple, it's an I2C component so it's relatively standard. Warning The Sparkfun MPR121 is a 3.3V device, do not connect the power pins to 5V, you will instantly destroy the board.? Older Arduino boards Some older Arduino boards do not have SDA and SCL pins as shown in the diagrams,? in this case you'll need to look it up on the boards documentation, however most Arduino boards used A4 as SDA and A4 as SCL.

11 Sparkfun MPR121 Adafruit MPR121

12 Library Adafruit, Sparkfun, Seeedstudio and Bare Conductive all provide Arduino libraries, however by far the best which includes tools for visualising the data is the Bare Conductive Touch Board library and grapher. All libraries should all work interchangeably as long as you get the correct address and IRQ pin.

13 The key thing to remember when using examples from the Bare Conductive library is that they use the address 0x5C rather than the default 0x5A address used on both the Sparkfun and Adafruit boards, also ensure that you use the correct IRQ pin based on the example you are using. We have a tutorial on how to install a library here. Getting started After installing the library and wiring the board, go ahead and use the examples in the File > Examples menu in Arduino, the Simple Touch example is particularly good as it's simple to check it's working. Basic Example This is a basic example of using the MPR121 with the Bare Conductive MPR121 library to get the proximity value and touch status, this can easily be extrapolated into a project. Sketch: Basic Example CSV Example This is an example using the MPR121 with the Bare Conductive MPR121 library to output each electrode's touch status to the serial port as a comma separated string. This example can be modified to work with MaxMSP easily by changing the delimiter line

14 to a space instead of a comma: #define DELIMITER " " You could also modify this example to output the proximity data, instead of the touch data by modifying the updatetouchdata line to: MPR121.updateFilteredData(); And the gettouchdata line to: Serial.print( MPR121.getFilteredData( i ) ); Sketch: CSV Example

15 Using a Sparkfun MP3 Trigger What is the MP3 Trigger? The MP3 trigger is a board made by Sparkfun electronics that provides a way to play MP3 files from a Micro SD card via either one of 18 TRIG inputs on the board, or serial communication with the board. The MP3 Trigger has a headphone output which can be connected to powered speakers of your headphones for testing. Loading files You must us a micro SDSC (up to 2GB) card, or a SDHC (up to 32GB) card formatted in FAT16 or FAT32. After inserting the card you must power cycle the MP3 Trigger so it detects the card, this can be done by switching the USB <-> EXT switch back and forth.

16 USB: means power from the Arduino. EXT: means power via the 2.1mm connector to the left of the switch. File naming Files should be named 001.MP3 through 018.MP3, and the MP3 Trigger will match the file name to the TRIG pins, if you controlling the MP3 Trigger via serial the number will match 0 to 255. Wiring Wiring is simple: There are three wires: 1. Ground (GND connects to GND) 2. Power (USBVCC connects to 5V) 3. Data (RX on the MP3 Trigger to TX on the Arduino) 4. Optionally you can connect the TX on the MP3 Trigger back to the RX on the Arduino if you wish to get playback status information.

17 Warning Arduino Leonardo, unlike Arduino Uno has two serial ports. In this example we will be using Arduino Uno, if however you want to use Arduino Leonardo you'll need to use Serial1 which is the RX/TX pins on pins 0 and 1, rather than Serial which is the USB serial monitor. Read more? Getting started There are libraries available for the Sparkfun MP3 Trigger however it's so easy to use it's easier to use Serial.print to control it rather than a library.

18 Basic Example This basic example will play 001.MP3-005.MP3 from the SD card with a 1 second delay between playing each. This is a great demo of how to play files from the SD card via Serial. Sketch: Basic example - Arduino Uno Sketch: Basic example - Arduino Leonardo Sample MP3 files To help you get up and running quickly there are 5 example MP3's you can use with the basic example of Tom saying 1-5. Example MP3 Files Resources Sparkfun Hookup Guide

19 Controlling an actuator with TinkerKit Mosfet What is the TinkerKit Mosfet? The TinkerKit Mosfet is a simple module for controlling devices like motors, solenoids, LED strips and electromagnets which require higher voltages and currents than the Arduino can handle alone. Typically you might find an example of a mosfet circuit online when trying to solve this problem, however high current circuits can melt breadboards, and accidentally wiring up the 12 or 24 volt power supply to your Arduino is a easily made mistake that will damage the Arduino and potentially your computer.

20 For this reason we use a small, cheap module which takes away all these headaches, on the Arduino side you have three header pins and on the actuator side you've got your power in, and switched power out. In effect TinkerKit Mosfet is an electronic switch that can turn your actuator on and off using an Arduino. Wiring There are three wires to connect on the Arduino side: 1. Ground ( - connects to GND ) 2. Power ( + connects to 5V) 3. Signal (The middle pin connects to your Arduino pin e.g. pin 6) On the other side there are four screw terminals, labeled: GND (Connects to your power supply ground) +V (Connects to your power supply positive) M+ (Connects to one side of your actuator) M- (Connects to the other side of your actuator) Warning The TinkerKit Mosfet can only drive up to 24V DC.?

21 Getting started After wiring up the board it can be controlled via digitalwrite just like an LED. There are some quick examples below: Basic Example This basic example is effectively the blink sketch, the TinkerKit Mosfet operates just like any other digital device. #define actuatorpin 6 void setup() {

22 pinmode( actuatorpin, OUTPUT ); } void loop() { digitalwrite( actuatorpin, HIGH ); delay( 1000 ); digitalwrite( actuatorpin, LOW ); delay( 1000 ); } Advanced Example You can also control the speed of some actuators, normally this is only useful for motors, this is accomplished using analogwrite (PWM) this is effectively the same as setting the brightness of an LED. Danger Below a certain voltage/pwm value most actuators such as motors will stall (won't turn), this will cause the motor to become extremely hot potentially causing a fire damaging the motor, or burning you. Always make sure your code prevents the speed of the motor going below the stall speed, you can find the stall speed by testing different values until the motor is only just turning, this should be your minimum.? #define actuatorpin 6 void setup() { pinmode( actuatorpin, OUTPUT ); } void loop() { // This example uses 128 as an example of the minimum motor speed to protect the motor for ( int i = 128; i < 255; i++ ) { analogwrite( actuatorpin, i ); delay( 10 ); } }

23 Making sounds with a piezo What is a piezo? 'Piezo' normally refers to an electrical component which can be used to make sound, however more broadly a piezo is a component that is susceptible to the two-way piezoelectric effect where pressing or squeezing the piezo element can create a small voltage, and vice versa a small voltage can create a small expanding/contracting movement. Practically this means you can use a piezo to make sounds like a simple speaker, or act as a contact microphone. In this tutorial we'll look at wiring it up to Arduino with the Tone feature to create a melody. Wiring

24 Wiring is simple, there are just two wires, applying power causes the piezo to expand, just as applying power to an LED causes it to illuminate. 1. Ground 2. Power Getting started To get started quickly you can use one of the examples from the Arduino examples menu:

25 Read more about tone()

26 Using a Sparkfun Sound Detector What is the Sound Detector? The Sound Detector is a board made by Sparkfun electronics that provides a way to detect ambient sound levels. There are three connections on the board: Audio - This is the raw audio from the microphone. Envelope - This is a analog value representing the volume of the ambient sound. Gate - This is a digital value representing if sound levels are low or high.

27 Wiring There are two options for wiring, you can use both at the same time: Digital Wired up in digital mode the sound detector signals if the sound level is low with a LOW signal, and high with a HIGH signal. This method requires: 1. Power (VCC to 5V) 2. Ground (GND to GND) 3. Gate to a digital pin on the Arduino (turquoise wire in the diagram) Analog Wired up in analog mode the sound detector provides voltage proportional to the sound level. This method requires: 1. Power (VCC to 5V) 2. Ground (GND to GND)

28 3. Envelope to a analog pin on the Arduino (pink wire in the diagram) There are three wires: Diagram

29 Getting started Once wired, the code is that of a standard digitalread or analogread to obtain the value. Example code reading envelope #define envelopepin A0 void setup() { Serial.begin( 9600 ); pinmode( envelopepin, INPUT ); } void loop() { Serial.println( analogread( envelopepin ) ); } Example code reading gate #define gatepin 2 void setup() { Serial.begin( 9600 ); pinmode( gatepin, INPUT ); } void loop() { Serial.println( digitalread( gatepin ) ); }

30 Resources Sparkfun Hookup Guide

31 How to connect a push button or switch What is are push buttons/switches? Buttons and switches are a way of opening and closing a circuit, i.e. making and breaking a connection as one of the most rudimentary forms of sensor you can use with an Arduino. There are dozens of different types of switches and buttons, but at their most basic is the momentary push button which we'll be focusing on in the wiring and getting started sections below. However the same approach applies to these as it does to any other type of button or switch. Different types Rocker switch

32 Push button Tactile button Reed switch Tilt switch Key operated switch Rotary switch Slide switch Micro switch Toggle switch There are many different types for different purposes: Push buttons like those found in a computer keyboard are really useful for activating an action, like a start video button.

33 Rocker, slide and toggle switches work more like light switches holding their position, they can be a good way of indicating the mode of a device, such as playing video forward or backwards.

34 Micro switches can with motors to detect when it has reached the end of movement, such as in a 3D printer to stop the motor going too far over the end, or to detect if a draw is open or closed. Wiring Wiring up buttons and switches is simple, however there is a complexity you might not

35 have thought about. Although a push button like that in the diagram only has two connections, which are closed by pressing the button, you have to add a resistor to make the circuit work properly. When the button is pressed the current on one side is able to flow to the other, however when the button is released the circuit is broken and the wire to the Arduino is known as floating, the voltage is indeterminate, so we need to connect it to ground to ensure the Arduino reads 0V. It's not possible however to do this otherwise when you apply 5V by closing the circuit you would create a short circuit, instead we connect the Arduino pin through a high value 10KΩ resistor to ground, this allows the circuit to quickly reach 0V when the button is released but prevents large amounts of current flowing when the button is pressed. Getting started The following is a simple circuit that will get your button controlling the LED built into the

36 Arduino. #define ledpin 13 #define buttonpin 7 void setup() { pinmode( ledpin, OUTPUT ); pinmode( buttonpin, INPUT ); } void loop() { boolean btnstate = digitalread( buttonpin ); if ( btnstate == HIGH ) { digitalwrite( ledpin, HIGH ); } else { digitalwrite( ledpin, LOW ); } } If you want to add a toggle functionality such that one press causes the LED to come on, and another press then turns it off, so you don't have to hold the button down things get a little bit more complex. The Arduino is a powerful computer and operates many times faster than human perception, as such when the mechanical push button is closed there is a small amount of 'bounce' where the circuit makes and breaks the connection a few times before it settles, this is detected by the Arduino as multiple presses.

37 This diagram shows the signal bouncing up and down over a period of 10µS ( seconds) In effect this means that each time you press the button to toggle just once it toggles multiple times, you can fix this either with a small capacitor, or modifications to your Arduino sketch. The code here adds two major changes, first it tracks the current and previous button state through each loop meaning it can see if the button has changed from LOW to HIGH, and then adds a delay of 75ms to allow the button to settle but keep it fast enough that the user doesn't perceive this delay. #define ledpin 13 #define buttonpin 7 boolean ledstate = LOW; boolean prevbtnstate = LOW; void setup() { pinmode( ledpin, OUTPUT ); pinmode( buttonpin, INPUT ); } void loop() { boolean btnstate = digitalread( buttonpin );

38 if ( btnstate == HIGH && prevbtnstate == LOW ) { ledstate =! ledstate; delay( 75 ); } digitalwrite( ledpin, ledstate ); prevbtnstate = btnstate; }

39 Using a HC-SR04 distance sensor What is the HC-SR04? The HC-SR04 is a ultrasonic distance sensor, it uses ultrasound to send out a ping and measure how long the sound takes to come back, exactly like bats use to fly in the dark. The sensor works between 2-400cm however if the ping sound is reflected away from the sensor by an a divergent (not parallel) surface, or absorbed by a soft surface like fabric there may no measurement. There are other types of distance sensors that are more accurate for projects where needed, this is a cheap < 5 sensor, while more accurate ones are over 100. Wiring

40 Wiring up buttons and switches is simple: 1. Power (VCC to 5V) 2. Ground (GND to GND) 3. Echo to digital pin 8 4. Trigger to digital pin 7 Additionally in this diagram there is a LED attached to digital pin 13 for the getting started example code, however this isn't required for other projects.

41 Getting started This example turns on an LED when the distance measured is less than 50cm and back off when the distance goes over 60cm. #include <NewPing.h> #define trigpin 7 #define echopin 8 #define maxdistance 400 NewPing sonar( trigpin, echopin, maxdistance); void setup() { Serial.begin( 9600 ); } void loop() { Serial.println( sonar.ping_cm() ); delay( 100 ); } To use this code you will need the NewPing Library. We have a tutorial on how to install a library here.

42 Connecting a Potentiometer What is a potentiometer? A potentiometer (often abbreviated to pot) is an electronic component with three connections, the main purpose of the pot is to create a variable voltage as an input to a circuit, for example controlling how loud your speakers should be.

43 Inside a potentiometer is a large resistive area between pin #1 and #3, the middle pin #2 is called the wiper, and by actuating the pot you can select a position along that resistive area to create a proportional to the voltage between pins #1 and #3. For example if you have Ground (0V) on pin #1, and 5V on pin #3, you could select a voltage between 0V to 5V, at the half way the voltage on pin #2 would be 2.5V. Different types There are two main types:

44 Rotary Potentiometers like those found on speakers to control the volume.

45 Slide Potentiometer like those found on audio mixing desks. Wiring Wiring up buttons and switches is simple, both are fundamentally the same, however it can be tricky identifying pins #1, #2, and #3 (more on this later). At its most basic, pins #1 and #3 need to be connected to Power and Ground, for example

46 5V and GND on an Arduino. Pin #2 the wiper needs to be connected to the analog input pins: Rotary Potentiometer Wiring

47 Slide Potentiometer Wiring

48 Identifying the pins of a potentiometer The most common type of potentiometer to use is a 10KΩ potentiometer, that means the

49 resistance between pin #1 and #3 is fixed at 10KΩ or thereabouts, and that the resistance between pin #2 and either of the other two will be proportional to the position of the potentiometer rotation/sliding. In other words, using a multimeter set to resistance/ohms/ω measurement you can find the two pins that don't change at all, and measure a resistance close to the rating marked on it. The remaining leg is likely the wiper. Getting started The following is a simple sketch that will get a potentiometer controlling the LED built into the Arduino. This sketch will make the LED blink at a rate between 0ms to 1023ms, this is because the function analogread returns a value between #define ledpin 13 #define potpin A0 void setup() { pinmode( ledpin, OUTPUT ); pinmode( potpin, INPUT ); } void loop() { digitalwrite( ledpin, HIGH ); delay( analogread( potpin ) ); digitalwrite( ledpin, LOW ); delay( analogread( potpin ) ); }

50 How to connect a Light Dependent Resistor (LDR) What is an LDR? An LDR or Light Dependent Resistor is a component which restricts how much power can flow through a circuit based on how much or little light hits the sensitive part on the top.

51 Wiring To use a Light Dependent Resistor, we have to use it in combination with a fixed value resistor, the combination of these two components acts a little like a kitchen mixer tap, we can vary the temperature (voltage) by adjusting the tap. The zig-zag lines indicate resistors, the voltage output we measure with the Arduino comes from this middle point between the two, as the value of the LDR varies it changes the voltage between Ground (0V) and 5V (VCC).

52 More information about voltage dividers. Getting started The following code uses analogread() to get a integer between representing the voltage, where 0 is 0V and 1023 is 5V. The code below uses the serial port to output the value every 50ms to the Serial Monitor. #define ldrpin A0 void setup() { Serial.begin( 9600 ); pinmode( ldrpin, INPUT ); } void loop() { Serial.println( analogread( ldrpin ) ); delay( 50 ); }

53 How to use a rotary encoder What is a rotary encoder? A rotary encoder is a device used to measure the rotation of something, similar to a rotary potentiometer but not limited to how many rotations can be made, a common example of a rotary encoder is the volume dial on a car radio, which can be turned infinitely but still only goes from 0 to 100% volume. Rotary encoders come in a number of different types, typically either with or without 'detents' that is physical feedback as the encoder rotates, and in varying levels of resolution for more or less precise applications. Wiring Wiring is simple...

54 There are four wires: 1. Ground 2. 5V 3. A switch 4. B switch

55 #define enc1a_pin 2#define enc1b_pin 3boolean enc1a_prev;boolean enc1b_prev;long enc1 = 0;long prev_enc1 = 0;void Rotary In this basic encoders example workthe using encoder two switches outputswhich the value are operated as a positive slightly or negative out of phase, number meaning from it's that starting in onepositi direc Basic Example Getting started

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

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

Arduino Prof. Dr. Magdy M. Abdelhameed

Arduino Prof. Dr. Magdy M. Abdelhameed Course Code: MDP 454, Course Name:, Second Semester 2014 Arduino What is Arduino? Microcontroller Platform Okay but what s a Microcontroller? Tiny, self-contained computers in an IC Often contain peripherals

More information

Serial.begin ( ); Serial.println( ); analogread ( ); map ( );

Serial.begin ( ); Serial.println( ); analogread ( ); map ( ); Control and Serial.begin ( ); Serial.println( ); analogread ( ); map ( ); A system output can be changed through the use of knobs, motion, or environmental conditions. Many electronic systems in our world

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

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

AT42QT1010 Capacitive Touch Breakout Hookup Guide

AT42QT1010 Capacitive Touch Breakout Hookup Guide Page 1 of 7 AT42QT1010 Capacitive Touch Breakout Hookup Guide Introduction If you need to add user input without using a button, then a capacitive touch interface might be the answer. The AT42QT1010 Capacitive

More information

keyestudio Keyestudio MEGA 2560 R3 Board

keyestudio Keyestudio MEGA 2560 R3 Board Keyestudio MEGA 2560 R3 Board Introduction: Keyestudio Mega 2560 R3 is a microcontroller board based on the ATMEGA2560-16AU, fully compatible with ARDUINO MEGA 2560 REV3. It has 54 digital input/output

More information

Electronic Brick Starter Kit

Electronic Brick Starter Kit Electronic Brick Starter Kit Getting Started Guide v1.0 by Introduction Hello and thank you for purchasing the Electronic Brick Starter Pack from Little Bird Electronics. We hope that you will find learning

More information

More Arduino Programming

More Arduino Programming Introductory Medical Device Prototyping Arduino Part 2, http://saliterman.umn.edu/ Department of Biomedical Engineering, University of Minnesota More Arduino Programming Digital I/O (Read/Write) Analog

More information

Arduino Part 2. Introductory Medical Device Prototyping

Arduino Part 2. Introductory Medical Device Prototyping Introductory Medical Device Prototyping Arduino Part 2, http://saliterman.umn.edu/ Department of Biomedical Engineering, University of Minnesota More Arduino Programming Digital I/O (Read/Write) Analog

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

How to Use an Arduino

How to Use an Arduino How to Use an Arduino By Vivian Law Introduction The first microcontroller, TMS-1802-NC, was built in 1971 by Texas Instruments. It owed its existence to the innovation and versatility of silicon and the

More information

Arduino Smart Robot Car Kit User Guide

Arduino Smart Robot Car Kit User Guide User Guide V1.0 04.2017 UCTRONIC Table of Contents 1. Introduction...3 2. Assembly...4 2.1 Arduino Uno R3...4 2.2 HC-SR04 Ultrasonic Sensor Module with Bracket / Holder...5 2.3 L293D Motor Drive Expansion

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

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

Lab-3: LCDs Serial Communication Analog Inputs Temperature Measurement System

Lab-3: LCDs Serial Communication Analog Inputs Temperature Measurement System Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-3: LCDs Serial Communication Analog Inputs Temperature Measurement System Ahmed Okasha okasha1st@gmail.com

More information

Arduino Programming Part 4: Flow Control

Arduino Programming Part 4: Flow Control Arduino Programming Part 4: Flow Control EAS 199B, Winter 2010 Gerald Recktenwald Portland State University gerry@me.pdx.edu Goal Make choices based on conditions in the environment Logical expressions:

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

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

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

Adafruit VL53L0X Time of Flight Micro-LIDAR Distance Sensor Breakout

Adafruit VL53L0X Time of Flight Micro-LIDAR Distance Sensor Breakout Adafruit VL53L0X Time of Flight Micro-LIDAR Distance Sensor Breakout Created by lady ada Last updated on 2016-12-05 06:40:45 PM UTC Guide Contents Guide Contents Overview Sensing Capablities Pinouts Power

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

Adafruit DS3231 Precision RTC Breakout

Adafruit DS3231 Precision RTC Breakout Adafruit DS3231 Precision RTC Breakout Created by lady ada Last updated on 2016-02-05 04:43:25 PM EST Guide Contents Guide Contents Overview Pinouts Power Pins: I2C Logic pins: Other Pins: Assembly Prepare

More information

ARDUINO. By Kiran Tiwari BCT 2072 CoTS.

ARDUINO. By Kiran Tiwari BCT 2072 CoTS. ARDUINO By Kiran Tiwari BCT 2072 CoTS www.kirantiwari.com.np SO What is an Arduino? WELL!! Arduino is an open-source prototyping platform based on easy-to-use hardware and software. Why Arduino? Simplifies

More information

Adafruit CAP1188 Breakout

Adafruit CAP1188 Breakout Adafruit CAP1188 Breakout Created by lady ada Last updated on 2014-05-14 12:00:10 PM EDT Guide Contents Guide Contents Overview Pinouts Power pins I2C interface pins SPI inteface pins Other interfacing

More information

AT42QT101X Capacitive Touch Breakout Hookup Guide

AT42QT101X Capacitive Touch Breakout Hookup Guide Page 1 of 10 AT42QT101X Capacitive Touch Breakout Hookup Guide Introduction If you need to add user input without using a button, then a capacitive touch interface might be the answer. The AT42QT1010 and

More information

ARDUINO LEONARDO ETH Code: A000022

ARDUINO LEONARDO ETH Code: A000022 ARDUINO LEONARDO ETH Code: A000022 All the fun of a Leonardo, plus an Ethernet port to extend your project to the IoT world. You can control sensors and actuators via the internet as a client or server.

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

Arduino Uno Microcontroller Overview

Arduino Uno Microcontroller Overview Innovation Fellows Program Arduino Uno Microcontroller Overview, http://saliterman.umn.edu/ Department of Biomedical Engineering, University of Minnesota Arduino Uno Power & Interface Reset Button USB

More information

Name: Serial MP3 Player A manual

Name: Serial MP3 Player A manual OPEN-SMART Name: Serial MP3 Player A manual Version: v1.1 Date: 2018.01.13 OPEN-SMART 1 / 13 1 Description 2 / 13 The module is a kind of simple MP3 player device which is based on a high-quality MP3 audio

More information

IME-100 ECE. Lab 5. Electrical and Computer Engineering Department Kettering University

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

More information

IME-100 Interdisciplinary Design and Manufacturing

IME-100 Interdisciplinary Design and Manufacturing IME-100 Interdisciplinary Design and Manufacturing Introduction Arduino and Programming Topics: 1. Introduction to Microprocessors/Microcontrollers 2. Introduction to Arduino 3. Arduino Programming Basics

More information

FUNCTIONS For controlling the Arduino board and performing computations.

FUNCTIONS For controlling the Arduino board and performing computations. d i g i t a l R e a d ( ) [Digital I/O] Reads the value from a specified digital pin, either HIGH or LOW. digitalread(pin) pin: the number of the digital pin you want to read HIGH or LOW Sets pin 13 to

More information

Basic Electronic Toolkit for under $40

Basic Electronic Toolkit for under $40 Basic Electronic Toolkit for under $40 Multimeter http://www.mpja.com/prodinfo.asp?number=17191+te Small Wire cutters http://www.mpja.com/prodinfo.asp?number=16761+tl Wire strippers http://www.mpja.com/prodinfo.asp?number=11715+tl

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

ARDUINO LEONARDO WITH HEADERS Code: A000057

ARDUINO LEONARDO WITH HEADERS Code: A000057 ARDUINO LEONARDO WITH HEADERS Code: A000057 Similar to an Arduino UNO, can be recognized by computer as a mouse or keyboard. The Arduino Leonardo is a microcontroller board based on the ATmega32u4 (datasheet).

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

Thursday, September 15, electronic components

Thursday, September 15, electronic components electronic components a desktop computer relatively complex inside: screen (CRT) disk drive backup battery power supply connectors for: keyboard printer n more! Thursday, September 15, 2011 integrated

More information

TMP36 Temperature Sensor

TMP36 Temperature Sensor TMP36 Temperature Sensor Created by Ladyada Last updated on 2013-07-30 05:30:36 PM EDT Guide Contents Guide Contents 2 Overview 3 Some Basic Stats 4 These stats are for the temperature sensor in the Adafruit

More information

cs281: Introduction to Computer Systems Lab03 K-Map Simplification for an LED-based Circuit Decimal Input LED Result LED3 LED2 LED1 LED3 LED2 1, 2

cs281: Introduction to Computer Systems Lab03 K-Map Simplification for an LED-based Circuit Decimal Input LED Result LED3 LED2 LED1 LED3 LED2 1, 2 cs28: Introduction to Computer Systems Lab3 K-Map Simplification for an LED-based Circuit Overview In this lab, we will build a more complex combinational circuit than the mux or sum bit of a full adder

More information

CTEC 1802 Embedded Programming Labs

CTEC 1802 Embedded Programming Labs CTEC 1802 Embedded Programming Labs This document is intended to get you started using the Arduino and our I/O board in the laboratory - and at home! Many of the lab sessions this year will involve 'embedded

More information

USER MANUAL ARDUINO I/O EXPANSION SHIELD

USER MANUAL ARDUINO I/O EXPANSION SHIELD USER MANUAL ARDUINO I/O EXPANSION SHIELD Description: Sometimes Arduino Uno users run short of pins because there s a lot of projects that requires more than 20 signal pins. The only option they are left

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

Arduino Lesson 15. DC Motor Reversing

Arduino Lesson 15. DC Motor Reversing Arduino Lesson 15. DC Motor Reversing Created by Simon Monk Last updated on 2017-03-09 04:04:43 PM UTC Guide Contents Guide Contents Overview Parts Part Qty An Experiment In1 In2 Motor Breadboard Layout

More information

TMP36 Temperature Sensor

TMP36 Temperature Sensor TMP36 Temperature Sensor Created by lady ada Last updated on 2017-11-26 10:17:46 PM UTC Guide Contents Guide Contents Overview Some Basic Stats How to Measure Temperature Problems you may encounter with

More information

Project 16 Using an L293D Motor Driver IC

Project 16 Using an L293D Motor Driver IC Project 16 Using an L293D Motor Driver IC In the previous project, you used a transistor to control the motor. In this project, you are going to use a very popular motor driver IC called an L293D. The

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

Hardware Overview and Features

Hardware Overview and Features Hardware Overview and Features Don t snap apart your LilyPad ProtoSnap Plus until you're ready to use the pieces in a project. If you leave the pieces attached to the board, you'll be able to prototype

More information

Arduino and Matlab for prototyping and manufacturing

Arduino and Matlab for prototyping and manufacturing Arduino and Matlab for prototyping and manufacturing Enrique Chacón Tanarro 11th - 15th December 2017 UBORA First Design School - Nairobi Enrique Chacón Tanarro e.chacon@upm.es Index 1. Arduino 2. Arduino

More information

Arduino - DigitalReadSerial

Arduino - DigitalReadSerial arduino.cc Arduino - DigitalReadSerial 5-6 minutes Digital Read Serial This example shows you how to monitor the state of a switch by establishing serial communication between your Arduino or Genuino and

More information

Introduction To Arduino

Introduction To Arduino Introduction To Arduino What is Arduino? Hardware Boards / microcontrollers Shields Software Arduino IDE Simplified C Community Tutorials Forums Sample projects Arduino Uno Power: 5v (7-12v input) Digital

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

AUDIO AMPLIFIER PROJECT

AUDIO AMPLIFIER PROJECT Intro to Electronics 110 - Audio Amplifier Project AUDIO AMPLIFIER PROJECT In this project, you will learn how to master a device by studying all the parts and building it with a partner. Our test subject:

More information

Arduino ADK Rev.3 Board A000069

Arduino ADK Rev.3 Board A000069 Arduino ADK Rev.3 Board A000069 Overview The Arduino ADK is a microcontroller board based on the ATmega2560 (datasheet). It has a USB host interface to connect with Android based phones, based on the MAX3421e

More information

LilyPad ProtoSnap Plus Hookup Guide

LilyPad ProtoSnap Plus Hookup Guide Page 1 of 16 LilyPad ProtoSnap Plus Hookup Guide Introduction The LilyPad ProtoSnap Plus is a sewable electronics prototyping board that you can use to learn circuits and programming, then break apart

More information

Introducting Itsy Bitsy 32u4

Introducting Itsy Bitsy 32u4 Introducting Itsy Bitsy 32u4 Created by lady ada Last updated on 2018-01-03 05:47:20 AM UTC Guide Contents Guide Contents Overview Pinouts Which do you have? Power Pins Adafruit Pro Trinket LiIon/LiPoly

More information

LEGO BB-8 Release: LEGO BB-8. Learn how to automate a LEGO BB-8for motion, light, and sound using Crazy Circuits. Written By: Joshua

LEGO BB-8 Release: LEGO BB-8. Learn how to automate a LEGO BB-8for motion, light, and sound using Crazy Circuits. Written By: Joshua LEGO BB-8 Learn how to automate a LEGO BB-8for motion, light, and sound using Crazy Circuits. Written By: Joshua 2018 browndoggadgets.dozuki.com/ Page 1 of 18 INTRODUCTION We absolutely LOVE the new LEGO

More information

Analog Input. Sure sure, but how to make a varying voltage? With a potentiometer. Or just pot.

Analog Input. Sure sure, but how to make a varying voltage? With a potentiometer. Or just pot. Analog Input Sure sure, but how to make a varying voltage? With a potentiometer. Or just pot. +5V measure gnd Color coding: red goes to power, blue to ground, purple to measure here (it s a mix, see?)

More information

Assembly Instructions (8/14/2014) Your kit should contain the following items. If you find a part missing, please contact NeoLoch for a replacement.

Assembly Instructions (8/14/2014) Your kit should contain the following items. If you find a part missing, please contact NeoLoch for a replacement. NeoLoch NLT-28P-LCD-5S Assembly Instructions (8/14/2014) Your kit should contain the following items. If you find a part missing, please contact NeoLoch for a replacement. Kit contents: 1 Printed circuit

More information

Lab 2.2 Ohm s Law and Introduction to Arduinos

Lab 2.2 Ohm s Law and Introduction to Arduinos Lab 2.2 Ohm s Law and Introduction to Arduinos Objectives: Get experience using an Arduino Learn to use a multimeter to measure Potential units of volts (V) Current units of amps (A) Resistance units of

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

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

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

More information

Arduino 05: Digital I/O. Jeffrey A. Meunier University of Connecticut

Arduino 05: Digital I/O. Jeffrey A. Meunier University of Connecticut Arduino 05: Digital I/O Jeffrey A. Meunier jeffm@engr.uconn.edu University of Connecticut About: How to use this document I designed this tutorial to be tall and narrow so that you can read it on one side

More information

University of Hull Department of Computer Science C4DI Interfacing with Arduinos

University of Hull Department of Computer Science C4DI Interfacing with Arduinos Introduction Welcome to our Arduino hardware sessions. University of Hull Department of Computer Science C4DI Interfacing with Arduinos Vsn. 1.0 Rob Miles 2014 Please follow the instructions carefully.

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

Introduction to Arduino Programming. Sistemi Real-Time Prof. Davide Brugali Università degli Studi di Bergamo

Introduction to Arduino Programming. Sistemi Real-Time Prof. Davide Brugali Università degli Studi di Bergamo Introduction to Arduino Programming Sistemi Real-Time Prof. Davide Brugali Università degli Studi di Bergamo What is a Microcontroller www.mikroe.com/chapters/view/1 A small computer on a single chip containing

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

ARDUINO MICRO WITHOUT HEADERS Code: A000093

ARDUINO MICRO WITHOUT HEADERS Code: A000093 ARDUINO MICRO WITHOUT HEADERS Code: A000093 Arduino Micro is the smallest board of the family, easy to integrate it in everyday objects to make them interactive. The Micro is based on the ATmega32U4 microcontroller

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

TABLE OF CONTENTS INTRODUCTION LESSONS PROJECTS

TABLE OF CONTENTS INTRODUCTION LESSONS PROJECTS TABLE OF CONTENTS INTRODUCTION Introduction to Components - Maker UNO 5 - Maker UNO Board 6 - Setting Up - Download Arduino IDE 7 - Install Maker UNO Drivers - Install Maker UNO Board Package 3 LESSONS.

More information

Circuit Playground Firmata

Circuit Playground Firmata Circuit Playground Firmata Created by Tony DiCola Last updated on 2018-08-22 03:53:36 PM UTC Guide Contents Guide Contents Overview Firmata Sketch Example Python Code Install Dependencies Python Circuit

More information

Rob Faludi, 8/17/11

Rob Faludi,  8/17/11 Horsie Race This project can serve as a model for almost any many-to-one network you d like to build. You will create a carnival midway-style horse race using a wireless audio input that transmits each

More information

Clark College Electrical Engineering & Computer Science

Clark College Electrical Engineering & Computer Science Clark College Electrical Engineering & Computer Science slide # 1 http://www.engrcs.com/ecsv5.pdf Electrical Engineering & Computer Science Artificial Intelligent (AI) Bio Medical Computers & Digital Systems

More information

One Grove Base Shield board this allows you to connect various Grove units (below) to your Seeeduino board; Nine Grove Grove units, consisting of:

One Grove Base Shield board this allows you to connect various Grove units (below) to your Seeeduino board; Nine Grove Grove units, consisting of: GROVE - Starter Kit V1.0b Introduction The Grove system is a modular, safe and easy to use group of items that allow you to minimise the effort required to get started with microcontroller-based experimentation

More information

Arduino Workshop. Overview. What is an Arduino? Why Arduino? Setting up your Arduino Environment. Get an Arduino based board and usb cable

Arduino Workshop. Overview. What is an Arduino? Why Arduino? Setting up your Arduino Environment. Get an Arduino based board and usb cable Arduino Workshop Overview Arduino, The open source Microcontroller for easy prototyping and development What is an Arduino? Arduino is a tool for making computers that can sense and control more of the

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

Building your own special-purpose embedded system gadget.

Building your own special-purpose embedded system gadget. Bare-duino Building your own special-purpose embedded system gadget. Saves a little money. You can configure the hardware exactly the way that you want. Plus, it s fun! bare-duino 1 Arduino Uno reset I/O

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

ARDUINO M0 PRO Code: A000111

ARDUINO M0 PRO Code: A000111 ARDUINO M0 PRO Code: A000111 The Arduino M0 Pro is an Arduino M0 with a step by step debugger With the new Arduino M0 Pro board, the more creative individual will have the potential to create one s most

More information

Arduino 6: Analog I/O part 1. Jeffrey A. Meunier University of Connecticut

Arduino 6: Analog I/O part 1. Jeffrey A. Meunier University of Connecticut Arduino 6: Analog I/O part 1 Jeffrey A. Meunier jeffm@engr.uconn.edu University of Connecticut About: How to use this document I designed this tutorial to be tall and narrow so that you can read it on

More information

Rear Distance Detection with Ultrasonic Sensors Project Report

Rear Distance Detection with Ultrasonic Sensors Project Report Rear Distance Detection with Ultrasonic Sensors Project Report 11.29.2017 Group #6 Farnaz Behnia Kimia Zamiri Azar Osaze Shears ECE 511: Microprocessors Fall 2017 1 Table of Contents 1. Abstract 3 2. Motivation

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

MP6500 Stepper Motor Driver, Digital Current Control

MP6500 Stepper Motor Driver, Digital Current Control This breakout board for the MPS MP6500 micro stepping bipolar stepper motor driver is Pololu s latest stepper motor driver. The module has a pinout and interface that are very similar to that of our popular

More information

EEG 101L INTRODUCTION TO ENGINEERING EXPERIENCE

EEG 101L INTRODUCTION TO ENGINEERING EXPERIENCE EEG 101L INTRODUCTION TO ENGINEERING EXPERIENCE LABORATORY 1: INTRODUCTION TO ARDUINO IDE AND PROGRAMMING DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING UNIVERSITY OF NEVADA, LAS VEGAS 1. FYS KIT COMPONENTS

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

TANGIBLE MEDIA & PHYSICAL COMPUTING INTRODUCTION TO ARDUINO

TANGIBLE MEDIA & PHYSICAL COMPUTING INTRODUCTION TO ARDUINO TANGIBLE MEDIA & PHYSICAL COMPUTING INTRODUCTION TO ARDUINO AGENDA ARDUINO HARDWARE THE IDE & SETUP BASIC PROGRAMMING CONCEPTS DEBUGGING & HELLO WORLD INPUTS AND OUTPUTS DEMOS ARDUINO HISTORY IN 2003 HERNANDO

More information

How Computer Mice Work

How Computer Mice Work How Computer Mice Work Inside this Article 1. Introduction to How Computer Mice Work 2. Evolution of the Computer Mouse 3. Inside a Mouse 4. Connecting Computer Mice 5. Optical Mice 6. Optical Mouse Accuracy

More information

TSL2561 Luminosity Sensor

TSL2561 Luminosity Sensor TSL2561 Luminosity Sensor Created by lady ada Last updated on 2015-06-12 12:10:28 PM EDT Guide Contents Guide Contents Overview Wiring the TSL2561 Sensor Using the TSL2561 Sensor Downloads Buy a TSL2561

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

ARDUINO YÚN Code: A000008

ARDUINO YÚN Code: A000008 ARDUINO YÚN Code: A000008 Arduino YÚN is the perfect board to use when designing connected devices and, more in general, Internet of Things projects. It combines the power of Linux with the ease of use

More information

Overview. Exploration: LED Ramp Light. cs281: Introduction to Computer Systems Lab04 K-Maps and a Sensor/Actuator Circuit

Overview. Exploration: LED Ramp Light. cs281: Introduction to Computer Systems Lab04 K-Maps and a Sensor/Actuator Circuit cs281: Introduction to Computer Systems Lab04 K-Maps and a Sensor/Actuator Circuit Overview In this lab, we will use the K-maps from last lab to build a circuit for the three lights based on three bit

More information

Lab 8. Communications between Arduino and Android via Bluetooth

Lab 8. Communications between Arduino and Android via Bluetooth Lab 8. Communications between Arduino and Android via Bluetooth Dr. X. Li xhli@citytech.cuny.edu Dept. of Computer Engineering Technology New York City College of Technology (Copyright Reserved) In this

More information

Audio Enhanced Touch Sensors Build Instructions

Audio Enhanced Touch Sensors Build Instructions Audio Enhanced Touch Sensors Build Instructions By Matt Oppenheim, Embedded Interactive Systems, InfoLab21, Lancaster University matt.oppenheim@gmail.com https://sites.google.com/site/hardwaremonkey/ I

More information

Introduction to Arduino (programming, wiring, and more!)

Introduction to Arduino (programming, wiring, and more!) Introduction to Arduino (programming, wiring, and more!) James Flaten, MN Space Grant Consortium with Ben Geadelmann, Austin Langford, et al. University of MN Twin Cities Aerospace Engineering and Mechanics

More information

Clark College. Electrical Engineering & Computer Science. slide # 1

Clark College. Electrical Engineering & Computer Science.   slide # 1 Clark College Electrical Engineering & Computer Science slide # 1 http://www.engrcs.com/institute/workshop.pdf Electrical Engineering & Computer Science Artificial Intelligent (AI) Bio Medical Computers

More information

Physical Computing Self-Quiz

Physical Computing Self-Quiz Physical Computing Self-Quiz The following are questions you should be able to answer without reference to outside material by the middle of the semester in Introduction to Physical Computing. Try to answer

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

MAG3110 Magnetometer Hookup Guide

MAG3110 Magnetometer Hookup Guide MAG3110 Magnetometer Hookup Guide CONTRIBUTORS: AGLASS0FMILK FAVORITE 0 Introduction The SparkFun MAG3110 Triple Axis Magnetometer is a breakout board for the 3-axis magnetometer from NXP/Freescale. It

More information

DEV-1 HamStack Development Board

DEV-1 HamStack Development Board Sierra Radio Systems DEV-1 HamStack Development Board Reference Manual Version 1.0 Contents Introduction Hardware Compiler overview Program structure Code examples Sample projects For more information,

More information