NXT-G Binary Bluetooth Functions

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
Using the NXT Light Sensor. 2 Connect One Light Sensor – 1 From My Files use Left / Right NXT buttons and get to View menu and push Orange button. From.
Bluetooth Remote Control
EIGHTH GRADE ROBOTICS KITTATINNY REGIONAL HIGH SCHOOL MR. SHEA Introduction to Programming
Introduction to NXT Software and Functionality Bot’oberfest October 15, 2007.
1 ©2006 INSciTE Lab Two Task: Make the program from Lab One (Move forward 5 rotations and turn right 90 degrees) into a MyBlock.
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.
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.
GIRLS Robotic Camp. Let’s Begin Meet and Greet – Camp leaders introduce themselves – Students introduce themselves.
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.
Wait Program! WAIT please!. 1. Why is it often better to use conditional commands rather than program a robot to move exact distances? 2. What is the.
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.
Bluetooth By Christian Doyle. Overview What is Bluetooth? What’s with the name? Establishing a connection Multiplexing Piconets Scatternets Architecture.
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.
How to connect your NXT via Bluetooth A step-by-step instruction.
Find the Mindstorms Icon on the computer.. To start a new program click go.
By Droids Robotics INTERMEDIATE PROGRAMMING LESSON BRICK BUTTONS AS SENSORS.
Programming 101 The Common Palette Content provided by Connor Statham (9 th Grade Student) Formatting by Shannon Sieber.
Mindstorm NXT-G Introduction Towson University Robotics.
Automation and Robotics.  First you select the platform type so that you can use Natural Language PLTW.
Casne.ncl.ac.uk Taking care of the CrumbleBot Please do NOT stress the robot's motors 1.Do NOT push the robot 2.Do NOT hold the.
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
Forward Until Near Stop when near a wall.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Sentry System Two-Way Communication.
EV3 Binary Bluetooth Functions An Introduction to Brick-to-Brick Communication.
ROBOTC for CORTEX Teacher Training © 2011 Project Lead The Way, Inc. Automation and Robotics VEX.
NXT Mindstorms Kit Programming
Create a Halloween Computer Game in Scratch
Mindstorms EV3 Programming
How to connect your brick
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
Music by Touch Music by Touch Presentation > TeachEngineering.org
Automation and Robotics
Module F: Presentation Understanding Robot Fundamentals
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
Using Waits, Loops and Switches
Topic- Bluetooth Architecture
Creating a Simple Game in Scratch
Controlling your quadcopter
LEGO MINDSTORMS NXT PROGRAMMING
Presentation transcript:

NXT-G 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 2.485 GHz Has a master-slave piconet architecture where one device is the master that can interact with up to 7 slave devices. In the NXT system there are a maximum of 3 slave devices

Activating Bluetooth on the NXT Brick 1 2 3 1) Scroll over to Bluetooth, press orange button 2) Scroll over to search, press orange button 3) Once search is done, select device you want to link to press orange button twice to connect 4) Select which device number the brick will be 5) Once done, there will be a diamond in the upper left corner next to the Bluetooth symbol 3 4 5

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

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

Programming the Transmitter 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”, mailbox 1) Add a send message block behind the sensor loop (text, “Stop”, mailbox 1)

Programming the Receiver 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 rotation sensor in the motors due to the analog nature of the data collected there You can also use all but the dark grey NXT brick buttons It is a good idea to each robot uniquely named and to separate each sensor or button to a different mailbox to help keep things sorted out, should you need to debug any errors 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