Australia
Asked — Edited

Adc Ports

I just want to confirm, so as to NOT release the magic smoke, I want to trigger scripts wit the press of a button or the closing of a normally open contact. I figure that I connect the Red (3.3 Volts) and White (signal) on an ADC port across the switching contacts and have a script watching the assigned ADC port for change. I also planned to connect a pull down resistor across the signal to ground to keep floating voltages in check.

Is the above correct?

Also I may need a little help with scripting, How do I wright a script to watch and wait until the contact is closed, or opened again for that matter? I need the script to pause the personality generator at least and then I can build on it from there.

Thanks for any help in advance

Steve


ARC Pro

Upgrade to ARC Pro

Stay on the cutting edge of robotics with ARC Pro, guaranteeing that your robot is always ahead of the game.

Australia
#17  

Thank God!

That "." instead of a "," made all the difference. This problem has been kicking my butt for nearly a day

Thanks again guys

Steve

#18  

Glad you got through this problem Steve. These little things are flusterating. When a script doesn't work for me the way I think it should the first thing I look at is the sentence structure.

It's all good Alan. I was the one who was confused. You knew exactly what you wanted to say. ;)