PiVirtualWire
Python VirtualWire module for Raspberry Pi and 433MHz RF modules
Install / Use
/learn @DzikuVx/PiVirtualWireREADME
piVirtualWire
Python VirtualWire module for Raspberry Pi and 433MHz RF modules
Dependencies
This code depends on pigpio library and can not be used without it.
Pigpio library is available at this site
Follow this guide to install it on your platform.
pigpio has to be running as a service. To start:
sudo /home/pi/PIGPIO/pigpiod
##Hardware This has been tested with:
- FS1000A transmitter and XY-MK-5V receiver.
- MX-FS-03V transmitter and MX-05V receiver
Communication over Virtual Wire was successful with Arduino Uno and Arduino Pro Micro.
Example usage
Clone or download project to directory named: piVirtualWire
Sending data
import piVirtualWire.piVirtualWire as piVirtualWire
import time
import pigpio
pi = pigpio.pi()
tx = piVirtualwire.tx(pi, 4, 1000) # Set pigpio instance, TX module GPIO pin and baud rate
msg = "42"
tx.put(msg)
tx.waitForReady()
tx.cancel()
pi.stop()
Receiving data
import piVirtualWire.piVirtualWire as piVirtualWire
import time
import pigpio
pi = pigpio.pi()
rx = piVirtualWire.rx(pi, 18, 1000) # Set pigpio instance, TX module GPIO pin and baud rate
while True:
while rx.ready():
print(rx.get())
time.sleep(0.5)
rx.cancel()
pi.stop()
Related Skills
node-connect
349.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.7kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.7kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
