The Developer Summit at ARM® TechCon™ 2013 MBED Hello World Lab 1 mbed registration and hello world!

Slides:



Advertisements
Similar presentations
Intel Do-It-Yourself Challenge Lab 5: Controlling Galileo from a webpage Nicolas Vailliet
Advertisements

BEST Robotic, Inc. easyC Team Training
MM Player Supervised by: Dr. Luai Malhis. Prepared by: Mustafa Assaf & Mahmoud Musa.
1 iHome Automation System Home Automation System Team: Million Dollar Contingency Regiment Adam Doehling Chris Manning Ryan Patterson.
Intel Do-It-Yourself Challenge Intel Galileo and Edison Paul Guermonprez Intel Software.
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.
Motor Control Lab Using Altera Nano FPGA
Travis Reed Todd Hummel Kwan-Truc. Concept USB 1.1 SPI b.
ECE 4220 Real Time Embedded Systems Final Project Presentation Spring 2014 University of Missouri Columbia By: Michael Brauch Temperature Data Logger.
How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2014.
Remote Surveillance Vehicle Design Review By: Bill Burgdorf Tom Fisher Eleni Binopolus-Rumayor.
BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. BAE Systems C2C SWAT Project Tutorial 1,
Introduction.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
1 mbed Hands-On Instructor Workshop ESWEEK Agenda mbed Hands-On Instructor Workshop – The ARM University Program - Khaled Benkrid, ARM UP Manager.
Colorado Space Grant Consortium Gateway To Space ASEN 1400 / ASTR 2500 Class #12 Gateway To Space ASEN 1400 / ASTR 2500 Class #12 T-58.
Part 1 Using the ARM board And start working with C Tutorial 5 and 6
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 16 Writing a Network Application.
IT 210 The Internet & World Wide Web introduction.
NETWORK CENTRIC COMPUTING (With included EMBEDDED SYSTEMS)
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Rapid Development on the Renesas RX63N RDK using.
NetBurner MOD 5282 Network Development Kit MCF 5282 Integrated ColdFire 32 bit Microcontoller 2 DB-9 connectors for serial I/O supports: RS-232, RS-485,
DEC0905 Remote Control of Home Appliances ABSTRACT The objective of this project is to enable users to remotely control home appliances and systems over.
RC CAR CONTROLLER BASED ON INTEL GALILEO SOC PLATFORM Nadav Shiloach Sagi Sabag Supervisor: Idan Shmuel Spring 2014 One Semester Project PROJECT’S ENDING.
Daniel Pickem and Rowland O’Flaherty 12/04/2012 Mechatronics (ME 6405) Student Lecture On Arduinos *Some slides courtesy of Eoin Brazil
EE 446 Project Assignment Top Design Sensor Components Pin Assignment and Configuration Completed Physical Setup Project Tasks.
MICRO CONTROLLER MODULE 1. Learning Objectives Name some gadgets that use microcontrollers. Define a microcontroller. Differentiate between a computer.
The New FTC Platform (Connecting your legacy hardware)
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
BBBK Programming Notes Rudra Dutta CSC , Fall, 2013.
Introduction to the Arduino
VEX Parts – Batteries, Logic, and Controls
BEST Robotic, Inc. easyC Breakout Session By: Guy Chetrit Programming With easyC September 15, Copyright © 2012 BEST Robotics, Inc. All rights reserved.
Overview What is Arduino? What is it used for? How to get started Demonstration Questions are welcome at any time.
Application Block Diagram III. SOFTWARE PLATFORM Figure above shows a network protocol stack for a computer that connects to an Ethernet network and.
BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. BAE Systems C2C SWAT Project - WF32 Shield.
Unconventional User Interface // // Mood Based Navigation Sheo // 1Haring, Naderer, Zachhuber Arduino  Open Source Project (HW u. SW)  Analog.
Samuel John Vinod Kumar CG Ganesh Raam K. Introduction  The need for health consciousness has increased in the recent past and so is the need to monitor.
External Use TM Hands-On Workshop: ARM mbed™ FTF-DES-F1302 JUN.2015 Sam Grove - ARM Michael Norman – Freescale.
Getting Started With the Arduino Uno
PHY 235 Robotics Workshop Day 4 Robotic Behaviors, Light Sensing, Voltage Dividers, LCD-MOD.
ECE477 Project Minotaur Software Narrative Jon Roose.
Cevgroup.org C utting E dge V isionaries. cevgroup.org TODAY’s TALK 1) Internet Of Things (IoT) 2) Wi-Fi Controlled Robots 3) Augmented Reality.
ChibiOS/RT Demo A free embedded RTOS
AAPT workshop W03 July 26, 2014 Saint Cloud State University, MN, USA
PCs ENVIRONMENT and PERIPHERALS Lecture 4. An expansion cards: - An expansion card (expansion board) is an electronic circuit board that adds more functionality.
1 Microcontrollers. 2 Programmers work in the virtual world Machinery works in the physical world Microcontrollers connect the virtual and physical world.
CSE 341 Project : Ultrasonic Radar PRESENTED BY: NAME : AKIFA TASNEEM ID : SECTION: 02 1.
2007/11/16 Dinh Trong Thuy RTLab
Having fun with code, using Arduino in a middle school CS classroom
Arduino.
Neumann János Informatikai Kar
By Rick Darby Sponsors: Geekspace Gwinnett The WorkSpot
iHome Automation System
Scrolling LCD using Arduino.
cyBorg 1.0 Project by Team ROBOTECH The Green PAFIANS
Microprocessors Tutorial 1: Arduino Basics
Outline Introduction Standards Project General Idea
Microcontroller Applications
Monitoring Robot Prepared by: Hanin Mizyed ,Abdalla Melhem
Arduino Development for Beginners
Remote Controlled Smart Socket
Arduino and Design of Embedded Applications
AVR32 UC3 EVK1100 Control Panel Tutorial
Training Module Introduction to the TB9100/P25 CG/P25 TAG Customer Service Software (CSS) Describes Release 3.95 for Trunked TB9100 and P25 TAG Release.
Lab #1: Getting Started.
Introduction to arduino
STM32duino Workshop Carlo Parata 24 November 2017.
Presentation transcript:

