Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone good morning?
Guys I've got a question regarding sending an electrical pulse to unlock an electronic turnstile. I already have the design ready, just missing making this wrist that do not know how you do. All examples that more research is speaking as opening and closing the serial port, if anyone knows how to make or only some example to send this pulse, thanks.

[update]
Thanks for the help. I already have a ratchet that uses 2 serial port, Serial RS232 5 volts. I found some stuff that uses DLL, but this model does not need to ratchet DLL according to the manufacturer, he just advised me to send 5 volts to this door that unlocks (thus giving a spin), I just want to 5 volts for programming unlock the turnstile.
[/update]

[update from OP's answer]
http://msmvps.com/blogs/coad/archive/2005/03/23/SerialPort-_2800_RS_2D00_232-Serial-COM-Port_2900_-in-C_2300_-.NET.aspx[^]

Personally, I would like to know how do I capture the turning of my ratchet to make the turn? I found this example on the internet and found very explanatory to learn to work with serial ports.
 

 
Just want to know how to lock the turnstile when you pass?
 
Someone who works with automation systems could explain to me how to do to capture the spin ratchet to lock automatically?
 
thank you
[/update]
Posted
Updated 1-Feb-13 6:33am
v3
Comments
CPallini 29-Jan-13 6:46am    
"sending an electrical pulse to unlock an electronic turnstile"
Could you please elaborate?
Thyago Analista 29-Jan-13 7:22am    
Like, I have a ratchet Interfacing the Serial / RS232 Port, which only unlocks sending a pulse of 5 volts to give it a whirl. The problem is I do not know how to do this pulse using the platform. Till NET or VBA or VBScript. Have enough research on the forums and found nothing that could send this serial pulse through the door.

If you already have a controller device for your turnstile then check out its documentation for setting up the (possibly serial) communication with the PC.
If, on the other hand, such controller is missing, then you have to build it, possibly using a microcontroller.


Even If you just need to send a 5V pulse I strongly recommend you to use a microcontroller. Do not interface directly your PC with the turnstile.
 
Share this answer
 
v2
Comments
Thyago Analista 29-Jan-13 8:56am    
Okay, thank you. Sorry my English, you know any examples of how to send this communication to the microcontroller, thus releasing the ratchet?
thank you
CPallini 29-Jan-13 9:13am    
Well, it is relatively simple generating a pulse with the microcontroller.
Thyago Analista 29-Jan-13 9:22am    
Have any examples just so I have a starting point? I make the connection as to open and close the serial port,
Link: http://www.codeproject.com/Articles/8605/Serial-Communication-using-C-and-Whidbey?msg=4483192#xx4483192xx

just do not know how to do this in the programming pulse.
CPallini 29-Jan-13 9:35am    
I suppose we don't understand each other.
What you need to do?
If you need to generate a pulse then the first step is designing a (very simple indeed) electronic circuit with a microcontroller and programming it order to generate the required pulse.
On the other hand, if you already have a 'pulse generator' and need to communicate with it using the serial port then may find many tutorials available.
The third option, namely "generating the pulse using the PC serial port" is NOT an option.
Thyago Analista 29-Jan-13 9:48am    
My friend thank you very much. But boy is hard to find some generate Pulse, for my lack of experience in the subject can not find anything about it, just open it, close the door, send message in the display. Any article there or know some will be speaking on the subject that I can spend some explaining stuff? Please?
Do NOT user a serial port to try to generate a 5v "pulse". First, serial ports are notorious for not following spec and probably won't give you 5v to begin with.

Second, if the device your'e sending the pulse to isn't designed and built properly, it can send stray voltage back to your serial port, possibly frying it. So, it may work one or twice, but then mysteriously stop working, forever.

Use dedicated hardware, a microcontroller with properly designed circuitry to generate and send the pulse for you, as well as clamp any stray voltage that attempts to come back. You can then talk to the micro over a serial or USB (Serial) connection without the dangers.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900