Trains.com

Subscriber & Member Login

Login, or register today to interact in our online community, comment on articles, receive our newsletter, manage your account online and more!

DCC++ with Raspberry Pi and Arduino Decoder Pro

1859 views
3 replies
1 rating 2 rating 3 rating 4 rating 5 rating
  • Member since
    May 2020
  • 5 posts
Posted by RandyH on Saturday, June 27, 2020 4:20 PM

As an update, I found two new files for the Arduino Sketch that fixed the "no acknowledge" error. Everything is working quite well now.

  • Member since
    May 2020
  • 5 posts
Posted by RandyH on Friday, June 26, 2020 8:17 PM
Thanks, Randy. I have been researching and it appears that my problem is at least understood now. Now I have the dreaded “No acknowledge from locomotive “. Interesting that if I use my MRC Advance2 system, I can use the JMRI Windows interface and everything works, albeit slow. I need to keep researching the web to find a solution for the Raspberry/Arduino interface. Again, thank for the quick response.
  • Member since
    February 2002
  • From: Reading, PA
  • 30,002 posts
Posted by rrinker on Friday, June 26, 2020 6:48 PM

 That's completely normal. When using program track, the decoder pulses the motoor to create a current drop that the system can detect as an acknowledgement, also when reading CVs. Some decoders alternate the polarity of this pulse so the motor moves equal amounts in both directions, others do not and the loco can move bit my bit in one direction.

                                             --Randy

 


Modeling the Reading Railroad in the 1950's

 

Visit my web site at www.readingeastpenn.com for construction updates, DCC Info, and more.

  • Member since
    May 2020
  • 5 posts
DCC++ with Raspberry Pi and Arduino Decoder Pro
Posted by RandyH on Thursday, June 25, 2020 5:45 PM

I am currently using a Raspberry Pi 3 B+, connected to a genuine Arduino Uno with a genuine Arduino Motor Shield. The motor shield is powered with a separate 15V, 1 amp power supply.

I have double checked the jumper wires and the VIN trace for accuracy. 

I have installed the released build of the JMRI sketch. My problem is that when I use Decoder Pro to revise a locomotive CV’s on the program track, the locomotive moves slightly forward for every CV it writes. The write is successful, but on each write, the locomotive moves maybe an 1/8”. 

Any help would be greatly appreciated.

 

Subscriber & Member Login

Login, or register today to interact in our online community, comment on articles, receive our newsletter, manage your account online and more!

Users Online

There are no community member online

Search the Community

ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT
Model Railroader Newsletter See all
Sign up for our FREE e-newsletter and get model railroad news in your inbox!