AAPT workshop W03 July 26, 2014 Saint Cloud State University, MN, USA

Slides:



Advertisements
Similar presentations
Module 3 Configuring Hardware on a Computer Running Windows XP Professional.
Advertisements

EMS1EP Lecture 6 Digital Inputs
JED Microprocessors Pty Ltd Presenting the JED T430 low-cost Projector Controllers Nov 22nd, 2009.
MM Player Supervised by: Dr. Luai Malhis. Prepared by: Mustafa Assaf & Mahmoud Musa.
Lab7: Introduction to Arduino
Inputs: Digital and 4 configurable for Digital or 10 bit Analog Outputs:4 - 8 amp Relays or 700ma Transistors (1 PWM) 4 Line by 18 Character fully.
Embedded Sumo 1T4 – 1T5 UTRA.
1. 2 FRC 2010 Driver Station Doug Norman & Stephanie Brierty National Instruments January 8, 2010 Thanks to Joe Ross – Team 330.
User Guide and Trouble-shooting Information. A classroom set of 20 cameras are available for teacher and student use. Capable of taking video, but recommend.
And cheap, yes! River Falls, WI October 30, 2010 Saint Cloud State University, MN.
Intel Galileo Gen 2 & Grove Seeed Starter Kit Gen 1
BETTER INTERACTION FOR BETTER COMMUNICATION. A little preview of the PowerVote Quizz toolbar.
Arduino. Arduino is a tool for making computers that can sense and control more of the physical world than your desktop computer. It's an open-source.
Introduction.
EEE305 Microcontroller Systems Lecture 5B: Simple I/O Embedded C using PIC microcontrollers Teaching resources on on
Embedded Programming and Robotics
Open Source Physics Laboratory Data Acquisition System V 2.0 Open source physics laboratory data acquisition system V 2.0 (OSPL V2) is a physics laboratory.
Embedded Systems Design
DEMONSTRATION FOR SIGMA DATA ACQUISITION MODULES Tempatron Ltd Data Measurements Division Darwin Close Reading RG2 0TB UK T : +44 (0) F :
ARDUINO PROGRAMMING Working with the Arduino microcontroller.
Introduction to the Orbit Edu Board Ahmad Rahmati Teaching Assistant, ELEC424 Rice Efficient Computing Group Sep 12, 2007.
1 Starting & Stopping Motors Pico Pico LAB#4. 2 Program a series of three basic ladder logic rungs. These basic rungs are the most common rungs found.
Today:. Colorado Space Grant Consortium Gateway To Space ASEN / ASTR 2500 Class #06 Gateway To Space ASEN / ASTR 2500 Class #06 T-53.
Dean Brock, Rebecca Bruce and Susan Reiser, CCSC SE 2009 Using Arduino Material taken from Todbot blog Bionic Arduino Todbot blog Bionic ArduinoTodbot.
Week 10 Today 1.Homework presentations and critique. 2.Review digital and analog inputs. 3.DIY - jumpers, soldering etc.
The 6713 DSP Starter Kit (DSK) is a low-cost platform which lets customers evaluate and develop applications for the Texas Instruments C67X DSP family.
9000U Quick Guide Marketing & RMA Department XELTEK 8/28/2015.
Jeff Branson Education Outreach Coordinator Derek Runberg Curriculum Curator Getting.
High Speed Data Converter University
Move Pictures From Your Mobile Phone to Your PC.  You never know when a photo opportunity is going to arise, which is why having a camera phone can be.
AAPT 2013 Summer Meeting Portland, OR July 17, 2013 Saint Cloud State University, MN.
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
Canon SX 130 IS User Guide Digital Design Art Level 1.
Khaled A. Al-Utaibi  The Push Button  Interfacing Push Buttons to Arduino  Programming Digital Inputs  Working with “Bouncy”
Franz Duran INTRODUCTION TO A RDUINO PROGRAMMING & INTERFACING Engr. Franz Duran, MEP-ECE RapidSignal Electronics.
Tweaking Your Simon Adding a photoresistor and changing code Instruction by Pete Lewis and Linz Craig.
Overview What is Arduino? What is it used for? How to get started Demonstration Questions are welcome at any time.
Lecture 6 Parts Design Choices(part2). Motor/Encoder.
Engineering H193 - Team Project Gateway Engineering Education Coalition Lab 1P. 1Spring Quarter Introduction to Sensors Lab 1.
Quick guide to ASIMON configuration For version 3.0 or greater SAFETY AT WORK Date: 3/18/2009.
CSCI1600: Embedded and Real Time Software Lecture 16: Advanced Programming with I/O Steven Reiss, Fall 2015.
Final Year Project(EPT4046) Development of an internet controlled Surveillance Mobile Robot By Mimi Madihah Bt Mohd Idris Id: BACHELOR OF ENGINEERING.
1 Colorado Space Grant Consortium Gateway To Space ASEN / ASTR 2500 Class #13 Gateway To Space ASEN / ASTR 2500 Class #13.
INTERNET OF EVERYTHING SDU 2016 Week 4. Simple Digital and Analog Inputs  The Arduino’s ability to sense digital and analog inputs allows it to respond.
AAPT workshop W03 July 26, 2014 Saint Cloud State University, MN, USA
Embedded systems and sensors 1 Part 2 Interaction technology Lennart Herlaar.
AAPT workshop W03 July 26, 2014 Saint Cloud State University, MN, USA
AAPT workshop W03 July 26, 2014 Saint Cloud State University, MN, USA
ISA CLICK CONTROL #38 – FALL 2014 ERIC BRUNNGRABER DRAKE ISABIRYE.
Smart Parking System (SPS) Prepared by: Ma’ali Hasan. Noora Dmedi.
Having fun with code, using Arduino in a middle school CS classroom
Arduino.
After Construction Name: Per #:.
Overview What is Arduino? What is it used for? How to get started
Scrolling LCD using Arduino.
Peripherals – Keypad The Keypad provides a simple means of numerical data or control input. The keys can be attributed whatever data or control values.
Arduino is an open-source platform for building electronics projects
Enable Talk Prepared By: Alaa Mayyaleh Shurouq Abu salhiah.
Overview What is Arduino? What is it used for? How to get started
Recording with the Book port Plus
DIGITAL CALCULATOR USING 8051
Arduino Part 1 Topics: Microcontrollers Programming Basics
INC 161 , CPE 100 Computer Programming
Remote Controlled Smart Socket
How to avoid catching things on fire.
Welcome to Digital Electronics using the Arduino Board
Enable Talk Prepared By: Alaa Mayyaleh Shurouq Abu salhiah.
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Arduino 7 Segment Display Lab
Hardware Graduation Project (2) Seminar
Presentation transcript:

