Use of P1 to replace worn DCC controller?
AwesomeCronk
Posts: 1,055
My brothers and I have a few HO scale model trains in the basement. Recently, the basement received 2 inches of water. My bachmann ez command controller was on the floor. Now the potentiometer in the throttle control is corroded and unreliable.
I recall having seen this object on DCC control before. What is needed to build a controller with this?
I recall having seen this object on DCC control before. What is needed to build a controller with this?
Comments
Is Chuck Davis on this forum or does anyone here have contact for him?
Seems this is the complex part of the design. What controller are you trying to replace (link)?
Bachmann EZ-Command controller
The unit got wet and the potentiometer behind the throttle knob corroded. I often cannot get throttle control from the locomotives except when zeroing out and at full steam.
First thing I would suggest is to wash the circuit board, case, and other parts of the controller with water and mild dish detergent and then rinse it with DI water, followed by isopropyl alcohol. Then let all the parts dry thoroughly by blowing warm dry air on them overnight. Replace the throttle potentiometer and try it out.
I have done this to PCB's, motherboards, and chassis on instruments that were being refurbished and/or upgraded as well as instruments that were water damaged by leaks, storms, or burst pipes with great success. Of course the instruments that were powered on when they got wet usually needed some electrical/electronic repairs on top of the cleaning.
BINGO!!
Anywhere I could find this circuit?
I thought of that the moment I posted the comment and considered editing it. Then decided AwesomeCronk could decide which course to take. Personally I agree that building a replacement using the P1 is the way to go. Once built so many enhancements are possible.
I see that I will need to transmit my packets, however the transmission occurs, like such:
11111111111111 0 00000100 0 01100010 0 01100110 1
preamble 0 address 0 instruction 0 error_check 1
Presuming I understood this document correctly, the above transmission would tell locomotive 5 to travel forward at minimum speed.
I suppose that a 3.3v to 24v op-amp capable of reversing would drive the rails. I also realized that I have the necessary audio plug to connect my track cable to a prop project board!
https://forums.parallax.com/discussion/111985/model-railroad-dcc-projects/
try searching for : dcc controller site:forums.parallax.com
His schematic uses an h-bridge. I will look into that.
It's rated for 2A 12V, so as long as you don't need higher current or have a higher voltage input it should be fine.
Sounds like a plan, but a 2A fuse might be a good idea for the first test.
So, if I use this unit, I connect DCC_Pin to IN1, Gnd to GND, Pwr+ to 12v, Pwr- to Gnd, and Motor to track? Inverter from IN1 to IN2?
Definitely Gnd to GND, Pwr+ to 12v, Pwr- to Gnd, and Motor to track is correct. Not 100% sure about the other input signals without a data sheet for the module or the chips used. It may be that the link you posted is sending me to the wrong page since it shows a 43A module rather than the 2A unit mentioned earlier.
BTW: Look here for a similar setup: http://www.trainelectronics.com/DCC_Arduino/DCC_Booster/index.htm
You don't need the optocoupler though
PS: here a lower amped booster http://www.trainelectronics.com/DCC_Booster/
I was looking at the 15v h-bridges when I realized I need +15v and -15v, 30vac at the rails. So I ask: Bachmann accomplishes this with 16vdc input! How on earth is this being done???
Also, most of the h-bridges available are based on the L298N chip. From what I can tell, its logic threshold is 1.5v. Can I trigger a logic high on the L298N's inputs from the prop's 3.3v logic? Datasheet
Are you sure? It's been a long time since my kids had trains so I may be wrong, but I think they used DC motors so a simple dpdt could reverse the trains direction. If that is the case the L298 should work since it can reverse the polarity of the rails.
I have used the L298 with the Propeller for controlling brushed DC motors with no problems.