Close

One-wire communication protocol

A project log for Broke Hackers' Model Railway

Cheap, fully automated model train system with 99.9999% 3D printed parts.

Szabolcs LőrinczSzabolcs Lőrincz 08/05/2014 at 17:480 Comments

The next step is the communication. Not the main protocol, that will come later. This is for determining position. There will be metal plates between the rails and a contact on the bottom of the engines. When these touch, the engine's AVR will sense the pulse and send back its ID. That's all. For now, I prototyped this with an Arduino UNO and MEGA.

The communication flow through the yellow wire. There are 10K pull-down resistors to prevent catching noise in contactless state. I even draw a schematic.

That's all for now. More details and source code on my website and on GitHub.

Discussions