FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Connect and trigger cash drawer through serial port?





giovle
Hi

I recently wrote a program that will function as a cash register. It simply takes some input from the user (the user selects a product and specifies a number, everything is counted together and you can get a bill ... then everything is stored in a database, for later control). But I want the program to be able to open an cash drawer. Now, I have one here, but it had only two wires coming out of it. Probably to trigger the solenoid inside through a pulse. Now I was wondering if I could connect that wire to the computer somehow. One possibility I was considering is a serial port. Can I connect the two wires to a serial connector, connect that to the computer, and then somehow trigger that port from my script?

Extra: the program is actually just a html frames page, that has some php scripting embedded, the whole communicates with a MySQL database. (I can imagine real programmers laugh, but, hey, in the process I learned another language and it's just for our local youth club)

Thx
giovle
Nevermind, I got in touch with one of my neighbours who is really good in electronics. He told me that the cash drawer needed a charge of 18V DC and a current of some 100 mA. But nevertheless even if I have a transformator that outputs that current, he needs to make a controller. Just something that you can connect to your serial port. The controller then listens to what the port outputs (being a word of some kind, probably open) and does the appropriate action. Now I'm considering to add a pushbutton to be able to detect if the drawer is open. If it's not, then the program should show a warning.
GSIS
A few years ago I downloaded some cash drawer controller code to embed in a cash register application I was fiddling about with. IIRC there was also a simple interface design.

Google is your friend. What you want is online and freely available.
Related topics
Circuit and ports
Need help with infrared device
LG 8600 phone. custom ringtones pls?
5 Best Open Source Remote Desktop Software 4 linux
There's One Born Every Minute
Must cpanel be 2082? I can't connect
PC Controlling
MySQL Masters Binary Logs & Replication?
Computer won't route
Just got account
Dell D420
Intermec 6220 Hand held computers
how 2 connect to my other pc without going over the net
Annual idiot award 2006
Reply to topic    Frihost Forum Index -> Computers -> Hardware and Electronics

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.