DmxSimple, fadeup not working.

Hello All,
I am working with a nano and a rs-485 module.
I have 5v and ground from the nano to the 5v and ground of the rs-485.
I have 5v at DE and RE
Nano pin 3 to DI, A to XLR 3 and B to XLR 2.

The output from the rs-485 is =2.05v to -2.13v @ 20 khz

i do not get any output from my 4 channel par

i hooked my scope leads to the A and B output if the rs-485.

If i probe the xlr at my store bought DMX Contoller I get +3.34v and -3.50v @ 10 khz

Is my frequency too high? are my voltages too low? did I fry my rs-485 with 5v?

any advice would be appreciated.
Thank you.

What is pin 1 of the XLR connected to? (Should be ground)
Nano pin 3 to DI does not sound correct, can you draw a picture of how you have it wired up and a link to the Nano your using (I have seen a couple of different Arduinos called Nano.
You will probably not be able to use the UART for DMX and the Serial monitor at the same time. That's why I like using the Leonardo Pro Micro as it has native USB and a UART.

Have a look at this as an example.

Here is my schematic. Yes, I wired in the ground at pin 1. The sketch doesn't use the uart I don't think.
Just the basic sample that comes with the library.

Sketch Below:

/* Welcome to DmxSimple. This library allows you to control DMX stage and
** architectural lighting and visual effects easily from Arduino. DmxSimple
** is compatible with the Tinker.it! DMX shield and all known DIY Arduino
** DMX control circuits.
**
** DmxSimple is available from: Google Code Archive - Long-term storage for Google Code Project Hosting.
** Help and support: http://groups.google.com/group/dmxsimple */

/* To use DmxSimple, you will need the following line. Arduino will
** auto-insert it if you select Sketch > Import Library > DmxSimple. */

#include <DmxSimple.h>

void setup() {
/* The most common pin for DMX output is pin 3, which DmxSimple
** uses by default. If you need to change that, do it here. */
DmxSimple.usePin(3);

/* DMX devices typically need to receive a complete set of channels
** even if you only need to adjust the first channel. You can
** easily change the number of channels sent here. If you don't
** do this, DmxSimple will set the maximum channel number to the
** highest channel you DmxSimple.write() to. */
DmxSimple.maxChannel(4);
}

void loop() {
int brightness;
/* Simple loop to ramp up brightness */
for (brightness = 0; brightness <= 255; brightness++) {

/* Update DMX channel 1 to new brightness */
DmxSimple.write(1, brightness);

/* Small delay to slow down the ramping */
delay(10);
}

}

That DMX library is probably no longer maintained. Last update/release was in 2015 and a couple of issues point to it not working with latter IDE versions.
What is the ultimate aim of your project? If it's to control DMX light fixtures from an Arduino sketch that is not using Serial then try a library that uses a hardware UART. If you also need Serial to work then try the Pro Micro approach as I did.

If you want to Send DMX, use ConceptineticsIt uses the hwSerial (or 1 of them if there are multiple available. It is very reliable. Hooking up a MX485 (or equivalent) of the top of my head.

  • Pin 1 GND (it is not used)
  • Pin 2 5v+ (i use a 1k resistor in between but not required)
  • pin 3 idem
  • pin 4 UART TX
  • pin 5 GND (XLR pin 1)
  • pin 6 A (XLR pin 3)
  • pin 7 B (XLR Pin 2)
  • pin 8 Vcc
    I tried DmxSimple once but never got it to work.

Riva:
You will probably not be able to use the UART for DMX and the Serial monitor at the same time. That's why I like using the Leonardo Pro Micro as it has native USB and a UART.

Have a look at this as an example.

I had a look at your example and i am actually quite interested in creating something with it. I've never found a good low-cost DMX controlling program, all require you to buy some dongle for at least $100,- the only program that is actually free is FreeStyler, but that is so full of bugs and the free buildable dongle is not reliable. I always thought Freestyler's main fault was that it is free, but not open-source. anyway i have to get myself a pro-micro and do a pass-through to DMX with that (although on a Mega i can be done as well, but that is so big ! )

Hello All,
Thanks for the advice. I will try a different library.

My ultimate goal is to control a manual fog machine for my son who has a manually operated one. I just like tinkering with things as well.

I never noticed that library was not maintained. I just watched a youtuber and followed his example.

Thank you again for all your help!

fiveten:
My ultimate goal is to control a manual fog machine for my son who has a manually operated one. I just like tinkering with things as well.

Control the fog machine from a lighting desk?

Does the fog machine have a DMX port as you say it's a manual control? If it has no DMX port then you just need the Arduino DMX thing to receive DMX and control an on/off switch. A nice little tinkering project.

for receiving DMX i actually use this method, fully outdated and running on IDE rev 0023, but fully working as well (only 1 minor bug..) whereas the conceptinetics was giving me some strange results in reception at times.