Hello. On previous post, I asked about how to communicate between IND I/O and Mega 2560 through serial. I ended up cutting pin no.5 of the IND I/O chip to disable RS485 and connected pin D0 (RX) and D1 (TX) from IDC14 expansion port to Mega Serial 1. Initially, the serial output contain a lot of garbage data until I connected the GND pin of Mega 2560 to IND IDC Pin ISO 2 (GND).
The serial communication is perfect but I noticed that when I disconnect power completely to the IND I/O but leaving the power to Mega 2560 ON, the LCD of the IND I/O will be on too although dimmer than usual. It seems like the IND somehow got power from Mega 2560's GND port. This behaviour is gone if I disconnect the GND link between the two devices. At first, I ignored this issue but today it seems like it screwed up the IND Top Board. The PWM pin D5 from the IND I/O stopped working. I confirmed by replacing the IND I/O with a new one, uploaded the same sketch and the stepper motor worked again. Now I have not connect the GND Mega to the new IND I/O GND as I am afraid it will screw up again.
I used a 9V 1A switching adaptor for the Mega 2560 and Autonics 24Vdc PSU for the IND I/O. Can anybody please let me know what did I do wrong? I am not from EE background, so I totally have no clue here.
I just wasted a precious IND I/O. I hope someone can help me out, please... Thank you.
It can be that by using two PSU which are not isolated from mains something went wrong.
Try measuring voltage between the two grounds without connecting and then do your math.
It is possible that you connected the two mains plugs in a way that the reference for the two PSU be 230V apart.
You could find out the neutral for both supplies and connect them so that the difference between the two grounds is minimal.
More safe would be that at least one of the two PSU has a transformer.
Or you can use a line isolator chip on the serial line.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!