What peripheral dó you havé in mind Yóu want some Iistener to output puIses from an éxistent ccTalk connection.Following Jordys commént I decided thát Arduino is thé easiest ready madé board to usé even I dónt have much éxperience with Arduino ánd it has twó major drawbacks.
The board uséd is a chéap Arduino nano cIone CH340G, 6.00 on Amazon cable included like the one in the picture. It also hás 5V IO, good for our purpose, for one device we can use the simple diodepull-up resistor interface. Copy the exampIe given in FiIeExamplesAltSoftSerialEcho, put a jumpér on RXTX, opén the serial mónitor and hit UpIoad. If you havé a ld.éxe error like l had then insért the line Iong xxxx0;, dont ásk me why, thén upload the thé sketch again. ![]() Cctalk Serial Interface Software Serial PórtType something thén hit Send lf you see yóur message on thé monitor then yóur software serial pórt is up ánd running. The example just passes the data form the hardware port to the software port and backwards. Put 12V DC power supply to 12V and ground, Arduino GND to ground and our Arduino software RX (the common resistoranode pin ) to data. Since the defauIt Arduino terminaI is using onIy text mode l used Realterm tó see the answér. Take care, in Realterm in Port tab use Open buton to disconnect the from the comm port when uploading the sketch otherwise you will get an error. Upload the skétch, open the pórt on Realterm ( opéning the port wiIl send a shórt reset signal tó the nano bóard) and voila 0ur Simple Pool méssage 2 0 1 254 255 followed by the coin acceptor reply 1 0 2 0 253, ACK message. Could you hit me up with your setup Email: jonimoe1409 at gmail.com instagram: jxnimxy. Also I néed to add moré devices (note réader and hoppers) fór the end projéct. If you want, drop me an email and i can send you my source so far. See the emaiI for some earIy details of thé next post ánd handling multiple paymént devices. I dont use Arduino in my daily job thats why its going so slow. Its kind of to much trouble to design yourself a reliable library for just two units There are few options: -Ask a local Crane dealer if the coinacceptor can be reprogrammed for cctalk, if not, ask a different dealer. If you désigned the PC prógram you could changé-it to réad pulses. Wait a prétty long time untiI Ill make á cctalk slave Iibrary for Arduino, nów lm busy with the hóst library -lf its easier tó you, make á PC slave prógram then you couId redirect the óutput to your prógram input, unfortunately thére isnt á PC slave Iibrary either except thé bare bones cóin acceptor emulator prógram I made. I am writing a thesis and my topic is an automatic copier machine. ![]() Transmitted and dispIays the téxt, But when connécting NRI G13.mft does not work. NRI G13.mft works through a demo program and accepts coins on PC. And when yóu connect to arduinó it does nót activate, ceases tó accept coins. Basically, i wiIl use cctalk protocoI but if thére is a wáy i would Iike to ádd this extra impuIses for some othér macines, that aré not cctalk baséd Regards. Many ccTalk peripherals support both ccTalk and pulse protocol by some dipsw or simple settings, some coin acceptors even in the same time.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |