Skip to content

A Node-RED node capable of establishing connection with Sphero droid and sending commands to it

License

Notifications You must be signed in to change notification settings

Glogo/node-red-contrib-sphero

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-red-contrib-sphero

A Node-RED node capable of establishing connection with Sphero droid and sending commands to it

Prerequisites

This Node connects using bluetooth to your Sphero droid. Therefore it is required to install some dependencies in your system prior to installing this Node. Refer to sphero and noble for more information

Install

Run the following command in your Node-RED user directory - typically ~/.node-red

npm i node-red-contrib-sphero

Or install it globally

sudo npm i -g node-red-contrib-sphero

Example

Simple flow with inject nodes to make droid change color randomly, move, turn around and stop

Note: when adding or changing droid connection (UUID) it is required to restart Node-RED

[{"id":"3c6f9067.5aed3","type":"sphero-connection","z":"1bc8013.5b95eff","name":"BB8","uuid":"aa:97:fb:ef:72:de","ollie":false,"disabled":false},{"id":"a477ec6.1f4481","type":"sphero","z":"1bc8013.5b95eff","connection":"3c6f9067.5aed3","action":"random-color","color":"blue","x":455.5,"y":142,"wires":[[]]}]

About

A Node-RED node capable of establishing connection with Sphero droid and sending commands to it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published