This is a tutorial about sensing the environment using a Raspberry Pi. measure a digital input (from a button) output a digital signal (to an LED)

Size: px
Start display at page:

Download "This is a tutorial about sensing the environment using a Raspberry Pi. measure a digital input (from a button) output a digital signal (to an LED)"

Transcription

1 Practical 2 - Overview This is a tutorial about sensing the environment using a Raspberry Pi and a GrovePi+. You will learn: digital input and output measure a digital input (from a button) output a digital signal (to an LED) analogue sampling and synthesis measure an analogue input (the Rotary Angle Sensor potentiometer, the light sensor) control an analogue output convert an analogue value to a physical value bus-communicated devices measure range to an object (ultrasonic ranging) We will continue with pair programming in these practical sessions. You will need to be in a group of two people (with no more than one group of three people). Each person in the group will alternate between the different roles of driver and navigator. Connecting your Pi Each pair will need to sit at a workstation which is fitted with a KVM switch (keyboard, video display, and mouse) and:

2 a desk mounted Raspberry Pi 3 a green box containing: a GrovePi+ board, a set of GrovePi+ peripherals, and a Raspberry Pi 2 model B (which you won t use) First, shut down the Pi by clicking on the power symbol (top right corner from the login screen), then choose shut down. Once it has completed the shutdown process you should unplug the micro USB power lead and HDMI cable. Now carefully connect the blue GrovePi board, then reattach the HDMI cable, then the micro USB power lead. The Pi will now power up. Press the KVM switch once if you don t see anything. You can log into the Pi using your campus credentials. Before you can use your GrovePi board you must load the driver module. Open a terminal and enter the following two commands: sudo modprobe i2c-dev sudo modprobe i2c-bcm2708 The jedit editor

3 Your Pi comes pre-installed with jedit, a simple text editor: 1. Run jedit from the application menu > Programming > jedit. 2. Save the default file into a new folder at the path /home/practical2 and name the file Button.java You can choose your preferred way of developing: you can continue to use jedit, or switch back to nano. Either way you will need to run javac and java from the command line, so you must set the CLASSPATH environment variable: export CLASSPATH=.:/usr/local/lib/jgrove.jar Digital I/O Individual digital signal lines are two levels, binary (high/low voltage) such as the input from a switch or the output to turn on a buzzer. Pins can be configured for input (where we are measuring their value), or output (where we control their value). Digital inputs effectively have a threshold for the incoming voltage, and result in a binary value. Digital outputs are usually ground (0V) for low 0 and the reference voltage level for high 1.

4 Switched digital input We will write some Java code to interface through the GrovePi+. Start with a class Button, which has a public static void main(string[] args) method. We will need to add imports for grovepi.grovepi, grovepi.pin, and all sensor classes with grovepi.sensors.*. In the main() method, we need to obtain an instance of a GrovePi class: GrovePi grovepi = new GrovePi(); then, from that instance, get its device factory, and use it to create a ButtonSensor instance on pin D4. ButtonSensor button = grovepi.getdevicefactory(). createbuttonsensor(pin.digital_pin_4); Write a loop to continuously poll the state of the button using button.ispressed(), which returns a boolean (true if a press is detected and false if no press it detected). When a press is detected print a message to the screen using: System.out.println("Button press detected").

5 Now try compiling your code (if compilation fails, fix the problem and re-run the last command from your history by pressing <kbd>up</kbd> then <kbd>enter</kbd>). javac Button.java Once your code compiles succesfully, run it using: java Button With your code running, connect a Grove Button to port D4 with a cable. Pressing the button should trigger your message. If you are at the terminal, press <kbd>ctrl</kbd>+<kbd>c</kbd> to stop. You can get the current system time in milliseconds with long System.currentTimeMillis(). Change your loop to measure and display the duration between each button press. hint: create two variables, one to store the time of current button press, and one for the previous button press (you will need to initially set this to the current time). When a button press is detected store the time of this press, then subtract the time of the previous press and print this result (the elapsed time) to the screen. Don t forget to transfer the current button press time into the previous button press time variable before the next iteration of the loop!

6 More interactions Even though the button only gives us basic click information, we can create code to identify different types of interactions, for example, we could distinguish single clicks from double clicks Modify your code to compare the elapsed time between clicks to a threshold (say, 500 milliseconds), if the time between presses is greater than this threshold print single click detected, whilst if the time is shorter print double click detected. Switched digital output Last time, we made an LED turn on with this code: import grovepi.sensors.led; //... Led led = grovepi.getdevicefactory().createled(pin.digita L_PIN_3); led.setstate(true); Connect a Grove LED to port D3 with a cable. If there is no LED installed, put one in: the negative (-ve, cathode) side of an LED typically has a larger plate inside the LED (it sometimes also have a flat edge on the LED dome, and a shorter leg), and the positive (+ve, anode) side of an LED typically has a smaller plate inside the LED (it sometimes has the rounded edge on the LED dome, and a longer leg).

