Node-RED Controller
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Feature
- Klarheit
- Muss geklärt werden
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- python
- Bereich
- embedded-iot
Rechercherichtung
Das Issue enthält ein Python-Beispiel, das RPi.GPIO, serial und waveshare_2_CH_RS485_HAT.config mit /dev/ttySC0 verwendet; lies zunächst dieses Snippet und das verlinkte Waveshare-Wiki. Kläre die beabsichtigte Node-RED-Integration und die Anforderungen an DMX-Frames, bevor du einen Einstiegspunkt auswählst. Als erledigt gilt eine dokumentierte oder getestete Möglichkeit, DMX-Frames über das RS485 HAT aus Node-RED zu senden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Hi Matt.
I'm looking for way to control my DMX decoder using RS485 hat on Rpi. I'd love to control it in Node-RED environment.
Shield's manufacturer supplied a sample python code, sending a simple test string over RS485, and it works, but I'm wandering how can I modify this code, making it send DMX frames. Maybe you could give me some tips how to do it, because unfortunately, I don't know python.
Here is the code which I've simplified a little bit, and original one in the link below.
import serial
import os
import sys
import logging
logging.basicConfig(level=logging.INFO)
libdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(file))), 'lib')
if os.path.exists(libdir):
sys.path.append(libdir)
import RPi.GPIO as GPIO
import time
from waveshare_2_CH_RS485_HAT import config
TXDEN_1 = 27
TXDEN_2 = 22
ser = config.config(dev = "/dev/ttySC0")
data = ''
GPIO.output(TXDEN_1, GPIO.LOW)
ser.Uart_SendString('Waveshare 2-CH RS485 HAT\r\n')
time.sleep(0.005)#Waiting to send
GPIO.output(TXDEN_1, GPIO.HIGH)
https://www.waveshare.com/wiki/2-CH_RS485_HAT
Regards,
Paweł
- Vorherrschende Sprache
- Python
- Sterne
- 143
- Forks
- 23
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus MattIPv4/PyDMXControl
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
MattIPv4/PyDMXControl#60 · 2 Kommentare ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 30/100
MattIPv4/PyDMXControl#58 ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
MattIPv4/PyDMXControl#56 · 2 Kommentare ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
MattIPv4/PyDMXControl#55 · 3 Kommentare ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 18/100
MattIPv4/PyDMXControl#52 · 5 Kommentare ·
Alle Issues in MattIPv4/PyDMXControl
Ähnliche Issues
-
agent-ready documentation needs-triage
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 88/100
-
documentation
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
-
instance instance add
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
searxng/searx-instances#939 · 1 Kommentar ·
-
area-deployment area-integrations triage:bot-seen
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 86/100