EV3 Binary Bluetooth Functions An Introduction to Brick-to-Brick Communication.

Slides:



Advertisements
Similar presentations
Robofest 2005 Introduction to Programming RIS 2.0 RCX Code.
Advertisements

EducateNXT Establishing a Bluetooth Connection. EducateNXT Establishing a Bluetooth Connection Both bricks used will require a different name. For the.
EducateNXT Follow the Leader Using Bluetooth communication, one robot can be made to follow the actions of a second robot. Features in this presentation:
Jason Howard. Agenda I. How to download robotc II. What is tele-op used for? III. How to build a basic tele-op program IV. Getting the robot to drive.
Wait, sound sensor >70, Port 2 Flowchart – Heartbeat 1 Start Motor A, Move Backward, 1/3 Rotation, Power 20 Wait, 1 Second Sound Sensor (Port 2) Less than.
Robot Soccer Challenge
Bluetooth Remote Control
EIGHTH GRADE ROBOTICS KITTATINNY REGIONAL HIGH SCHOOL MR. SHEA Introduction to Programming
From the NXT top menu Connect desired hardware as indicated Enter a command in the box indicated from the menu provided Repeat for all 5 boxes.
Sending, Receiving and Processing Messages NQC Tutorial pp
1 ©2006 INSciTE Lab Two Task: Make the program from Lab One (Move forward 5 rotations and turn right 90 degrees) into a MyBlock.
BEGINNER EV3 PROGRAMMING Lesson
The NXT is the brain of a MINDSTORMS® robot. It’s an intelligent, computer-controlled LEGO® brick that lets a MINDSTORMS robot come alive and perform.
Reviewing Common Blocks for St. Agnes Elementary School Teachers by Jenny Chang Feb. 26th, 2007 USC & University Neighborhood Outreach Robotics STEM program.
LEGO Mindstorms NXT Programming We will be using the Common Palette for our Robots This is how you download your program onto the brick Drag and drop a.
Loops and Switches. 1. What kind of blocks are these? 2. Name two kinds of controls that can be specified to determine how long a loop repeats. 3. Give.
Robotics Catchup/Review: switch, arithmetic, range, loop Bluetooth Lab: Finish parallel parking. Next: Use Bluetooth communication for calculate & send.
What is RobotC?!?! Team 2425 Hydra. Overview What is RobotC What is RobotC used for What you need to program a robot How a robot program works Framework.
Creative Inventions and Robotics Programming with Robolab By Rebekah Gendron.
Programming 101 The Common Palette Content provided by Connor Statham (6 th Grade Student) Formatting by Shannon Sieber.
Introduction to the Basic Parts of LEGO’s NXT Robotics
LabVIEW Program and Data Flow Review LabVIEW Robotics Fundamentals.
Using Waits, Loops and Switches WAIT please!. Waits, Loops and Switches Pre-Quiz 1. In programming, what is a loop? When is a loop useful? 2. How can.
Robotics Overview of NXT-G Actuators in Mindstorms. Touch sensor Labwork: Right turn. Touch/bump. [Explore move versus Motor Move mini & motor mini. Motor*.]
EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright
Technical Writing for Robotic Coding!.  du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals.
Conditions and loops Day 4 Computer Programming through Robotics CPST 410 Summer 2009.
Lego MindStorm An Introduction to Blocks. Blocks Blocks are used to give instructions to your robot. There are many types of blocks You can use the blocks.
Castor Bot. Now, we will begin creating a robot Log onto your computer On your screen, click on the website labeled “castor bot” Your building instructions.
Find the Mindstorms Icon on the computer.. To start a new program click go.
By Droids Robotics INTERMEDIATE PROGRAMMING LESSON BRICK BUTTONS AS SENSORS.
Mindstorm NXT-G Introduction Towson University Robotics.
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
Forward Until Near Stop when near a wall.
Introduction to Robotics using Lego Mindstorms EV3 Shreya Reddy & Kiran Raja RoboAvatars Robotics.
Introduction to LEGO Mindstorms EV3 What is in the box?
BEGINNER PROGRAMMING LESSON
By Sanjay and Arvind Seshan
Mindstorms EV3 Programming
How to connect your brick
NXT-G Binary Bluetooth Functions
Introduction To Programming with LEGO NXT 0
Mindstorms EV3 Programming
Introduction To Programming with LEGO NXT 2
Robot Soccer Challenge
Bluetooth example Presentations Lab: building projects
Mindstorms EV3 Programming
Loops and Switches Pre-Quiz
Music by Touch Music by Touch Presentation > TeachEngineering.org
Sensors Training.
Automation and Robotics
Module F: Presentation Understanding Robot Fundamentals
BEGINNER PROGRAMMING LESSON
BEGINNER EV3 PROGRAMMING Lesson
INTERMEDIATE PROGRAMMING LESSON
BEGINNER PROGRAMMING LESSON
Forward Until Touch Robot goes forward until it hits a wall.
Controlling your quadcopter
INTERMEDIATE PROGRAMMING LESSON
Line Following Behavior
BEGINNER PROGRAMMING LESSON
SENSORS.
Lego EV3 Mindstorms SW Programming Blocks.
INTERMEDIATE PROGRAMMING LESSON
BEGINNER PROGRAMMING LESSON
Using Waits, Loops and Switches
Loops and Switches How Do You Make Loops and Switches? lesson > TeachEngineering.org Center for Computational Neurobiology, University of Missouri.
Controlling your quadcopter
LEGO MINDSTORMS NXT PROGRAMMING
Presentation transcript:

