flat assembler
Message board for the users of flat assembler.
Index
> DOS > Analog counter control |
Author |
|
ouadji 26 May 2011, 20:56
a digital/analog I/O card + a kernel driver "How many volts is a byte?" but with this question, I think there is still much to learn before that. maybe first just a "hello_word" driver ? This would be a great start! edit : What is your OS ? |
|||
26 May 2011, 20:56 |
|
LocoDelAssembly 26 May 2011, 21:47
http://en.wikipedia.org/wiki/RS-232#Voltage_levels (although you should interpret this as "how many volts is a bit?")
I would advice about how to make a circuit but I think I'm way too amateurish for that. For handling the COM port in DOS, please search around, surely you will find something (e.g. "serial mouse driver", "UART 16550 programming" (or UART 8250), etc.) |
|||
26 May 2011, 21:47 |
|
edfed 27 May 2011, 03:23
this kind of device is:
low frequency, don't imagine to have more than 2 inc per second. certainly controled by pulse. one pulse = one count. a pulse is a signal, edge, level, shape... to control this, using standard interface, i'd prefer lpt becaus eit covers the one bit application domain. only one bit for the count signal. |
|||
27 May 2011, 03:23 |
|
LocoDelAssembly 27 May 2011, 03:53
edfed, he could still use serial in the way you propose (use a single LPT data line?), but rather than using the TxD pin, he could use the RTS or DTR pin and the wire could be extracted from a defunct COM mouse (since both signals are part of the Microsoft mode mouse protocol).
Still, voltage adaptation would be needed (if not "current adaptation" as well be means of a transistor + external power supply to provide the pulse), but although I think I have an idea of how to make the circuit, I think I'll wait for shoorick to say something first |
|||
27 May 2011, 03:53 |
|
shoorick 27 May 2011, 05:55
he-he i have never operate with RS232, but as i know it has a control bit which can be set on or off directly (transmittion output is hadware generated depending on set mode and sent byte). RS232 levels are -12V for 0 and +12V for 1, another thing solenoid in mechanical counter consume sufficient current, which may exceed max load for RS232 output amplifier. if you can set any bit on RS232 or LPT, you just need something like mosfet to drive this counter. just check if mosfet you wish to use able to keep current (you may find this data written on counter or check with AVOmeter) and it is possible to send signal from pc port to mosfet gate (usually +20/-20 is allowed, but there are variations)
_________________ UNICODE forever! |
||||||||||
27 May 2011, 05:55 |
|
me239 27 May 2011, 20:56
Thanks everyone! Hey shoorick, would you happen to know what kind of transistor I should get?
|
|||
27 May 2011, 20:56 |
|
JohnFound 28 May 2011, 04:55
This counter is an inductive load, so don't forget about the protection diode in parallel.
|
|||
28 May 2011, 04:55 |
|
shoorick 28 May 2011, 06:50
yes, backward diode will be not bad i use a while only mosfets extracted from old monitors and hard drives. i've been using IRFD123 - i like it it keeps load current 1A, say, IRF630 keeps current up to 9A etc. you have to read parameters from counter (voltage and current) and search either for mosfets table, or just put parameters into google, like this. if your counter will use high voltage (100-220V) directly from wall outlet - you must use isolator, say, optocoupler like PC817, but then there will be some play with resistors
_________________ UNICODE forever! |
|||
28 May 2011, 06:50 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.