The Developer Summit at ARM® TechCon™ 2013 MBED Hello World Lab 1 mbed registration and hello world!

The Developer Summit at ARM® TechCon™ 2013 Registration mbed microcontroller enumerates as a Mass Storage Device (USB disk) Double-click the mbed.htm file on the mbed USB disk Log in or sign up for a new account

The Developer Summit at ARM® TechCon™ 2013 Getting Started Useful resources linked from the first page, including very clear links to “Hello World” and the Getting Started guide Compiler linked from front page

The Developer Summit at ARM® TechCon™ 2013 Getting Started Create or open a project in the Program Workspace Develop code in the text editor Save and compile Compiler outputs – Errors and warnings -or- – A downloadable binary Save to the USB flash disk

The Developer Summit at ARM® TechCon™ 2013 Getting Started Once the file has saved to the flash disk, it needs to be programmed into the microcontroller Press the button on the mbed module Your code will start running!

The Developer Summit at ARM® TechCon™ 2013 MBED Hello World Lab 2 Rapid Prototyping: Other IO

The Developer Summit at ARM® TechCon™ 2013 DigitalOut and Analog Input In the hello world session, we simply compiled the default program – blinky, but we didn’t take too much notice of the code It was simple, it set up a digital output (DigitalOut) called “myled” and run a loop forever turning it on and off. Lets see if we can begin to influence this using an analog input

The Developer Summit at ARM® TechCon™ 2013 What IO is there?

The Developer Summit at ARM® TechCon™ 2013 mbed application board x32 Graphics LCD 2. 5 way joystick 3. 2 x Potentiometers mm Audio jack (Analog Out) 5. Speaker, PWM Conencted 6. 3 Axis +/1 1.5g Accelerometer mm Audio jack (Analog In) 8. 2 x Servo motor headers 9. RGB LED, PWM connected 10. USB-B Connector 11. Temperature sensor 12. Socket for for Xbee (Zigbee) or RN-XV (Wifi) 13. USB-A Connector 14. RJ45 Ethernet conenctor mm DC Jack input

The Developer Summit at ARM® TechCon™ 2013 DigitalOut and Analog Input The AnalogIn object returns a normalised float between 0.0 (0.0v) and 1.0 (3.3v) Pot1 is wired between GND (0v) and Vout (3.3v), and is connected to pin “p19” – an AnalogIn