7 Modify your loop so that a button press toggles the LED on or off. Run the code to check. Next, modify your loop so that a single click will turn the LED off, but it can only be turned on with a double click. Again, run the code to check. Analogue I/O Analogue values form a continuous spectrum such as a measure of the amount of light, or the brightness of an LED. So a computer can make use of them, analogue inputs and outputs are converted between a voltage level and a fixed digital representation. Analogue Input: Light sensor Analogue inputs require sampling, a process called analogue to digital conversion (ADC). They are quantized (turned into a fixed representation, effectively an integer number), in both value (e.g. a number of bits resolution over some physical range), and time (e.g. at a given sample rate). In the GrovePi+, ADC sampling is to a 10-bit value (giving 2^10=1024 states) numbers between 0 and 1023 representing the voltage range 0 to 5V. Start a new file ~/practical2/light.java (perhaps begin with a copy of the previous file: cp Button.java Light.java, but be sure to rename the class from Button to Light ).

8 Add an import for grovepi.pinmode. From the grovepi instance, you can perform an ADC reading. Attach a light sensor to the first an analogue input ( A0 ). Write a loop to print the ADC value from the light sensor. You can poll the state of the light sensor with: int grovepi.analogread(pin.analog_pin_0); Analogue Output The inverse of ADC is digital to analogue conversion (DAC), turning a digital signal into a varying voltage. The GrovePi+ kit doesn t include a true DAC, but does support Pulse-Width Modulation (PWM) on three of the digital pins ( D3, D5 & D6 ), which is suitable for controlling the brightness of LEDs. PWM works by having a high frequency on/off signal, and adjusting the ratio of the on/off time (the frequency remains the same). You will need to set the pin as an output, e.g. for D3 : grovepi.pinmode(pin.digital_pin_3, PinMode.OUTPUT);. Now you can use grovepi.analogwrite(pin.digital_pin_3, int value); to control the proportion of the time on (8-bit range, values 0-255). Change your program to act like a torch by providing more light when dark, less when light.

9 Now modify your program to act like an automatic LCD backlight, by converting a range of light readings into a corresponding range of brightnesses: the lighter it is, the brighter the screen (but none to be completely switched off). Converting samples to physical values The GrovePi Rotary Angle Sensor is a potentiometer a knob that varies resistance as it s turned. This change in resistance can be measured as a corresponding change in voltage, by performing an ADC reading.

10 Start a new file ~/practical2/rotary.java (perhaps from a copy of the last program: cp Light.java Rotary.java, changing the class name to Rotary ). This potentiometer is linear, the ADC will give a reading that is proportional to the resistance, and the resistance is proportional to angle. Write your program to read the raw ADC values from the device. Use it to work out the minimum and maximum values for the rotation, store these as constants in your code. Modify your code to calculate the percentage level of maximum rotation. Given that the angular range is 300 degrees, and the change in values is linear with rotation, we can turn this voltage in to physical value. Modify your program to calculate and display the current rotation angle. Range sensing Ultrasonic ranging works by transmitting a sound pulse at a frequency beyond human hearing, then timing how long it takes to appear at the receiver. Create a new source file Distance.java. Make sure you import grovepi.grovepi, import grovepi.pin and import grovepi.sensors.*. Create a new GrovePi object called grovepi,

11 and a range sensor object: UltrasonicRangerSensor rangesensor = grovepi.getdevic efactory().createultrasonicsensor(pin.digital_pin_4); Write a sampling loop to measure and display the distance to the nearest object ( int rangesensor.getdistance() ). Connect an ultrasonic range sensor to pin D4 and run your program. Move your hand to different distances to see the range change. Only if you have time, modify your code to map the distance range to fading LEDs. As the distance decreases to zero, fade up firstly the blue LED ( D6 ) to maximum, then also fade up the green LED ( D5 ) to maximum, then finally fade up the red LED ( D3 ) to maximum. Turning off your Pi Once you are finished, you can safely power down your Pi by pressing the power symbol at the bottom right of the screen then selecting the power off option You should now unplug the USB power lead, then carefully remove the GrovePi board. Next, reattach the power USB power lead. The Pi should re start ready for other students to use.

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

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

Grove - Buzzer. Introduction. Features

Grove - Buzzer. Introduction. Features Grove - Buzzer Introduction The Grove - Buzzer module has a piezo buzzer as the main component. The piezo can be connected to digital outputs, and will emit a tone when the output is HIGH. Alternatively,

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

Grove - Rotary Angle Sensor

Grove - Rotary Angle Sensor Grove - Rotary Angle Sensor Introduction 3.3V 5.0V Analog The rotary angle sensor produces analog output between 0 and Vcc (5V DC with Seeeduino) on its D1 connector. The D2 connector is not used. The

