Dwayne Reid wrote: > =85Timeout period was fairly long - I recall about 30 > seconds or so. > The above may give you some ideas. > What are you trying to do? Good question. > I was trying to give as much pertinent info as I could so the problem cou= ld > be easily understood. Once again, my apologies. I don't know of any better > way to present the problem. Thanks anyway. It's easy, just insert some line breaks: ------- I have a spotlight controller made for a DJ booth. We are using it to control spots for an animated band. The problem is the controller has a "standby" button which turns the spot array on and off. The unit defaults to "standby" when powered up. This setup needs to be stand-alone. What I need to do is program a PIC (I have a few 12F675's) to monitor the audio stream and the "standby" LED signal (0-5v square wave, 50% Duty Cycle. It flashes when in standby mode) and have the PIC toggle the standby button (on-off momentary) when these conditions are active: - If there is no music and the standby LED is off then it should toggle it = on. - When there is music and the standby LED is on, it again should toggle it. - "Do nothing" situations are Music on, LED off and Music off, LED on. - In between songs if the controller is left out of standby mode then the lights will take a random pattern. - After all the songs are done the lights will also stay on in a random number (it seems to latch on the last ones that are lit and stays there). There are 12 spot lights. Hence the need for toggling the button. I was going to use the ADC of the 12F675 to detect the audio but from the documentation, it says that won't work. I plan to use the comparator (CMCON - CM0, CM1) to test for the LED status and the comparator interrupt flag (CMIF) to indicate when the LED is on. Once read I can reset the bit in the program. I could use some help in the audio detection area. The audio signal is coming from the audio output of a standard home DVD player. I haven't scoped it but I assume it's in the area of a volt or so. Also, one of our robots has eyes that can move side to side and the small board that works the RC solenoid has a PIC chip on it, but it doesn't work. The company that made these automatons, The Robot Factory, has no idea what the program is for this PIC. It's just supposed to move the eyes randomly side to side within a 90 degree arc. Anybody know of a quick program that will accomplish this using the '675?? ------- Regards, MS -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist