Forum >Replies by James.Wells
userhead James.Wells
Replies (7)
  • You Reply:

    Example python program for a Robot Pet.

     

    from microbit import *
    from maqueenplusv2 import *

    init_maqueen()
    display.show(Image('00000:'
                      '09090:'
                      '00500:'
                      '60006:'
                      '07770'))
    while True:
       if button_b.was_pressed():
           sleep_ms(200)
           spin_right(50)
           sleep_ms(200)
           spin_left(50)
           sleep_ms(400)
           spin_right(50)
           sleep_ms(200)
           backup(50)
           sleep_ms(200)
           drive(50)
           sleep_ms(200)
           stop()
       elif button_a.was_pressed():
           sleep_ms(200)
           spin_right(100)
           sleep_ms(1800)
           stop()
       elif pin_logo.is_touched():
           for _ in range(4):
               display.show(Image('09090:'
                                  '00500:'
                                  '60006:'
                                  '07770:'
                                  '00000'))
               sleep_ms(100)
               display.show(Image('00000:'
                                  '09090:'
                                  '00500:'
                                  '60006:'
                                  '07770'))
               sleep_ms(100)
           
     

  • You Reply:

    I have just finished a microPython library for Maqueen Plus V2. https://github.com/jdonwells/micropython-MaqueenPlusV2

  • You Reply:

    I just finished creating functions for micropython to control a Maqueen Plus V2. https://github.com/jdonwells/micropython-MaqueenPlusV2 Micropython for micro:bit is at https://python.microbit.org/v/3/

  • You Reply:

    I created a set of 6 youtube videos for a series of projects with the Maqueen robot. https://www.youtube.com/playlist?list=PLuLlqVsAqKvAg_6iwGiZfCcoqqMBT9pa7 They each have a presentation and project description. Each project builds on the previous one.

  • You Reply:

    I am working on using the Unihiker with my Maqueen Plus V2. I got a small battery for the Unihiker. It weighs 122g, has 6000mAh of power, and produces 2.1 amps. The Unihiker needs 2 amps. I got it from Amazon for $16 during Black Friday. Sethruki is the manufacturer.

  • You Reply:

    I just noticed there is a version block. So we need this for now.

     

  • You Reply:

    Looking at the PCB I see that my older robots are V2.0 while my 3 new robots are V2.1. Is there a way to change the GitHub extension to detect the board version and make the adjustments in the extension code? 

     

    Also the V2.1 run much faster! Different gear ratio? That is a bit chaotic in the classroom. But not as much as the sensor issue.