More information

mi:node User Manual Element14 element14.com/minode 1 User Manual V3.1

mi:node User Manual Element14 element14.com/minode 1 User Manual V3.1 mi:node User Manual Element14 element14.com/minode 1 Table of Contents 1) Introduction... 3 1.1 Overview... 3 1.2 Features... 3 1.3 Kit Contents... 3 2) Getting Started... 5 2.1 The Connector Board...

More information

Grove - PIR Motion Sensor

Grove - PIR Motion Sensor Grove - PIR Motion Sensor Introduction This is a simple to use PIR motion sensor with Grove compatible interface. This sensor allows you to sense motion, usually human movement in its range. Simply connect

More information

Manual of ET-LCD SW HAT

Manual of ET-LCD SW HAT ET- LCD SW HAT ET-LCD SW HAT is Board I/O that is specifically designed for connection with Board Raspberry Pi through Connector 40-PIN; this board includes LCD 16x2, SW, Buzzer, RTC DS3231 with Connector

More information

DAQCplate Users Guide

DAQCplate Users Guide DAQCplate Users Guide Contents Overview 2 Board Layout 3 Address Selection Header 4 Digital Outputs (DOUT) o 4. Connector o 4.2 Specifications o 4.3 Functions o 4.4 Examples 4.4. Simple External LED 4.4.2

More information

Getting Started Guide XC9010 Raspberry Pi Starter Kit

Getting Started Guide XC9010 Raspberry Pi Starter Kit Getting Started Guide XC9010 Raspberry Pi Starter Kit The Raspberry Pi has been designed as a computer that anyone can use. If you want to get started with a Raspberry Pi, but don t know where to start,

More information

EECS 373 Midterm 2 Fall 2018

EECS 373 Midterm 2 Fall 2018 EECS 373 Midterm 2 Fall 2018 Name: unique name: Sign the honor code: I have neither given nor received aid on this exam nor observed anyone else doing so. Nor did I discuss this exam with anyone after

More information

UPS PIco. for use with. Raspberry Pi B+, A+, B, and A. HAT Compliant. Raspberry Pi is a trademark of the Raspberry Pi Foundation

UPS PIco. for use with. Raspberry Pi B+, A+, B, and A. HAT Compliant. Raspberry Pi is a trademark of the Raspberry Pi Foundation UPS PIco Uninterruptible Power Supply with Peripherals and I 2 C control Interface for use with Raspberry Pi B+, A+, B, and A HAT Compliant Raspberry Pi is a trademark of the Raspberry Pi Foundation Gold

More information

Challenge Is The Game LEVEL 10M ADVANCED GAMING SOFTWARE USER GUIDE. Tt esports LEVEL 10M ADVANCED Gaming Software User Guide

Challenge Is The Game LEVEL 10M ADVANCED GAMING SOFTWARE USER GUIDE. Tt esports LEVEL 10M ADVANCED Gaming Software User Guide Challenge Is The Game LEVEL 10M ADVANCED GAMING SOFTWARE USER GUIDE 01 CONTENTS Challenge Is The Game PAGE 04 Main Interface PAGE 05 PAGE 13 PAGE 14 PAGE 20 PAGE 22 PAGE 23 Key Assignment Macro Interface

More information

EV3 Programming Workshop for FLL Coaches

EV3 Programming Workshop for FLL Coaches EV3 Programming Workshop for FLL Coaches Tony Ayad 2017 Outline This workshop is intended for FLL coaches who are interested in learning about Mindstorms EV3 programming language. Programming EV3 Controller

More information

Grove - Moisture Sensor

Grove - Moisture Sensor Grove - Moisture Sensor Introduction This Moisture Senor can be used for detecting the moisture of soil or judge if there is water around the sensor, let the plant in your garden able to reach out for

More information

BLiSo - Buttons, Lights, Sound

BLiSo - Buttons, Lights, Sound BLiSo - Buttons, Lights, Sound For the Raspberry Pi Introduction Thank you for purchasing this small module, designed to make exploring the GPIO port safe and easy. Hopefully the information provided in

More information

Compute Module IO Board Plus User Manual

Compute Module IO Board Plus User Manual Compute Module IO Board Plus User Manual OVERVIEWS This is an Expansion board of Compute Module 3 and Compute Module 3 Lite. It is compatible with Compute Module IO Board V3 from Raspberry Pi Foundation,

More information

UPS PIco HV3.0A. for use with. Raspberry Pi is a trademark of the Raspberry Pi Foundation

UPS PIco HV3.0A. for use with. Raspberry Pi is a trademark of the Raspberry Pi Foundation UPS PIco HV3.0A Uninterruptible Power Supply with Peripherals and I 2 C control Interface for use with Raspberry Pi A+, B+, Pi2 B, Pi3 B, Pi Zero HAT Compliant Raspberry Pi is a trademark of the Raspberry

