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

Turn the command station into a smart booster #36

Open
FrightRisk opened this issue Sep 19, 2020 · 6 comments
Open

Turn the command station into a smart booster #36

FrightRisk opened this issue Sep 19, 2020 · 6 comments
Labels
Enhancement New feature or request Hardware Item relates to hardware

Comments

@FrightRisk
Copy link
Member

From TrainBoard.

@FrightRisk FrightRisk added the Enhancement New feature or request label Sep 19, 2020
@habazut
Copy link
Contributor

habazut commented Sep 20, 2020

That would need a different hardware setup because the output must be in sync with the input. I doubt that the Arduino can do that in software. A fast optocoupler is needed at the input as well. To be "smart" it should then include some kind of DCC code sniffer that analyzes the incoming DCC signal and does something useful with it (RailCom?).

Shared source code with the current project "not so much" I'd say.

@FrightRisk
Copy link
Member Author

Here is Dave Bodnar's version. It isn't DCC++, but can use an Uno/Mega/Pro Mini/Nano... It really just uses an optoisolator to go right into a motor board. Maybe we can do the same. Different firmware to just run a display and cut out the power on overload. Then figure out how to use the motorshield so it looks a lot like a CS, but isn't ;)

@Asbelos
Copy link
Contributor

Asbelos commented Sep 21, 2020

Why bother reading the DCC signal through an opto coupler from the track, you can read the DCC signal directly at TTL levels by reading the main track signal pin and feed it directly to the high power motor board(s).
Handling current detect is going to be the tricky bit with more than one main board... but that can be handled by subclassing the MotorDriver and have it sample multiple pins and maybe have multiple on/off pins.

@FrightRisk
Copy link
Member Author

It certainly is worth the experiment, but the reason is the distance over twisted pair or shielded network cable you can transmit a TTL signal. In addition to signal loss, there is the potential for a differential in grounds and common mode interference. I can test when I put my O scale between two rooms on the ceiling, but at N scale, I would only have a few feet between the CS and the booster.

@davidcutting42
Copy link

This is something that LCC takes care of. Two of the wires on the bus carry a replica of the DCC signal at exactly 12 volts, and boosters can read off that signal and replicate it. Having a copy of the signal on the LCC bus also allows global RailCom data to be transmitted back to the base station. This is something that I've been including in my new hardware designs. It's pretty cool stuff.

@davidcutting42 davidcutting42 changed the title Feature Request: command to turn the command station into a smart booster (with two districts, or a single higher power district) Turn the command station into a smart booster Nov 15, 2020
@davidcutting42 davidcutting42 added the Hardware Item relates to hardware label Nov 21, 2020
@marada1
Copy link

marada1 commented Nov 22, 2020

I have built Dave's booster and have to say I'm pretty happy with how it works. His limits the output to 10 amps but that seems like more then enough. I connected it to the main track out of the motor shield and used the motor shield for the programming track. Seemed to handle DCC instruction to the engine with not problem. Had another gentleman use one of the units I built and powered 4 engines at the same time with no problem. I then purposely shorted the track. Power to the track is shut down until the issue is resolved. Power to main is what turns on the booster.

daniviga pushed a commit to daniviga/CommandStation-EX that referenced this issue Mar 26, 2023
* Fix sunfounder image name

* Add to ethernet boards page and fix image sizes

* Move things around on the wifi config page for readability

* Add images for ap and sta mode and add to command reference

* Add to High Accuracy page and add inverter circuit

* Work on motor boards and high accuracy details

* Update rewrite page, add more loco doesn't move on prog warnings, and add new WiFi commands to reference

* Fill in some of the todos on motor boards

* Add stream deck and knock out more todos

* touch all files in throttles and edit wifi config

* fix link to decoder table

* Fix spreadsheet and add numbers up to 511
daniviga pushed a commit to daniviga/CommandStation-EX that referenced this issue Mar 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Hardware Item relates to hardware
Projects
None yet
Development

No branches or pull requests

5 participants