AAPT workshop W03 July 26, 2014 Saint Cloud State University, MN, USA

CH4: OSPL Device cost Device features How to use the LCD How to use the rotary encoder Simple user interface Set up the Bluetooth module How to use the micro-SD card The standard firmware The next hardware revision How to get more devices

OSPL features 3 DIN-5 plugs with 40N insertion/extraction force Two analog or digital inputs per plug, one with on- board 10Kohm pull-up resistors, making wiring resistive and open-drain sensors very easy Micro-SD card slot with dedicated 3.3V power supply and level shifter that supports SDHC cards up to 32GB LCD and rotary encoder for easy user interface Bluetooth socket for wireless control or data transfer Pin A6 senses battery voltage with a 22Kohm/10Kohm voltage divider

Schematic V Kohm pull-up resistors 2.Din-5 plug 3.LCD back light jumper 4.Bluetooth TX jumper 5.To sense battery voltage, read channel A6. and multiply by (10+22)/10= To use the buzzer, call tone() with pin

Schematic (cont.) 1.10Kohm resistors between A1, A3, A5 and 5V to sense Vernier sensor AUTO-ID resistors, thermistor, photo resistors, photo transistors, and open-drain sensors without having to include a resistor in your wiring. 2.Din-5 plug wiring shows on the diagram 3.Removing this jumper disables back light saves battery. 4.Removing this jumper enables the USB serial port to talk with OSPL, inserting it enables Bluetooth module to take to OSPL

