Hi
Our front door can be buzzed open by pressing a button inside our house, on further inspection, the button works simply by connecting two metal contacts. I am using a AQV254 solid state relay, as I think the door buzzer is mains powered and I wanted isolation, I didn't want to be hooking transistors in there.
I am trying to control this with an arduino. Im using the Arduino to receive a bluetooth signal, and when it receives the passcode over bluetooth (just "buzz" in this case) it should drive the fet and AQV254 to open the door.
I can attach the code, but the code isn't the bit I'm struggling with. My problem at the moment is when I buzz to get in, the AQV254 simply doesnt seem to turn on. I have probed the transistor drain/source connection in the 2 second window and it seems to be on (multimeter in diode mode, the multimeter buzzes), but the AQV254 isnt connecting its pins together.
Does anyone know how this chip is supposed to work? or can anyone suggest an alternative?
http://uk.mouser.com/search/ProductDetail.aspx?Panasonic-Industrial-Devices%2FAQV254%2F&qs=sEN%2FkO1EG6Z%252bt%2F200e9k4A%3D%3D
Thanks
Apologies for the crude diagram, I'm on my home PC with no circuit drawing software
Code (All works fine afaik, can successfully receive the code and the onboard LED will light for 2 seconds)
String msg;
char command;
long interval = 1000;
void setup()
{
pinMode(13, OUTPUT); // pin 13 (on-board LED) as OUTPUT
pinMode(12, OUTPUT);
Serial.begin(9600);
}
void loop()
{
if (Serial.available() > 0)
{
msg = "";
}
while (Serial.available() > 0)
{
command = ((byte)Serial.read());
if (command == ':')
{
break;
}
else
{
msg += command;
}
delay(20);
}
if (msg == "buzz")
{
digitalWrite(7, HIGH);
digitalWrite(13, HIGH);
Serial.println("on");
delay(2000);
digitalWrite(7, LOW);
digitalWrite(13, LOW);
Serial.println("off");
msg = "";
}
}