The Developer Summit at ARM® TechCon™ 2013 Challenge: DigitalOut and Analog Input Write a program to give the LED in the first blinky program a delay of seconds. Write a program that turns LED1 on at 0.66v, LED2 on at 1.32v, LED3 on at 1.98v and LED4 at 2.64v Hint: Look at BusOut in the mbed Handbook!

The Developer Summit at ARM® TechCon™ 2013 mbed Hello World Lab 3 Rapid Prototyping: Interfacing a sensor

The Developer Summit at ARM® TechCon™ 2013 Interfacing with sensors A good deal of microcontroller applications require some form of sensors to detect events or conditions in the immediate environment. This experiment show how to implement a simple temperature sensor. The sensor in question is the LM75B which has a digital interface using the I2C bus.

The Developer Summit at ARM® TechCon™ 2013 Conencting a Sensor mbed keeps I2C simple, and a library and example exists – I2C handbook page - – LM75B Component

The Developer Summit at ARM® TechCon™ 2013 Challenge : Interfacing with sensors Write a program that turns LED1 on at 26°C, LED2 at 27°C, LED3 and 28°C and LED4 at 29°C. As an extended challenge, add Min/Max recordings to the program Repeat in Fahrenheit

The Developer Summit at ARM® TechCon™ 2013 mbed Hello World Lab 4 Rapid Prototyping: Output device, Text LCD

The Developer Summit at ARM® TechCon™ 2013 Output device, LCD It is not uncommon for devices that are embedded to have some sort of user interface, or display output. This example shows an LCD connected to mbed and be driven simply from software.

The Developer Summit at ARM® TechCon™ 2013 Connecting up the TextLCD The LCD module has an SPI interface and a few digital outputs for reset, chips select and so on mbed keeps it simple – Standard C/C++ interface via printf –

The Developer Summit at ARM® TechCon™ 2013 Challenge: Digital Thermometer Make a digital thermometer that displays the current temperature. If you have time, you could also add Min/Max to the display too LM75B/

The Developer Summit at ARM® TechCon™ 2013 mbed Hello World Lab 5 Rapid Prototyping: Mobile data logging

The Developer Summit at ARM® TechCon™ 2013 Hardware Simple hardware : – mbed NXP LPC1768 microcontroller – mbed application board – uBlox C16-20 Lisa C200 modem – 2x USB A to mini B cables – 1 Jumper wire – DC adaptor

The Developer Summit at ARM® TechCon™ 2013 Mobile data logging This example shows how the Sprint Mobile Broadband can be used to achieve remote data logging, where the data is sent live to online storage The driver is now providing a socket interface over which various protocol APIs and. For this example, we are using HTML5 web sockets Take 5 minutes to familiarise yourself with web sockets : –

The Developer Summit at ARM® TechCon™ 2013 Websocket server channels The mbed.org websocket uses “channels”, with “demo” as the default. To avoid conflict during a workshop, create your own channel by substituting “demo” with your own channel name In mbed code : Websocket ws("ws://sockets.mbed.org:443/ws/demo/rw"); Becomes Websocket ws("ws://sockets.mbed.org:443/ws/ /rw"); In broswer URLS : becomes /viewer

The Developer Summit at ARM® TechCon™ 2013 HTML5 and Websockets New feature of HTML5 (RFC 6455) providing: – Full-duplex communication – Over a single TCP socket – Standard and secure connections (ws:// and wss://) Motivation: – Replace existing polling techniques (AJAX) used in modern websites – Provide a two-way communication without multiple HTTP connections – Enable new classes of application Other notable HTML5 features: – HTML5 Canvas Element – For dynamic, scriptable 2D rendering

The Developer Summit at ARM® TechCon™ 2013 Example Program : Web sockets An example program of how to send the current temperature as a web socket message to the mbed web socket server using the Sprint USB Modem can be found here See the output here : Experiments : – Trigger a web socket message using navigation switch

The Developer Summit at ARM® TechCon™ 2013 Challenge : Web sockets The previous example was write-only (“wo”) and sent data to the socket server Try making a connection that is read-only “ro” – To see how to receive web socket messages refer to : Only/ Only/ – Display received messages on the LCD, for examples see : – To send messages, use the “sender” /sender /sender If you get stuck... But try to do it yourself first !