Hello people, i am working on a project and so far i was sending data to my arduino mega through the usb port so Serial0. Now, we'd like to use a usb to TTL converter to connect to it and since the RX0 and TX0 are taken over by the adafruit motor shield (which does not use them however :0) we'd have to use the other serial ports that mega provides....
And here start the problems.
First of all, if i just touch my rx and tx cable from the TTL on the header of 0 and 1 pins, it works as normal. So a desperate measure would be to solder those wires on the motor shield, but that's an ugly solution.
So, let's say i use RX1 and TX1 on ports 18 and 19 respectively.
I use the following code to initialize the Serial communication
this to send something through it
and this to read from it:
I can receive FROM the arduino, but when i try to send something TO arduino, arduino does not read it (no serialEvent(), nothing).
The TTL cables and usb converter work as they should i must remind you, since i am reading and sending from "Serial" just by touching them to the pins 0 and 1.
Has anyone any idea what could be wrong??
Thanks in advance...