Skip to content

edanahy/WebSPIKE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebSPIKE

Interacting with the LEGO Education SPIKE hardware via the web

To see this in action, visit: https://edanahy.github.io/WebSPIKE/

Setup

To use the SPIKE™ Prime hardware with these examples, you must have an up-to-date Chrome browser: https://www.google.com/chrome/

Firmware

Examples support both SPIKE 2 and SPIKE 3 firmware. See site homepage for more information.

JavaScript Libraries

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.

Examples

Web IDE

Description: A browser-based Python IDE for programming the SPIKE Prime.

GamePad

Description: Use a GamePad to control the SPIKE Prime.

Vampire Eyes

Description: A halloween-themed example of polling a SPIKE input and moving in-browser images.

Balloon Pop

Description: Triggering images and sound when a SPIKE Force Sensor is pushed.

Dance Party

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)

Serial Trigger

Description: Monitor SPIKE Prime's Serial Stream and trigger action (e.g. audio file) in browser.

Pong

Description: Simple in-browser Pong Game controlled by motors.

Star Wars

Description: Control Star Wars characters using Motor and Force Sensor. Requires two SPIKE Prime Hubs.

Reaction Game

Description: A two-player "reaction game" to see who can match images the fastest.

Hub-2-Hub

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)

Disclaimer

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.

About

Interacting with the LEGO Education SPIKE hardware via the web

Resources

Stars

5 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors