I'm trying to build a specialized DMX controller for controlling lights.
The circuit looks something like this:
http://fritzing.org/projects/arduino-to-dmx-converter/
The main difference is that the power to the Arduino comes from the same 24V power that runs the light.
In order to do this, my first plan of attack was to use a 5V linear regulator to step down the power for the Arduino and the transceiver chip.
The Arduino's PWR light is not quite at full bright, but it seems good enough to run pre-programmed shows.
However, the next stage of the project has not been going so well.
The next thing I want to do is a add a potentiometer to control speed.
In the initial phase, I connected the pot to the Arduino, disconnected the Arduino from the light power supply, and connected the Arduino to the computer so I could look at the serial dump. Pot was showing values going from 0-1024 as it should.
Failure mode 1:
I disconnected the Arduino from the computer, hooked it up to the light power supply... and the pot stopped working.
Failure mode 2:
I tried hooking the Arduino to the light and the computer at the same time, which seems to make it so the pot works, BUT, the values of the pot only use up a fraction of the total pot. What I mean by that is it still goes from 0-1024, but you only need to rotate the pot to about 1/4th of its available rotation to get to 1024.
For failure mode 1, I thought maybe the Arduino just wasn't getting enough power.
So I tried buying a 9V linear regulator:
The Arduino was hooked up to the 9V regulator, while the transceiver was hooked up to the 5V regulator.
When I did that it just stopped working at all.
For failure mode 2... well, I'm guessing that the levels from the 24V power supply is confusing the Arduino about where exactly the bounds of the pot are. But I'm not sure. Either way, this isn't really an acceptable solution, as the whole point is to use the Arduino without being connected to a computer.
Does anyone have an idea of what the correct way to deal with this problem is? Or how I could go about diagnosing it?