Click here to Skip to main content
13,504,161 members
Rate this:
Please Sign up or sign in to vote.
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.

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 from OP's answer][^]

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
Posted 29-Jan-13 0:41am
Updated 1-Feb-13 6:33am
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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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.
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,

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?
Thyago Analista 29-Jan-13 11:49am
Guys need to buy some microcontroller?
I'll be using the class PortSerial Visual Studio with this?
Can anyone point to any example. NET
Rate this: bad
Please Sign up or sign in to vote.

Solution 4

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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.180417.1 | Last Updated 1 Feb 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100