Python for SPIKE Prime (LEGO 45678) Part 1: Getting Started Tutorial ***For version 2 (Legacy)***

Поділитися
Вставка
  • Опубліковано 15 гру 2024

КОМЕНТАРІ • 72

  • @enrichindia460
    @enrichindia460 Рік тому +2

    I like your teaching .

  • @iniyannvivek
    @iniyannvivek 3 роки тому +3

    Super helpful! I am using SPIKE python to code for my FLL missions, and this truly is helpful!

  • @koikoi86
    @koikoi86 4 роки тому +2

    I dont understand how you dont have more subscribers.

  • @jakksondd5821
    @jakksondd5821 10 місяців тому +2

    My only feedback is make the code bigger I can see it. Great video!

  • @srinimaram
    @srinimaram 3 роки тому +5

    Code hinting is not working on Windows10 and also on Chrome book.Any thoughts how to enable code hinting?

  • @MonsieurCaron
    @MonsieurCaron 3 роки тому +2

    Awesome tuto. Thanks. I'll try it with my SPIKE"

  • @maltugla5827
    @maltugla5827 Рік тому +1

    thanks for the help! :)

  • @burnim4129
    @burnim4129 3 роки тому +1

    Thanks! Really helped me out a lot!

  • @nishalfurtado9768
    @nishalfurtado9768 2 роки тому +2

    good job

  • @עמירצין
    @עמירצין 2 роки тому

    Hi
    Does spike have a package to install and then use on my pycharm?
    Or, can I import lets say other packages to the console, I would like to use opencv
    thanks

  • @iam.damian
    @iam.damian 2 роки тому

    Hello, is it also possible to load external libraries to the code? (OpenCV to access my PC webcam)

  • @danmazz6373
    @danmazz6373 2 роки тому

    I'm current only the Mac Spike software 2.0.3 and the code completion isn't showing up. Is this something you can turn off and on? I didn't see it in the preferences.

    • @CreatorAcademyAustralia
      @CreatorAcademyAustralia  2 роки тому +1

      Lego has removed the feature in version 2 and above. They have not got a timeframe for when it might return. I suggest contacting LEGO to let them know that you’re interested in the feature. Garry

  • @gabrielcr78
    @gabrielcr78 3 роки тому +1

    awesome video, quick question you have one video for Skipe and another for Mindstorms.. i have both sets and i was wondering if you would be able to recommend one software to use for both? instead of having installed both apps, perhaps choose one?.. also i have seen comments that it's possible to flash the s

    • @CreatorAcademyAustralia
      @CreatorAcademyAustralia  3 роки тому +1

      Hi! Both versions are great, but it’s up to you to use the version that is best for you. SPIKE has graphing and weather API connections. Mindstorms has controller support 😊 Garry

    • @gabrielcr78
      @gabrielcr78 3 роки тому

      @@CreatorAcademyAustralia thanks a lot!

  • @batoulhammoud7280
    @batoulhammoud7280 2 роки тому +1

    Hi, do you think it is possible to program Spike to fetch a certain object from point A to point B? also, is it possible to program Spike to recognize this object among many?

  • @acebenefactors8214
    @acebenefactors8214 3 роки тому +1

    Love these lessons. I have never worked with Python but considering for next year’s FLL team. Can you recommend any books or other documentation for Python with Spike Prime/Robot Inventor?

    • @CreatorAcademyAustralia
      @CreatorAcademyAustralia  3 роки тому

      Thanks! Spike and Robot Inventor are pretty new so the documentation is still incomplete or missing. We are hoping to release some textbooks this year, but in the meantime, you can learn python at w3schools.org . Good luck! Garry

  • @surrenderToHim
    @surrenderToHim 3 роки тому

    Hi, how to play sounds others than beeps such as 'cat mew' on the device

  • @kritikaverma7263
    @kritikaverma7263 2 роки тому

    Hi. Can you help me with one problem. How to use broadcast message block in Spike Prime Python App.

    • @CreatorAcademyAustralia
      @CreatorAcademyAustralia  2 роки тому

      Hi! There isn’t a broadcast function so you will need to adjust your coding if you want to run multiple operations at the same time. Garry

    • @kritikaverma7263
      @kritikaverma7263 2 роки тому

      @@CreatorAcademyAustralia Okay Sure. Thank you for your response. Really appreciated

  • @beta0131
    @beta0131 3 роки тому

    hello can u help me sir please?
    just wanna ask how to activate intellisense in spike prime?
    cause code hinting is not working in my spike app while i am coding in python
    Hope to receive a response from you. thanks.

  • @otakuno5764
    @otakuno5764 2 роки тому +1

    how do i square my robot in a line with python using 2 color sensors?

  • @dirtreverse
    @dirtreverse 2 роки тому +1

    I'm an experienced developer. Somehow, code hints/autocomplete/suggestions are not working for me in Spike app version 2.0.5 on Macos. It seems rather idiotic to try and program anything without hints? Edit: sorry it has been mentioned already a lot in the remarks... will have to nudge Lego then.

    • @CreatorAcademyAustralia
      @CreatorAcademyAustralia  2 роки тому

      I understand how you feel, contacting LEGO will be the best way forward. Garry

  • @ahmetterkan2580
    @ahmetterkan2580 Рік тому

    from spike import Motor, MotorPair
    surus_tabani=MotorPair('C','D')
    surus_tabani.move(30,"cm",0,40)
    did'nt work this code. what is the poblem?

    • @CreatorAcademyAustralia
      @CreatorAcademyAustralia  Рік тому +1

      Hi! Are you using SPIKE 3.x? If you’re using the new SPIKE version, you’ll need to follow the updated tutorial. Garry

    • @ahmetterkan2580
      @ahmetterkan2580 Рік тому

      @@CreatorAcademyAustralia Hi! Thank you. I'am using SPIKE 3x. I wanted to downgrade but I have windows. Can I do this with Windows?

    • @CreatorAcademyAustralia
      @CreatorAcademyAustralia  Рік тому

      Absolutely, use this guide to downgrade using Windows How to Downgrade SPIKE 3 to SPIKE 2 (With Windows + Pybricks)
      ua-cam.com/video/3pm6iOUBn8E/v-deo.html Garry

    • @ahmetterkan2580
      @ahmetterkan2580 Рік тому

      Ok, I did it with windows.

    • @ahmetterkan2580
      @ahmetterkan2580 Рік тому

      ​@@CreatorAcademyAustralia Will we have problems in the future if we upgrade to version 3? Some people said they were having problems.

  • @PaulBoscott
    @PaulBoscott 2 роки тому +1

    Thank you

  • @gorobotrobotics2928
    @gorobotrobotics2928 3 роки тому

    How did you get autocomplete to work in the Spike software? I couldn't find any answers to that online

    • @CreatorAcademyAustralia
      @CreatorAcademyAustralia  3 роки тому

      I remember this issue happening to another user. Can you please detail your operating system and version?

    • @gorobotrobotics2928
      @gorobotrobotics2928 3 роки тому

      @@CreatorAcademyAustralia We've tried on multiple devices, all of them using Windows 10. We are currently running Spike 2.0.1, but there hasn't been any form of Autocomplete working since we first started testing about half a year ago. The only other variable we could find that differ from the tutorials that have Autocomplete enabled, is the fact that we are using a German version, however changing the language to English hasn't helped fix this issue. I hope that is enough information.

    • @CreatorAcademyAustralia
      @CreatorAcademyAustralia  3 роки тому

      @@gorobotrobotics2928 Can you please try installing the Mindstorms Robot Inventor software, start a python project to see if autocomplete works on that? The Mindstorms software is very similar to SPIKE software. If it doesn't work, then there must be another deeper issue. Garry

    • @gorobotrobotics2928
      @gorobotrobotics2928 3 роки тому

      @@CreatorAcademyAustralia Autocomolete seems to work in the Inventor Software. Thanks a lot for your help

  • @surrenderToHim
    @surrenderToHim 3 роки тому

    the program given below doesn't work. where is the mistake?

  • @zachlemke7508
    @zachlemke7508 2 роки тому

    I am on Windows with spike prime 2.0.4 wondering how to turn on code hinting/autocomplete?

    • @CreatorAcademyAustralia
      @CreatorAcademyAustralia  2 роки тому

      Hi Zach, LEGO removed code hinting in v2 and above. I suggest contacting LEGO to let them know you want the feature back. Garry

  • @pearlliang5150
    @pearlliang5150 3 роки тому

    Hi, is there any Spike Prime Python documentation where we can find a list of all modules, classed, functions, parameters and what they do? Thanks.

    • @CreatorAcademyAustralia
      @CreatorAcademyAustralia  3 роки тому +1

      Yes! Just expand the knowledge base in the app on the right hand side 😊 Garry

  • @daydreamcat6921
    @daydreamcat6921 3 роки тому

    I am new for Python. How to turn on "type hints" in Spike 2.0.4? I push down "Ctrl+ Space bar", but it always show "No suggestion". Thanks in advance.

    • @CreatorAcademyAustralia
      @CreatorAcademyAustralia  3 роки тому

      Hi there! This seems to be a common bug, I suggest you try to contact LEGO and tell them your operating system details. Garry

  • @sanjibbasak
    @sanjibbasak 3 роки тому

    Getting import module error Spike:App module not found. Any idea ?

    • @CreatorAcademyAustralia
      @CreatorAcademyAustralia  3 роки тому

      Hi! Did you make any changes to the import code? Try making a new file with only the smiling face to see if everything is working. Garry

  • @OrangeSTEMEducation
    @OrangeSTEMEducation 4 роки тому

    In Python how does the code know 15 cm is actually 15 cm for the motor movement and the same with the distance sensor. Does it know the wheel diameter etc? Looking forward to the next sessions, this is all new to me. Been spoiled using the RCX, NXT, and EV3 coding environments. You do a really good job, the pace is perfect and your descriptions of what things do is great.

    • @CreatorAcademyAustralia
      @CreatorAcademyAustralia  4 роки тому +2

      Great question! In order for the code to know how far the robot travels, it needs to know the wheel circumference (the distance the wheel travels in 1 rotation.) The code sets a wheel circumference to 17.6cm by default. If you use a different sized wheel, you'll need to run a command called: set_motor_rotation(X,Y) where 'X' is the new circumference value of the wheel as a number, and Y is 'cm' or 'in' as a string. Thanks for your feedback! Garry

  • @surrenderToHim
    @surrenderToHim 3 роки тому +1

    hub = PrimeHub()
    moving_motors=MotorPair('A', 'B')
    moving_motors.move(50, 'cm', 0)
    moving_motors.stop()

    • @CreatorAcademyAustralia
      @CreatorAcademyAustralia  3 роки тому

      hi! does the code work without the last line?

    • @surrenderToHim
      @surrenderToHim 3 роки тому

      @@CreatorAcademyAustralia First of all, thank you so much that you gave a prompt reply. Actually what was happening is though very strange but the program was sometimes working sometimes not. i have again pasted my program again and its working, thank you

  • @koikoi86
    @koikoi86 4 роки тому

    Im not very good with Python yet because im learning CSS

    • @CreatorAcademyAustralia
      @CreatorAcademyAustralia  4 роки тому

      It’s ok! Python is quite easy to pick up. Feel free to send me your python questions! Garry

    • @koikoi86
      @koikoi86 4 роки тому

      @@CreatorAcademyAustralia :)

  • @firestormspace6533
    @firestormspace6533 3 роки тому

    I am Andy do you remember me?

  • @KrishnaChavan244
    @KrishnaChavan244 11 місяців тому

    💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀

  • @KrishnaChavan244
    @KrishnaChavan244 11 місяців тому

    💀 💀