More information

Robots in Oracle PaaS Cloud

Robots in Oracle PaaS Cloud Robots in Oracle PaaS Cloud Connect, Analyze, Integrate & Act Prepared by: Luc Bors, eproseed @lucb_ Session ID: 5522 WHO AM I? Luc Bors Technical Director ADF, JET, MAF, MCS, IOT ACE Director Working

More information

Raspberry Pi NTP Clock Setup Guide

Raspberry Pi NTP Clock Setup Guide Raspberry Pi NTP Clock Setup Guide Several steps are involved in getting your Raspberry Pi to operate as a NTP Clock. To begin with, you must obtain a LCD Plate (www.adafruit.com) and build it. You must

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

Intel Galileo gen 2 Board

Intel Galileo gen 2 Board Intel Galileo gen 2 Board The Arduino Intel Galileo board is a microcontroller board based on the Intel Quark SoC X1000, a 32- bit Intel Pentium -class system on a chip (SoC). It is the first board based

More information

Color 7 click. PID: MIKROE 3062 Weight: 19 g

Color 7 click. PID: MIKROE 3062 Weight: 19 g Color 7 click PID: MIKROE 3062 Weight: 19 g Color 7 click is a very accurate color sensing Click board which features the TCS3472 color light to digital converter with IR filter, from ams. It contains

More information

Photoresistor, Transistor, and LED s

Photoresistor, Transistor, and LED s PH-1 Photoresistor, Transistor, and LD s Purpose: To introduce photoresistors, LD s, FT s, and transistors used as power switching devices To become familiar with the capability of the Atmega 128 to measure

More information

DLA. DMX512 Analyzer. DLA Users Manual SV2_00 B.lwp copyright ELM Video Technology, Inc.

DLA. DMX512 Analyzer. DLA Users Manual SV2_00 B.lwp copyright ELM Video Technology, Inc. DLA DMX512 Analyzer DLA DLA-HH 1 Table Of Contents IMPORTANT SAFEGUARDS... 2 DLA OVERVIEW... 3 CONNECTION... 3 OPERATION... 3 HARDWARE SETUP... 4 DLA-HH (PORTABLE) LAYOUT... 4 CHASSIS LAYOUT... 4 DLA MENU

More information

University of Texas at El Paso Electrical and Computer Engineering Department. EE 3176 Laboratory for Microprocessors I.

University of Texas at El Paso Electrical and Computer Engineering Department. EE 3176 Laboratory for Microprocessors I. University of Texas at El Paso Electrical and Computer Engineering Department EE 3176 Laboratory for Microprocessors I Fall 2016 LAB 04 Timer Interrupts Goals: Learn about Timer Interrupts. Learn how to

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

Table of Contents & Introduction 2 Product features & Function. 3. Calibration RS232C Serial communication...6 Specifications

Table of Contents & Introduction 2 Product features & Function. 3. Calibration RS232C Serial communication...6 Specifications High Precision 2-Axis Digital Electronic Inclinometer IM-2DW User s Guide The contents of this manual could be different according to the software version and it can be changed without notice. Please use

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

Own Your Technology Pvt Ltd. Own Your Technology Presents Workshop on MSP430

Own Your Technology Pvt Ltd. Own Your Technology Presents Workshop on MSP430 Own Your Technology Presents Workshop on MSP430 ------------OUR FORTE------------ AERO MODELLING INTERNET OF THINGS EMBEDDED SYSTEMS ROBOTICS MATLAB & MACHINE VISION VLSI & VHDL ANDRIOD APP DEVELOPMENT

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

Laboratory of Sensors Engineering Sciences 9 CFU

Laboratory of Sensors Engineering Sciences 9 CFU Laboratory of Sensors Engineering Sciences 9 CFU Contacts Alexandro Catini catini@ing.uniroma2.it Phone: +39 06 7259 7347 Department of Electronic Engineering First Floor - Room B1-07b Course Outline THEORY

More information

Lab 5: LCD and A/D: Digital Voltmeter

Lab 5: LCD and A/D: Digital Voltmeter Page 1/5 OBJECTIVES Learn how to use C (as an alternative to Assembly) in your programs. Learn how to control and interface an LCD panel to a microprocessor. Learn how to use analog-to-digital conversion

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

Lab 5: LCD and A/D: Digital Voltmeter

Lab 5: LCD and A/D: Digital Voltmeter Page 1/5 OBJECTIVES Learn how to use C (as an alternative to Assembly) in your programs. Learn how to control and interface an LCD panel to a microprocessor. Learn how to use analog-to-digital conversion

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

USER MANUAL FOR HARDWARE REV

USER MANUAL FOR HARDWARE REV PI-REPEATER-2X 1. WELCOME 2. CONTENTS PAGE 1 3. GETTING STARTED There are many features built into this little board that you should be aware of as they can easily be missed when setting up the hardware

