|
Post by Chuck Elliot on Mar 18, 2016 0:07:56 GMT -5
yes, 205! The trigger input shares ground with the Arduino. If this is a problem then the trigger input could be opto-isolated to share no ground!
|
|
geebo
Emo VIPs
"Too bad that all the people who know how to run the country are driving taxicabs and cutting hair"
Posts: 24,181
|
Post by geebo on Mar 18, 2016 6:44:41 GMT -5
yes, 205! The trigger input shares ground with the Arduino. If this is a problem then the trigger input could be opto-isolated to share no ground! So any of the ground pins on the Arduino? The one above 13 for example?
|
|
|
Post by Chuck Elliot on Mar 18, 2016 8:02:47 GMT -5
Everything is going to be referenced to the 12V ground anyway.
I'm going to make a ground bus between the the 12V ground and all the trigger grounds.
The resistor and zenier will be mounted directly to the trigger input jack and the wire between runs to the Arduino which picks up ground through the power supply.
|
|
geebo
Emo VIPs
"Too bad that all the people who know how to run the country are driving taxicabs and cutting hair"
Posts: 24,181
|
Post by geebo on Mar 18, 2016 8:25:08 GMT -5
Everything is going to be referenced to the 12V ground anyway. I'm going to make a ground bus between the the 12V ground and all the trigger grounds. The resistor and zenier will be mounted directly to the trigger input jack and the wire between runs to the Arduino which picks up ground through the power supply. Sorry for all the questions, Chuck. I really appreciate your patience. So are you saying a physical ground from the trigger input to the Arduino isn't needed? I was going to run a ground wire from the 12v supply across all the trigger output jacks. I also planned on the diode and resistor to be connected at the trigger input jack.
|
|
|
Post by Chuck Elliot on Mar 18, 2016 13:15:02 GMT -5
One Picture = 1000 Words:
|
|
geebo
Emo VIPs
"Too bad that all the people who know how to run the country are driving taxicabs and cutting hair"
Posts: 24,181
|
Post by geebo on Mar 18, 2016 13:24:45 GMT -5
One Picture = 1000 Words: Ahhh, nice! Thank you! Got the parts and I'm going to try uploading your code tonight and then run Putty. Thanks!
|
|
|
Post by etc6849 on Mar 18, 2016 17:37:12 GMT -5
This looks neat. One thought though was why can't Emotiva give up trigger on/off commands in their protocol for the XMC-1? Then it is trivial for any control system to toggle the trigger outputs in any imaginable sequence. D&M stuff does this by the way.
|
|
|
Post by etc6849 on Mar 18, 2016 17:45:28 GMT -5
Forgot to mention what a lot of home automation folks do if they don't have assignable 12V output triggers on something else, is to use something like these network based controllers by Global Cache: www.globalcache.com/products/gc-100/models1/Then you wire a 12V power supply and cable to the "dry" contact of the GC-100 and have a networked based 12V trigger. Also, the XPR amps have a built in delay trigger if you daisy chain the trigger (this is what I do).
|
|
geebo
Emo VIPs
"Too bad that all the people who know how to run the country are driving taxicabs and cutting hair"
Posts: 24,181
|
Post by geebo on Mar 18, 2016 20:02:44 GMT -5
Yes, the only change I will need to make is to remove the simulated trigger input (1 or 0) that is done via Putty and use the actual electrical input from the zenier circuit. Best to be sure the relay board is working correctly first. Remove Following Lines @347:
case '1':
inputPin = HIGH; break;
case '0':
inputPin = LOW; break;
Add @305 Just before if (objHeartbeatTimer.Expired())
inputPin = digitalRead(pinINPUT);
Change Line 179
From: pinMode(pinINPUT, OUTPUT); To: pinMode(pinINPUT, INPUT);
Got the parts and loaded your program and got success right off the bat. My Putty screen does exactly as your video shows. After making the program changes above will Putty still show the results when I apply a trigger signal?
|
|
|
Post by Chuck Elliot on Mar 18, 2016 23:52:28 GMT -5
Got the parts and loaded your program and got success right off the bat. My Putty screen does exactly as your video shows. After making the program changes above will Putty still show the results when I apply a trigger signal? Yes, but double check the output of the zenier circuit before you do!
|
|
geebo
Emo VIPs
"Too bad that all the people who know how to run the country are driving taxicabs and cutting hair"
Posts: 24,181
|
Post by geebo on Mar 19, 2016 0:14:08 GMT -5
Got the parts and loaded your program and got success right off the bat. My Putty screen does exactly as your video shows. After making the program changes above will Putty still show the results when I apply a trigger signal? Yes, but double check the output of the zenier circuit before you do! Will do. The relay board is responding as expected in the simulation mode. Will try a live 5v input tomorrow. I'm thinking of making two of these so that I can use two different trigger inputs from the XMC. Just put them both in one box using one 12v supply. Thanks.
|
|
|
Post by Chuck Elliot on Mar 19, 2016 2:12:38 GMT -5
Will do. The relay board is responding as expected in the simulation mode. Will try a live 5v input tomorrow. I'm thinking of making two of these so that I can use two different trigger inputs from the XMC. Just put them both in one box using one 12v supply. Thanks. One Arduino should be able to drive 2 relay boards and have a different input pin for the second relay board. The user interface is where the coding work would be needed!
|
|
geebo
Emo VIPs
"Too bad that all the people who know how to run the country are driving taxicabs and cutting hair"
Posts: 24,181
|
Post by geebo on Mar 19, 2016 9:18:37 GMT -5
Will do. The relay board is responding as expected in the simulation mode. Will try a live 5v input tomorrow. I'm thinking of making two of these so that I can use two different trigger inputs from the XMC. Just put them both in one box using one 12v supply. Thanks. One Arduino should be able to drive 2 relay boards and have a different input pin for the second relay board. The user interface is where the coding work would be needed! Could it be configured to accept two inputs with each driving two of the four relays on one board?
|
|
|
Post by Chuck Elliot on Mar 19, 2016 10:55:26 GMT -5
Could it be configured to accept two inputs with each driving two of the four relays on one board? Yes! That one's rather simple. I'll write it for you when I get home.
|
|
geebo
Emo VIPs
"Too bad that all the people who know how to run the country are driving taxicabs and cutting hair"
Posts: 24,181
|
Post by geebo on Mar 19, 2016 11:13:49 GMT -5
Could it be configured to accept two inputs with each driving two of the four relays on one board? Yes! That one's rather simple. I'll write it for you when I get home. That would be awesome. Thanks! I just realized one of the relays can act as a contact closer on my Crown XLS1502 to act as a remote trigger. Thanks so much.
|
|
geebo
Emo VIPs
"Too bad that all the people who know how to run the country are driving taxicabs and cutting hair"
Posts: 24,181
|
Post by geebo on Mar 19, 2016 19:00:28 GMT -5
Could it be configured to accept two inputs with each driving two of the four relays on one board? Yes! That one's rather simple. I'll write it for you when I get home. Here's where I'm at so far. Still have some connections to make and testing to do but it's getting there. I'm using an old VHS tape box.
|
|
|
Post by Chuck Elliot on Mar 19, 2016 19:21:58 GMT -5
Looks good! I just found my final enclosure yesterday. Unlike the first enclosure, the front and rear are removable and can be easily drilled on the press. The first one turned into a mess because it was unstable while drilling holes.
|
|
novisnick
EmoPhile
CEO Secret Monoblock Society
Posts: 27,223
|
Post by novisnick on Mar 19, 2016 19:49:40 GMT -5
Yes! That one's rather simple. I'll write it for you when I get home. Here's where I'm at so far. Still have some connections to make and testing to do but it's getting there. I'm using an old VHS tape box. Looks nice clean and slick!
|
|
geebo
Emo VIPs
"Too bad that all the people who know how to run the country are driving taxicabs and cutting hair"
Posts: 24,181
|
Post by geebo on Mar 19, 2016 19:59:36 GMT -5
Looks good! I just found my final enclosure yesterday. Unlike the first enclosure, the front and rear are removable and can be easily drilled on the press. The first one turned into a mess because it was unstable while drilling holes. I like that case. It's gonna look great.
|
|
|
Post by Chuck Elliot on Mar 19, 2016 20:23:52 GMT -5
I found some Blue LEDs today. I'm gonna have LEDs on all the triggers in and out!
They're rated at 20ma with a Vf of 4V
Vs supply Vf forward voltage of LED Im max LED current Rl current limiting resistor
Rl = (Vs-Vf) / Im = (12-4) / 0.020 = 400 ohms
I going to half the current to 10ma or less as I don't want them too bright. I'm guessing a 1K will be perfect.
|
|