If you want to use Node-RED on your Raspberry Pi there is also a Node-RED Tutorial.
We'd recommend you use a Raspberry Pi 3 - it's faster, and has Ethernet, WiFi and Bluetooth LE on-board. If you use a different Raspberry Pi you'll have to find a compatible Bluetooth LE adaptor and plug it in.
If you've got a Raspberry Pi with an up to date OS and a command primpt (either via network, or with a monitor & keyboard) then you can skip this bit.
RASPBIAN JESSIE LITE
image from the Raspberry Pi websiteboot
drive that appears. Add
an empty file called ssh
with no extension (as of Nov 2016 this is needed to enable SSH).raspberrypi
with user pi
ssh pi@rasbperrypi
connected devices
it might show raspberrypi
and you can use the IP address from that.raspberry
as the password.pi@raspberrypi
sudo raspi-config
to set up your Pi in more detail (if you want to).curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
Then type sudo apt-get install nodejs bluetooth bluez libbluetooth-dev libudev-dev
and press Y
and Enter
when asked. This will install node.js as well as some
system libraries needed for bluetooth.
Now install the Web IDE via NPM:
sudo npm install -g espruino-web-ide
This will probably give some errors, but should soldier on and complete successfully.
sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
On the Pi, all you need to do is run espruino-server
Now, connect to the Pi on port 8080
by typing http://raspberrypi.local:8080
into your web browser's address bar.
If you click the orange connect icon in the top right, you should now see a list of devices that you can connect to. Click one of them and you'll be able to program your Pi!
Once you've installed what's needed for the IDE server, you can also install command-line tools.
Just type:
sudo npm install -g espruino
You can now just type espruino
to access your Espruino/Puck.js devices.
Type espruino --help
for help, or see the GitHub README page
This page is auto-generated from GitHub. If you see any mistakes or have suggestions, please let us know.