Coding Edbot Dream with Scratch

Slides:



Advertisements
Similar presentations
LabView Basics.
Advertisements

DiceBot is a robot that throws a dice instead of human when detecting sound of clap. Dice.
Servos The material presented is taken from a variety of sources including:
Fishing FishingBot is a robot looks like a fish. It can make to bite fishing needle as closing mouth with Servo Motor when Infrared Sensor Board detects.
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.
Servo ServoBot is a robot that cleans a thing using Servo Motor.
Your Python program uses the create library. It supplies functions that send commands: to your laptop’s Bluetooth radio, then to the BAM on the Create,
Program ultrasonic range sensor in autonomous mode
Programming Concepts Part B Ping Hsu. Functions A function is a way to organize the program so that: – frequently used sets of instructions or – a set.
Programming 101 The Common Palette Content provided by Connor Statham (6 th Grade Student) Formatting by Shannon Sieber.
Programming Concepts (Part B) ENGR 10 Introduction to Engineering 1 Hsu/Youssefi.
Controlling the Outside World
10/10/ Controlling YOUR ROBOT. 10/10/2015 Basic Stamp  Basic Stamp Input - output pins Interpreter Chip Power supply: 5 Volts voltage Memory: EEPROM.
LabVIEW Basics Review LabVIEW Robotics Fundamentals.
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.
EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright
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.
Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot will go forward! Move Steering Block.
Servos The material presented is taken from a variety of sources including:
Clap On, Clap Off Introductory Presentation. Opening Activity What is a sensor? Can you give examples? ?
LEGO® MINDSTORMS® NXT Move Block.
PROMGRAMING YOUR ROBOT How Servos Work: How to control your robot.
EV3 Software EV3 Robot Workshop
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.
Vex Robotics Program Two: Using two motors. Program two: using the motors In the last section, you learned how to turn on one motor. Now, you will take.

Mechanical Components and Programming Ken Youssefi Introduction to Engineering – E10 1.
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
EV3 Programming: Moving and Turning CONFIDENTIAL © 2014 Cymer, LLC.
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.
ROBOTC for CORTEX Teacher Training © 2011 Project Lead The Way, Inc. Automation and Robotics VEX.
ARDUINO UNO The Arduino uno is a microcontroller board based on the ATmega328. It has 14 digital Input / Output pins (of which 6 can be used as PWM outputs),
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
NXT Mindstorms Kit Programming
LG PLC COURSE Beginner Prepared by : -Hossam Mohammed -Ramdan said
Introductory Presentation
Application Case Study Security Camera Controller
Introductory Presentation
Lecture 10 Sensors.
Introductory Presentation
ECE Computer Engineering Design Project
Squaring or Aligning on a Line
Mindstorm Robots 4th Grade Lesson 1.
Module 2 Controlling a Lego EV3 Robot
This is the Lego NXT ->
Introduction To Programming with LEGO NXT 2
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
fischertechnik® RoboPro Software for Gateway To Technology® RoboPro
IMDL Summer 2007: RoBeDeS by David Ladolcetta.
BEGINNER PROGRAMMING LESSON
Introductory Presentation
Sensors Training.
Module F: Presentation Understanding Robot Fundamentals
Introductory Presentation
INTERMEDIATE PROGRAMMING LESSON
Controlling YOUR ROBOT
INTERMEDIATE PROGRAMMING LESSON
Rotation On Cartesian grid.
BEGINNER PROGRAMMING LESSON
Lesson 3: Sensor Wait-for’s Programming Solutions
Repeating Behaviors.
CBC v2 Using the CBC.
I can control a motor and use a sensor
Compiled from various Internet sources Presented by Mr. Hatfield
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Lego MINDSTORMS EV3.
LEGO MINDSTORMS NXT PROGRAMMING
Presentation transcript:

Coding Edbot Dream with Scratch

What’s inside an Edbot Dream? Microcontroller Optional Optional Included Optional Battery

The microcontroller The heart of the Edbot Dream. 4 ports to connect to external equipment. Battery connector. Socket for a Bluetooth module. 4 built in sensors. 3 IR sensors & clap counter. Internal buzzer. Battery connector

Motors & Servos You get 2 motors Connect to port 1 or 2 with a 2-wire cable. You can control motor speed & direction. … and 1 servo Connect to port 3 or 4 with a 5-wire cable. Can operate in: Wheel mode (like a motor). Joint mode (set it to a position).

Edbot Software Edbot Software enables your Scratch program to control your Edbot Dream robots. Edbot Dream Scratch blocks are found in the ‘More blocks’ section. Use them like any other Scratch blocks to build your program.

Controlling a motor Control the speed & direction of a motor. Speed is entered as a percentage (with 100 as the maximum). To stop a motor set its speed to zero. Direction is clockwise or anticlockwise. Can also control servos in wheel mode.

Controlling a servo Turn a servo on or off. Set the position and speed of a servo. Servo turns on and moves to position. Position is an angle between 0-300 degrees (see diagram). Speed controls how quickly the servo moves to its position. Entered as a percentage (maximum is 100).

Motors – Multi Blocks Control motors or servos in wheel mode at the same time. Set motor speeds Enter port number followed by “/” followed by speed (as a percentage). A negative speed will rotate clockwise, a positive speed will rotate anti- clockwise. To stop a motor set its speed to zero. Set multiple motors by repeating the sequence e.g. 1/50/2/50/3/-50.

Servos – Multi Blocks Control a number of servos at the same time. Turn servos on or off. Enter port number (3 or 4) followed by “/” followed by a 0 or 1 to turn servo off or on. Set servo positions. Set speed and position of a set of servos connected to ports 3 & 4. Enter port number followed by “/” followed by the position as an angle between 0-300 degrees, followed by “/” followed by the speed as a percentage e.g. 3/150/50. Set multiple servos by repeating the sequence e.g. 3/150/50/4/150/100.

Buzzer Blocks Control the microcontroller’s built-in buzzer. Buzzer pitch Use this block to play a note with the built-in buzzer. Specify pitch from 0 to 48. Specify duration in units of 1/10 of a second (a duration of 10 would be 1 second). Buzzer melody This block plays a pre-programmed ‘tune’. Choose a number from 0 to 24.

Speech Blocks Get your Edbot Dream to speak! Say the words. Say the words and wait for the speech to finish before continuing. Current word (a reporter block). Gives you the current word as it is being spoken. Returns empty text (zero length) if Edbot Dream isn’t speaking.

Sensor Blocks – Reporters (1) Port sensor. This reporter block gives the value of an external sensor connected to port 3 or 4. e.g. the servo position in degrees (0-300). Clap count. A reporter block that detects the number of claps (loud noises) that have occurred in the last few seconds. When clapping stops, the live count is transferred to last count and live count is set to 0.

Sensor Blocks – Reporters (2) Built-in IR sensors. Uses infra-red to measure distance to an object. Reading is approximate distance in cm (range 3cm to 20cm). Different coloured objects may give different readings. You can also use the raw value returned.

Other Blocks Use this block to reset the microcontroller. Servos & motors will stop. Clap counter is reset to zero. Speech is halted.