Hello!
I have a project called STBS (Simple Train Blocking System) the goal of this project is to prevent a crash.
I've already got another project (ATBS) who do the same thing, but the issue with this second project is that this was centralized so, when we needed to add a new block and a new train into the system I needed to rewrite the whole code and start the project from scratch, again.
STBS works with 1 Arduino Nano per block, I want to make them communicate with the next Arduino and the precedent one.
There will be 2 major functions:
- When a train is going out the block, power off the current block and send a "start" signal to the precedent one
- When I receive a "start" signal from the next block, power up the current block.
The Arduino will be separated by a quite large distance, so the communication system needs to be reliable.
Somebody talked me about BUSi2c but this system requires an ID and one of the main goal of STBS is to be the same code and hardware for every single block to be easier to build and use.
Have you got ideas about other communication devices that would fit my needs?
Also, If you want further information about the project itself this is the link to the repository: EZTrain/STBS: The simple train blocking system. An easy to install train blocking system using Arduino. Compatible for MFX and DCC++ decoders. - STBS - Gitea: Git with a cup of tea
Thanks in advance!
SnowCode
PS: I would also want to be able to send a message to the whole circuit in once in the future. A message like "shut down", "test mode" or "reset".
