Serial Comunication

Hi

Admin please post to suitable forum. Could not find one for serial communication.

There is a very good tutorial here on SparkFun on serial communication: https://learn.sparkfun.com/tutorials/se … cation/all

I have a data stream like this one: https://dccwiki.com/Hornby_Zero_1 This article used ocilliscope to get the info, many many years ago.

I would like to now use recommended software from SparkFun to achieve the same result. That is to have a printed record of the out put as per the Hornby data stream article. Use of Arduino ok to achieve if required.

For hobby interest only by retired person. So needs to be free.

Just head me in the right direction, I may need some help later.

Thanks

Charles Harris

If you want to keep a record, you will need to interface an SD card with an Arduino UNO. You can buy/make a standard SD card breakout like this:

https://www.pcbway.com/project/sharepro … c2f02.html

Or you can use either of the following products depending on the type of your (SD/microSD) card:

https://www.sparkfun.com/products/13743

https://www.sparkfun.com/products/12761

All the data will be stored inside a .txt file. Then you will be able to transfer them to Excel.

I did a bit of reading on the Hornby Zero 1, and it seems clear that the serial data stream used by the Hornby Zero 1 is not at all similar to the asynchronous serial data stream described in the Sparkfun tutorial.

To capture data from the Hornby Zero 1, you will need an interface circuit to filter the digital data from the track power leads, adapt the signal levels to 0 to 3.3 or 5V levels and custom code on an Arduino to decode the data.

I was not able to find any examples of Arduino code to perform the decoding, but it would not be hard to write.