Hi to all,
My colleagues asked me to check out some old equipment that was not working, so I went to check it out. A story is bit sad, guy who was maintain it died and company that manufactured also does not exist.
It it’s a “long shelf with partitions” with 50 or more, 4-digit LED displays daisy-chained with ethernet cable. Inside is Intel 8051 and MAX3080 as RS 485 + other stuff.
It is very old equipment that is failing over and over, so they asked me weather I can build it from scratch. Problem is (for now) that they cannot change software on PC that communicates with master RS485 and slaves so no change in protocol. I must adopt.
I quickly bought Arduino pro mini (minimal size so it can fit in old housing), 4-digit 7 segment LED (ones with 2+2 wire interface) and RS 485 transceiver board. I was probing protocol and found out that master sends 6 char ASCII string containing ID and 3-digit number that it needs to display. Address is stored in old 27c256 and communication speed is 2400 baud sooo slow…
I made simple sketch that is working for now so that is not issue.
Problems appear in 3 things, long length of ethernet cable that uses it as POE, problems with ethernet connectors, dirt (and condensation moisture in ethernet connectors?) translated that problems to voltage drops and communication problems, so a lot of time they display rubbish and sometimes fail to start at all or at worst they do not change value that master is sending from time to time.
And now questions part:
-
Since I am building it from scratch would it be wise to stick to RS 485 and only to change connector type, let say to terminal block for RS485, and to use separate cable for power.
What would be your choice for addressing, 8 pin DIP switch or to write address directly in memory? -
In future time they will change software and it will be made using protocol I will suggest, so for now I can only think of modbus, only because it has CRC and display (slave) can send feedback so master can check weather data displayed is correct. I don’t see much of modbus examples, so I am bit worried because I am unfamiliar with it.
-
What speed could be recommended as “safe”?
-
And finally, for power, they used 7805 as power regulator, I would prefer a switching one and that is not my field at all so, if you have some ideas, I would like to hear them.
Since this is my first post, sorry in advance if I made some mistakes.
Thanks in advance for all readers/helpers and sorry again for long post.