Skip to content

How to Install Raspberry Pi OS & Node-RED on KinCony Pi5

How to Install Raspberry Pi OS and Run Node-RED on KinCony Pi5 Series

Applies to: Pi5R8, Pi5M8, Pi5R16, Pi5M16, Pi5R32, Pi5M32. This guide walks you through installing Raspberry Pi OS to an SD card or SSD, enabling the required interfaces, and importing the FeedCurrent Node-RED flow for testing all onboard I/O.

1. Prerequisites

Hardware and software you'll need

  • Raspberry Pi CM5 installed on a KinCony Pi5 series carrier board
  • A microSD card (16 GB or larger) or an SSD for OS installation
  • A computer with a microSD card reader (or USB-to-SSD adapter)
  • Raspberry Pi Imager installed on your computer (Download here)
2. Install Raspberry Pi OS

Flash the OS to your storage media

  1. Insert the microSD card or connect the SSD to your computer.
  2. Open Raspberry Pi Imager.
  3. Click Choose Device and select Raspberry Pi 5 / CM5.
  4. Click Choose OS and select Raspberry Pi OS (64-bit) — Bookworm or later.
  5. Click Choose Storage and select your microSD card or SSD.
  6. Click Next, then Edit Settings to preconfigure (Hostname, SSH, username/password, Wi-Fi).
  7. Click Save, then Write to flash the OS.
  8. After flashing, safely eject the card/SSD and insert it into the Pi5 board.
Preconfiguring SSH and Wi-Fi in Imager is highly recommended for headless setup.
3. Enable I2C and Serial Port

Configure the basic interfaces

  1. Power on the Pi5 board and log in (via SSH or local terminal).
  2. Run the Raspberry Pi configuration tool:
    sudo raspi-config
  3. Navigate to Interface Options:
    • Enable I2C
    • Enable Serial Port
      • When asked "Would you like a login shell to be accessible over serial?" → select No
      • When asked "Would you like the serial port hardware to be enabled?" → select Yes
  4. Exit raspi-config and reboot:
    sudo reboot
4. Enable Additional UART Ports for RS485

Configure RS485 on /dev/ttyAMA2

By default, only /dev/ttyAMA0 (RS232) is enabled. To use RS485 on /dev/ttyAMA2, you must enable UART2 and UART3 overlays.

  1. Open the boot configuration file:
    sudo nano /boot/firmware/config.txt
  2. Add the following lines at the end of the file:
    dtoverlay=uart2
    dtoverlay=uart3
  3. Save and exit (Ctrl+X, then Y, then Enter).
  4. Reboot:
    sudo reboot

After reboot, the serial port mapping will be:

Serial Port Device File Physical Pins (Board) BCM GPIO
UART2 /dev/ttyAMA1 Pin 27 (TXD) / 28 (RXD) GPIO 0 / 1
UART3 /dev/ttyAMA2 Pin 13 (TXD) / 14 (RXD) GPIO 4 / 5
UART4 /dev/ttyAMA3 Pin 7 (TXD) / 21 (RXD) GPIO 8 / 9
UART5 /dev/ttyAMA4 Pin 29 (TXD) / 30 (RXD) GPIO 12 / 13
⚠️ For RS485, use /dev/ttyAMA2 (UART3).
5. Install Node-RED

Set up the visual automation platform

If Node-RED is not already installed, run the official install script:

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

Start Node-RED and enable it to run at boot:

sudo systemctl enable nodered.service
sudo systemctl start nodered.service

Node-RED will be available at: http://<your-pi-ip>:1880

6. Import the FeedCurrent Node-RED Flow

Load the pre-built testing flow

  1. Download the Node-RED flow for your specific Pi5 model from the FeedCurrent GitHub repository:
  2. Open Node-RED in your browser.
  3. Click the hamburger menu (top-right) → Import.
  4. Choose either Clipboard (paste JSON) or File (upload flows.json).
  5. Click Import, then Deploy.
💡 When you first import the flow, Node-RED will prompt you to install missing nodes. Click OK to install them automatically.
7. Verify the Setup

Check that everything is working

After deploying the flow, your Node-RED interface should look like this:

Node-RED Flow for KinCony Pi5 Series
  • The OLED should display basic status information.
  • Use the ONx / OFFx inject nodes to toggle relays or MOSFET outputs.
  • Use the read Analog Input inject node to read AI1–AI4 values.
  • Use the RS232 test and RS485 test inject nodes to verify serial communication.
  • Check the Node-RED debug sidebar for sensor data and input changes.
8. Additional Resources

Links to GitHub repositories and documentation

This tutorial is maintained by FeedCurrent. For technical support, please contact us via our website.

Your cart

Compare Products

Compare
Clear All
Search our site
Need some inspiration?

Reset your password

Log in

Create account

Ask a Question