ccTalk on Mega 2560

Hi guys,

I want to send commands froma Mega 2560 to a coin hopper and I know it uses ccTalk protocol.

The problem is that it has only 1 data line, so half-duplex comms, and the Arduino has serial TX and RX on different pins.

Is there any way to use one pin as both TX and RX?

Hello
I'm also trying to achive that.
What hopper are you trying to interface?

hugo007:
What hopper are you trying to interface?

Azkoyen, don't know the exact model

Uhmm I'm using smart hopper from Innovative Technology.
Perhaps this could help you

hugo007:
GitHub - benolayinka/arduino-cctalk: Arduino Library for ccTalk devices. Written for the ICT SCA1

Yes, I already found that, but I'm still trying to figure out how to work with one data line.

I have never tried it but I wonder if you can use SoftwareSerial with the same pin chosen for Rx and Tx. As it can't listen and talk at the same time it may work. And you seem only to need 9600 baud.

...R

Robin2:
I have never tried it but I wonder if you can use SoftwareSerial with the same pin chosen for Rx and Tx. As it can't listen and talk at the same time it may work. And you seem only to need 9600 baud.

...R

Hmm, sounds possible, I will try and see what happens.

Thanks for the idea.

I just found some schematics in the documentation for ccTalk.

I don't know if any of them would work for my hopper specifically, but hopefully at least one should so I can use 2 pins on the Arduino.

First img: the cctalk driver included in the Hopper U-II
Screenshot_11.png

Please display your image(s) in your post so we can see it(them) without downloading it(them). See this Simple Image Upload Guide

...R

Robin2:
Please display your image(s) in your post so we can see it(them) without downloading it(them). See this Simple Image Upload Guide

...R

Oh, I tried with the links before, didn't work, so I just uploaded them.

Edited the reply now using the guide, thanks.