budude wrote:woopsie - - sorry meant his DMX Dongle...
http://doityourselfchristmas.com/forums/showthread.php?t=7009
Ah thanks, I will incorporate the isolation in the next revision.
What are the pros and cons of true isolation with a DC-to-DC transformer and optos vs. just using a fault-protected RS-485 transceiver like the MAX3430 without any additional isolation?
I've posted an updated schematic, let me know what needs to be changed.
I would like to wrap the design up by the end of week 08/28/09. Please take a few moment to review the latest schematic.
The design looks good. Here are a few suggestions.
/mike
Main:
- You didn't spec the LCD, but I would double check that it will work with 3.3V logic levels, especially after the voltage divider (1K/10K). You may want to switch to a 3.3V LCD, but they need a negative voltage on the contrast pin.
- Does the processor need caps from XI and XO to GND? Most do, but I am not familiar with the prop.
- I would add one 100n cap to ground at each power pin on the processor
- A stylistic note - you shouldn't have any 4-way junctions on a schematic (like where the connections between the LCD, 10K, 1K, and processor connect); at most there should be three lines per dot.
Power:
- You need a bulk cap after the bridge. Without doing any calculations, it should be at least a few hundred uF. You need to be feeding smooth DC into VR1
Data I/O:
- You have 470R current limiting resistors on both the 3.3V and 5V/ISO sides for the optos. One of those is wrong.
- Pin 8 of the optos needs to be fed from either 5V (VO2) or 5V/ISO (VO3, VO4).
Dimmer:
- U11 pin 12 should not be floating. I'd tie it to ground.
- Make sure U11 will do the logic level translation OK (if it's an HCT125, that's fine)
n1ist wrote:
Main:
- You didn't spec the LCD, but I would double check that it will work with 3.3V logic levels, especially after the voltage divider (1K/10K). You may want to switch to a 3.3V LCD, but they need a negative voltage on the contrast pin.
- Does the processor need caps from XI and XO to GND? Most do, but I am not familiar with the prop.
- I would add one 100n cap to ground at each power pin on the processor
- A stylistic note - you shouldn't have any 4-way junctions on a schematic (like where the connections between the LCD, 10K, 1K, and processor connect); at most there should be three lines per dot.
I have the LCD circuit laid out on a breadboard and things seem to be humming along. However once I select a specific model I will verfiy the specs to make sure it wont' be an issue.
No caps for the xtal on the processor.
I will try to squeeze a few more caps onto the processor.
I will try redrawn the 4 point stuff to make it more clear.
Power:
- You need a bulk cap after the bridge. Without doing any calculations, it should be at least a few hundred uF. You need to be feeding smooth DC into VR1
So you are suggesting C5's value is far to low. What would you think would be an appropriate value? (power supplies are such a black art)
Data I/O:
- You have 470R current limiting resistors on both the 3.3V and 5V/ISO sides for the optos. One of those is wrong.
- Pin 8 of the optos needs to be fed from either 5V (VO2) or 5V/ISO (VO3, VO4).
I will make the change to the limiting resistor once I dig up the datasheet. I made the change to Pin 8.
Dimmer:
- U11 pin 12 should not be floating. I'd tie it to ground.
- Make sure U11 will do the logic level translation OK (if it's an HCT125, that's fine)
I made the change and yes its is an HCT125
All good catches, thanks!
DynamoBen wrote:
So you are suggesting C5's value is far to low. What would you think would be an appropriate value? (power supplies are such a black art)
Use the usual formula for a capacitor operation, I=Cdv/dt, re-arrange it and change the dv/dt to delta_v/delta_t, and you get
C=Idelta_t/delta_v
The current I is whatever you are designing for, and a conservative value for delta-t is .010 (assuming 50 Hz operation).
The delta-V is a bit more complicated. The peak output voltage from the W005 in this case is the peak transformer output voltage (6.3V * 1.414 = 8.9V) minus the diode drops (2V total), for a minimum peak of 6.9V when the transformer is at full load (0.4A). The minimum input voltage for the regulator is 6V (5V + the dropout voltage). Thus delta-v is 0.9V maximum (6.9V - 6V).
From this, the regulator input capacitor should be .00177F (for0.4A current), or 2200 uF 16V cap in standard values. My inclination would be to go even higher in value (to perhaps 4700 uF), to allow for capacitor tolerance, a 10% variation in AC power line voltage and to account for decreased capacitor performance at low temperatures. Maybe this is where that big cap in the earlier schematic came from.
My guess is that in practice you could get by with a much smaller cap if you are willing to fudge the analysis a bit if the things that run at 5V aren't sensitive to ripple. There are other things that might be done, but this post is long enough as it is.
Speaking of the LCD, you might want to think about this a bit more. It is my impression that the voltage on the contrast pin will need to change with temperature. Since this is to be a premium device, you might want to consider some sort of temperature compensation for the contrast pin so that the user won't need to tweak that pot as the temperature changes (if my concern about the contrast setting changing is valid).
P. Short wrote:My inclination would be to go even higher in value (to perhaps 4700 uF), to allow for capacitor tolerance, a 10% variation in AC power line voltage and to account for decreased capacitor performance at low temperatures.
C5 was changed to 4700uF/16V.
Thanks for the explanation, as you know I'm a hobbyist so at times I'm not "in the know" about the proper method(s) to make component selection. This is why I'm having this schematic reviewed, besides I get to learn in the process. 🙂
P. Short wrote:Speaking of the LCD, you might want to think about this a bit more. It is my impression that the voltage on the contrast pin will need to change with temperature. Since this is to be a premium device, you might want to consider some sort of temperature compensation for the contrast pin so that the user won't need to tweak that pot as the temperature changes (if my concern about the contrast setting changing is valid).
Good point, to accomplish this I would need to remove the red status LED and drop in a transistor and support circuitry (there is a temp sensor already). Its a pretty easy change and I'm open to this if you think its a worthwhile design change.
