Prime Tutorials Part 2: Make your robot drive straight with simple Proportional Gyro Code!

  Рет қаралды 12,706

Tellurium Robotics

Tellurium Robotics

8 ай бұрын

In this video, I will teach you how to make your robot drive perfectly straight with the gyro sensor! Be sure to email any pictures, videos or CAD files of your teams robot to tellurium.robotics@gmail.com so you can be a part of a Tellurium Robotics KZbin video!

Пікірлер: 26
@Indik47
@Indik47 5 ай бұрын
Thats exactly what I needed for Robot Inventor (same hub as the Spike). And it's explained crystal clear. Thank you!
@TelluriumRobotics
@TelluriumRobotics 5 ай бұрын
You're welcome! Thanks for the complement!
@markmarshall2123
@markmarshall2123 Ай бұрын
Thanks for sharing. I adjusted the program to use stop until>>degrees and use relative position of motors as time isn't the most accurate variable to measure since it varies according to speed.
@user-iq1yt2bz4l
@user-iq1yt2bz4l 7 ай бұрын
This guy is soooo good! Keep up the good work!
@TelluriumRobotics
@TelluriumRobotics 7 ай бұрын
Thank you!
@runetraeholt
@runetraeholt 7 ай бұрын
What if you want to run a certain distance, not just time? How would you program that?
@TelluriumRobotics
@TelluriumRobotics 7 ай бұрын
@@runetraeholt I actually just made a video about that! Check it out!
@MrAnandbajaj
@MrAnandbajaj 6 ай бұрын
can you share the link here please @@TelluriumRobotics
@IowaDugan
@IowaDugan 5 ай бұрын
You do a nice job informing and helping people to be better coders. Do you find time or distance to be more accurate in your gyro straight scenario?
@TelluriumRobotics
@TelluriumRobotics 5 ай бұрын
Typically, I use distance, because with using time to measure, there are a lot of variables at play, like how clean your wheels are, how close to fully charged your robot is, and many other things. Using the rotation sensors to measure how far the robot has gone is much better, unless your robot starts to skid, but then it is probably hopelessly lost on the field anyway.
@8520amos
@8520amos 14 күн бұрын
General question do you know how to find the position of the robot on the FLL task surface and how to implement it in the code
@lijath
@lijath 2 ай бұрын
What if you want distance instead of time?
@anaaa_1471
@anaaa_1471 5 ай бұрын
I didn't really got why we had to multiply the yaw angle by -1, could you explain please :]
@TelluriumRobotics
@TelluriumRobotics 4 ай бұрын
I'll explain it with an example of what would happen if you didn't multiply yaw angle by -1. Your robot would be at, for example, 5 degrees off of where it should be. The gyro would read 5 degrees, and the robot would start driving, rather than at 0 Straight, at 5 Right. The gyro would now read 10. The robot starts driving at 10 Right, instead of 5 Right. Instead, if we invert it and the robot is 5 degrees off from where it should be, it will start going left 5. The robot will be at 0 degrees now, and so it will start going straight 0. Get it?
@brucezucaro9726
@brucezucaro9726 4 ай бұрын
Can you change the speed to anything you choose? Say, 100, or 110?
@TelluriumRobotics
@TelluriumRobotics 4 ай бұрын
If you make it too large, like 95 or 100, the robot will be unable to correct, because it would need one of the motors to go faster than 100, which is impossible.
@user-qn2em1zm4u
@user-qn2em1zm4u 6 ай бұрын
Can U make it so that it turns accurately using Gyro?
@TelluriumRobotics
@TelluriumRobotics 6 ай бұрын
I already did that! It's in an earlier video, so feel free to check it out!
@8520amos
@8520amos 6 ай бұрын
What if you want to go backwards?
@TelluriumRobotics
@TelluriumRobotics 6 ай бұрын
To make it go backwards, you would need to switch the driving motors, say C + D, to D + C. This makes the robot go backwards instead. The second thing you would need to do is to take out the math block that inverts the gyro. Give that a try, and if it doesn't work, email me at tellurium.robotics@gmail.com
@muhammadalhasani2841
@muhammadalhasani2841 3 ай бұрын
Awseome toutarail could u post the part # 1 toutarail plz
@TelluriumRobotics
@TelluriumRobotics 3 ай бұрын
I don't know what that means. In other words: sure!
@alisonxd6197
@alisonxd6197 3 ай бұрын
😂
@MrAnandbajaj
@MrAnandbajaj 6 ай бұрын
you forgot to add stop moving at the end.
@TelluriumRobotics
@TelluriumRobotics 6 ай бұрын
Whoops. Thanks for pointing that out!
@luctv3352
@luctv3352 2 ай бұрын
It doesn’t work
Stop Making THIS MISTAKE With Your LEGO Gyro Sensor
10:18
Builderdude35
Рет қаралды 17 М.
3 ways to turn, including gyro option for Lego Spike Prime
7:11
TRY NOT TO LAUGH 😂
00:56
Feinxy
Рет қаралды 16 МЛН
Would you like a delicious big mooncake? #shorts#Mooncake #China #Chinesefood
00:30
СНЕЖКИ ЛЕТОМ?? #shorts
00:30
Паша Осадчий
Рет қаралды 7 МЛН
Spike Prime Basic Line Follower and Gyro Controlled Straight Programs
5:41
Gibford's Robot Lab
Рет қаралды 49 М.
Two Sensor Proportional Line Follower for the Spike 2 or 3!
6:48
Tellurium Robotics
Рет қаралды 28 М.
FLL MASTERPIECE 550 Point MAX RUN | FIRST LEGO League | Robot In 1 Day
2:24
Program Accurate 90 Degree Gyro Turns With LEGO MINDSTORMS 51515
9:06
Spike Prime Gyro Controlled Turns Part 1
8:43
Gibford's Robot Lab
Рет қаралды 26 М.
How Well Do You Know Your Main?
19:09
Jimbo
Рет қаралды 335 М.
Using The Gyro Sensor For Better Accuracy In FLL
14:33
LEGORobotics Mr. Hino
Рет қаралды 4 М.
How Ray Tracing (Modern CGI) Works And How To Do It 600x Faster
32:06
Josh's Channel
Рет қаралды 559 М.
skibidi toilet - season 24 (all episodes)
25:14
DaFuq!?Boom!
Рет қаралды 19 МЛН
Lp. Последняя Реальность #87 ВОЙНА: НАЧАЛО [План Мафиози] • Майнкрафт
36:53
ПАУ КЕК ҚАЙТАРМАҚШЫ
12:59
Armani -KazakhHL-
Рет қаралды 20 М.
Я ВЫЖИЛ ПОСЛЕ ПАДЕНИЯ САМОЛЁТА!
27:28
EdisonPts
Рет қаралды 1,8 МЛН