@@ -22,8 +22,10 @@ run the pixels. These boards can be had for about $2 with a bit of searching.
22
22
23
23
## Prerequisites
24
24
25
- It is assumed you have an [ Arduino] ( http://arduino.cc/en/Guide/HomePage ) or
26
- similar board.
25
+ - Arduino or similar board
26
+ - Adafruit NeoPixels or standard WS2812b LEDs
27
+ - NodeJS
28
+ - Johnny-Five
27
29
28
30
For the purposes of this guide I will assume you're using Adafruit NeoPixels and I'm going
29
31
to assume you've read the [ NeoPixel Uber Guide] ( http://learn.adafruit.com/adafruit-neopixel-uberguide/overview )
@@ -33,7 +35,9 @@ Standard WS2812b LEDs from any other supplier will work just as well.
33
35
I'm going to assume you have NodeJS all ready to go too and you've gone through
34
36
the [ Johnny-Five getting started guide] ( http://johnny-five.io ) .
35
37
36
- ### Get the node-pixel code
38
+ ## Software Installation
39
+
40
+ ### 1. Install the node-pixel code
37
41
38
42
As per most NodeJS projects you can either clone the repo;
39
43
@@ -49,7 +53,7 @@ or just install from npm
49
53
npm install node-pixel
50
54
```
51
55
52
- ### Install firmware to your board
56
+ ### 2. Install firmware to your board
53
57
54
58
The first thing you'll need is Interchange to manage the firmware for your
55
59
target board. [ Find out more about what Interchange does here.] ( http://github.com/j5js/nodebots-interchange ) .
@@ -59,7 +63,7 @@ To install, run `npm install -g nodebots-interchange` from your project folder.
59
63
Now plug in your board and you can install the firmware to it. For the purposes
60
64
of this doc it's assumed you have an Arduino Nano.
61
65
62
- #### I2C Backpack
66
+ #### A. I2C Backpack
63
67
64
68
This is the preferred set up as it can run more pixels faster than a normal
65
69
arduino having to manage pixels AND firmata at the same time. To install:
@@ -68,7 +72,7 @@ arduino having to manage pixels AND firmata at the same time. To install:
68
72
interchange install git+https://github.com/ajfisher/node-pixel -a nano
69
73
```
70
74
71
- #### Node Pixel Firmata
75
+ #### B. Node Pixel Firmata
72
76
73
77
If you don't have a spare board to dedicate to your LEDs, you can run the
74
78
node-pixel firmware inside Firmata. This does limit how many pixels you can
@@ -80,7 +84,9 @@ interchange install git+https://github.com/ajfisher/node-pixel -a uno --firmata
80
84
81
85
If everything proceeds without error then you should be good to go.
82
86
83
- ### Hardware installation
87
+ ## Hardware Installation
88
+
89
+ ### Standard Installation
84
90
85
91
With the hardware off, attach your pixels to the arduino. Usually this involves
86
92
getting a 5V source, a ground and then attaching the data line to an arduino
@@ -90,7 +96,7 @@ _Wiring diagram_
90
96
91
97
![ Custom Firmata Diagram] ( breadboard/custom_firmata_bb.png )
92
98
93
- ## I2C Backpack Installation
99
+ ### I2C Backpack
94
100
95
101
This installation method installs a custom "Backpack" firmware onto an arduino
96
102
Nano or Pro Mini which is then connected to the board using I2C connections.
@@ -104,7 +110,7 @@ if you are used to using only Uno boards.
104
110
Compile, check for errors and then upload to your arduino. Assuming no errors
105
111
you should be ready to go.
106
112
107
- ### Hardware installation
113
+ #### Hardware installation
108
114
109
115
For the purposes of this ` Board ` will mean the board that is talking to NodeJS
110
116
and ` Backpack ` will mean the custom arduino used to provide I2C support.
0 commit comments