More information

ALICE: An introduction to progamming

ALICE: An introduction to progamming ALICE: An introduction to progamming What is Computer Science? Computer Science Do you know the difference between ICT and Computer Science? Any suggestions as to what jobs you could do if you were a Computer

More information

6 GPIO 84. Date: 29/09/2016 Name: ID: This laboratory session discusses about writing program to interact with GPIO of Reapberry Pi.

6 GPIO 84. Date: 29/09/2016 Name: ID: This laboratory session discusses about writing program to interact with GPIO of Reapberry Pi. 6 GPIO 84 Date: 29/09/2016 Name: ID: Name: ID: 6 GPIO This laboratory session discusses about writing program to interact with GPIO of Reapberry Pi. GPIO programming with Assembly Code:block installation

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

REQUIRED MATERIALS Epiphany-DAQ board Wire Jumpers Switch LED Resistors Breadboard Multimeter (if needed)

REQUIRED MATERIALS Epiphany-DAQ board Wire Jumpers Switch LED Resistors Breadboard Multimeter (if needed) Page 1/6 Lab 1: Intro to Microcontroller Development, 06-Jan-16 OBJECTIVES This lab will introduce you to the concept of developing with a microcontroller while focusing on the use of General Purpose Input/Output

More information

ZIO Java API. Tutorial. 1.2, Feb 2012

ZIO Java API. Tutorial. 1.2, Feb 2012 ZIO Java API Tutorial 1.2, Feb 2012 This work is licensed under the Creative Commons Attribution-Share Alike 2.5 India License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/2.5/in/

More information

BBC micro:bit Cool Colours!

BBC micro:bit Cool Colours! Description This is a simple tutorial demonstrating how to use an analogue input with the BBC micro:bit. The BBC micro:bit is able to read analogue voltages from sensors like Light Dependent Resistors

More information

You should see something like this, called the prompt :

You should see something like this, called the prompt : CSE 1030 Lab 1 Basic Use of the Command Line PLEASE NOTE this lab will not be graded and does not count towards your final grade. However, all of these techniques are considered testable in a labtest.

More information

Programmable Device Interface PDI-1 A Versatile Hardware Controller with USB interface

Programmable Device Interface PDI-1 A Versatile Hardware Controller with USB interface Programmable Device Interface PDI-1 A Versatile Hardware Controller with USB interface Features and Specifications Arduino compatible for simple USB Programming 126 x 64 Graphic LCD 12x Digital IO ports*

More information

Lab 9: Creating a Reusable Class

Lab 9: Creating a Reusable Class Lab 9: Creating a Reusable Class Objective This will introduce the student to creating custom, reusable classes This will introduce the student to using the custom, reusable class This will reinforce programming

More information

1 Digital tools. 1.1 Introduction

1 Digital tools. 1.1 Introduction 1 Digital tools 1.1 Introduction In the past few years, enormous advances have been made in the cost, power, and ease of use of microcomputers and associated analog and digital circuits. It is now possible,

More information

All rights reserved by Waveshare Electronics Co., Ltd. Not allow to modify, distribute, or copy without permission.

All rights reserved by Waveshare Electronics Co., Ltd. Not allow to modify, distribute, or copy without permission. DVK512 User Manual Copyright All rights reserved by Electronics Co., Ltd. Not allow to modify, distribute, or copy without permission. Revision History Revision Date Description V1.0 Aug. 18, 2014 Initial

More information

Lab 1: Introductory Project to Breadware

Lab 1: Introductory Project to Breadware 1 Lab 1: Introductory Project to Breadware Exploration of Breadware s IoT Development Tools Overview The goal of this lab is to become familiar with the Internet of Things prototyping tools available in

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

Mercury Baseboard Reference Manual

Mercury Baseboard Reference Manual Mercury Baseboard Reference Manual www.micro-nova.com OVERVIEW The Baseboard is a great addition to the Mercury Module, providing a host of on-board components that can be used to design and test a wide

More information

09/05/2014. Engaging electronics for the new D&T curriculum. Geoff Hampson Managing Director of Kitronik. Presentation overview

09/05/2014. Engaging electronics for the new D&T curriculum. Geoff Hampson Managing Director of Kitronik. Presentation overview Presentation overview Engaging electronics for the new D&T curriculum Geoff Hampson Managing Director of Kitronik What to include Free web resources Electronic project ideas Using programmable components

More information

ECE 103 In-Class Exercise L1 Guide

ECE 103 In-Class Exercise L1 Guide ECE 10 In-Class Exercise L1 Guide Hardware and software needed to complete this lab exercise LabJack U, USB cable, and screwdriver (Qty 1) Red LED (Light Emitting Diode) Short lead is cathode (negative)

More information

3700 SERIES USER MANUAL

