Jaggermax
01-20-2002, 08:04 PM
This post is to help those of you wanting to hook up a Mainstay sensor to a microcontroller based circuit, or even a descrete timer circuit. ###I have been attempting to hook up the Mainstay trigger line to the input of my controller. ###I am running both the controller and the Mainstay off of a LM3117 5 volt regulator which is powered from four AA batteries. The only reason I am using the 5 volt regulater is because of the in circuit programmer which requires 5 volts from the board. But guess what. ###The Mainstay oscillates the trigger line at anything under 4.8 volts input power. ###
Also, to interface the Mainstay, I hooked up the power and ground wires as normal, but for the trigger line, I hooked up to the sinking leg pad where the relay was removed (the one near the top of the board) and activated the pull up input port resistor. ###When activated by the motion sensor, this line goes from +5V to 0 Volt (with pull up resistor)
Anyway, there are three options you can use to hook up the Mainstay. ###1) go with a low dropout regulator which will keep the voltage near 5V longer as the batteries wear down 2) Use a seperate 9 volt battery to run the Mainstay with the ground tied to the board and 3) which is what I did, just run power directly from the output from the batteries (6.5 volts)to the power on the Mainstay while still using the regulator to power the board. ###Hope this helps. ###
(Edited by Jaggermax at 11:54 pm on Jan. 20, 2002)
Also, to interface the Mainstay, I hooked up the power and ground wires as normal, but for the trigger line, I hooked up to the sinking leg pad where the relay was removed (the one near the top of the board) and activated the pull up input port resistor. ###When activated by the motion sensor, this line goes from +5V to 0 Volt (with pull up resistor)
Anyway, there are three options you can use to hook up the Mainstay. ###1) go with a low dropout regulator which will keep the voltage near 5V longer as the batteries wear down 2) Use a seperate 9 volt battery to run the Mainstay with the ground tied to the board and 3) which is what I did, just run power directly from the output from the batteries (6.5 volts)to the power on the Mainstay while still using the regulator to power the board. ###Hope this helps. ###
(Edited by Jaggermax at 11:54 pm on Jan. 20, 2002)