Show Posts
Pages: 1 2 [3] 4 5 ... 8
31  Using Arduino / Project Guidance / Re: DmxSimple > MAX485 > DMX LIght Not Working on: March 20, 2013, 12:57:25 am
Exactly correct! I forgot that the Serial.print was using that port also. Changed DMX output pins and works great now!
32  Using Arduino / Project Guidance / DmxSimple > MAX485 > DMX LIght Not Working on: March 19, 2013, 06:39:57 am
Have an Arduino Uno with DmxSimple library, digital pin 1 to a Max485 to a DMX light.

MAX485 is on a protoboard about 2" from the Uno and is powered from the Uno's 5V pin.
MAX485 power pin has 10uF and 0.1uF caps to Gnd.
Twisted pair (~2") from digital pin 1 to MAX input pin 4.
Twisted pair (~2") from MAX output pins 5, 6, 7 to DMX XLR connector. Followed the XLR pin numbering per the circuit below.
25' DMX cable from connector to DMX light.
DMX light has terminator installed.
DMX light address set to "1" and configured tor 3CHAN operation.

Used the following circuit: 

http://playground.arduino.cc//DMX/DMXShield

and this code:

Code:
void setup() {
    /* Do init stuff here */
  Serial.begin(9600); // Initialize the connection to Serial Monitor
//  randomSeed(analogRead(0)); // Pick a random seed
 
  // DMX output on digital pin 1 (Tx).
//  pinMode(1, OUTPUT);
  DmxSimple.usePin(1);
  DmxSimple.maxChannel(3); // Max channel for a single PiX Mini is 18
}

void loop() {
   
 int mode;   
 
//     DmxSimple.write(1, 255);    // red
//       Serial.println("Setting color to RED" );
//     delay(100);
     DmxSimple.write(2, 255);  // green
       Serial.println("Setting color to GREEN" );
     delay(100);
//     DmxSimple.write(3, 255);   // blue
//       Serial.println("Setting color to BLUE" );
//     delay(100);
 
} // End Loop

Commented "pin mode" since didn't seem to matter and I'm guessing the DMX library sets the pin mode.

I get nothing from the light other than a few flickers and solid red only when I first plug in the Uno to USB. I do see the serial print messages in Serial Monitor. Commented red and blue hoping to just get green. On a scope the signals look as I'd expect. The "signal" pin is 0-5V pulses and the "signal inv" is 5-0V. Saw some other DMX circuits with terminating resistors so added a 120 Ohm across pins 6 and 7 but no change.

A few things I plan to try...
     Set all 512 channels so I can better see the waveforms on the scope.
     Add a separate 5V regulator instead of using Uno 5V.
     Switch the wiring polarity of  "signal" and "signal inv" (The light's troubleshooting section suggests this.)

I know the lights respond to DMX signals because I slaved one to the other and it output the same pattern as the master. Even if signal quality from the MAX485 is not ideal should I at least get something from the light?
33  Using Arduino / Programming Questions / Re: DmxSimple.h Not Found on: March 16, 2013, 12:27:05 pm
Fixed it...  nested folders!

http://arduino.cc/en/Guide/Libraries explains it nicely.

This works...
"My Documents\Arduino\libraries\DmxSimple"

This does not work...
"My Documents\Arduino\libraries\DmxSimple\DmxSimple"

Tinkerit's .zip DMX library file comes as "DmxSimple\DmxSimple" which was the source of the confusion.
34  Using Arduino / Programming Questions / Re: DmxSimple.h Not Found on: March 16, 2013, 11:22:17 am
> In the folder where you store your sketches, there is a libraries folder, where user-downloaded libraries go.

There isn't a "libraries" folder, so I create one. Close my sketch and open it again, "DmxSimple.h: No such file or directory"

Does "...the folder where you store your sketches" need to be a particular location relative to the installed Arduino folder?

I create a folder "libraries" in the folder where all my sketches are and copy the "DmxSimple" library folder there... "DmxSimple.h: No such file or directory"
I create a folder "libraries" in the folder where individual sketch is and copy the "DmxSimple" library folder there... "DmxSimple.h: No such file or directory"

35  Using Arduino / Programming Questions / DmxSimple.h Not Found on: March 16, 2013, 10:43:13 am
I want to use the DmxSimple library for my project.
The install instructions from the Tinkerit site say...

"Download the archive. Extract to (arduino install)/hardware/libraries/DmxSimple"

I'd expect the library to be in "(arduino install)/libraries/DmxSimple" and not the "hardware" folder so extracted there
Added "#include <DmxSimple.h>" to the top of my sketch, but when I "verify" the code I get...
"DmxSimple.h: No such file or directory"

So, as per the instructions, I create "(arduino install)/hardware/libraries/DmxSimple" but still get...
"DmxSimple.h: No such file or directory"

Where have I gone wrong?
36  Using Arduino / Project Guidance / Re: PWM Noisey in Mic. Amp Circuit on: March 12, 2013, 06:36:28 am
No need for artifacts pictures any more... the artifacts are GONE.

Took a shotgun approach...
    Moved Arduino ground to right at the power input of the circuit.
    Added a 0.1uF ceramic cap across the 100uF cap at the LM317 9V regulator output.
    Added a 56 Ohm resistor in series with Arduino Vin.

I plan to remove these one at a time to see which had greatest effect. Would like to remove the resistor since that'll change Arduino input voltage as its load changes and it draws more current. THe inline resistor does make a nice 28Hz lowpass with the 100uF cap, helping to squash the 500Hz and 1000Hz PWM artifacts.
37  Using Arduino / Project Guidance / Re: PWM Noisey in Mic. Amp Circuit on: March 11, 2013, 11:32:54 am
No schematic at the moment. The inline resistor would be in the line from 9v regulator to Uno to form an RC filter. Microphone amp (gain of 500 over audio range) and PWM controlling LED brightness based on audio input to microphone. A color organ of sorts but with a twist or two. I should also improve the circuit grounds.
38  Using Arduino / Project Guidance / Re: 5v Pin For MAX485 Current on: March 11, 2013, 11:22:20 am
Oops ... The 700+ was  power dissipation not current. Hadn't had my coffee yet!

Think the MAX485 should have its own supply or use Arduino's? I don't know how much noise it'll induce on 5v line when transmitting DMX (200kHZ).
39  Using Arduino / Project Guidance / 5v Pin For MAX485 Current on: March 11, 2013, 09:09:40 am
How much current can the onboard 5v regulator source? Planning to use a MAX485 for DMX control and   using the onboard 5v to supply it but concerned with current capability (max draw on the MAX is 700+ mA) and injecting noise from the MAX485 onto the main Arduino 5v bus.

Should I use a separate 5v regulator off the 9v supplying the Arduino to supply the MAX485?
40  Using Arduino / Project Guidance / PWM Noisey in Mic. Amp Circuit on: March 11, 2013, 07:03:29 am
I have a protoboard microphone amp powered by 12V with a 9V regulator feeding an Uno's Vin. WHen I enable PWM, the amp output shows significant 500Hz and 1000Hz PWM artifacts. I assume the PWM is feeding back into the circuit through the Vin line. There is a 100uF cap at the 9V regulator output feeding the Uno, but perhaps I need a small value ceramic there also? What about a small resistor in line with the Uno's Vin?
41  Using Arduino / Installation & Troubleshooting / Re: Gravitech Nano Crystal or Resonator on: March 09, 2013, 01:26:07 pm
The schematic does indeed show a crystal, a 2-terminal device. Resonators are typically 3-terminal.
42  Using Arduino / Installation & Troubleshooting / Re: Gravitech Nano Crystal or Resonator on: March 09, 2013, 01:17:02 pm
I'd like to use the Nano to control some DMX lights, so concerned if a resonator clock will be accurate enough for the DMX timing. Also have an Uno that does have a crystal so will try that first and then see if it still works with the Nano.
43  Using Arduino / Installation & Troubleshooting / Gravitech Nano Crystal or Resonator on: March 09, 2013, 11:54:54 am
Is the 16MHz timebase on a Gravitech Nano a Crystal or a Resonator? I've seen it described as having a "crystal resonator" too. What's actually on the board is a small, 3-terminal device that fits the description of a resonator. If so, any idea where to find a Nano with a crystal? All the ones I find for sale appear to have the resonator.
44  Using Arduino / Project Guidance / delay() and mills() with DMXsimple on: March 09, 2013, 10:15:24 am
Does anyone know if the Timer2 used by DMXsimple will conflict with the delay() and millis() commands? In one place I read these commands use Timer2 and in another, Timer0.
45  Using Arduino / Project Guidance / Re: Gravitech Nano Clock (Resonator?) Accurate for DMX on: March 02, 2013, 11:23:09 am
So appears there's hope with the Gravitech! 115200 baud is in the same signal rate range as DMX (8-44usec.)
Pages: 1 2 [3] 4 5 ... 8