Skip to content

cuanjooste/nodebots-sensors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nodebots-Sensors

A basic example using Node.js to create a connected system with multiple micro controllers communicating via MQTT. Utilizing Vue.js and Vue MQTT for the web application, Mosquitto as MQTT Broker and Johnny Five as hardware platform.

This prototype currently includes the following sensors

  • PH Sensor
  • Temp Sensor
  • Photo transistor
  • LEDs

Getting Started

ARDUINO

  • Node v6.11.0
  • STEPS
    • Install and get Node.js running
    • npm install
    • node arduino-control.js

TESSEL

  • Node v6.11.0
  • STEPS
    • install Tessel CLI
    • npm install
    • t2 run tessel-control.js

RASPBERRY PI ZERO

WEBAPP

  • Uses Vue-Cli Webpack Simple Template
  • Node v6.11.0
  • STEPS
    • npm install
    • npm run dev

Hardware Config Local module.exports = { port: 1883, host: "0.0.0.0", };

This example can communicate with multiple micro controllers at the same stage. The Webapp's settings of the hardware components are currently set in /js/hardwareControllers.js. Hardware components currently identified by a single id, and code is purposefully kept similar across all 3 controllers.

Prerequisites

  • Node.js, npm , Tessel CLI

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Display a variety of sensor data using Node, MQTT and Vue

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published