Workshop Arduino English starters workshop 2

Size: px
Start display at page:

Download "Workshop Arduino English starters workshop 2"

Transcription

1 Workshop Arduino English starters workshop 2 We advice to finish part 1 of this workshop before following this one. There are a set of assignments in this workshop that can be taken individually. First try assignment 1 and after that you can take them in any order you like. There is unique material for each assignment so when multiple people are following the workshop divide them equally and keep the materials together for the next person. All the programs that are needed for the assignments are available on a USB stick. It will be copies of this on the desktop of the computers so it will not be necessary to enter this code by hand. It is vital though to read the code carefully to understand what is happening.

2 Assignment 1: The object of this assignment is to known how to use the serial monitor. There is a serial monitor inside the Arduino IDE, you can use it to write input data from the arduino to the screen. It can be used to quickly check the state of a push button, temperature sensor or other device. Connect the arduino to a USB port on the pc and run this code: void setup() { Serial.begin(9600); void loop() { Serial.println( Hello World! ); delay (100); Now click on the serial monitor and the text Hello Work! will be displayed continuously on the screen. Serial.begin(); set the baud-rate of the serial port. Serial.println(); print the text contents of a variable and continue to the next line. delay(); make the processor wait for the specified number of milliseconds before continuing with the program.

3 In the next example we will read the data from an analogue input port: void setup() { Serial.begin(9600); void loop() { Serial.println(analogRead(0)); delay (100); When we display data from more than one input port it is better to show which port we are reading. void setup() { Serial.begin(9600); void loop() { Serial.print("analogue port 0 "); Serial.println(analogRead(0)); Serial.print("analogue port 1 "); Serial.println(analogRead(1)); delay(100); We now use two new functions: Serial.print(); print the text version of a variable and stay on the same line. analogread(); reads the value of an analogue port. The arduino continues 6 of these ports numbered from 0 to 5. The value read is 0 to the maximum of 1023 for normally 5 volt.

4 Assignment 2: The goal is to learn to show text on a 2x16 LCD display. There is a tutorial page for LCD screens on the arduino.cc website: Connect the LCD screen to the arduino in the way described on the website.

5 Use the example code from the arduino page: // include the library code: #include <LiquidCrystal.h> // initialize the library with the numbers of the interface pins LiquidCrystal lcd(12, 11, 5, 4, 3, 2); void setup() { // set up the LCD's number of columns and rows: lcd.begin(16, 2); // Print a message to the LCD. lcd.print("hello, world!"); void loop() { // set the cursor to column 0, line 1 // (note: line 1 is the second row, since counting begins with 0): lcd.setcursor(0, 1); // print the number of seconds since reset: lcd.print(millis()/1000); When this code runs on the arduino turn the pot-meter till the letters on the screens are bright enough to read easily. The pot-meter will modify the contrast of the display. This is a nice example to show a static text hello, World! and variable text the number of seconds since the start-up of the arduino. Note that the library for the LCD monitor is written in a modular fashion, we can alter which pins the arduino will use for the LCD display: LiquidCrystal lcd(12, 11, 5, 4, 3, 2); The order of the pins is fixed to it's function: LiquidCrystal lcd(rs, E, D4, D5, D6, D7); Now connect to the display to the follow pins (2, 3, 4, 5, 6, 7) and in this order. Change the arduino code to match these new pins and run the code again. The ability to change the used pins is needed in the future when you need for example to reserve the SPI interface (pin 11, 12, 13) for an Ethernet module, SD card or when you want to use as much PWM pins as possible. lcd.begin(); the type of the LCD screen in use. lcd.print(); show a text or a variable on the display. lcd.setcursor(); move the cursor to the given position. 5, 0 is the 6th token on the first line. 10,1 is the 11th token on the 2nd line. Change the code to show your first name in the top right corner and your surname in the bottom left cornet of the LCD display.

6 Assignment 3: The goal is to know how to read a temperature sensor. This a relative simple variant of a temperature sensor that returns a voltage relative to the power voltage. Normally a value between 0 and 5 volt. This is easy to use in combination with the analogue input of the arduino boards. This project is also fully documented on the internet: Connect the temperature sensor to the arduino as written on the site: The easiest way to read and show the temperature is via de serial monitor:

7 Run this code and open the serial monitor: void setup() { Serial.begin(9600); // start serial communication void loop() { Serial.println(((analogRead(0)* 5.0 / 1024) - 0.5)* 100); The temperature of the sensor will show in the serial monitor. Connect the second temperature sensor to the analogue port 1. Change the code so you can read the 2 sensors. Make it so that: both sensors show what sensor data is written. there is enough time to read the data. the unit of degrees Celsius is shown after the temperature. The serial monitor will show something like this:

8 Assignment 4: The goal is to work with the data logger shield from Adafruit. This shield add's 2 extra functions to the Arduino. 1. a real time clock 2. a SD card for data storage The real time clock: A real time clock is really handy when writing data to read it at a future time. You can read precisely when something is logged. When you use the clock for the first time or when the battery is replaced you need to set it to the current time. In this program we set the clock to the clock on the pc at the time that the code is uploaded: RTC.adjust(DateTime( DATE, TIME_)); On the website of Adafruit is all the information needed to use this shield: We will now show the data on the serial monitor that the clock sends:

9 #include <Wire.h> #include "RTClib.h" RTC_DS1307 RTC; void setup () { Serial.begin(9600); Wire.begin(); RTC.begin(); if (! RTC.isrunning()) { Serial.println("RTC is NOT running!"); RTC.adjust(DateTime( DATE, TIME )); void loop () { DateTime now = RTC.now(); Serial.print(now.year(), DEC); Serial.print('/'); Serial.print(now.month(), DEC); Serial.print('/'); Serial.print(now.day(), DEC); Serial.print(' '); Serial.print(now.hour(), DEC); Serial.print(':'); Serial.print(now.minute(), DEC); Serial.print(':'); Serial.print(now.second(), DEC); Serial.println(); delay(1000); Upload this code to the arduino with the data logger shield attached to it and start the serial monitor.

10 The console should now look like:

11 We will now continue with the SD card: We can use the SD card to store data and to read it back again. For this assignment we use the temperature sensor like in assignment 3. Connect the sensor to the arduino like in assignment 3. We will store the data we read with the temperature sensor on the SD card. We will log the time together with the data so we can read what the temperature was on a given moment. The code to do this is a bit too large to type into the arduino environment. It is on the USB stick or on the desktop (opdracht 4_2). It is directly copied from the Adafruit website. In the serial monitor you can read what data is written and to which file on the SD it is written. Remove the USB connector from the laptop. Take the SD card out of the shield and put it directly into the laptop or into an available SD card reader. There will be a file on the SD card with the file-name that where shown in the serial monitor. Open it with the laptop. On the Adafruit website it is shown how to read this data with for example Excel. This is outside the scope of this workshop but when you are interested open:

12 This was the beginner arduino workshop version 2. You now have enough information to start your own projects. When there is extra time you can try to combine the material of several assignments. For example you can show the temperature and time on a LCD display. In TkkrLab we have a wide variety of hardware to create more sophisticated projects. We also have the possibility to move you're projects from a prototype to a normal electronic print board. So come by any time to look what the possibilities are.

#include "DHT.h" DHT dht(dhtpin, DHTTYPE); // Date and time functions using a DS1307 RTC connected via I2C and Wire lib

#include DHT.h DHT dht(dhtpin, DHTTYPE); // Date and time functions using a DS1307 RTC connected via I2C and Wire lib #include "DHT.h" #define DHTPIN 2 // what pin we're connected to // Uncomment whatever type you're using! #define DHTTYPE DHT11 // DHT 11 //#define DHTTYPE DHT22 // DHT 22 (AM2302) //#define DHTTYPE DHT21

More information

Metro Minimalist Clock

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

More information

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

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

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

Arduino Programming Part 6: LCD Panel Output

Arduino Programming Part 6: LCD Panel Output Arduino Programming Part 6: LCD Panel Output EAS 199B, Winter 2013 Gerald Recktenwald Portland State University gerry@me.pdx.edu Goals Use the 20x4 character LCD display for output Overview of assembly

More information

Memo on development of the car-rangefinder device/data logger for crosswalk study

Memo on development of the car-rangefinder device/data logger for crosswalk study Memo on development of the car-rangefinder device/data logger for crosswalk study -Alex Bigazzi; abigazzi@pdx.edu; alexbigazzi.com; Sept. 16 th -19 th, 2013 The device is supposed to measure distances

More information

NeoPixel 60 Ring Wall Clock

NeoPixel 60 Ring Wall Clock NeoPixel 60 Ring Wall Clock Created by Andy Doro Last updated on 2015-07-23 10:10:07 PM EDT Guide Contents Guide Contents Overview Building the Circuit Code Finishing it up 2 3 5 7 11 https://learn.adafruit.com/neopixel-60-ring-clock

More information

Trinket RGB Shield Clock

Trinket RGB Shield Clock Trinket RGB Shield Clock Created by Mike Barela Last updated on 2016-02-07 09:38:15 PM EST Guide Contents Guide Contents Overview Libraries Getting Ready Hook-up Code Use and Going Further Use It! Going

More information

DS1307 Real Time Clock Breakout Board Kit

DS1307 Real Time Clock Breakout Board Kit DS1307 Real Time Clock Breakout Board Kit Created by Tyler Cooper Last updated on 2016-09-07 12:03:17 AM UTC Guide Contents Guide Contents Overview What is an RTC? Battery Backup CR1220 12mm Diameter -

More information

GUIDE TO SP STARTER SHIELD (V3.0)

GUIDE TO SP STARTER SHIELD (V3.0) OVERVIEW: The SP Starter shield provides a complete learning platform for beginners and newbies. The board is equipped with loads of sensors and components like relays, user button, LED, IR Remote and

More information

Laboratory 5 Communication Interfaces

Laboratory 5 Communication Interfaces Laboratory 5 Communication Interfaces Embedded electronics refers to the interconnection of circuits (micro-processors or other integrated circuits) with the goal of creating a unified system. In order

More information

Arduino: LCD Diagrams & Code Brown County Library

Arduino: LCD Diagrams & Code Brown County Library Arduino: LCD Diagrams & Code Project 01: Hello, World! Components needed: Arduino Uno board breadboard 16 jumper wires 16x2 LCD screen 10k potentiometer /* LCD 01 : Hello World! Source: Code adapted from

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

Project 24 LCD Temperature Display

Project 24 LCD Temperature Display Project 24 LCD Temperature Display This project is a simple demonstration of using an LCD to present useful information to the user in this case, the temperature from an analog temperature sensor. You

More information

Designed & Developed By: Ms. Jasleen Kaur, PhD Scholar, CSE. Computer Science & Engineering Department

Designed & Developed By: Ms. Jasleen Kaur, PhD Scholar, CSE. Computer Science & Engineering Department Design & Development of IOT application using Intel based Galileo Gen2 board A Practical Approach (Experimental Manual For B.Tech & M.Tech Students) For SoC and Embedded systems in association with Intel

More information

Design Rationale for Cushion Timer and Logger

Design Rationale for Cushion Timer and Logger Design Rationale for Cushion Timer and Logger Laura came up with the original idea. She was inspired by concerns about health and the amount of time people spend at their desks each day. We decided to

More information

Inclusions required for the DMD

Inclusions required for the DMD Sketch for Home Alert The sketch is not large in terms of the line count, but it almost exhausts the Uno s available flash memory thanks to all the included libraries. There is lots of room for memory

More information

3.The circuit board is composed of 4 sets which are 16x2 LCD Shield, 3 pieces of Switch, 2

3.The circuit board is composed of 4 sets which are 16x2 LCD Shield, 3 pieces of Switch, 2 Part Number : Product Name : FK-FA1416 MULTI-FUNCTION 16x2 LCD SHIELD This is the experimental board of Multi-Function 16x2 LCD Shield as the fundamental programming about the digits, alphabets and symbols.

More information

Lab 1: Arduino Basics. Rodrigo Carbajales and Marco Zennaro ICTP Trieste-Italy

Lab 1: Arduino Basics. Rodrigo Carbajales and Marco Zennaro ICTP Trieste-Italy Lab 1: Arduino Basics Rodrigo Carbajales and Marco Zennaro ICTP Trieste-Italy Step Zero Clean up your desks! :) Goals of this Lab Learn how the programming takes place Excercises about: installing the

More information

Sten-SLATE ESP Kit. Description and Programming

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

More information

LCD KeyPad Shield For Arduino SKU: DFR0009

LCD KeyPad Shield For Arduino SKU: DFR0009 LCD KeyPad Shield For Arduino SKU: DFR0009 1602 LCD Keypad Shield For Arduino Contents 1 Introduction 2 Specification 3 Pinout 4 Library Explanation o 4.1 Function Explanation 5 Tutorial o 5.1 Example

More information

ISL RGB Sensor Tutorial By: Sabrina Jones

ISL RGB Sensor Tutorial By: Sabrina Jones ISL 25129 RGB Sensor Tutorial By: Sabrina Jones Overview The ISL29125 RGB sensor is a breakout board made to record the light intensity of the general red, green, and blue spectrums of visible light, that

More information

BASIC Arduino. Part I

BASIC Arduino. Part I BASIC Arduino Part I Objectives Introduction to Arduino Build a 1-60MHz DDS VFO prototype, breadboard and write Sketches, with Buffer amps to be designed, and PCB Using your own laptop Go on to build other

More information

ADC to I 2 C. Data Sheet. 10 Channel Analog to Digital Converter. with output via I 2 C

ADC to I 2 C. Data Sheet. 10 Channel Analog to Digital Converter. with output via I 2 C Data Sheet 10 Channel Analog to Digital Converter with output via I 2 C Introduction Many microcontroller projects involve the use of sensors like Accelerometers, Gyroscopes, Temperature, Compass, Barometric,

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

Eng.mohammed Albhaisi. Lab#3 : arduino to proteus simulation. for simulate Arduino program that you wrote you have to have these programs :

Eng.mohammed Albhaisi. Lab#3 : arduino to proteus simulation. for simulate Arduino program that you wrote you have to have these programs : Lab#3 : arduino to proteus simulation for simulate Arduino program that you wrote you have to have these programs : 1-Arduino C 2-proteus 3- Virtual Serial Port Driver 4-Arduino library to proteus You

More information

Barry the Plant Watering Robot

Barry the Plant Watering Robot Barry the Plant Watering Robot We are going to create the controller board for Barry, a robot who will do some of our plant watering chores for us. We aren t going to build all of Barry, but this will

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 EXPERIMENTS ARDUINO EXPERIMENTS

ARDUINO EXPERIMENTS ARDUINO EXPERIMENTS ARDUINO EXPERIMENTS IR OBSTACLE SENSOR... 3 OVERVIEW... 3 OBJECTIVE OF THE EXPERIMENT... 3 EXPERIMENTAL SETUP... 3 IR SENSOR ARDUINO CODE... 4 ARDUINO IDE SERIAL MONITOR... 5 GAS SENSOR... 6 OVERVIEW...

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

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

FUNCTIONS USED IN CODING pinmode()

FUNCTIONS USED IN CODING pinmode() FUNCTIONS USED IN CODING pinmode() Configures the specified pin to behave either as an input or an output. See the description of digital pins for details on the functionality of the pins. As of Arduino

More information

Liquid Crystal Displays

Liquid Crystal Displays Liquid Crystal Displays Let s investigate another popular method of displaying text and symbols, the LCD (Liquid Crystal Display). LCDs are the displays typically used in calculators and alarm clocks.

More information

Prime Capsule Portable Data Logger

Prime Capsule Portable Data Logger Prime Capsule Portable Data Logger Note : Picture of products for reference only, holder not included. Features : - LCD Display for easy usage / Data Review - Data log can start without PC software setup

More information

Lab 4 LCDs and Accelerometers

Lab 4 LCDs and Accelerometers University of Pennsylvania Department of Electrical and Systems Engineering ESE 111 Intro to Electrical/Computer/Systems Engineering Lab 4 LCDs and Accelerometers Introduction: In this lab, will learn

More information

The speaker connection is circled in yellow, the button connection in red and the temperature sensor in blue

The speaker connection is circled in yellow, the button connection in red and the temperature sensor in blue Connections While the board can be connected to a number of different Arduino versions I chose to use the Pro Mini as I wanted the completed unit to be fairly small. The Mini and the MP3 board run on 5

More information

STEPD StepDuino Quickstart Guide

STEPD StepDuino Quickstart Guide STEPD StepDuino Quickstart Guide The Freetronics StepDuino is Arduino Uno compatible, uses the ATmega328P Microcontroller and works with most Arduino software. The StepDuino can be powered automatically

More information

The Raspberry Pi has been

The Raspberry Pi has been Data Modes with Mike Richards G4WNC E-Mail: mike@pwpublishing.ltd.uk A Look at the Arduino Mike Richards G4WNC introduces the Arduino boards and explains how to start using them to develop useful applications.

More information

Send commands via bluetooth, e.g. irise app for Android

Send commands via bluetooth, e.g. irise app for Android /** Sunrise alarm clock Waking up with a sunrise simulation Mood light Send commands via bluetooth, e.g. irise app for Android */ command i20:45z s06:10z dz m1..9e r1z y1z zz tz kz lz bz v1e description

More information

ARDUINO WORKSHOP A HANDS-ON I N T R O D U C T I O N W I T H 65 PROJECTS JOHN BOXALL

ARDUINO WORKSHOP A HANDS-ON I N T R O D U C T I O N W I T H 65 PROJECTS JOHN BOXALL ARDUINO WORKSHOP A HANDS-ON I N T R O D U C T I O N W I T H 65 PROJECTS JOHN BOXALL I NDEX Symbols & Numbers &, 139 &&, 73 *, 84 */, 27 ==, 71!, 73!=, 71 /, 84 /*, 27 //, 27 >, 84 >=, 84 #define, 70 #include,

More information

The Big Idea: Background: About Serial

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

More information

Schedule. Sanford Bernhardt, Sangster, Kumfer, Michalaka. 3:10-5:00 Workshop: Build a speedometer 5:15-7:30 Dinner and Symposium: Group 2

Schedule. Sanford Bernhardt, Sangster, Kumfer, Michalaka. 3:10-5:00 Workshop: Build a speedometer 5:15-7:30 Dinner and Symposium: Group 2 Schedule 8:00-11:00 Workshop: Arduino Fundamentals 11:00-12:00 Workshop: Build a follower robot 1:30-3:00 Symposium: Group 1 Sanford Bernhardt, Sangster, Kumfer, Michalaka 3:10-5:00 Workshop: Build a speedometer

More information

Computer Architectures

Computer Architectures Implementing the door lock with Arduino Gábor Horváth 2017. február 24. Budapest associate professor BUTE Dept. Of Networked Systems and Services ghorvath@hit.bme.hu Outline Aim of the lecture: To show

More information

Required Materials. Optional Materials. Preparation

Required Materials. Optional Materials. Preparation Module 1: Crash Prevention Lesson 3: Weather Information systems Programming Activity Using Arduino Teacher Resource Grade 9-12 Time Required: 3 60 minute sessions or 3 hours Required Materials Computers

More information

StenBOT Robot Kit. Stensat Group LLC, Copyright 2018

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

More information

LAMPIRAN I (LISTING PROGRAM)

LAMPIRAN I (LISTING PROGRAM) LAMPIRAN I (LISTING PROGRAM) #include LiquidCrystal lcd(8, 9, 4, 5, 6, 7); const int numreadings = 10; int readings[numreadings]; // the readings from the analog input int readindex =

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

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

Laboratory 3 Working with the LCD shield and the interrupt system

Laboratory 3 Working with the LCD shield and the interrupt system Laboratory 3 Working with the LCD shield and the interrupt system 1. Working with the LCD shield The shields are PCBs (Printed Circuit Boards) that can be placed over the Arduino boards, extending their

More information

RS422/RS485 Shield. Application Note: Multiple RS485 busses. 1 Introduction

RS422/RS485 Shield. Application Note: Multiple RS485 busses. 1 Introduction 1 Introduction This application note will show you how to connect up to 3 independent RS485 busses to one Arduino. This can be useful if you want to create a gateway between these busses or if you want

More information

Introduction to Programming. Writing an Arduino Program

Introduction to Programming. Writing an Arduino Program Introduction to Programming Writing an Arduino Program What is an Arduino? It s an open-source electronics prototyping platform. Say, what!? Let s Define It Word By Word Open-source: Resources that can

More information

Trinket Ultrasonic Rangefinder

Trinket Ultrasonic Rangefinder Trinket Ultrasonic Rangefinder Created by Mike Barela Last updated on 2018-01-25 07:16:36 PM UTC Guide Contents Guide Contents Overview and Wiring The LCD Display Adding the Sensor Arduino Code Software

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

/* ///////////////////////////////////////////////////////////////////////////////////////////////////////REAL- TIME CLOCK MODULE DS1307 */

/* ///////////////////////////////////////////////////////////////////////////////////////////////////////REAL- TIME CLOCK MODULE DS1307 */ ////////////////////////////////////////////////////////////////////////////////////////////////////MENU_CONTROLLER_UNO ///////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////MENU_CONTROLLER_UNO

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

melabs Serial LCD Firmware Version 1.1 3/5/07

melabs Serial LCD Firmware Version 1.1 3/5/07 melabs Serial LCD Firmware Version 1.1 3/5/07 The melabs Serial LCD (SLCD) can display serial data from either asynchronous RS232-style or synchronous I 2 C input. A range of baud rates from 2400 to 57,600

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

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

SPLDuino Programming Guide

SPLDuino Programming Guide SPLDuino Programming Guide V01 http://www.helloapps.com http://helloapps.azurewebsites.net Mail: splduino@gmail.com HelloApps Co., Ltd. 1. Programming with SPLDuino 1.1 Programming with Arduino Sketch

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

Module 1: Crash Prevention Lesson 3: Weather Information systems Programming Activity Using Arduino Teacher Resource Grade 6-8 Time Required

Module 1: Crash Prevention Lesson 3: Weather Information systems Programming Activity Using Arduino Teacher Resource Grade 6-8 Time Required Module 1: Crash Prevention Lesson 3: Weather Information systems Programming Activity Using Arduino Teacher Resource Grade 6-8 Time Required Weather Information Systems is a 120 minute lesson plan (90

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

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

What s inside the kit

What s inside the kit What s inside the kit 1 set Jumper Wires 5 pcs Tact Switch 1 pc Photoresistor 1 pc 400 Points Breadboard 1 pc Potentiometer 1 pc LCD 5 pcs 5mm Red LED 5 pcs 5mm Green LED 5 pcs 5mm Yellow LED 30 pcs Resistors

More information

RoastLogger Arduino/TC4 driver installation for Windows 9/10/13 By John Hannon (JackH) at Homeroasters.org

RoastLogger Arduino/TC4 driver installation for Windows 9/10/13 By John Hannon (JackH) at Homeroasters.org This procedure was written for the Arduino Uno board with the TC4 shield. Please check the Arduino site for software if you are using a different model. I have not tested it, but this procedure should

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

Bluno Mega 2560 (SKU:DFR0323)

Bluno Mega 2560 (SKU:DFR0323) Bluno Mega 2560 (SKU:DFR0323) From Robot Wiki Contents 1 Introduction 2 Specification 3 Pin Out 4 Supported Android Devices 5 Supported Apple Devices 6 Tutorial o 6.1 More advantages o 6.2 The serial port

More information

FireBeetle ESP8266 IOT Microcontroller SKU: DFR0489

FireBeetle ESP8266 IOT Microcontroller SKU: DFR0489 FireBeetle ESP8266 IOT Microcontroller SKU: DFR0489 Introduction DFRobot FireBeetle is a series of low-power-consumption development hardware designed for Internet of Things (IoT). Firebeetle ESP8266 is

More information

SWITCH 10 KILOHM RESISTOR 220 OHM RESISTOR POTENTIOMETER LCD SCREEN INGREDIENTS

SWITCH 10 KILOHM RESISTOR 220 OHM RESISTOR POTENTIOMETER LCD SCREEN INGREDIENTS 11 SWITCH 10 KILOHM RESISTOR 220 OHM RESISTOR POTENTIOMETER LCD SCREEN INGREDIENTS 115 CRYSTAL BALL CREATE A CRYSTAL BALL TO TELL YOUR FUTURE Discover: LCD displays, switch/case statements, random() Time:

More information

TN-192. Bar Graph shows analog trends on a dot-matrix character LCD module. Introduction. LCD Module Basics. Custom Characters

TN-192. Bar Graph shows analog trends on a dot-matrix character LCD module. Introduction. LCD Module Basics. Custom Characters Mark Durgin - SCIDYNE Corporation TN-192 Bar Graph shows analog trends on a dot-matrix character LCD module Introduction Dot-Matrix character LCD (Liquid Crystal Display) modules are excellent at conveying

More information

Lab 3 XBees and LCDs and Accelerometers, Oh My! Part 1: Wireless Communication Using XBee Modules and the Arduino

Lab 3 XBees and LCDs and Accelerometers, Oh My! Part 1: Wireless Communication Using XBee Modules and the Arduino University of Pennsylvania Department of Electrical and Systems Engineering ESE 205 Electrical Circuits and Systems Laboratory I Lab 3 XBees and LCDs and Accelerometers, Oh My! Introduction: In the first

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

File: Unsaved Document 1 Page 1 of 7

File: Unsaved Document 1 Page 1 of 7 File: Unsaved Document 1 Page 1 of 7 /* Example 10.2 On/off timer tronixstuff.com/tutorials > Chapter 10 based on code by Maurice Ribble 17-4-2008 - http://www.glacialwanderer.com/hobbyrobotics and John

More information

Lab 4: Determining temperature from a temperature sensor

Lab 4: Determining temperature from a temperature sensor Start on a fresh page and write your name and your partners names on the top right corner of the page. Write the title of the lab clearly. You may copy the objectives, introduction, equipment, safety and

More information

// sets the position of cursor in row and column

// sets the position of cursor in row and column CODE: 1] // YES_LCD_SKETCH_10_14_12 #include //lcd(rs, E, D4, D5, D6, D7) LiquidCrystal lcd(8, 9, 4, 5, 6, 7); int numrows = 2; int numcols = 16; void setup() Serial.begin(9600); lcd.begin(numrows,

More information

USB + Serial RGB Backlight Character LCD Backpack

USB + Serial RGB Backlight Character LCD Backpack USB + Serial RGB Backlight Character LCD Backpack Created by Tyler Cooper Last updated on 2014-07-28 02:00:12 PM EDT Guide Contents Guide Contents Overview USB or TTL Serial Assembly Sending Text Testing

More information

VIII.! READING ANALOG!!!!! VALUES

VIII.! READING ANALOG!!!!! VALUES VIII.! READING ANALOG!!!!! VALUES Disconnect USB. Remove the pushbutton and connect a force-sensitive resistor, the 10 kω resistor and wires to analog input A0 as shown. You ve created a voltage divider.

More information

Grove - 3 Axis Digital Accelerometer±16g Ultra-low Power (BMA400)

Grove - 3 Axis Digital Accelerometer±16g Ultra-low Power (BMA400) Grove - 3 Axis Digital Accelerometer±16g Ultra-low Power (BMA400) The Grove - 3-Axis Digital Accelerometer ±16g Ultra-low Power (BMA400) sensor is a 12 bit, digital, triaxial acceleration sensor with smart

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

Junying Huang Fangjie Zhou. Smartphone Locker

Junying Huang Fangjie Zhou. Smartphone Locker Junying Huang Fangjie Zhou Smartphone Locker Motivation and Concept Smartphones are making our lives more and more convenient. In addition to some basic functions like making calls and sending messages,

More information

CORTESIA ELECTRONICCA

CORTESIA ELECTRONICCA Connect with I2C The first option we'll show is how to use the i2c interface on the backpack. We'll be showing how to connect with an Arduino, for other microcontrollers please see our MCP23008 library

More information

LinkIt ONE. Introduction. Specifications

LinkIt ONE. Introduction. Specifications LinkIt ONE Introduction The LinkIt ONE development board is an open source, high performance board for prototyping Wearables and IoT devices. It's based on the world s leading SoC for Wearables, MediaTek

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

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

4Serial SIK BINDER //77

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

More information

Sensors and Actuators with Arduino. Hans-Petter Halvorsen, M.Sc.

Sensors and Actuators with Arduino. Hans-Petter Halvorsen, M.Sc. Sensors and Actuators with Arduino Hans-Petter Halvorsen, M.Sc. System Overview NTC Thermistor Arduino Download Code Computer TMP36 Pt-100 Sensors (Input) Actuators (Output) Examples: Data Logging Programming

More information

Earthshine Design Arduino Starters Kit Manual - A Complete Beginners Guide to the Arduino. Project 13. Serial Temperature Sensor

Earthshine Design Arduino Starters Kit Manual - A Complete Beginners Guide to the Arduino. Project 13. Serial Temperature Sensor Project 13 Serial Temperature Sensor 75 Project 13 - Serial Temperature Sensor Now we are going to make use of the Temperature Sensor in your kit, the LM35DT. You will need just one component. What you

More information

A CHILD S GUIDE TO DIRECT DATALOGGING WITH EXCEL. (All brickbats and bouquets gladly received - on the Arduino forum)

A CHILD S GUIDE TO DIRECT DATALOGGING WITH EXCEL. (All brickbats and bouquets gladly received - on the Arduino forum) A CHILD S GUIDE TO DIRECT DATALOGGING WITH EXCEL version 5 (All brickbats and bouquets gladly received - on the Arduino forum) This is an aide memoire for the PLX-DAQ macro for Excel. Parallax do not address

More information

Input Shield For Arduino SKU: DFR0008

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

More information

ESPino - Specifications

ESPino - Specifications ESPino - Specifications Summary Microcontroller ESP8266 (32-bit RISC) WiFi 802.11 (station, access point, P2P) Operating Voltage 3.3V Input Voltage 4.4-15V Digital I/O Pins 9 Analog Input Pins 1 (10-bit

More information

Overview. Introduction. Features

Overview. Introduction. Features P4S-348-R2 User Manual > Overview Overview Introduction The P4S-348-R2 (PHPoC Shield 2 for Arduino) is a shield that connects Arduino to a wired or wireless network. After attaching this shield on top

More information

Bill of Materials: Turn Off the Lights Reminder PART NO

Bill of Materials: Turn Off the Lights Reminder PART NO Turn Off the Lights Reminder PART NO. 2209650 Have you ever woke up early in the morning to find out that the kids (or adults) in your home forgot to turn off the lights? I've had that happen a number

More information

Adafruit Adalogger FeatherWing

Adafruit Adalogger FeatherWing Adafruit Adalogger FeatherWing Created by lady ada Last updated on 2018-01-18 06:15:20 PM UTC Guide Contents Guide Contents Overview Pinouts Power Pins RTC & I2C Pins SD & SPI Pins Assembly Using the Real

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

Overview. Introduction. Key Features

Overview. Introduction. Key Features P4S-348 User Manual > Overview Overview Introduction PHPoC Shield for Arduino connects Arduino to Ethernet or Wi-Fi networks. Attach this board over Arduino and connect a LAN cable. After a simple network

More information

A Hacker s Introduction to the Nokia N900

A Hacker s Introduction to the Nokia N900 A Hacker s Introduction to the Nokia N900 Introduction Welcome to the Hacker s Introduction to the Nokia N900. This guide is intended to help you begin connecting the N900 s builtin capabilities to information

More information

I2C TWI LCD2004 Module (Arduino/Gadgeteer Compatible) (SKU:DFR0154)

I2C TWI LCD2004 Module (Arduino/Gadgeteer Compatible) (SKU:DFR0154) I2C TWI LCD2004 Module (Arduino/Gadgeteer Compatible) (SKU:DFR0154) Introduction I2C/TWI LCD2004 module compatible with Gadgeteer is a cool lcd display with a high speed I2C serial bus from DFRobot. With

More information

A Shallow Embedded, Type Safe Extendable DSL for the Arduino. Pieter Koopman

A Shallow Embedded, Type Safe Extendable DSL for the Arduino. Pieter Koopman A Shallow Embedded, Type Safe Extendable DSL for the Arduino Pieter Koopman what is an Arduino? open source microprocessor board Ø 8-bit ATMega328 Ø 16 MHz Ø 32 KB flash memory Ø 2 KB RAM Ø big input /

More information