3700 SERIES USER MANUAL SAFETY GUIDE This manual contains the precautions necessary to ensure your personal safety as well as for protection for the products and the connected equipment. These precautions are highlighted with

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

Grove - 3-Axis Digital Compass User Manual

Grove - 3-Axis Digital Compass User Manual Grove - 3-Axis Digital Compass User Manual Release date: 2015/9/23 Version: 1.0 Axis_Compass_V1.0 Wiki:http://www.seeedstudio.com/wiki/Grove_-_3- Bazaar:http://www.seeedstudio.com/depot/Grove-3Axis-Digital-

More information

Gooligum Electronics 2015

Gooligum Electronics 2015 The Wombat Prototyping Board for Raspberry Pi Operation and Software Guide This prototyping board is intended to make it easy to experiment and try out ideas for building electronic devices that connect

More information

ST-329 LED Stroboscope Array Operation Manual

ST-329 LED Stroboscope Array Operation Manual ST-329 LED Stroboscope Array Operation Manual Use in flammable environments is prohibited. Use in this manner may result in fire or explosive. Don t look directly into the LED light Source. This may result

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

UPS PIco. for use with. Raspberry Pi B+, A+, B, and A. HAT Compliant. Raspberry Pi is a trademark of the Raspberry Pi Foundation

UPS PIco. for use with. Raspberry Pi B+, A+, B, and A. HAT Compliant. Raspberry Pi is a trademark of the Raspberry Pi Foundation UPS PIco Uninterruptible Power Supply with Peripheral and I 2 C control Interface for use with Raspberry Pi B+, A+, B, and A HAT Compliant Raspberry Pi is a trademark of the Raspberry Pi Foundation PiModules

More information

SECOND EDITION. Arduino Cookbook. Michael Margolis O'REILLY- Tokyo. Farnham Koln Sebastopol. Cambridge. Beijing

SECOND EDITION. Arduino Cookbook. Michael Margolis O'REILLY- Tokyo. Farnham Koln Sebastopol. Cambridge. Beijing SECOND EDITION Arduino Cookbook Michael Margolis Beijing Cambridge Farnham Koln Sebastopol O'REILLY- Tokyo Table of Contents Preface xi 1. Getting Started 1 1.1 Installing the Integrated Development Environment

More information

Using a Temperature Sensor

Using a Temperature Sensor Using a Temperature Sensor Add a temperature sensor to the ATmega Board. Site: icode Course: Machine Science Guides (Arduino Version) Book: Using a Temperature Sensor Printed by: Ivan Rudnicki Date: Wednesday,

More information

Mi:Node Kit User Manual

Mi:Node Kit User Manual Mi:Node Kit User Manual Make creative things with micro:bit Revision Date Description V0.1.0 March 2017 by Paul Initial version TOC Mi:Node Kit User Manual Introduction Features What is the Kit? What is

More information

BCS Raspberry Pi Launch Events Getting started with Raspberry Pi

BCS Raspberry Pi Launch Events Getting started with Raspberry Pi BCS Raspberry Pi Launch Events Getting started with Raspberry Pi Department of Computer Science 16 th & 17 th April 2013 Who are you? How many of you.. are teachers in STEM subjects in non STEM subjects

More information

Thanks for buying our product. Specialty of IM-2DT

Thanks for buying our product. Specialty of IM-2DT High Precision 2-Axis Digital Electronic Inclinometer IM-2DT User s Guide The contents of this manual could be different according to the software version and it can be changed without notice. Please use

More information

Introduction to microcontrollers

Introduction to microcontrollers Page 1 Page 2 Contents Introduction 2 Worksheet 1 - Switch on the LED 3 Worksheet 2 - Make the LED flash 5 Worksheet 3 - Keep the LED lit for a short time 7 Worksheet 4 - Set up a latch 9 Worksheet 5 -

More information

Objectives: Learn how to input and output analogue values Be able to see what the Arduino is thinking by sending numbers to the screen

Objectives: Learn how to input and output analogue values Be able to see what the Arduino is thinking by sending numbers to the screen Objectives: Learn how to input and output analogue values Be able to see what the Arduino is thinking by sending numbers to the screen By the end of this session: You will know how to write a program to

More information

User Manual. CV-401 / 801 / U Rackmount PS/2 KVM Switch

User Manual. CV-401 / 801 / U Rackmount PS/2 KVM Switch User Manual CV-401 / 801 / 1601 1U Rackmount PS/2 KVM Switch 1. Table Of Content 1. Table of Content P.1 2. Introduction P.2 3. Features P.2 4. Package Content P.3 5. Optional Accessories P.4 6. Peripheral

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

M2 OLED Temperature Monitor Instructions PN 1841

M2 OLED Temperature Monitor Instructions PN 1841 M2 OLED Temperature Monitor Instructions PN 1841 Installation Checklist Check for components included Read Warning and Cautions Read page 3 for mounting instructions Read System Overview, Mounting Considerations,

