Skip to content

Commit

Permalink
Firmwares: move to new directory; update file names
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Mar 10, 2016
1 parent 36d412f commit a1c072d
Show file tree
Hide file tree
Showing 10 changed files with 110 additions and 41 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -192,7 +192,7 @@ To interactively navigate the examples, visit the [Johnny-Five examples](http://
- [Expander - 74HC595](https://github.com/rwaldron/johnny-five/blob/master/docs/expander-74HC595.md)
- [Expander - MUXSHIELD2, Digital Input and Output](https://github.com/rwaldron/johnny-five/blob/master/docs/expander-MUXSHIELD2-mixed.md)
- [Expander - MUXSHIELD2, Analog Sensors](https://github.com/rwaldron/johnny-five/blob/master/docs/expander-MUXSHIELD2-analog-read.md)
- [Expander - CD74HC4067, 16 Channel Analog Input Breakout](https://github.com/rwaldron/johnny-five/blob/master/docs/expander-CD74HC4067.md)
- [Expander - CD74HC4067, 16 Channel Analog Input Breakout](https://github.com/rwaldron/johnny-five/blob/master/docs/expander-CD74HC4067_NANO_BACKPACK.md)

### LED
- [LED](https://github.com/rwaldron/johnny-five/blob/master/docs/led.md)
Expand Down
File renamed without changes.
File renamed without changes
2 changes: 1 addition & 1 deletion docs/expander-CD74HC4067.md
Expand Up @@ -89,7 +89,7 @@ board.on("ready", function() {

## Learn More

- [I2C Backback Firmare](https://github.com/rwaldron/johnny-five/blob/master/eg/cd74hc4067.ino)
- [I2C Backback Firmare](https://github.com/rwaldron/johnny-five/blob/master/firmwares/cd74hc4067_i2c_backpack.ino)

 

Expand Down
104 changes: 104 additions & 0 deletions docs/expander-CD74HC4067_NANO_BACKPACK.md
@@ -0,0 +1,104 @@
<!--remove-start-->

# Expander - CD74HC4067, 16 Channel Analog Input Breakout

<!--remove-end-->


Using a CD74HC4067 connected to an Arduino Nano Backpack. Displays value of potentiometers in console graph. (`npm install barcli`)





##### Using 14 potentiometers!


The CD74HC4067 can accomodate up to 16 inputs


![docs/breadboard/expander-CD74HC4067-14-pots.png](breadboard/expander-CD74HC4067-14-pots.png)<br>

Fritzing diagram: [docs/breadboard/expander-CD74HC4067-14-pots.fzz](breadboard/expander-CD74HC4067-14-pots.fzz)

&nbsp;




Run this example from the command line with:
```bash
node eg/expander-CD74HC4067_NANO_BACKPACK.js
```


```javascript
var Barcli = require("barcli");
var five = require("johnny-five");
var board = new five.Board({
repl: false,
debug: false,
});

board.on("ready", function() {

// Use an Expander instance to create
// a virtual Board.
var virtual = new five.Board.Virtual(
new five.Expander("CD74HC4067")
);

var inputs = ["A0", "A7", "A15"];

inputs.forEach(function(input) {

var bar = new Barcli({ label: input, range: [0, 1023] });

// Initialize a Sensor instance with
// the virtual board created above
var sensor = new five.Sensor({
pin: input,
board: virtual
});

// Display all changes in the terminal
// as a Barcli chart graph
sensor.on("change", function() {
bar.update(this.value);
});
});
});

```


## Illustrations / Photos


### Barcli output



![docs/images/CD74HC4067-3-pot-barcli.png](images/CD74HC4067-3-pot-barcli.png)







## Learn More

- [I2C Backback Firmare](https://github.com/rwaldron/johnny-five/blob/master/firmwares/cd74hc4067_i2c_backpack.ino)

&nbsp;

<!--remove-start-->

## License
Copyright (c) 2012, 2013, 2014 Rick Waldron <waldron.rick@gmail.com>
Licensed under the MIT license.
Copyright (c) 2016 The Johnny-Five Contributors
Licensed under the MIT license.

<!--remove-end-->
2 changes: 1 addition & 1 deletion docs/keypad-3X4_I2C_NANO_BACKPACK.md
Expand Up @@ -99,7 +99,7 @@ board.on("ready", function() {

## Learn More

- [I2C Backback Firmare](https://github.com/rwaldron/johnny-five/blob/master/eg/keypad_3x4_i2c_nano_backpack.ino)
- [I2C Backback Firmare](https://github.com/rwaldron/johnny-five/blob/master/firmwares/keypad_3x4_i2c_nano_backpack.ino)

&nbsp;

Expand Down
35 changes: 0 additions & 35 deletions eg/expander-CD74HC4067.js

This file was deleted.

File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions tpl/programs.json
Expand Up @@ -99,7 +99,7 @@
"description": "Using a MUXSHIELD2 Expander as a Virtual Board. Displays value of potentiometers in console graph. (`npm install barcli`)"
},
{
"file": "expander-CD74HC4067.js",
"file": "expander-CD74HC4067_NANO_BACKPACK.js",
"title": "Expander - CD74HC4067, 16 Channel Analog Input Breakout",
"description": "Using a CD74HC4067 connected to an Arduino Nano Backpack. Displays value of potentiometers in console graph. (`npm install barcli`)",
"breadboards": [
Expand All @@ -109,7 +109,7 @@
{"file": "CD74HC4067-3-pot-barcli.png", "title": "Barcli output"}
],
"externals": [
{ "title": "I2C Backback Firmare", "href": "https://github.com/rwaldron/johnny-five/blob/master/eg/cd74hc4067.ino"}
{ "title": "I2C Backback Firmare", "href": "https://github.com/rwaldron/johnny-five/blob/master/firmwares/cd74hc4067_i2c_backpack.ino"}
]

}
Expand Down Expand Up @@ -609,7 +609,7 @@
{"file": "keypad-i2c-backpack-2.jpg", "title": "Nano soldering assembly 2"}
],
"externals": [
{ "title": "I2C Backback Firmare", "href": "https://github.com/rwaldron/johnny-five/blob/master/eg/keypad_3x4_i2c_nano_backpack.ino"}
{ "title": "I2C Backback Firmare", "href": "https://github.com/rwaldron/johnny-five/blob/master/firmwares/keypad_3x4_i2c_nano_backpack.ino"}
]
}
]
Expand Down

0 comments on commit a1c072d

Please sign in to comment.