Giter Club home page Giter Club logo

cm4-maker-board-max6675-node-red's Introduction

CM4-Maker-Board-MAX6675-Node-RED

If you want to test displaying sensor data on Node-RED using CM4 Maker Board, you are in the right place! Here you will find all the information you need to set up your hardware and software.

You can visit Node-RED on CM4 Maker Board: Displaying Thermocouple Sensor Data to learn more about it.

Requirements

To get started, you will need the following hardware and software:

Hardware:

Software:
Raspberry Pi OS with installed Python. If you want to know how to install the Raspberry Pi OS on the CM4 Maker Board, you can visit this tutorial on Boot up Raspberry Pi CM4 on CM4 Maker Board.

Installation

To begin, connect the MAX6675 thermocouples to the Grove port on the CM4 Maker Board. In this example, we will use two thermocouples.

Install Node-RED on Raspberry Pi CM4.

bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

Download the code from Github to your home directory.

git clone https://github.com/CytronTechnologies/CM4-Maker-Board-MAX6675-Node-RED

This repository contains two examples of sending sensor data to Node-RED through TCP/IP and MQTT connections.

Local TCP/IP Connection to Node-RED

  1. Import the JSON file 'node_red_max6675_TCP.json' into your Node-RED.
  2. Click the "Deploy" button on the top right of the Node-RED interface.
  3. Open the Python code 'node_red_max6675_TCP.py' and run it.

Making Your Node-Red Dashboard Online with MQTT

  1. Import the JSON file 'node_red_max6675_TCP.json' into your Node-RED.
  2. Add the Cluster URL, Port number, and Access Credentials (Username and Password) of your MQTT Broker.
  3. Click the "Deploy" button on the top right of the Node-RED interface.
  4. Open the Python code 'node_red_max6675_MQTT.py' and edit the the USERNAME, PASSWORD, CLUSTER_URL, and PORT.
# Your HiveMQ Access Credentials Username
USERNAME = "Username"
# Your HiveMQ Access Credentials Password
PASSWORD = "Password"
# The Cluster URL
CLUSTER_URL = "HiveMq_Cluster_URL"
# The Cluster Connection Port
PORT = 8883

Run your code, and you can access the Node-RED dashboard.

Resources

For more information on the CM4 Maker Board, check out the resources here:

Support

You can visit Node-RED on CM4 Maker Board: Displaying Thermocouple Sensor Data to learn more about it.

If you need further assistance, we welcome you to our technical forum or you can contact us through email [email protected] where our team will be happy to assist you.

Let's start building with CM4 Maker Board!

cm4-maker-board-max6675-node-red's People

Contributors

salamcytron avatar

Watchers

sclim avatar Wai Weng avatar Ober Choo avatar Idris Zainal Abidin avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.