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