Comments (4)
ohh man, I'm such an amateur :)
Turns out the A or B line was shorted to the DMX ground....
Soldered my own PCB to hold all the modules I need but must have mist this one solder bridge.
Well great work on the library works like a charm.
from esp_dmx.
Thanks for the question and the excellent troubleshooting so far. It's funny that you ask about the Elecrow RS485 module. I just got a similar question about it on Reddit. Though perhaps you are the same person that asked me about it on Reddit?
I don't own one of these Elecrow RS485 modules but I just bought one. It should be here in 1 to 2 weeks. There doesn't appear to be a circuit diagram for the Elecrow module, so that makes troubleshooting difficult. But what I can see is that the Elecrow module does not have an RTS pin. The RTS pin is used to control the RS485 module to tell it when to act as a transmitter or a receiver. Because the Elecrow module doesn't have an RTS pin, I am assuming that it automatically switches between transmit mode and receive mode. Typically, this can be done by switching to transmit mode when the RS485 module detects a 1 on the TX pin. When the RS485 module detects a 0 on the TX pin, it switches to receive mode.
If this is indeed what is happening, this could be a problem. At the start of every DMX packet, the DMX transmitter needs to transmit a DMX break. The DMX break is essentially a long 0. I think that because the Elecrow module only transmits when the TX pin is high, it is unable to transmit the DMX break.
I could be totally incorrect here. It is difficult to say because there is no circuit diagram for me to verify. We may just have to wait a few weeks until my Elecrow module arrives and I am able to do some testing.
In the meantime, here are a few more things that you can try:
- Swap the TX and RX pins and see what happens. It could be that they are just reversed.
- If you have an additional ESP32, you can upload the DMX write example to one ESP32 and the DMX read example to the other. Then, instead of plugging your ESP32s into an RS485 modules, plug the TX pin of the transmit ESP32 into the RX of the receive ESP32. If you are able to receive DMX this way, then we know it isn't the library or the ESP32 that are the problem.
from esp_dmx.
Hi,
No I'm not the same person as on reddit.
Sorry forgot to add the schematic I found of this module: https://webshop.domoticx.nl/image/catalog/modbus/RS485%20naar%20RX-TX%20TTL%203.3V%205V%20omvormer%20module%20SP3485/RS485%20naar%20RX-TX%20TTL%203.3V%205V%20omvormer%20module%20SP3485%20schema.png
The module is set to be in read mode while not transmitting data.
Also forgot to say that I've got two of these working one as a transmitter on the ESP32 DEVKIT and one as a reciever on an ESP-C3 mini. Which works flawlessly, it sends and recieves data without any problem.
I'll try hooking it up to an oscilloscope tomorrow.
from esp_dmx.
I'm glad you got it figured out! Hardware is difficult. I'm currently waiting on v4 of my PCB to come in because I messed up the previous three so far. D'oh.
Let me know if you have any other questions or concerns!
from esp_dmx.
Related Issues (20)
- dmx timing HOT 1
- dmx_receive blocking HOT 6
- Sending broken - single frame only HOT 4
- [question] Not Receiving data, wrong pinout, or incompatible module? HOT 10
- DMX512 HOT 9
- Single Core Issues? HOT 2
- Cant receive DMX : timer is not running (esp-idf v5.0.2) HOT 4
- Adding WiFi and ArtNet capability HOT 12
- Wont Work HOT 1
- compile example DMXwrite.ino failed HOT 2
- Compiling Error missing Files HOT 2
- agent.h - error: C99 designator 'software_version_label' outside aggregate initializer HOT 2
- Can't get the Read Example to work on ESP32 Arduino in PlatformIO HOT 3
- ESP_DMX on ESP32-S2 HOT 6
- esp_dmx on ESP-IDF 5.1 not work? HOT 3
- Threadsafe-ness of this library HOT 2
- General Question About Wireless Audio Transmitting HOT 3
- Commit f148f7b (fix idf v5 timer error) breaks dmx_receive and rdm HOT 8
- Calling dmx_receive with wait_ticks=0 does never return data HOT 4
- ESP32-C6 incompatibility HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp_dmx.