-2

I have an arduino code for my Coinslot and Servo Motor, my question is how can I set the Port Identifiers of Coinslot and Servo Motor, because everytime I inserted a coin my servo motor also moves

Vhey
  • 37
  • 1
  • 11

1 Answers1

0

First of all, I'd use Javino middleware instead of RxTx.

You'll have to code your coinslot sensor to send to Java the information that a coin was inserted or to program in Java asking how many coins arduino read. For this, Javino provides 2 modes: the listening mode for the first one and the request mode for the second one.

This is it, if I understood correctly.

Pantoja
  • 16
  • 2