Robot C Ready, SET, Go! Workshop SDSU, Fall 2013.

Slides:



Advertisements
Similar presentations
Introduction to LEGO RCX robotics and Robot Sumo
Advertisements

Each team has their own: a.Laptop computer b.LEGO NXT robot c.USB cable d.Light paper on the table to test the robot Sit Down in Teams of 2.
Full Speed Ahead Introductory Presentation. Opening Activity Choose one of the objects to the right and in ten or more steps explain how it goes from.
Getting started with LEGO NXT Mindstorms software This is intended to be a short introduction to the LEGO Mindstorms software and programming the LEGO.
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.
From interview to DVD Open iMovie from an icon at the bottom of your Mac screen – the box above will appear. Click on ‘Create a New Project’
Graphical RobotC NXT (EV3) Robot Workshop 2015 Instructor: Dr. Fred Brauchler Assistant: Chris Parker 2/7/2015Lawrence Technological University1.
Bug Session One. Session description In this session, pupils are introduced to a programming sequence which will make a light pattern on their Bug. Objectives.
Automation and Robotics
Robot Soccer Challenge
Autonomy using Encoders Intro to Robotics. Goal Our new task is to navigate a labyrinth. But this time we will NOT use motor commands in conjunction with.
Steven Bell Team 1519 Mechanical Mayhem Atlanta FIRST Conference 2005 Teaching To Students.
An Intro to Robots and Computer Programming
METHODS!.  A method is a sequence of instructions or behaviors that will be carried out when requested.  You can use them to create new methods so that.
Introduction to TouchDevelop
Bug Session One. Session description In this session, pupils are introduced to a programming sequence which will make a light pattern on their Bug. Objectives.
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.
Robotics Enrichment class Mr. Bosworth. Goals of Class Learn how to build a basic robot that performs various functions Learn how to program robot to.
Adapted for STLP Camp ‘09 Mobile Robots Why do robots need to move?
ORTOP WORKSHOP 3 ROBOT NAVIGATION & MISSIONS ORTOP WORKSHOP 3 ROBOT NAVIGATION & MISSIONS.
Coding for the FIRST Tech Challenge: RobotC Presented by: Audrey Yeoh Acknowledgements: Team Unlimited FTC 0001.
Coding for the FIRST Tech Challenge: RobotC
Weston Schreiber & Joshua Gabrielse Robotics Summer Training Programming #1: EasyC Basics.
Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell.
Introducing Scratch the Cat
Slide 1 Intel ® Confidential Intel Design and Discovery Robotics Module Padraig O Murchu Education and Research Manager Corporate Affairs Group Intel Ireland.
10/10/ Controlling YOUR ROBOT. 10/10/2015 Basic Stamp  Basic Stamp Input - output pins Interpreter Chip Power supply: 5 Volts voltage Memory: EEPROM.
7.2 V battery pack and charger Put the battery in the charger station at the end of the lab. period. Red light indicates charging. Ken Youssefi Introduction.
2 3  A machine  Built to help us  Autonomous (not remote control)  If we want robots to do things for us, we have.
EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright
Introduction to TouchDevelop
Autonomy using Encoders Intro to Robotics. Autonomy/Encoders Forward for Distance In this unit, you will learn to use the encoders to control the distance.
20 pt 30 pt 40 pt 50 pt 10 pt 20 pt 30 pt 40 pt 50 pt 10 pt 20 pt 30 pt 40 pt 50 pt 10 pt Review 1Review 2Review 3Review 4Review 5 10 pt 20 pt 30 pt 40.
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
1. 2 What to learn and why If you develop and rebuild your Blackboard course shells semester after semester, you may wish you had a more efficient way.
Website address: Downloading the Classroom Performance System (CPS) program click: SUPPORT & DOWNLOADS.
Find the Mindstorms Icon on the computer.. To start a new program click go.
LEGO® MINDSTORMS® NXT Move Block.
By: Susan Freeman Getting Started 1.Go to Start Programs Microsoft PowerPoint.
PROMGRAMING YOUR ROBOT How Servos Work: How to control your robot.
Programming - Motion Intro to Robotics. Motors and Sensors Setup The first thing we need to do is tell ROBOTC that we have motors on our robot. Choose.
By Joshua Shaw.  Now that we have a program, we should see how it works in the real world  To do this we need the Cortex and the orange USB cable 
Deriving Consistency from LEGOs What we have learned in 6 years of FLL by Austin and Travis Schuh © 2005 Austin and Travis Schuh, all rights reserved.
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.
Mechanical Components and Programming Ken Youssefi Introduction to Engineering – E10 1.
Testbed Coding In this activity you will code different challenges for the Testbed. For each challenge a sample program is shown. Use what this sample.
Lego Mindstorm Robots 9797 kit.  Students will learn how to identify how to detect a change in a condition.  Students will learn where and how to identify.
Lego League. What is the Lego League? What we will be doing for the next few weeks The AIM of the next few weeks is to gain knowledge into programming,
Testbed Coding In this activity you will code different challenges for the Testbed. For each challenge a sample program is shown. Use what this sample.
After Construction Name: Per #:.
Using the Lego Mindstorms Edu NXT Software
Deriving Consistency from LEGOs
Robotics Using Lego Mindstorms EV3 Mission 1: Building Your Robot
Basics for Robotics Programming
Autonomy using Encoders
Introduction to EV3Dev: Setup with Python
Automation and Robotics
Lego Robotics Small Builds.
Controlling YOUR ROBOT
Lego Robotics Small Builds.
Go to =>
Programming - Buttons Intro to Robotics.
Programming - Buttons Intro to Robotics.
Compiled from various Internet sources Presented by Mr. Hatfield
LEGO Education - Mindstorms EV3 - Computer/control center – The Brick
Lego MINDSTORMS EV3.
BEGINNER PROGRAMMING LESSON
Getting started with LEGO EV3 Mindstorms software
Downloading to the NXT requires the correct hardware setup
Presentation transcript:

