Interacting with the LEGO Education SPIKE hardware via the web
To see this in action, visit: https://edanahy.github.io/WebSPIKE/
To use the SPIKE™ Prime hardware with these examples, you must have an up-to-date Chrome browser: https://www.google.com/chrome/
Examples support both SPIKE 2 and SPIKE 3 firmware. See site homepage for more information.
SPIKE 2 examples achieved using the Service Dock for SPIKE Prime JavaScript interface created by Tufts CEEO.
SPIKE 3 examples achieved using the PyREPL JS web-based extension created by Gabriel Sessions.
Note: SPIKE 3 still in beta so all code, protocols, examples, etc subject to change without notice.
Description: A browser-based Python IDE for programming the SPIKE Prime.
- SPIKE 2 Example
- SPIKE 3 Example (Updated Oct 2023 for SPIKE 3 Python)
Description: Use a GamePad to control the SPIKE Prime.
- SPIKE 2 Example: not available
- SPIKE 3 Example
Description: A halloween-themed example of polling a SPIKE input and moving in-browser images.
- SPIKE 2 Example
- SPIKE 3 Example (Updated Oct 2023 for SPIKE 3 Python)
Description: Triggering images and sound when a SPIKE Force Sensor is pushed.
- SPIKE 2 Example
- SPIKE 3 Example (Updated Oct 2023 for SPIKE 3 Python)
Description: Syncing SPIKE Python Code with timestamps in an audio file.
- SPIKE 2 Example: not available
- SPIKE 3 Example (Updated Oct 2023 for SPIKE 3 Python)
Description: Monitor SPIKE Prime's Serial Stream and trigger action (e.g. audio file) in browser.
- SPIKE 2 Example: not available
- SPIKE 3 Example
Description: Simple in-browser Pong Game controlled by motors.
- SPIKE 2 Example: Supports 1 or 2 hubs
- SPIKE 3 Example: Only supports 1 hub
Description: Control Star Wars characters using Motor and Force Sensor. Requires two SPIKE Prime Hubs.
- SPIKE 2 Example: Requires 2 hubs
- SPIKE 3 Example: Only supports 1 hub
Description: A two-player "reaction game" to see who can match images the fastest.
- SPIKE 2 Example: Requires 3 hubs
- SPIKE 3 Example: not available
Description: Getting two SPIKE 3 hubs to talk to each other; a temporary hack using iframes...
- SPIKE 2 Example: not available
- SPIKE 3 Example: Requires 2 hubs (Updated Oct 2023 for SPIKE 3 Python)
LEGO®, the LEGO® logo, the Brick, MINDSTORMS®, SPIKE™, and the Minifigure are trademarks of ©The LEGO® Group. All other trademarks and copyrights are the property of their respective owners. All rights reserved.
This page isn’t affiliated, authorized, or endorsed by The LEGO Group.