Free Shipping within Canada and to the United States for orders over $200.00

VPE-1701 Raspberry Pi Wireless Hat I/O Module Top View

Raspberry Pi Wireless Hat I/O Module

Regular price $14.95 USD Sale

This Raspberry Pi wireless hat I/O Module accepts any wireless module using the 20 pin format. We use Digi XBEE's in our products, specifically the S2B, S2C, and the 900 MHz S3B series of modules.

LEDs show activity of the ASSOCIATE, RSSI, TX and RX lines.

NOTE: Radio Modules are NOT included in the price

Schematic

Here is an example for a Modbus RTU wire replacement using the Zigbee Hat, the Zigbee to RS485 coberter and the VP-RDU-DIN LCD display.

 

Here is the sample code for the above application. The example uses the minimalmodbus library and the modbusd command.

 

#!/usr/bin/env python3
import RPi.GPIO as GPIO
import minimalmodbus
import time

import RPi.GPIO as GPI
import smbus

GPIO.setmode(GPIO.BCM)  # Use RPi GPIO numbers
GPIO.setwarnings(False) # disable warnings
GPIO.setup(17, GPIO.OUT)
GPIO.output(17, 0)

GPIO.setwarnings(False) # disable warnings

GPIO.setmode(GPIO.BCM)  # Use RPi GPIO numbers
GPIO.setwarnings(False) # disable warnings

display = minimalmodbus.Instrument('/tmp/modbus', 100)  # port name, slave address (in decimal)

display.serial.baudrate = 9600 
display.serial.timeout = 0.2

Counter = 0

while True:
    try:                            
        display.write_string(0, "      Wireless      ", 10)
        display.write_string(10,"     Modbus RTU     ", 10)
        display.write_string(20,"  RPi Zigbee Hat -> ", 10)
        display.write_string(30,"  Zigbee to RS485   ", 10)

    except Exception as e:
        print(e)
        
    time.sleep(0.50)


SaveSave