SPIKE Prime 3.x 2023 Python Tutorial: Part 2 Gyro, Distance, Force Sensor

  Рет қаралды 13,105

Creator Academy Australia

Creator Academy Australia

Күн бұрын

Пікірлер: 35
@rockymountainfacet5958
@rockymountainfacet5958 Жыл бұрын
I really appreciate what you do and the content you make. I have learned so much because of you. If anyone reads this I highly recommend this channel.
@CreatorAcademyAustralia
@CreatorAcademyAustralia Жыл бұрын
Thank you so much for your support! Garry
@solversmind
@solversmind Жыл бұрын
Hi, very nice tutorials and our FLL team is currently exploring the new Python functionalities. One thing we found is that, even though the gyro resolution is higher (desidegrees), the accuracy is not good, not to the standard we would expect. When we turn 90 degrees, either way, we consistently saw about 3-4 degrees of overshoot, even at a relatively slow speed, a full 360-degree turn (i.e. repeat 90 turn 4 times), you would find a significant overshoot. When dealing with EV3, you can do a less turn to accommodate the "inertia", but the problem with the new Spike, is when we printed out the final gyro reading after the 90-degree turn, the data obviously "lied", i.e., we saw an obvious overshoot, say, 93 degrees, but the console would report around "90x". But from your video, the turn is pretty accurate, any other tips you would like to share? I found some others also report the inaccuracy of the yaw readings... Thanks in advance.
@CreatorAcademyAustralia
@CreatorAcademyAustralia Жыл бұрын
It seems like the gyro sensor in the SPIKE hub isn’t super accurate, but I will need to do more testing. I highly recommend using PID to regularly check the robot heading throughout navigation as well, not just for the initial turn. Garry
@oliver-beyer
@oliver-beyer Жыл бұрын
@@CreatorAcademyAustralia Hello Garry, at first thank you very much for all your help. It would be great if you could do a video explaining on how to use PID to control / adjust turning or moving straight very accurately. I can only find PID-examples and -tutorials for line-following and self-balancing robots (maybe I missed something by searching)...
@patriciarector7964
@patriciarector7964 2 ай бұрын
Thank you so much for the detailed step-through of each line of code! 🙏
@CreatorAcademyAustralia
@CreatorAcademyAustralia Ай бұрын
You're very welcome! Garry
@DaMonkeyBroZ-q4o
@DaMonkeyBroZ-q4o 2 ай бұрын
Hi Mr. Gary, can you make a full vid about gyro pls? I’m on an FLL team and we have been trying to use the gyro to move straight but there isn’t a lot of info besides your videos. It would be really beneficial to us so please consider it. Thank you for all the content, I have learned so many things from you videos so keep up the good work.
@CreatorAcademyAustralia
@CreatorAcademyAustralia 2 ай бұрын
Great suggestion! I will include this in the next coding video for FLL. Glad you find the videos helpful. Garry
@BehindtheCache
@BehindtheCache Жыл бұрын
Are you going to do a line follow tutorial? I am really wanting our 2nd year + students on my FLL teams to use Python this year. So any help would be greatly appreciated.
@CreatorAcademyAustralia
@CreatorAcademyAustralia Жыл бұрын
I sure am! New Python line following tutorial is coming soon in part 3. Garry
@BehindtheCache
@BehindtheCache Жыл бұрын
@@CreatorAcademyAustralia great I am looking forward to it. Now the next question how soon?
@carrieczerwonka
@carrieczerwonka Жыл бұрын
We are having issues with this as well. We actually want the sensor to tell us the color it sees. What libraries do we work with? Thank you
@tomkirbygreen
@tomkirbygreen Жыл бұрын
Awesome stuff sir! More Python 3.x stuff please.
@CreatorAcademyAustralia
@CreatorAcademyAustralia Жыл бұрын
More to come! Garry
@tomkirbygreen
@tomkirbygreen Жыл бұрын
@@CreatorAcademyAustralia I'm in the UK and so source my daughters Lego Spike kits locally rather than from your sponsor. I really appreciate your lessons, is there any way I can support your endeavours?
@CreatorAcademyAustralia
@CreatorAcademyAustralia Жыл бұрын
Thank you so much for following my videos! You can support me by sharing the tutorials with your local schools and students who want to learn robotics. You can also join my channel membership for access to more coding lesson replays for a monthly fee and cancel anytime. Garry
@oliver-beyer
@oliver-beyer Жыл бұрын
Thank you very much for this tutorial! Any idea why LEGO "inverted" yaw-angle values in Python compared to word-blocks, i. e. having positive values for turning left and negative for turning right? Besides, I don't find tilt_angles() in the Python-documentation, only reset_tilt_angles(). Is the documentation "work in progress"?
@AdamSingle
@AdamSingle Жыл бұрын
Great tutorial. Interesting note, on my machine motion_sensor api has a reset_yaw_angle method that throws a missing attribute error when you try to run it. But if I use reset_yaw as in your code, it works, despite the IDE showing it as an error and the API docs and autocomplete telling me to use reset_yaw_angle
@CreatorAcademyAustralia
@CreatorAcademyAustralia Жыл бұрын
That does seem to be strange! When I used to build complicated programs, I would generate documentation from the code. It looks like the code and documentation are out of sync in SPIKE, maybe it will be fixed in a later patch. Garry
@tomt453
@tomt453 Жыл бұрын
These tutorials are great. Does v3 allow you to move in distance while programming in Python? I've only been able to move by time and velocity. Thanks!
@ProsperTeni
@ProsperTeni Жыл бұрын
Hello, I app noticed the update on the spike prime app, and I also noticed that your color following technique is from 2 years ago, so I am worried about the compatibility of the old code and the updated app.
@CreatorAcademyAustralia
@CreatorAcademyAustralia Жыл бұрын
Hi! We are still filming the line following video for the new version of SPIKE. Stay tuned! Garry
@juliebendig6066
@juliebendig6066 Жыл бұрын
Hi, Have you tried this logic in the case of turn the robot twice? We have found that the reset_yaw(0) is not actually setting the yaw value to 0. I see there was a "Fixed delay issue with set yaw angle to 0 block" in Release 3.4 but I am not sure this applies to Python as well. Any advice?
@CreatorAcademyAustralia
@CreatorAcademyAustralia Жыл бұрын
We haven't had an issue with the gyro turns so far, will continue testing. Thanks! Garry
@sameerruiwale9201
@sameerruiwale9201 Жыл бұрын
We are having the same issue - we created a function for gyro turn - and if we call it twice - it doesn't execute and it looks like the yaw value is not being reset.@@CreatorAcademyAustralia
@KatarinaVeljkovic76
@KatarinaVeljkovic76 26 күн бұрын
When I want to turn 90 degrees, I enter the value 900. Why is the angle multiplied by 10?
@CreatorAcademyAustralia
@CreatorAcademyAustralia 26 күн бұрын
Hi! The gyro units are now in decidegrees, or tenth-degrees. Confusing I know! Garry
@Adwita-y5o
@Adwita-y5o 3 ай бұрын
Line 32 is showing error because my motor pair is not defined
@จิรัฎฐ์พงษ์ทองเมือง-ท4ฉ
@จิรัฎฐ์พงษ์ทองเมือง-ท4ฉ Жыл бұрын
I cant reset yaw angle. plz tell me how to do that. thank you. AttributeError: 'module' object has no attribute 'reset_yaw_angle'
@agamiksfll
@agamiksfll Жыл бұрын
reset_yaw
@imp20in
@imp20in Жыл бұрын
How to get access to your tutorials via channel membership.
@CreatorAcademyAustralia
@CreatorAcademyAustralia Жыл бұрын
Hi! Click the ‘Join’ button under the video and follow the prompts. Garry
@imp20in
@imp20in Жыл бұрын
I don’t see any join button
@IsaacTimothyMei
@IsaacTimothyMei Жыл бұрын
why is it tilt angles
SPIKE Prime 3.x 2023 Python Tutorial: Part 1 Moving Around
25:42
Creator Academy Australia
Рет қаралды 20 М.
SPIKE Prime 3.x 2023 Python Tutorial: Part 3 Line Following
13:50
Creator Academy Australia
Рет қаралды 14 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 26 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
37:51
bayGUYS
Рет қаралды 741 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 35 МЛН
11 ROS 2 Model-Based Design - MATLAB and Simulink Tutorial
22:52
Model-Based Design with Martin
Рет қаралды 2
Spike Prime Gyro Controlled Turns Part 1
8:43
Gibford's Robot Lab
Рет қаралды 33 М.
SPIKE Prime Python Changes from LEGACY to 3.x
6:40
Creator Academy Australia
Рет қаралды 4,5 М.
LEGO Spike Prime Robotics Distance Sensor and Arm
14:29
Sprattronics Learning Lab
Рет қаралды 2,8 М.
Learn Python for LEGO SPIKE in 3 hrs LEGACY Version (Part 1)
1:09:49
Creator Academy Australia
Рет қаралды 10 М.
FLL Submerged Max Points
2:32
FLLshenanigans
Рет қаралды 79 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 26 МЛН