EV3 Binary Bluetooth Functions An Introduction to Brick-to-Brick Communication

Overview History of Bluetooth How Bluetooth Works Activating Bluetooth on the NXT Brick Disconnecting Bluetooth on the NXT Brick Programming Binary Bluetooth Commands – Programming the Transmitter – Programming the Receiver Parting Thoughts

History of Bluetooth Bluetooth was invented in 1994 by Ericsson, a Swedish telecommunications technology company. Named after Harald "Bluetooth" Gormsson, an historical king of Denmark and Norway who united the peoples of those countries. The name was suggested in 1997 because it united several communication standards and it wasn’t yet used for a trademark The symbol for Bluetooth comes from combining the two runes that make up the initials of Harald Bluetooth

How Bluetooth Works Bluetooth uses radio frequencies dedicated for Industrial, Scientific, or Medical (ISM) purposes. Operating at frequencies between 2.4 to GHz Has a master-slave piconet architecture where one device is the master that can interact with up to 7 slave devices. In the EV3 system there are a maximum of 7 slave devices

Activating Bluetooth on the EV3 Brick 1) Go to the settings menu, press the middle button Scroll to Bluetooth, press middle button 2) Scroll to Bluetooth with the power symbol next to it, press the middle button 3) To connect to another brick go back into the Bluetooth menu and scroll to connections 4) Select Search, once the search is done select the device you want to connect to and press the middle button 1 2 3

Disconnecting Bluetooth on the EV3 Brick 1) Scroll to Bluetooth, press middle button 2) Scroll to connections, press middle button 3) Select connection you want to sever, select disconnect and press middle button to disconnect 4) Once done, there will be a half diamond in the upper left corner next to the Bluetooth symbol

Programming Binary Bluetooth Commands Binary commands refer to commands that have two settings, on or off For this example we will use the touch sensor on one brick to make another brick with motors move forward The master brick will be the transmitter, and the slave brick will be the receiver Start off by creating the transmitter program in the first tab, open another tab for the receiver program

The pseudocode for the transmitter program is as follows: -In a forever loop, wait until button 1 is pressed -Send a Bluetooth message saying Forward -Repeat this until button 1 is released -Send a Bluetooth message saying Stop Programming the Transmitter

Start with a forever loop Inside the loop, add a wait block for a touch sensor (pressed, port 1) Add a touch sensor loop next to the wait block (released, port 1) Inside the sensor loop, add a send message block (text, “Forward”) Add a send message block behind the sensor loop (text, “Stop”)

The pseudocode for the receiver program is as follows: -In a forever loop, wait until a message saying Forward is received -Then move forward unlimited -Wait until a message saying Stop is received -Stop movement forward Programming the Receiver

Start with a forever loop Inside the loop, add a wait block (receive message, compare to “Forward”) Behind the wait block, add a movement block (forward, unlimited) Behind the movement block, add a wait block (receive message, compare to “Stop”) Behind the wait block, add a movement block (stop)

Parting Thoughts This process can be used with any of the sensors except the gyro sensor and the rotation sensor in the motors due to the analog nature of the data collected there You can also use all the EV3 brick buttons It is a good idea to have each robot uniquely named to help keep things sorted out, should you need to debug any errors (don’t name them EV3) The text you send can be anything, but it’s good practice to use a text that let’s you or others know the purpose of the message