https://github.com/coderbyheart/iot-proto-js
Source code examples used in my presention on Prototyping products for the Internet of Things using JavaScript
https://github.com/coderbyheart/iot-proto-js
Last synced: 2 months ago
JSON representation
Source code examples used in my presention on Prototyping products for the Internet of Things using JavaScript
- Host: GitHub
- URL: https://github.com/coderbyheart/iot-proto-js
- Owner: coderbyheart
- License: mit
- Created: 2018-05-13T16:27:44.000Z (over 7 years ago)
- Default Branch: saga
- Last Pushed: 2019-03-12T16:48:14.000Z (almost 7 years ago)
- Last Synced: 2025-10-09T01:09:19.084Z (2 months ago)
- Language: JavaScript
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Prototyping products for the Internet of Things using JavaScript
Source code examples used in my presention on Prototyping products for the Internet of Things using JavaScript
## NFC Card Reader Example
This example uses an the [Adafruit PN532 NFC/RFID controller breakout board](https://www.adafruit.com/product/364).
Connect `SCL` on the reader to the `B6` pin of the Espruino.
Connect `SDA` on the reader to the `B7` pin of the Espruino.
Connect `5V` on the reader to the `5V` pin of the Espruino (left of the `3.3V`).
Connect `GND` next to the `SCL` pin on the reader to the `GND` pin of the Espruino.

## Display Example
The example uses three [Adafruit Mini 8x8 LED Matrix w/I2C Backpack](https://www.adafruit.com/product/870).
They are hooked in parallel:

The second display has the `A0` jumper soldered (so it has the address `0x71`),
The third display has the `A1` jumper soldered (so it has the address `0x72`).
I use a free MQTT broker from [cloudmqtt.com](https://www.cloudmqtt.com/), copy the file [`./display/cloudmqtt.com/.env.dist`](./display/cloudmqtt.com/.env.dist) to `./display/cloudmqtt.com/.env` and enter your details.
Now you can run `node client.js` in the `./display/cloudmqtt.com` folder.