Robot C Ready, SET, Go! Workshop SDSU, Fall 2013

Programming is Fun!  Tell the Robot exactly what to do & watch it run.  Be Specific!  Use Loops to repeat statements.  Put several actions together to make a dance!  Put several Robots together and watch the patterns

How Specific?  Robots aren’t very smart … not nearly as smart as people.  … be VERY specific.  Direct someone to enter a room and sit down.

The ‘C’ Programming Language  Used for many low-level applications.  Is a ‘compiled’ language.  Compile for a specific Operating System, then run the program on computers using that OS.  Function named ‘main’ is first to run.  main is the ‘boss’. It’s statements happen in order when you run the program.  main tells other functions when to run.

Robot C  Robot C is a version of the C programming language.  We’ll use Robot C to program LEGO’s Mindstorms Robots

Simple Moves  Download the SimpleMoves.c file and save it on your desktop.  Start ROBOTC  File / Open & Compile / Browse to the desktop and open SimpleMoves.c  Check out the code  The comments (in green) explain what’s happening  The statements (in blue & red) tell the robot what to do

Is your Robot ready to roll?  Connect the battery pack and wheel motor cables (pages 19-23).  Turn your Robot on with the orange button.  Connect your Robot to your Computer with the USB cable.  In ROBOTC, choose Robot/Compile and Download Program.  Change the Refresh setting in the debug pop-up box from ‘continuous’ to ‘paused’.  Unplug your Robot from the Computer and set it on the FLOOR!  Use the Orange button and arrow keys to find your program and run it.

Test & Debug  Change the commands in your program and repeat the steps to download and test the revised program:  Connect your Robot to your Computer with the USB cable.  In ROBOTC, choose Robot/Compile and Download Program.  Change the Refresh setting in the debug pop-up box from ‘continuous’ to ‘paused’.  Unplug your Robot from the Computer and set it on the FLOOR!  Use the Orange button and arrow keys to find your program and run it.  See if you can finish the program and get your Robot to move forward and backward and turn left and right.

Functions  Download the Functions.c file and save it on your desktop.  Start ROBOTC  File / Open & Compile / Browse to the desktop and open Functions.c  Check out the code  The comments (in green) explain what’s happening  The statements (in blue & red) tell the robot what to do  How many functions are there?  What does each function do?

Functions - too  Call the functions from main as many times as you want to move your Robot in a pattern. (You choose the pattern.)  Can we use just one function for spin left and spin right?

Loops  Download the Loops.c file and save it on your desktop.  Start ROBOTC  File / Open & Compile / Browse to the desktop and open Functions.c  Check out the code  The comments (in green) explain what’s happening  The statements (in blue & red) tell the robot what to do  Can you find the loop?  How many times does it repeat?  How does it know when to stop?

Loops - too  Can you put a loop into your functions program to repeat some function calls?  Can you use several loops to repeat different groups of function calls different numbers of times?

Let’s Dance  Can you make a dance?  Can you work with another team to have your robots do the same dance?  Can you work with several teams to do a group dance?  Can you make 2 robots dance together? (One moves forward, the other moves back, etc.)

Clean Up  Put the Robots and Books back.  Remove the cables and battery pack and put the pieces in the tray.  Plug the battery packs in to re-charge.  THANK YOU!!!  HOPE YOU HAD FUN!!!