OSPL Cost: $60 if you wish to purchase parts for one unit $40 parts if you purchase parts for 25 units Standalone and needs no PC or mobile device Sensors can be constructed from parts for a few dollars Future models (V 2.2 and up) will be fully assembled. For part costs, please refer to the Bill of Materials (BOM) spreadsheet in the design folder.

LCD Include library 2.LCD size and pins used to drive it. 3.Create lcd object 4.Initialize lcd 5.Clear lcd 6.Set cursor before every print. 7.There is only print and no println Printing on lcd takes tens of milliseconds so don’t print to it when sensing photo gates.

Rotary encoder

Messages and lists Display a long scrollable message on the LCD, use rotary encoder to read it and dismiss with shaft click simple_text_area(message_to_display); response=simple_select_list("Day of week:\nSUN\nMON\nTUE\nWED\nTHU\nFRI\nSAT\n"); Display a select list with title on the LCD, use rotary encoder to highlight an item and shaft click to select int choice=simple_select_list(list_with_title); simple_text_area("Developed by:\nDr.Liu 11/25/12\nhttp://liudr. wordpress.com\nThis is an example.\nPress Confirm to continue");

Simple user interface setup 1.Include the libraries 2.Define the relevant parameters for the hardware, such as pins etc. 3.Define what button output represents what function, such as ‘B’ button means enter ‘U’ button means up. 4.Instantiate objects for different keypad types, including serial port keypad 5.Include all keypad types in an array 6.Initialize the library for use 7.Set up some simple parameters 8.Call library functions to interact with the user. 9.You can also call wait_on_escape(time_ms) to get button pushes from all input devices. 10.You may substitute or simulate button presses with serial port monitor.

Initial setup (don’t change)

Your code Define some messages and lists 2.Begin the lcd 3.Initialize the phi_prompt library 4.Display a scrollable simple text area 5.Prepare and display a simple select list 6.Respond to user’s choice

Bluetooth 1 The optional Bluetooth module acts as a wireless serial port, sending data to a smart phone or tablet. 1.It only needs to be set up once. You need to know ahead of time what baud rate it is using (or guess a few times). 2.You need to set a name to identify your unit. 3.You may change to a new baud rate if needed. 4.Use “AT” to start command mode, wait a bit, then send in new name xxxx with “AT+NAMExxxx”, then wait. 5.This time send in new baud rate x with “AT+BAUDx”. Baud rates:1=1200, 2=2400,… 8= See array values

Micro-SD card Wait for user input before start logging. 2.Initialize the SD card. Pin 10 is the Chip-select pin on the OSPL and some SD shields. 3.Use logfile to open LOGGER00.CSV to write to, create it if it doesn’t exist, append if it does. 4.Wait for user input again before stop logging. 5.The open file must be closed to prevent data loss. One shouldn’t just turn off OSPL when it is logging to SD card. SD logging is made extremely easy with the SdFat library written by William Greiman. You can print to a file just like you can to the serial port. The only difference is that it has a lot more functions than a serial port, such as creating/renaming/deleting files and folders, testing the existence of files and adding date/time call-back functions so the file has meaningful date/time instead of 2000/1/1 12:00am.

Standard firmware A list of Vernier sensors and 10DOF sensor board sensors are included One may pause (resume) live display by turning the rotary encoder left (right) One may start (stop) sending data to serial port by turning the rotary encoder to the right (left) Current version has not included SD card functions Also battery voltage sensing is not included yet

Revision V 2.2 Fully assembled units will be available A different chip will be used (ATMEGA32U4) No more Arduino Nano daughter board No more jumper to switch between USB serial and Bluetooth. Both will be active with Serial and Serial1. Four DIN-5 plugs, with first 3 having analog/digital I/O pins and the last one with digital I/O and I 2 C pins. Real time clock and battery will be included to log date and time for data acquisition and file creation time Rotary encoder will be connected to digital pins