I have an arduino mega and I am trying to use a 10 meter cable to program it. I have tried to use ftdi->ttl to max485 (one for each tx, rx and dtr)-> max 485 to ttl -> arduino mega. I have used a common ground as well.
When i tried to program arduino ide gave timeout error.
Can someone suggest how to make this possible?
Show us a good schematic of your proposed circuit.
Show us a good image of your ‘actual’ wiring.
12v rs232 is good for 1/2 mile. 5v should work over 10m without boosting. try just wiring them direct. rx/tx/gnd wire rx to tx, tx to rx, gnd to gnd, baud at 112500 8N1 and let 'em rip. Toggle dtr manually or remotely.
I am able to send and recieve data but when i try to upload code it gives timeout error
Run the loopback test on RX/TX lines, you can also confirm DTR works too.
Can you guide how to do the connections?
Your hand drawn schematic doesn't appear to show the signals to determine whether the RS485 modules are in TX or RX mode
It worked out
Just had to add 1 uf capacitor between dtr and reset
You have been great help.
Thanks
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.