Newbie Question - DCC and LGB

8 Mar 2014
7,806
972
San Diego
Country
Armenia
www.elmassian.com
Best answers
0
Country flag
I do not agree that resetting by writing to a CV is bad, in most cases it's the only way.

(when you have a chance I would love to read the passage you are referring to)

When in service mode, only low current is used, so #1 cannot be true IF you are running service mode. (JMRI should indicate if it cannot read, i.e. go into service mode)
If you are not in service mode you CANNOT read back from the decoder. I'm still not convinced you are in service mode.

I'm telling you to reset the decoder, sometimes everything is right but the decoder is locked up. Also there's very few ways that the decoder would not have SOME output to the motor.

Yes, another theory could be that you are in service mode, but then the functions could not be operated, and you stated that they work.

Something is still fishy with the "story"... I can give you step by step to debug this, but I don't want to be "fighting" statements like resetting by CV is not recommended, that statement by itself is just not true, so it must be out of context or not properly understood or not quoted accurately.

My recommendations would be:

1. verify service mode
2. write a CV and then read it back to guarantee you are actually in service mode.
3. reset the decoder
4. then verify the operation of the motor, or debug the electrical problem.

Greg
 

PhilP

G Scale, 7/8th's, Electronics
5 Jun 2013
33,567
3,521
Nottingham
Best answers
0
Country flag
I'm with Greg..
Resetting the decoder will not wipe the sound profile loaded into it. - In case you are worried about that. We are saying reset the basic settings, NOT reload the firmware into it.

As Greg says, there are a few things that could be stopping motion:
Mechanical lock-up. NO, it runs analogue.
Output transistors on decoder blown. NO, it runs analogue.

Your tests would *seem* to suggest the decoder is doing what it is told, but settings are such that it does not do what you expect. - So setting these to known starting values seems like a good way to proceed? Perhaps?? Maybe???
 
D

Deleted member 4232

Guest
Moved
 
Last edited by a moderator:

stockers

Trains, aircraft, models, walking, beer, travel
24 Oct 2009
25,631
3,795
65
Nr. Ashford, Kent. England.
Best answers
0
Country flag
It was I that suggested that a reset of the decoder may be unwise. I am aware of several people that have done resets and have lost their board for ever. As I stated at the time, many people seem to do them all the time and get away with it. A good look at the CVs often solves the problem. I see a possible problem here that the user has opted for a non LGB/Massoth template in JMRI - different companies use some CVs very differently.
 
D

Deleted member 4232

Guest
Moved
 
Last edited by a moderator:

idlemarvel

Neither idle nor a marvel
13 Jul 2015
3,136
801
Ascot
Country
Mars
Best answers
0
Country flag
Stockers you are indeed correct, using JMRI to program a large scale decoder is a fraught experience at the best of times.

To cite an example to confirm Stockers advice, using a decoder profile from JMRI for a Massoth XL-M1 to reset an LGB 55028 decoder, completely and utterly "bricked it", was sent to me, and it took me the best part of three hours to "unbrick it", so the short answer is, unless you know the insides of a "ducks a**s" about the decoder template from JMRI, tread with extreme caution, and try to avoid a decoder reset!

JMRI's Decoder Pro and Decoder Pro3, have got to be, the worst possible scenario for inexperienced users...................plus the program itself is a pile of carp, and that was from an American user on this Forum!
So it is not so much resetting a decoder which is bad, rather using JMRI to do the reset is bad. Having struggled with JMRI in the past I can well imagine that is the case.
 
D

Deleted member 4232

Guest
Moved
 
Last edited by a moderator:

robboz4

Registered
6 Dec 2018
23
0
68
America
Best answers
0
Wow - seemed to have opened up a can of worms about the reset. I did find some LGB templates buried under Massoth, but not sure which one matches the 25552. So a very simple question that I can’t seem to find an easy answer for that might help me resolve this.
I know the track is in service mode when running DCPRo decoder from JMRI, as it tells me in a green font at the bottom of the screen. How do I take my Arduino DCC++ into main mode?
I’m just trying to get a test setup on small loop of track to try it out before moving on to possibly adding decoders to my older engines and starting new hobby.

The H bridge was a purchase of Amazon rated at 30volts 5 amps. I’m using one port only. If I put an analog engine on there and use the software (JMRI OR DCC Controller) to turn on the power to the track the engine runs. So once again I assume it is sufficiently powering the track.

Thanks again for all the help. Once I get it running hopefully I can contribute in the future to the group.
 
D

Deleted member 4232

Guest
Moved
 
Last edited by a moderator:

robboz4

Registered
6 Dec 2018
23
0
68
America
Best answers
0
Hi!

The H bridge was this cheap one:

https://www.amazon.com/gp/product/B00CAG6GX2/ref=ppx_yo_dt_b_asin_title_o00__o00_s00?ie=UTF8&psc=1

And I think it might be a problem. In using the DecoderPro ( JMRI 4.14 on Java 1.8.0-151 it doesn’t say DecoderPro 3 in the about box) I get different values when trying to read CV values with the single CV Programmer panel. The first read of CV 107 gives 154. Then trying to read CV108 I get a 308 error, but then a successful read of 52. But after that successful reads yield different values, including for CV107. And there are many 308 issues when trying to read any value. As I know CV 1 should be the address of 3, I should not be getting 108.
Also using the traffic monitor after a few turning on and turning of sounds I see continuous traffic of the last command. Turning off the power doesn’t stop it. So not sure whether that’s a bug in the JMRI code, the Arduino DCC++ code.
I have captured a log of the output. Should I file a report?

