Pages: [1]   Go Down
Author Topic: electric door strike help  (Read 1381 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i am try to connect the electric door strike to Arduino and i d'ont know how to start.

how i connect him?

what the code to open and close?

this what i have :


alot of tnx!
Logged

UK
Offline Offline
Shannon Member
****
Karma: 223
Posts: 12631
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i d'ont know how to start.

Find the spec for the door strike. Understand what the electrical characteristics are. Design a circuit capable of driving the electrics which can be controlled by TTL levels. Build that circuit and connect it to the Arduino. Write a sketch that provides the appropriate TTL output signals to make your driver circuit operate the device. Design the rest of the sketch to implement whatever control algorithm you want. Presumably you'll have some form of inputs to determine when to operate the door strike; you'll need to carry out a similar exercise to interface the Arduino with those.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

this what i do, what wrong?

the transistor is 2N222A

Logged

Johannesburg. UTC+2
Online Online
Faraday Member
**
Karma: 95
Posts: 4320
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

According to that pic, you have the load on the transistor's base,
Logged

Roy from ITCrowd: Have you tried turning it off an on again?
I'm on LinkedIn: http://www.linkedin.com/in/jimbrownza

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

According to that pic, you have the load on the transistor's base,

what i need to do  smiley-sad-blue ?
Logged

Johannesburg. UTC+2
Online Online
Faraday Member
**
Karma: 95
Posts: 4320
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have a look at this tutorial. And look at a data sheet for your transistor to make sure you understand which pin is which.

You'll need to get a diode as well.....
Logged

Roy from ITCrowd: Have you tried turning it off an on again?
I'm on LinkedIn: http://www.linkedin.com/in/jimbrownza

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26278
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Your mechanism should be driven exactly as you would drive a heavy-duty relay. I think a 2N2222 might be a little lightweight.
If that's all you've got for a transistor, it may be simpler to use it to drive a relay, and drive the strike from the relay's contacts.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

UK
Offline Offline
Shannon Member
****
Karma: 223
Posts: 12631
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

this what i do, what wrong

Once you have sorted out the hardware side, you need to get the sketch to compile - which it won't currently.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

this what i do, what wrong

Once you have sorted out the hardware side, you need to get the sketch to compile - which it won't currently.

you can give my the code? I'm really desperate I want to continue with the project even online I found something similar to what I'm trying to do
Logged

UK
Offline Offline
Shannon Member
****
Karma: 223
Posts: 12631
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

you can give my the code?

There's really no point trying to move forwards on the code until you have got the hardware right, and then the next step will be to get your code to compile. Which it currently won't, for reasons which should become obvious when you try.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i connect like this :



Uploaded with ImageShack.us

pdf of ULN2803A:
 http://www.alldatasheet.com/datasheet-pdf/pdf/169423/ETC2/UNL2803.html

now the lock get power but still the software code not work!

Code:


void setup()
{
  //Start serial
  Serial.begin(9600);
  pinMode(13,OUTPUT);
}

void loop()
{

   digitalWrite(13,255);
   delay(1000);
   digitalWrite(13,255);
   delay(1000);
}


Can someone direct me?
« Last Edit: March 03, 2013, 02:01:45 pm by dimona » Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26278
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
digitalWrite(13,255);
   delay(1000);
   digitalWrite(13,255);
what do you expect that to do, other than leave the pin HIGH?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

sorry the 255 is "HIGH" :-\
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26278
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

255 is the same as HIGH, as far as digitalWrite is concerned.
Why write it twice?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Offline Offline
Edison Member
*
Karma: 58
Posts: 2078
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think the ULN2803 is already broken, perhaps the Arduino is also damaged.

You have to rewire the connections to the ULN2803. The chip doesn't use a positive voltage, but pin 10 is for the flyback diodes. The pin 10 shoud be connected the + side of the motor (and both should be connected to the (+) of the 9V battery).
The ULN2803 does need a ground. That ground should be connected to the Arduino GND and the (-) of the 9V battery.
Next you have to connect the input and output of the ULN2803 in the right way.
Logged

Pages: [1]   Go Up
Jump to: