Introducing
Your new presentation assistant.
Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.
Trending searches
SUBTITLE GOES HERE
Connecting Sensors
In order to function, motors and sensors must be connected to the EV3 Brick.using the flat black Connector Cables, link sensors to the EV3 Brick using Input ports 1, 2, 3, and 4.
If you create programs while the EV3 Brick is not connected to your computer, the software will assign sensors to default ports. Those default port assignments are:
+ Port 1: Touch Sensor
+ Port 2: Gyro Sensor
+ Port 3: Color Sensor
+ Port 4: Ultrasonic Sensor
if the EV3 Brick is connected to your computer while you program, the software will automatically identify which port is being used for each sensor or motor. Using the flat black Connector Cables, link motors to the EV3 Brick using Output ports A, B, C, and D.
As with the sensors, if the EV3 Brick is not connected when you are writing a program, each motor will be assigned to a default port.
Default port assignments are:
+ Port A: Medium Motor
+ Port B & C: Two Large Motors
+ Port D: Large Motor
The Ultrasonic Sensor is a digital sensor that can measure the distance to an object in front of it. It does this by sending out high frequency sound waves and measuring how long it takes the sound to reflect back to the sensor. The sound frequency is too high for you to hear. Distance to an object can be measured in either inches or centimeters. This allows you to program your robot to stop a certain distance from a wall.
When using centimeter units, the detectable distance is between 3 and 250 centimeters (with an accuracy of +/- 1 centimeter). When using inch units, the measurable distance is between 1 and 99 inches (with an accuracy of +/- 0.394 inches). A value of 255 centimeters or 100 inches means the sensor is not able to detect any object in front of it.
You can also use the Ultrasonic Sensor to detect whether another ultrasonic sensor nearby is operating. For example, you could use this to detect the presence of another robot that is using an ultrasonic sensor nearby. In this “listen only” mode, the sensor listens for sound signals but does not send them.
The Gyro Sensor is a digital sensor that detects rotational motion on a single axis.
If you rotate the Gyro Sensor in the direction of the arrows on the case of the sensor, the sensor can detect the rate of rotation in degrees per second.
The sensor can measure a maximum rate of spin of 440 degrees per second.) You can then use the rotation rate to detect, for example, when a part of your robot is turning, or when your robot is falling over. In addition, the Gyro Sensor keeps track of the total rotation angle in degrees.
The Color Sensor block gets data from the Color Sensor. You can measure the color or intensity of light and get a Numeric output. You can also compare sensor data to an input value and get a Logic (True or False) output.
Choose the Sensor Port and Mode
Port Selector
Mode Selector
Inputs
Outputs
Use the Port Selector on the top of the block to make sure that the sensor port number (1, 2, 3, or 4) matches the port on the EV3 Brick that the Color Sensor is connected to.
The Touch Sensor is an analogue sensor that can detect when the sensor’s red button has been pressed and when it is released. That means the Touch Sensor can be programmed to action using three conditions—pressed, released, or bumped (both pressed and released).
The Loop block is a container that can hold a sequence of programming blocks. It will make the sequence of blocks inside it repeat. You can choose to repeat the blocks forever, a certain number of times, or until a sensor test or other condition is True.
Only the blocks inside the loop will repeat. After the loop ends, the program will continue with the blocks that are after the loop.
The Switch block is a container that can contain two or more sequences of programming blocks. Each sequence is called a Case. A test at the beginning of the Switch determines which Case will run. Only one Case will run each time the Switch is executed.
The Switch test shown here can decide which Case to run based on a sensor data value or a value from a Data Wire. After one Case is selected and run, the program continues with any blocks after the Switch.
Sequence beam
The sequence beam controls the flow of your program. It indicates the sequence in which programming blocks will run. Blocks connected to the sequence beam can be downloaded to the EV3. Other blocks in the Programming Canvas that are not connected to the sequence beam will not be downloaded.
Parallel sequence beam (Split Task)
You can use the starting block to create additional sequence beams that will allow your program to run simultaneous tasks. For example, you might have the main sequence beam in your program controlling a robot’s forward motion but have a second sequence beam controlling a robotic arm that sits on top of the robot. When you download and run the program, the blocks on both sequence beams will run in parallel. You can use data wires to have the blocks on both sequence beams communicate with each other.
What Are gears?
A gear is a toothed machine part such as a wheel that meshes with another toothed part.
Why we use gears?
1- Transfer motion
2-To reverse the direction of rotation
3- To decrease and increase the speed of rotation
3- To move rotational motion to a different axis
The driver: - is the gear that attached to the motor
The follower: - is the driven gear
The idler: - is the one placed between two gears the idle gear has no effects on the speed of the other gears but it has effects on the direction of the rotation
In gears we have 2 types
• Large gear is the driver
• Small gear is the follower
• Gearing up gives you higher speed