Thanks for the tip on switching the track from service to main. I thought that was it, but as the symptoms didn’t change thought I had it wrong. Especially as both service and operations modes are online ( green text in lower panel). I would have thought the status would change on the track mode you wanted. I.e track is now in operation mode.
Yes there is a lot read and digest on JMRI, but like I said I was looking for a quick easy way to check out DCC++ before investing heavily with stuff I had... LGB Engine and a spare Arduino. So far new investment $7 on Amazon.

What are your thoughts on the H bridge?

Thanks and cheers!
 
D

Deleted member 4232

Guest
Moved
 
Last edited by a moderator:

robboz4

Registered
6 Dec 2018
23
0
68
America
Best answers
0
Thanks again. Looks like I'll invest in a new motor control board.

I can't find the DEEK one shown above. The Deek-robot web site is under construction and it points to AliExpress for the board, and that web site has no products. However, if I search for motor shield I get a lot of entries but none of them say DEEK. And they are even cheaper than the one I bought and for an arduino plugin board that's amazing. However, I'm not sure they will work given my recent experience. Here's an example:


Aliexpress Motor Shield Example

Open source etc.. But for $4.00 with a shipping time 35 Day who can go wrong!

Will post more when I have decided which board to buy!


Thanks!
 

PhilP

G Scale, 7/8th's, Electronics
5 Jun 2013
33,567
3,521
Nottingham
Best answers
0
Country flag
Go back to the instructional sites, and choose a *known to work* motor-shield..

Many (of the cheap ones) are not capable of switching fast enough to faithfully reproduce the DCC signal. - That is very probably your problem. :think::think:
 
D

Deleted member 4232

Guest
Moved
 
Last edited by a moderator:

beavercreek

Travel, Art, Theatre, Music, Photography, Trains
24 Oct 2009
17,704
705
Colchester, United Kingdom
www.facebook.com
Best answers
0
Country flag
Decoder Pro and JRMI.
I have used it with many LGB, ESU, Massoth, Lenz, QSI, Soundtraxx, Digitrax and TCS.
I use the Mac version and have also tried it using Windows on a Mac (Parallels and Boot-camp).

It has always behaved well and barring the fact that it is not as accomplished at programming sound as the dedicated software/module packages (eg ESU's Lokprogrammer or Massoth's PC module), in fact Decoder Pro/JMRI will not allow sound file programming. That is when I use the manufacturers software/module instead of Decoder Pro.
I have yet to 'brick' a decoder.
Also, to be fair, there can even be problems and challenges sometimes with sound files using the manufacturers own programming software.

So in defence of Decoder-Pro/JMRI.... the interface is more graphical (although ESU and to a certain extent Massoth have made strides to make their software a little more user friendly)... it deals with many makes and models of decoder (just make sure that you choose the correct template for your decoder).

Just my point of view based on about 200-300 uses of the program to alter decoder behaviour
 
Last edited:
  • Like
Reactions: 1 user

PhilP

G Scale, 7/8th's, Electronics
5 Jun 2013
33,567
3,521
Nottingham
Best answers
0
Country flag
just make sure that you choose the correct template for your decoder.

There's the rub, and possibly part of many first-timers problems with the software?? :think::think:

Just when they need it to show exactly the correct template, it probably doesn't. - But the software 'identified' the decoder, so they continue. :oops:


You can't beat just reading the manufacturer id, going to the NMRA listings, then 'Googling' for an image, to see if it matches what is in the loco.
:nerd::nod::nod:
 

beavercreek

Travel, Art, Theatre, Music, Photography, Trains
24 Oct 2009
17,704
705
Colchester, United Kingdom
www.facebook.com
Best answers
0
Country flag
There's the rub, and possibly part of many first-timers problems with the software?? :think::think:

Just when they need it to show exactly the correct template, it probably doesn't. - But the software 'identified' the decoder, so they continue. :oops:


You can't beat just reading the manufacturer id, going to the NMRA listings, then 'Googling' for an image, to see if it matches what is in the loco.
:nerd::nod::nod:

:cool::cool:
 

JimmyB

Now retired - trains and fishing
23 Feb 2018
6,948
921
69
Weston-super-Mare
www.tumble-down-falls.co.uk
Best answers
0
Country flag
It would seem if I ever move to DCC I am going to have a lot of questions, currently all this goes straight over my head.
 

stockers

Trains, aircraft, models, walking, beer, travel
24 Oct 2009
25,631
3,795
65
Nr. Ashford, Kent. England.
Best answers
0
Country flag
The thing is Jimmy, you don't actually have to do any of this to enjoy DCC - unless you want to. Nearly all suppliers will supply a decoder set up for you. All you need to do is change the address - easy.
Everything else is just playing, but why not, it can become part of the hobby - but only if you want it to.
 

idlemarvel

Neither idle nor a marvel
13 Jul 2015
3,136
801
Ascot
Country
Mars
Best answers
0
Country flag
It would seem if I ever move to DCC I am going to have a lot of questions, currently all this goes straight over my head.
That's because robboz4 robboz4 wanted to build his own system which is what you might call diving in the deep end. If you know how to swim that's fine but if you have only watched swimmers and think to yourself that looks easy then it's probably a bad idea. :)
If you want to start DCC I would suggest a starter set from a manufacturer which has all the bits that you know will work together - power supply, command station, controller and loco with decoder - to get an understanding of how DCC works hands on and the benefits it can bring. Many of the issues with DCC are let's say not complete compatibility between manufacturers, so a starter set avoids that issue until you have the experience. I don't mean to sound patronising, this is how I started with Hornby OO digital starter set many years ago.
 
  • Like
Reactions: 1 users