Skip to content

Instantly share code, notes, and snippets.

@topshed
Last active April 15, 2024 15:10
Show Gist options
  • Save topshed/6edca0f4e7a56e75a9b40cc07b593f80 to your computer and use it in GitHub Desktop.
Save topshed/6edca0f4e7a56e75a9b40cc07b593f80 to your computer and use it in GitHub Desktop.
LEGO Spike Prime for CoderDojo: Quick start
Start by building your robot.
The simplest robot is the Spike hub connected to two wheels and a caster
There are lots of ways to build a similar 2-wheeled bit, and the design shown here might not be the best for every task.
You may also need to adapt your code if you build a bot with larger motors or wheels.
@topshed
Copy link
Author

topshed commented Jan 11, 2024

Building a basic robot

bot1
bot4
bot3
bot2

@topshed
Copy link
Author

topshed commented Jan 11, 2024

Using the Spike hub

  1. Connect your hub to your computer using the USB cable.
  2. Open rpf.io/spike on your browser
  3. Create a new "Word Blocks" project and then click on the yellow Hub in the top left.
  4. Turn on the hub by holding down the button. Then , assuming the button is green, select that option on the screen

greenbutton

  1. Select "connect with USB cable"

usbcable

  1. Select "Open"

open

  1. Select your device in the smaller window that opens

paired

  1. Check that connection has been successful: the hub icon should now have a green tick, and any connected devices will be shown on the right.

connected

  1. There some additional motion blocks that may be useful. You can add them by clicking on the "Show block extensions" button in the bottom left of the main screen.

add_extra_blocks

Then select "More movement"

more_movement2

  1. Test everything is working

Select one of the purple "Light" blocks from the left and drag it under "When program starts". Then press the yellow Play button in the bottom right to run the code on the Hub.

Snip20240415_1

Next: Moving your robot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment