FIRST LEGO League Challenge Sensors: Difference between revisions

From ORTOP Wiki
(→‎Gyro sensor: Added external link)
(→‎Gyro sensor: Added links to lessons)
Line 23: Line 23:


== [https://education.lego.com/en-us/products/lego-mindstorms-education-ev3-gyro-sensor-/45505 Gyro sensor] ==
== [https://education.lego.com/en-us/products/lego-mindstorms-education-ev3-gyro-sensor-/45505 Gyro sensor] ==
* From EV3Lessons.com
** Introduction to Gyro Sensor and Drift
*** [https://ev3lessons.com/en/ProgrammingLessons/advanced/GyroDrift.pdf EV3-G]
**** [https://ev3lessons.com/en/ProgrammingLessons/advanced/GyroDriftTest.ev3 Code to test gyro drift]
**** [https://ev3lessons.com/en/ProgrammingLessons/advanced/GyroRevisited.ev3 Code to test which type of sensor you have]
**** Note: To use the test code, download it and import it into EV3-G.
*** [https://ev3lessons.com/en/ProgrammingLessons/advanced/scratch-GyroDrift.pdf EV3 Classroom]
** Gyro Turns
*** [https://ev3lessons.com/en/ProgrammingLessons/advanced/GyroTurn.pdf EV3-G]
*** [https://ev3lessons.com/en/ProgrammingLessons/advanced/scratch-GyroTurn.pdf EV3 Classroom]
** Gyro Move Straight
*** [https://ev3lessons.com/en/ProgrammingLessons/advanced/GyroMoveStraight.pdf EV3-G]
*** [https://ev3lessons.com/en/ProgrammingLessons/advanced/scratch-GyroMoveStraight.pdf EV3 Classroom]

Revision as of 10:24, 22 August 2020

Sensors are used to serve as the "eyes and ears" of the robot to allow it to navigate on the playing field. Both the Mindstorms EV3 set and the SPIKE Prime set contain a collection of sensors that can be plugged into sockets (called ports) on the robot's hub. Team members can write programs that use the sensors to control the turns of the robot, keep it driving relatively straight, detect collisions or pending collision with obstacles, detect colors on the playing field, follow lines, etc. Using sensors can make the difference between a robot that sometimes reaches its goal and one that almost always does, allowing it to rack up points much more consistently.

SPIKE Prime Sensors

Force sensor

The force sensor allows the robot to measure newtons of force. This could allow the robot to use a lever arm to detect that it is getting close to a wall and adjust its course. Alternatively, the sensor can used as an on-off switch to determine what part of a program should be used.

Color sensor

Ultrasonic sensor

Gyro sensor

The gyro sensor is built into the SPIKE Prime hub. While it can measure angular acceleration in three dimensions, the most common use is to measure how far the robot has turned to allow it to execute more precise turns.

Mindstorms EV3 Sensors

Touch sensor

Color sensor

Ultrasonic sensor

Gyro sensor