Learn Python for Mindstorms (LEGO 51515) Part 6: Accurate Turns with Functions

  Рет қаралды 4,507

Creator Academy Australia

Creator Academy Australia

Күн бұрын

Пікірлер: 23
@keanorobotics9219
@keanorobotics9219 Жыл бұрын
Hi Garry, i've been a long time Mindstorms enthusiast and i'm just starting to learn to code the Robot Inventor in Python and I find your tutorial videos super easy to follow and understand. Your teaching is clear and concise. Thanks for the amazing videos
@CreatorAcademyAustralia
@CreatorAcademyAustralia Жыл бұрын
Thank you so much for your feedback. Glad you enjoyed the videos! Garry.
@almahanadalmahdhour551
@almahanadalmahdhour551 3 жыл бұрын
This channel is so underrated. Thanks for the amazing video!
@CreatorAcademyAustralia
@CreatorAcademyAustralia 3 жыл бұрын
Thanks so much for your support! Garry
@svizztech
@svizztech 3 жыл бұрын
Thanks again for this video. Keep it up. Great series.
@CreatorAcademyAustralia
@CreatorAcademyAustralia 3 жыл бұрын
Glad you enjoy it! Garry
@aurel7817
@aurel7817 2 жыл бұрын
Hi! thank you for your video. My robot turn but doesnt stop..and I use the same code as you. What can be the problem? Thank you for you work! Aurelien
@CreatorAcademyAustralia
@CreatorAcademyAustralia 2 жыл бұрын
Hi! check the directions of your’greater than’ symbol, and ensure you are resetting the gyro to zero. Also try moving your robot around to make sure the yaw angles are changing. Garry
@lisashvids
@lisashvids 2 жыл бұрын
Hi Garry a genric question. we dont get the smart prompt when we start to type as you got. it was coming earlier but all of a sudden we dont see the prompt so now I have to type the whole words while coding which takes more time :)
@CreatorAcademyAustralia
@CreatorAcademyAustralia 2 жыл бұрын
Hi! I hear a lot of people having this problem but I don’t know what it could be and I’ve asked LEGO for support. I suggest trying to reach out to LEGO as well so that they know more people have this problem. Garry
@lisashvids
@lisashvids 2 жыл бұрын
@@CreatorAcademyAustralia will do thank you. your videos are good and we start to follow on Python coding
@bernardpage4639
@bernardpage4639 3 жыл бұрын
How do I get Tricky to turn left instead of right
@CreatorAcademyAustralia
@CreatorAcademyAustralia 3 жыл бұрын
Hi Bernard, to turn left, we set the 'steering' parameter on the start() method to a negative number. So it is start(-100) to make a sharp left turn. You'll also need to adjust the while loop so that it is checking if the angle is larger than a negative number, or it won't work. Let me know if you managed to solve it! Garry
@iwishicouldcode
@iwishicouldcode 3 жыл бұрын
You can use the following function (pass a negative value for a left turn or a positive value for a right turn): def custom_turn(angle): hub.motion_sensor.reset_yaw_angle() if angle>=0: while hub.motion_sensor.get_yaw_angle()angle: wheels.start(-100) wheels.stop()
@lisashvids
@lisashvids 2 жыл бұрын
def left_turn(): hub.motion_sensor.reset_yaw_angle() while hub.motion_sensor.get_yaw_angle()>-89: wheels.start(-100) wheels.stop()
@legohouse3422
@legohouse3422 6 ай бұрын
❤😊❤
@einniemand8007
@einniemand8007 3 жыл бұрын
Thanks for this interesting lesson. When I use yaw angle I get an offset of the angle after the turn using robot inventor. Do you realise the same effect? So if I turn back to yaw = 0 the robots direction is totaly different from it’s original one. Do you have any idea what I am doing wrong? Thank you a lot for any advice. Best regards Chris
@CreatorAcademyAustralia
@CreatorAcademyAustralia 3 жыл бұрын
Hi! Is the offset really big? It could be that motor speed is too high and the robot isn’t stopping in time. Garry
@almahanadalmahdhour551
@almahanadalmahdhour551 3 жыл бұрын
@@CreatorAcademyAustralia I have the same issue
@almahanadalmahdhour551
@almahanadalmahdhour551 3 жыл бұрын
Have you solved it ?
@CreatorAcademyAustralia
@CreatorAcademyAustralia 3 жыл бұрын
Hi! be sure to use the gyro reset command before running the turn, and keep thw move speed slow. Hope that helps! Garry
@almahanadalmahdhour551
@almahanadalmahdhour551 3 жыл бұрын
So I have found the solution to this you could make while hub.motion_sensor.get_yaw_angle()< 88: since there is a glitch in the software that is not letting gyro to work accurately. LEGO is aware of the problem and they are working on fixing it.
Learn Python for Mindstorms (LEGO 51515) Part 7: Math for Python
28:05
Creator Academy Australia
Рет қаралды 3,6 М.
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33
小路飞和小丑也太帅了#家庭#搞笑 #funny #小丑 #cosplay
00:13
家庭搞笑日记
Рет қаралды 8 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 59 МЛН
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
LEGO 51515 Motor Secrets - Accuracy, Speed, Torque, Form Factor
11:10
LEGO Robot Inventor 51515 Rubik's Cube Solver
2:39
Mladen D.
Рет қаралды 275 М.
Engines are now getting smaller
10:43
DIY Garage
Рет қаралды 9 М.
LEGO 6 AXIS ROBOTIC ARM  + PNEUMATIC UNIT - V4 - MINDSTORMS 51515
4:33
MINDSTORM CONSTRUCTIONS
Рет қаралды 6 М.
Mini Alpha: A robot arm made with LEGO Mindstorms EV3
1:11
Will Heredia's LEGO Workshop
Рет қаралды 49 М.
Learn Python for Mindstorms (LEGO 51515) Part 8: Dealing with Errors
20:42
Creator Academy Australia
Рет қаралды 3 М.
Remote Control LEGO MINDSTORMS 51515 With Your Smart Device
10:48
Builderdude35
Рет қаралды 14 М.
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33