Keyboard Shortcuts
Likes
- Jmriusers
- Messages
Search
Locked
Re: Using Arduino to measure train speed - how do I send speed to JMRI for panel display?
Thanks Steve and Bob, but of course these suggestions lead to other questions. ?Definitely seems like I need to get the speed into a memory variable so that it can be displayed on a panel. ?Now the question is how to do that...
I am already defining the Arduino as a serial port to act like it is a C/MRI SMINI. ?But once I do that, it can only transmit single bits to turn sensors active or inactive (which I still want to do). ?So here is an off-the-wall idea: what if I use 7 of those bits (the SMINI emulation code I am using gives me 24 so I can definitely spare 7) to in essence create a binary number representing speed. ?In other words, and labeling these bits 0 to 6, use Arduino code to turn on bit 5 (32 in binary) and bit 0 (1 in binary) to be a speed of 33 or bit 6 (64 in binary) and bit 1 (2 in binary) to be a speed of 66, etc. ?Since these bits are then linked to sensors in JMRI, this would get me 7 sensors which, if read as zeroes and ones, would be my speed in binary. ?So next question: can I read and compute with sensors in Logix as if their values were zeroes and ones to create a Logix that sets a memory variable with the speed in decimal? Just trying to keep the complications on the Arduino side rather than cluttering up my already overloaded computer with too many Jython scripts.... Thanks again, Jerry ___________________________________ jerryg2003@... |
Locked
Re: I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.
Do you know Paul Bender by chance. He belongs to our club. Also a friend. I
toggle quoted message
Show quoted text
think he has helped with JMRI software in some way. -----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Ken Cameron Sent: Wednesday, August 8, 2018 11:56 PM To: [email protected] Subject: Re: [jmriusers] I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders. CWT, I suggest you examine issues like what size of wires, length of runs, and the connections themselves for the good vs bad installation. You may find things like one was shorter or smaller wires, that could make a difference too. In general, there are only minor differences in the DCS200 vs DCS100, mostly the output current. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.com www.syracusemodelrr.org |
Locked
Re: I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.
CWT,
I suggest you examine issues like what size of wires, length of runs, and the connections themselves for the good vs bad installation. You may find things like one was shorter or smaller wires, that could make a difference too. In general, there are only minor differences in the DCS200 vs DCS100, mostly the output current. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.com www.syracusemodelrr.org |
Locked
Re: Detection going crazy
Hi folks
We finished going through everything tonight and we did find some issues with the cab bus. We found a couple of shorts as well as a broken wire. That seems to have fixed the issue with the throttle displays going crazy. However we are still having issues with the panel showing things that are way different from what is actually happening on the layout. i.e. There is only one train on the layout and there are multiple blocks (more than 6) showing a train. As the train moves around the layout the panel does not reflect the train movement. The NCE AIU's have a LED for each of the BD20's that are connected and the AIU's are showing what is happening on the layout correctly. For whatever reason the data is not being reflected on the panel. Someone suggested that maybe the CAB bus power was to low. We checked the voltages at each of the jacks and they range from 10 to 15V, The later happening after the boost given by the "wall wart". According to NCE the minimum voltage is around 8V so odds are it is not that. ?have more suggestions. Thanks Albert I've also doubled checked all of the sensor tables, block tables and the block segments on the panel and everything is programmed correctly. I'm hoping some of you may |
Locked
Re: I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.
Yes, Ken I do think the problem is a setting in the DCS 200. I will find out
toggle quoted message
Show quoted text
next week when the Clubs things are back from the week at the Hartford Fair. I will take my laptop and USB connection there since I know that system does work. But still what could it be in the DCS 200 causing the communication problem with curtain decoders? Like I said the club uses a DCS 100. -----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Ken Cameron Sent: Wednesday, August 8, 2018 10:12 PM To: [email protected] Subject: Re: [jmriusers] I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders. If you can program somewhere else, that implies decoder/loco are ok, but the one site/command station is suspect. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.com www.syracusemodelrr.org |
Locked
Re: Using Arduino to measure train speed - how do I send speed to JMRI for panel display?
I use that script all the time. Works very well over Bluetooth for physical controllers.
Dave, Brisbane, Australia |
Locked
Re: Turnout automation
Hello Quinametin, sounds interesting. Are you able to share you equipment setup, scripts and sketches?
For your consideration, Dave, Brisbane, Australia |
Locked
Re: WiThrottle minor issue going from 4.4 to 4.12
Ours was displaying 2 addresses, but only one worked.
I disabled the Wi-Fi connection, leaving only the LAN connection to the wireless router. Now, it works. ? |
Locked
Re: Upgrade from 4.11.2 to 4.12 failed
Dave, thank you so much, except for the command station, everything was set to Internal. I now have control of track power and use of the throttle. It's too late tonight for me to try any programming here in eastern Pennsylvania. I will try some tomorrow. Thanks again.
|
Locked
Re: I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.
If you can program somewhere else, that implies decoder/loco are ok, but the
one site/command station is suspect. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.com www.syracusemodelrr.org |
Locked
Re: I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.
¿ªÔÆÌåÓýJMRI cannot tell you what type of decoder it is if it can't read it! BLI/QSI problems aside, given a properly functioning DCC system , JMRI can read an ESU decoder (provided it doesn't have an active keep-alive) and JMRI can definitely read the manufacturer ID. It can also uniquely identify the exact model for any modern ESU decoder (except the Essential Sound Unit, which is not in JMRI yet as I am working with ESU to clarify some points). --? Dave in Australia The New England Convention 2018 On 8 Aug 2018, at 12:47 PM, cwt2168@... wrote:
I have also tried without the |
Locked
Re: Upgrade from 4.11.2 to 4.12 failed
¿ªÔÆÌåÓýHave you checked the settings In Preferences->Defaults. Nothing should be set to Internal. Upgrading to 4.13.1 will do no harm, but it won't solve your problem. --? Dave in Australia The New England Convention 2018 On 8 Aug 2018, at 11:00 AM, diesele645@... wrote:
Preferences are set correctly for the DCS 200, Locobuffer USB, and Loconet, yet the top of the roster page has them set to Internal, and trying to change on the roster page to Loconet won't save.than? Also programming mode defaults to paged mode rather than direct byte. Interestingly, to me, I can use Monitor Slots and clear slots. Would it be worthwhile to try upgrading to 4.13.1?? Joe P. |
Locked
Re: Loksound Select the sound tab in JMRI
¿ªÔÆÌåÓýIt means that sound slot will not play unless Sound Slot 1 is playing (activated). --? Dave in Australia The New England Convention 2018 On 9 Aug 2018, at 2:10 AM, Lajoie <jalajoie1@...> wrote:
What is the effect of the ''Requires Drive Sound'' option within the sound tab ? |
Locked
Re: Using Arduino to measure train speed - how do I send speed to JMRI for panel display?
If you¡¯re willing to make a serial connection to the Arduino for transferring the data, look at the jython/serialinput () scripts. That¡¯s a way to send bits and analog values from an Arduino, receiving them via a script and serial port.
Bob On Aug 8, 2018, at 10:10 AM, JerryG via Groups.Io <jerryg2003@...> wrote:-- Bob Jacobsen rgj1927@... |
Locked
Re: I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.
Chances are the decoder is bad. I had 2 loksound select decoders and both gave me the same error with my loksound programmer.? I send them to esu to get replaced.? LLed's for number boards are normally illuminated by the headlight solder pads.? Chris? On Wed, Aug 8, 2018 at 3:29 PM Michael Mosher <mjmx1@...> wrote:
|
Locked
Re: I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.
I have had problems also with two Loksound decoders and took a known good
toggle quoted message
Show quoted text
engine and did a read all sheets and copied the full sheets to the problem engines and brought them back to life. -----Original Message-----
From: [email protected] <[email protected]> On Behalf Of cwt2168@... Sent: Wednesday, August 8, 2018 6:04 PM To: [email protected] Subject: Re: [jmriusers] I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders. Also the same engines I had problems with at home worked at the Club. FYI Not decoder problems. -----Original Message----- From: [email protected] <[email protected]> On Behalf Of cwt2168@... Sent: Wednesday, August 8, 2018 5:59 PM To: [email protected] Subject: Re: [jmriusers] I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders. Ok thanks, Let me throw this in the mix. We are using the same setup at my RR Club "Central Ohio N-Trak" the only difference is They are using a DCS 100 not a DCS 200. Also no program booster. That is why I am thinking the problem may be in the DCS 200. I am unable to take my setup to the Club right now because our system is at a County fair with the layouts this week. I read and write just fine using the Club setup. -----Original Message----- From: [email protected] <[email protected]> On Behalf Of Ken Cameron Sent: Wednesday, August 8, 2018 5:09 PM To: [email protected] Subject: Re: [jmriusers] I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders. Number boards flash, that makes me think they are direct wired to the rails. If so, and the test would be that you can't turn them off, that could interfere with readback. The other test would be making sure all the functions are off before moving to the programming track. Some decoders try to retain settings and that could also confuse things as it draws power. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.com www.syracusemodelrr.org |
Locked
Re: I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.
Also the same engines I had problems with at home worked at the Club. FYI
toggle quoted message
Show quoted text
Not decoder problems. -----Original Message-----
From: [email protected] <[email protected]> On Behalf Of cwt2168@... Sent: Wednesday, August 8, 2018 5:59 PM To: [email protected] Subject: Re: [jmriusers] I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders. Ok thanks, Let me throw this in the mix. We are using the same setup at my RR Club "Central Ohio N-Trak" the only difference is They are using a DCS 100 not a DCS 200. Also no program booster. That is why I am thinking the problem may be in the DCS 200. I am unable to take my setup to the Club right now because our system is at a County fair with the layouts this week. I read and write just fine using the Club setup. -----Original Message----- From: [email protected] <[email protected]> On Behalf Of Ken Cameron Sent: Wednesday, August 8, 2018 5:09 PM To: [email protected] Subject: Re: [jmriusers] I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders. Number boards flash, that makes me think they are direct wired to the rails. If so, and the test would be that you can't turn them off, that could interfere with readback. The other test would be making sure all the functions are off before moving to the programming track. Some decoders try to retain settings and that could also confuse things as it draws power. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.com www.syracusemodelrr.org |
Locked
Re: I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.
Ok thanks, Let me throw this in the mix. We are using the same setup at my
toggle quoted message
Show quoted text
RR Club "Central Ohio N-Trak" the only difference is They are using a DCS 100 not a DCS 200. Also no program booster. That is why I am thinking the problem may be in the DCS 200. I am unable to take my setup to the Club right now because our system is at a County fair with the layouts this week. I read and write just fine using the Club setup. -----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Ken Cameron Sent: Wednesday, August 8, 2018 5:09 PM To: [email protected] Subject: Re: [jmriusers] I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders. Number boards flash, that makes me think they are direct wired to the rails. If so, and the test would be that you can't turn them off, that could interfere with readback. The other test would be making sure all the functions are off before moving to the programming track. Some decoders try to retain settings and that could also confuse things as it draws power. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.com www.syracusemodelrr.org |
Locked
Re: I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.
¿ªÔÆÌåÓýYour going to get that error using jmriTry writing a new address by selecting the decoder yourself on decoder pro Run the engine? It probably will run on the new address Or Use your dcc handheld to change the address. ?It will work TONY On Aug 8, 2018, at 1:23 PM, cwt2168@... wrote:
|
Locked
Re: I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.
Number boards flash, that makes me think they are direct wired to the rails.
If so, and the test would be that you can't turn them off, that could interfere with readback. The other test would be making sure all the functions are off before moving to the programming track. Some decoders try to retain settings and that could also confuse things as it draws power. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.com www.syracusemodelrr.org |