Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DCC on esp32-S3 #779

Open
fire-bot opened this issue Oct 11, 2024 · 1 comment
Open

DCC on esp32-S3 #779

fire-bot opened this issue Oct 11, 2024 · 1 comment

Comments

@fire-bot
Copy link

fire-bot commented Oct 11, 2024

Sent by (@JohnnyGame3). Created by fire.


Hello, I have a problem and would be happy to get some support.

I am a student from Germany and I am currently doing my technician degree in information technology. As my final project, I want to convert my LGB garden railway from analog to digital. For this I want to use an ESP32-S3 as a central unit. This should generate a DCC signal and amplify it via a BTS7960 H-bridge and place it on the tracks so that I can control existing decoders in the trains but also self-built decoders (also made from ESP32 S3 microcontrollers). I would like to use the DCC-EX library to generate the signal. However, I have been trying for days now to simply generate a DCC signal and send it to another ESP (initially without an H-bridge, just with a directly connected cable) but I can't get it to work.

@habazut
Copy link

habazut commented Oct 12, 2024

I don't know how big (time) or advanced (novelty, research value) your degree project is supposed to be, so if the task is a good fit I leave for someone else to decide.

The DCC-EX project includes code to generate a DCC signal on the ESP32-WROOM. There might be a small amount of porting necessary if you want to use the ESP32-S3. If you need to adapt the RMT code to run on the -S3 I would be glad if you could provide that back to the DCC-EX project.

I would like to use the DCC-EX library

For various reasons, mostly configuration issues, it is not a library but a stand alone application.

If you want to use the second ESP32 as a decoder you have several alternatives. Either use the NMRA-DCC library or modify the EX-Inspector (in another DCC-EX repository on github).

As you have the ESP32 which has builtin Wifi capability I would consider to use wireless communication and then maybe not the DCC packet format. Considering the limitations with the number of TCP connectons on then ESP32 you should in that case consider UDP.

I recommend joining our Discord chat.

Harald.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants