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

  Рет қаралды 19,015

Tellurium Robotics

Tellurium Robotics

Күн бұрын

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!

Пікірлер: 31
@ksgreenlee
@ksgreenlee Ай бұрын
I’d love to see this for distance versus time. As a new coach I’m learning slowly. We have a robot that is just not driving straight and we’d rather correct and move on versus trying to rebuild.
@lijath
@lijath 5 ай бұрын
What if you want distance instead of time?
@Indik47
@Indik47 8 ай бұрын
Thats exactly what I needed for Robot Inventor (same hub as the Spike). And it's explained crystal clear. Thank you!
@TelluriumRobotics
@TelluriumRobotics 8 ай бұрын
You're welcome! Thanks for the complement!
@AgasthyaKarthikeyan
@AgasthyaKarthikeyan 10 ай бұрын
This guy is soooo good! Keep up the good work!
@TelluriumRobotics
@TelluriumRobotics 10 ай бұрын
Thank you!
@runetraeholt
@runetraeholt 10 ай бұрын
What if you want to run a certain distance, not just time? How would you program that?
@TelluriumRobotics
@TelluriumRobotics 10 ай бұрын
@@runetraeholt I actually just made a video about that! Check it out!
@MrAnandbajaj
@MrAnandbajaj 10 ай бұрын
can you share the link here please @@TelluriumRobotics
@markmarshall2123
@markmarshall2123 4 ай бұрын
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.
@TelluriumRobotics
@TelluriumRobotics Ай бұрын
Great idea! Glad you liked the video!
@IowaDugan
@IowaDugan 9 ай бұрын
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 9 ай бұрын
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.
@anaaa_1471
@anaaa_1471 8 ай бұрын
I didn't really got why we had to multiply the yaw angle by -1, could you explain please :]
@TelluriumRobotics
@TelluriumRobotics 8 ай бұрын
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?
@8520amos
@8520amos 3 ай бұрын
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
@rayzzsubliminals5983
@rayzzsubliminals5983 2 ай бұрын
how do you make it do this but in the other way like in reverse
@MrAnandbajaj
@MrAnandbajaj 10 ай бұрын
you forgot to add stop moving at the end.
@TelluriumRobotics
@TelluriumRobotics 10 ай бұрын
Whoops. Thanks for pointing that out!
@Rajivjax1
@Rajivjax1 Ай бұрын
Why did you forgot to add Stop Moving? Please correct and repost the video.
@TelluriumRobotics
@TelluriumRobotics Ай бұрын
Called it!
@luctv3352
@luctv3352 5 ай бұрын
It doesn’t work
@brucezucaro9726
@brucezucaro9726 8 ай бұрын
Can you change the speed to anything you choose? Say, 100, or 110?
@TelluriumRobotics
@TelluriumRobotics 8 ай бұрын
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.
@muhammadalhasani2841
@muhammadalhasani2841 7 ай бұрын
Awseome toutarail could u post the part # 1 toutarail plz
@TelluriumRobotics
@TelluriumRobotics 7 ай бұрын
I don't know what that means. In other words: sure!
@alisonxd6197
@alisonxd6197 6 ай бұрын
😂
@LaithTheLionBoi
@LaithTheLionBoi 9 ай бұрын
Can U make it so that it turns accurately using Gyro?
@TelluriumRobotics
@TelluriumRobotics 9 ай бұрын
I already did that! It's in an earlier video, so feel free to check it out!
@8520amos
@8520amos 9 ай бұрын
What if you want to go backwards?
@TelluriumRobotics
@TelluriumRobotics 9 ай бұрын
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
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 84 МЛН
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 96 МЛН
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 52 МЛН
Using The Gyro Sensor For Better Accuracy In FLL
14:33
LEGORobotics Mr. Hino
Рет қаралды 4,3 М.
3 ways to turn, including gyro option for Lego Spike Prime
7:11
Exploring the Ultimate Height Limits of LEGO Spike Prime Sensors!
6:47
Robots are not boring!
Рет қаралды 363
Precise Gyro Turn Programming with Spike Prime Word Blocks
9:25
6006 Tech Warriors
Рет қаралды 1,7 М.
How Well Do You Know Your Main?
19:09
Jimbo
Рет қаралды 402 М.
Proportional Control Turning with spike prime
22:43
Aaed Musa
Рет қаралды 20 М.
How to Learn to Code FAST (Do This or Keep Struggling)
11:00
Andy Sterkowitz
Рет қаралды 708 М.
How to use PID math to make your robot drive straight in FLL!
12:09
Tellurium Robotics
Рет қаралды 2,4 М.
Making a pawn that can actually turn into a queen | Blender 4.0
12:43
My First Time Using the PEN Tool in SCRATCH
16:25
Michael The Developer
Рет қаралды 100
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 84 МЛН