Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot...

12
EV3 PROGRAMMING HELPFUL HINTS

Transcript of Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot...

Page 1: Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot will go forward! Move Steering Block.

EV3 PROGRAMMING

HELPFUL HINTS

Page 2: Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot will go forward! Move Steering Block.

Moving Around

Negative Power or Negative Rotation makes robot go backwards.

But if both are negative, the robot will go forward!

Move Steering Block

Page 3: Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot will go forward! Move Steering Block.

Moving Around

The lowest motor speed set the turning direction. In this picture, motor “C” (right motor) is zero and lower than 50; therefore, the robot will turn right

Move Tank Block

Page 4: Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot will go forward! Move Steering Block.

Body VS. Wheel Rotation

Wheel's rotation sensor cannot be used to detect body rotation; one wheel rotation is 17 CMS. "1 rotation" in the Move Steering Block's means one rotation of the robot's wheels

Page 5: Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot will go forward! Move Steering Block.

Turning

Turn in Place: Both wheels rotate in

opposite directions

Swing Turn or Wide Turn:One wheel stays the other rotates

Page 6: Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot will go forward! Move Steering Block.

Watch Your Speed!

At a lower speed you can better control robot’s movements, especially when going backwards and turning, and line tracking too!

Place a wait block before/after turns for more accurate and sharper turns

Use Reset Motor Blocks from the Sensor Palette to recalibrate motors rotation sensors and make sure your robot does not lean to the sides. This will happen after the robot travels distances longer than four rotations

Page 7: Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot will go forward! Move Steering Block.

Did you know?

Time is considere

d a sensor

Using sensors

over rotations makes robots more

autonomous

Ultrasonic Sensor

readings less than 10 cms

will not be accurate

Page 8: Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot will go forward! Move Steering Block.

About Sensors

The Touch Port 1

Goat Gyro Port 2

Chases Color Port 3

Us Ultrasonic Port 4

Wiresensors to the correct port!

Page 9: Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot will go forward! Move Steering Block.

Color Sensors

If too close to surface will not sense reading

accurately. Should be a penny away

Using thresholds for reflective light

is useful. Take high and low readings add

values and divide by two to get

your threshold value

Page 10: Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot will go forward! Move Steering Block.

Color Sensors

Sometimes color sensor

does not sense

accurately the color reading.

Go to view mode and try using the value of what the

sensor is sensing in addition to the color

desired. Put both color values when

selecting the colors in the color block to make sure it reads

it.

Page 11: Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot will go forward! Move Steering Block.

Go to File Navigation

Select desired project once to open it

Select the Project File by clicking twice a box will appear with delete icon option

Click check mark to delete entire project

Deleting from Brick

Page 12: Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot will go forward! Move Steering Block.

Have fun with the EV3!