Skip to content

Virtual robot built with Electron, Three.js and Micro:bit

License

Notifications You must be signed in to change notification settings

akosblazsik/microbit-vrobot

Repository files navigation

microbit-vrobot

An example of how to build a virtual robot with Micro:bit, Three.js, serialport and Electron.

Clone and run for a quick way to see Electron, Serialport, Three.js in action.

The basic Electron application needs just these files:

  • package.json - Points to the app's main file and lists its details and dependencies.
  • main.js - Starts the app and creates a browser window to render HTML. This is the app's main process.
  • index.html - A web page to render. This is the app's renderer process.

The micro:bit files:

  • microbit-receiver.hex - The program to be transfered to the receiver micro:bit device.
  • microbit-remote-control.hex - The program to be transfered to the remote control micro:bit device.

To Use

To clone and run this repository you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:

# Clone this repository
git clone https://github.com/akosblazsik/microbit-vrobot.git
# Go into the repository
cd microbit-vrobot
# Install dependencies
npm install
# Make sure that usb/serial port is read/writable, for example on Linux: 
sudo chmod 666 /dev/ttyACM0
# Run the app
npm start

The micro:bit programs are also available as github repositories for easy import in MakeCode

Learn More

License Electron Example CC0 1.0 (Public Domain)

License Three.js Example and 3D Artwork MIT

About

Virtual robot built with Electron, Three.js and Micro:bit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published