More information

Grove - OLED Display 0.96''

Grove - OLED Display 0.96'' Grove - OLED Display 0.96'' Release date: 9/20/2015 Version: 1.0 Wiki: http://www.seeedstudio.com/wiki/grove_-_oled_display_96*96 Bazaar: http://www.seeedstudio.com/depot/grove-oled-display-096-p-824.html

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

MicroHAWK ID Demo Kit Setup Guide. P/N Rev A

MicroHAWK ID Demo Kit Setup Guide. P/N Rev A MicroHAWK ID Demo Kit Setup Guide P/N 83-9200057 Rev A Check Hardware and Connect the System The MicroHAWK ID Demo Kit contains the following items: 1. MicroHAWK ID-20, ID-30, and ID-40 Readers 2. Power

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

LDR_Light_Switch1 -- Overview

LDR_Light_Switch1 -- Overview LDR_Light_Switch1 -- Overview OBJECTIVES After performing this lab exercise, learner will be able to: Understand the functionality of Light Dependent Resistor (LDR) Use LDR (Light Dependent Resistor) to

More information

Schematic Diagram: R2,R3,R4,R7 are ¼ Watt; R5,R6 are 220 Ohm ½ Watt (or two 470 Ohm ¼ Watt in parallel)

Schematic Diagram: R2,R3,R4,R7 are ¼ Watt; R5,R6 are 220 Ohm ½ Watt (or two 470 Ohm ¼ Watt in parallel) Nano DDS VFO Rev_2 Assembly Manual Farrukh Zia, K2ZIA, 2016_0130 Featured in ARRL QST March 2016 Issue Nano DDS VFO is a modification of the original VFO design in Arduino Projects for Amateur Radio by

More information

Grove - 80cm Infrared Proximity Sensor User Manual

Grove - 80cm Infrared Proximity Sensor User Manual Grove - 80cm Infrared Proximity Sensor User Manual Release date: 2015/9/22 Version: 1.0 Wiki: http://www.seeedstudio.com/wiki/index.php?title=twig_-_80cm_infrared_proximity_sensor_v0.9 Bazaar: http://www.seeedstudio.com/depot/grove-80cm-infrared-

More information

CSE P567 - Winter 2010 Lab 1 Introduction to FGPA CAD Tools

CSE P567 - Winter 2010 Lab 1 Introduction to FGPA CAD Tools CSE P567 - Winter 2010 Lab 1 Introduction to FGPA CAD Tools This is a tutorial introduction to the process of designing circuits using a set of modern design tools. While the tools we will be using (Altera

More information

SensaLink Programmer Instructions for Operation

SensaLink Programmer Instructions for Operation SensaLink Programmer Instructions for Operation Thorn Lighting Limited Merrington Lane Ind Est Spenneymoor Co. Durham SensaLink Programmer Handset Contents 1. Overview 2. Using the handset 3. Upgrading

More information

Configuration the Raspberry Pi for the SmartPI. There are two ways to install the necessary software to use the SmartPi with your Raspberry Pi!

Configuration the Raspberry Pi for the SmartPI. There are two ways to install the necessary software to use the SmartPi with your Raspberry Pi! Configuration the Raspberry Pi for the SmartPI There are two ways to install the necessary software to use the SmartPi with your Raspberry Pi! I. You install the pre-configured image on your Raspberry

More information

Sphero Lightning Lab Cheat Sheet

Sphero Lightning Lab Cheat Sheet Actions Tool Description Variables Ranges Roll Combines heading, speed and time variables to make the robot roll. Duration Speed Heading (0 to 999999 seconds) (degrees 0-359) Set Speed Sets the speed of

More information

EDJE PROJECT. The Software Foundation for IoT Devices. https://projects.eclipse.org/projects/iot.edje. IS2T S.A All rights reserved.

EDJE PROJECT. The Software Foundation for IoT Devices. https://projects.eclipse.org/projects/iot.edje. IS2T S.A All rights reserved. EDJE PROJECT The Software Foundation for IoT Devices https://projects.eclipse.org/projects/iot.edje IS2T S.A. 2016. All rights reserved. PRESENTER Jérôme Leroux Development and Innovation Manager at MicroEJ

More information

Grove - Magnetic Switch

Grove - Magnetic Switch Grove - Magnetic Switch This is a Grove interface compatible Magnetic switch module. It is based on encapsulated dry reed switch CT10. CT10 is single-pole, single throw (SPST) type, having normally open

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

1.0. Presents. techathon 3.0

1.0. Presents. techathon 3.0 1.0 Presents techathon 3.0 Course Content - techathon techathon 3.0 is a Robotics and Embedded systems Workshop designed by team Robo-Minions. It is a 2 days workshop with each day divided into two sessions

More information

NAME EET 2259 Lab 3 The Boolean Data Type

NAME EET 2259 Lab 3 The Boolean Data Type NAME EET 2259 Lab 3 The Boolean Data Type OBJECTIVES - Understand the differences between numeric data and Boolean data. -Write programs using LabVIEW s Boolean controls and indicators, Boolean constants,

More information

LevelOne. User Manual KVM-0831/KVM /16-Port Combo KVM Switch w/ Expansion Slot. Ver

LevelOne. User Manual KVM-0831/KVM /16-Port Combo KVM Switch w/ Expansion Slot. Ver LevelOne KVM-0831/KVM-1631 8/16-Port Combo KVM Switch w/ Expansion Slot User Manual Ver. 1.0-0706 ii Safety FCC This equipment has been tested and found to comply with Part 15 of the FCC Rules. Operation

More information

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1 SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1 Subject: Microcontroller and Interfacing (151001) Class: B.E.Sem V (EC-I & II) Q-1 Explain RISC

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 Cookbook O'REILLY* Michael Margolis. Tokyo. Cambridge. Beijing. Farnham Koln Sebastopol

Arduino Cookbook O'REILLY* Michael Margolis. Tokyo. Cambridge. Beijing. Farnham Koln Sebastopol Arduino Cookbook Michael Margolis O'REILLY* Beijing Cambridge Farnham Koln Sebastopol Tokyo Table of Contents Preface xiii 1. Getting Started 1 1.1 Installing the Integrated Development Environment (IDE)

More information

SMK585 1U rackmount. With 8 Ports KVM Switch

SMK585 1U rackmount. With 8 Ports KVM Switch SMK585 1U rackmount Monitor Keyboard Drawer With 8 Ports KVM Switch TABLE OF CONTENTS Content FEATURES...1 BASIC SPECIFICATION...2 DISPLAY...2 PACKAGE CONTENTS...2 TECHNICAL SPECIFICATIONS...3 SYSTEM REQUIREMENT...3

More information

Application Note. Title: Incorporating HMT050CC-C as a Digital Scale Display by: A.S. Date:

Application Note. Title: Incorporating HMT050CC-C as a Digital Scale Display by: A.S. Date: Title: Incorporating HMT050CC-C as a Digital Scale Display by: A.S. Date: 2014-08-04 1. Background This document shall describe how a user can create the Graphical User Interface of a high-end digital

More information

Instructions PLEASE READ (notice bold and underlined phrases)

Instructions PLEASE READ (notice bold and underlined phrases) Lab Exercises wk02 Lab Basics First Lab of the course Required Reading Java Foundations - Section 1.1 - The Java Programming Language Instructions PLEASE READ (notice bold and underlined phrases) Lab Exercise

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

EDUCATION EXPERIENCES WITH A USB INTERFACE

EDUCATION EXPERIENCES WITH A USB INTERFACE Practice and Theory in Systems of Education, Volume 4 Number 1 2009 EDUCATION EXPERIENCES WITH A USB INTERFACE József NEMES (University of West-Hungary, Szombathely, Hungary) njozsef@ttmk.nyme.hu On the

More information

ENGR 40M Project 3c: Switch debouncing

ENGR 40M Project 3c: Switch debouncing ENGR 40M Project 3c: Switch debouncing For due dates, see the overview handout 1 Introduction This week, you will build on the previous two labs and program the Arduino to respond to an input from the

More information

User Manual. DVK512 Expansion Board For Raspberry Pi

User Manual. DVK512 Expansion Board For Raspberry Pi DVK512 Expansion Board For Raspberry Pi User Manual DVK512 is an expansion board designed for Raspberry Pi Model B+, integrates various components and interfaces for connecting external accessory boards.

More information

Room Classroom Technology Updated March 4, 2019

Room Classroom Technology Updated March 4, 2019 Room 19-215 Classroom Technology Updated March 4, 2019 Table of Contents TURN CLASSROOM LIGHTS ON/OFF...1 EQUIPMENT LOCATION...2 LOGIN TO THE COMPUTER...2 Unsuccessful Login...3 TURN ON AND CONTROL THE

More information

Robotic Systems ECE 401RB Fall 2006

Robotic Systems ECE 401RB Fall 2006 The following notes are from: Robotic Systems ECE 401RB Fall 2006 Lecture 15: Processors Part 3 Chapter 14, G. McComb, and M. Predko, Robot Builder's Bonanza, Third Edition, Mc- Graw Hill, 2006. I. Peripherals

More information

STEP MOTOR DRIVER SMD-4.2DIN

STEP MOTOR DRIVER SMD-4.2DIN SMART MOTOR DEVICES http://www.smd.ee STEP MOTOR DRIVER SMD-4.2DIN manual SMDDIN.42.001 2018 1. Product designation Step motor controller SMD-4.2DIN is an electronic device designed to operate with 2 or

More information