¿ªÔÆÌåÓý

Date

Locked Re: Suggestion for next release #operationspro

 

Getting better all the time Dan; thanks!


Locked Re: Raspberry Pi Servo pHAT

Jason Rausch
 

Richard,

Yes, that is why I added the coaxial style power socket to my board.? I wanted a robust power connection that would also provide enough current for all 16 servos.? As for Steve Todd's work, I have attempted to contact him several times on various forums with no luck.? I am curious about this, as I have not found much information on setting it up and using it.? I have been using JMRI for several years off and on and while I'm no expert, I have a pretty good handle on it.? I mostly run it on a Raspberry Pi in a headless configuration and just RMD into it when I need to.

I plan to still make my version of the board available at my website, once I can work out any changes I want to make.

Jason Rausch
www.ke4nyv.com


On Friday, July 26, 2019, 09:26:50 AM EDT, Richard Sauerbrun <Richard@...> wrote:


Hello Jason,

?

Your project sounds very similar to what I am investigating. A few comments:

?

  • The SparkFun Servo pHAT for Raspberry Pi has an optional 5V mini plug so you can power the servos separately from the Raspberry Pi
    • There is also a spot under the board where you can sever the power connection between the RPi and the pHAT
    • With the proper external power supply connected in this way, you should be able to handle all 16 servos
  • With Steve Todd¡¯s Raspbian/JMRI image running on the RPi, you should have the user interface needed to move the servos
    • With JMRI¡¯s Panel Pro, you can create a control panel with buttons that will activate the connections to the servos
    • All JMRI panels may be displayed via the web server and should be visible on any mobile device connected to JMRI

?

I am more of a software guy (40 years¡¯ experience in the industry) who still looks at the hardware like a magic black box. That being said, I do not like to write code ¡­ it is much easier and much more reliable to find code that already works. That I why I love JMRI ¡­ it is a platform with significant functionality right out-of-the-box (and free as well).

?

Richard

?

?

From: sigs@... <sigs@...>
Sent: Thursday, July 25, 2019 10:01 PM
To: [email protected]; Richard Sauerbrun <Richard@...>; [email protected]
Subject: Re: [jmriusers] Raspberry Pi Servo pHAT

?

Richard,

?

I have a project I have been working off and on with for the last few months using a Raspberry Pi Zero W and custom 16 channel PWM board I created, similar to the one you are using.? The difference is I wanted to make the power interface a little more easy to work with.

?

My general goal is to create 16 channel "nodes" for driving 16 servo turnouts around a layout through an IP/web based control interface.

?

I have attached a couple of pictures.? I am working on the code in Python.? So far my limited coding ability has been my major blocking point for really getting this working the way I want it to.? I'm having a hard time getting getting any web access to control the IO pins directly, to talk with the PWM controller.? I'm really a hardware guy, forced to write crummy code :o)

?

Jason Rausch

RPC Electronics, LLC

?

?

?

?

On Thu, Jul 25, 2019 at 8:42, rsauerbrun

<richard@...> wrote:

Hello Group,

Thank you to all who commented on my earlier post where I was trying to connect servos directly to my Arduino Mega running the DCC++ sketch. With everyone's help, I have decided to abandon that approach.

I have ordered a Pi Servo pHAT for my Raspberry Pi that is running JMRI. This $10.95 product has 16 channels that allow for direct connection and management of 16 servos. Here is information on how it works:



Has anyone used a this product, or something similar? I am assuming I will be able to configure and operate this within the JMRI environment.

Richard


Locked NCE USB Interface

 

Hello,

I want to report that NCE tested my USB interface. It was working correctly. One of the cables I was using was defective. Therefore JMRI could not locate NCE interface. I apoligize to all the members who spent time trying to figure out why my JMRI on my computer may have been faulty.

--
Thank you,

Ken Skopp
Train Show Coordinator
Grand River Valley Railroad Club
616-667-9680
ttp://


Locked DecoderPro

 

I have question about programming in DecoderPro. I have a HP laptop Windows 10 and a SPROG II V3 and SPROG power supply connected to a programming track. This system is used for programming only. I don't know when it happened but I was checking a DigiTrax SDHX166D sound decoder. I tried to change CV 60 to another sound file which I was able to do but the columns with the Read, Write were missing the whole section with those columns is blank. The sheets such as sound, basic, motor etc. do not have write sheet and other tabs missing. Any changed that are made can't be written. I decided to upgrade to 14.7.2 test version and the same happens with the upgrade. I don't know when this happened but it could be that a MS upgrade caused this. I have not used the program in a while for programming but have used it to test locomotives without programming. I appreciate any help but advised that I'm not into programming so need instruction on how to proceed.

Al Babinsky



Sent from Xfinity Connect Application


Locked Re: JMRI Decoder Pro, EasyDCC, and SoundTraxx

 

Victor, Thanks again for your help, and again for everyone else's!.

I'm going to end this thread for now. We've wandered far from whether it was possible for Decoder Pro to program SoundTraxx decoders through my EasyDCC system. The good news is it should be fine: others are doing it.

Today I got my Pi showing JMRI on a monitor, loaded your suggested VNC on my laptop, and got it connected to the Pi! After that, and more reading of Steve's instructions, I managed to load my existing unfinished panel files on the Pi, and it's displaying my LE panel now. Phew! I didn't need to buy a keyboard, nor use my old Netgear router, either....

A few issues remain.The Pi wants Loconet, not CMR/I and complained about all my turnout and sensor designators. I don't yet have it connected to my EasyDCC. I also didn't get my tablet to connect and display the panel, too. But, all told, it's been a pretty good day!

Time for dinner, and to let the old 'gray matter" cool down!?? :--)

Don Weigt
Connecticut


Locked Supporting turnouts with feedback compatibility

 

I have a question about compatibility of turnouts with feedback and turnouts that have a second physical device or supporting turnout configured.
Up until now I have happily run the system without configuring the feedback from the turnouts.
Having the feedback working solves several issues particularly around initial state of the layout.
So a simple turnout with 2 point feedback works a treat and does what you expect.

BUT when I apply feedback to two turnouts and configure them on the panel to be supporting as you find in a crossover, problems start occurring.

Firstly the turnout config pop up hangs when you try to save it and cancelling it, defaults to previous setting.
If you switch off the supporting tick box and then configure the turnouts and then put the supporting tick box back on another problem occurs.
The turnout status sometimes becomes inconsistent and often just wrong.

I am assuming the code is having a problem dealing with two sets of feedback for one object.

Is this something anyone else has tried and is there an easy way to get this to work.

I am on V4.16.



Locked Re: Problem with Siglet #scripting

 

That should be

jmri.NamedBean

on the 19th line, not

jmri.namedBean

(Upper case N)

Bob

On Jul 30, 2019, at 1:19 PM, Petr ?¨ªdlo via Groups.Io <sidlo64@...> wrote:

I have simple script

# Siglet_SX.py

import jarray
import jmri

class Siglet_SX(jmri.jmrit.automat.Siglet) :
def defineIO(self):
self.S1 = masts.getSignalMast("S1")
self.setInputs(jarray.array([self.S1], jmri.namedBean))
return

def setOutput(self):
self.S = masts.getSignalMast("S")
self.VOLNO = "Volno"
self.S.setAspect(self.VOLNO)
return

# start
Siglet_SX().start()


When I run it, I got error message:

2019-07-30 22:07:33,987 jython.InputWindow ERROR - Error executing script [AWT-EventQueue-0]
javax.script.ScriptException: AttributeError: 'javapackage' object has no attribute 'namedBean' in <script> at line number 19
at org.python.jsr223.PyScriptEngine.scriptException(PyScriptEngine.java:202)
...
Caused by: Traceback (most recent call last):
File "<script>", line 19, in <module>
File "<script>", line 9, in defineIO
AttributeError: 'javapackage' object has no attribute 'namedBean'

at org.python.core.Py.AttributeError(Py.java:205)
...
... 41 more

I don't undertund it.
Where am I making mistake?

thanks

--
Petr ?¨ªdlo
Czech Republic

--
Bob Jacobsen
rgj1927@...


Locked Re: Suggestion for next release #operationspro

 

I've also fixed the edit schedules table so that will be saved correctly in the next test release.

Dan


Locked Problem with Siglet #scripting

 

I have simple script

# Siglet_SX.py

import jarray
import jmri

class Siglet_SX(jmri.jmrit.automat.Siglet) :
??? def defineIO(self):???????
??????? self.S1 = masts.getSignalMast("S1")
??????? self.setInputs(jarray.array([self.S1], jmri.namedBean))
??????? return
???
??? def setOutput(self):
??????? self.S = masts.getSignalMast("S")
??????? self.VOLNO = "Volno"
??????? self.S.setAspect(self.VOLNO)
??????? return

# start
Siglet_SX().start()


When I run it, I got error message:

2019-07-30 22:07:33,987 jython.InputWindow??????????????????? ERROR - Error executing script [AWT-EventQueue-0]
javax.script.ScriptException: AttributeError: 'javapackage' object has no attribute 'namedBean' in <script> at line number 19
??? at org.python.jsr223.PyScriptEngine.scriptException(PyScriptEngine.java:202)
??? ...
Caused by: Traceback (most recent call last):
? File "<script>", line 19, in <module>
? File "<script>", line 9, in defineIO
AttributeError: 'javapackage' object has no attribute 'namedBean'

??? at org.python.core.Py.AttributeError(Py.java:205)
??? ...
??? ... 41 more

I don't undertund it.
Where am I making mistake?

thanks

--
Petr ?¨ªdlo
Czech Republic


Locked Engine Only Responds to Short Address

 

I do not know if I did something while running my engine on WiThrottle or something happened spontaneously.? My engine will not run on any throttle(UT4 or DT500) when the long 4 digit address is selected. It runs fine if I select the 3 digit address however.? I do I recover my 4 digit address.? 3 digit is 127 the 4 digit address is 7127.
Thanks in advance for your help.
Bob


Locked Re: JMRI Decoder Pro, EasyDCC, and SoundTraxx

 

¿ªÔÆÌåÓý

Hi Don,

?

Yes, read Steve¡¯s doc.?

?

If I remember correctly, if you are able to connect via Wi-Fi then connect to the Raspberry Pi Hotspot and use VNC to connect and configure the Pi as needed.

?

If you have to connect wired then I think you might need a keyboard.

?

It has been a while since I set mine up.

?

Victor

?

?

Victor Gilbert

Supertendent

Sugarwood Railroad

?

?

From: [email protected] <[email protected]> On Behalf Of Don Weigt
Sent: July 30, 2019 12:14 PM
To: [email protected]
Subject: Re: [jmriusers] JMRI Decoder Pro, EasyDCC, and SoundTraxx

?

Thanks, Victor and others,

?

I got an HDMI cable today, and have the JMRI home page displaying on my monitor! The USB mouse works, too.? :--)

?

I suppose I'll need a keyboard connected to the Pi to configure it to connect to the router, at least. I'm debating whether to borrow the one from our primary computer, or spend the $20 or so to get another wireless keyboard and mouse for it. It they could serve as backups to the ones on our primary computer, too.

?

It's beastly hot here this afternoon, and the car is out baking in the hot sun. I think I'll read Steve's documentation for a while first!

?

Don Weigt

Connecticut


Locked Re: Suggestion for next release #operationspro

 

Thanks Dan, Yes, closing the window and re-opening does keep the column formatting the same. Sometimes I just keep opening windows using the PanelPro screen instead of using the task bar.
Thanks,
Bob


Locked Re: JMRI Decoder Pro, EasyDCC, and SoundTraxx

 

Thanks, Victor and others,

I got an HDMI cable today, and have the JMRI home page displaying on my monitor! The USB mouse works, too.? :--)

I suppose I'll need a keyboard connected to the Pi to configure it to connect to the router, at least. I'm debating whether to borrow the one from our primary computer, or spend the $20 or so to get another wireless keyboard and mouse for it. It they could serve as backups to the ones on our primary computer, too.

It's beastly hot here this afternoon, and the car is out baking in the hot sun. I think I'll read Steve's documentation for a while first!

Don Weigt
Connecticut


Locked Re: Suggestion for next release #operationspro

 

I should also note that column widths and order are not saved for the edit schedule window.? The details for a window are saved by window name, and in the case of edit schedule, the window name includes the name of the schedule.? This would mean that you would have to adjust each one independently, which I found annoying, so I provide with I believe are the best widths and order.

Dan


Locked Re: Raspberry Pi Servo pHAT

 

¿ªÔÆÌåÓý

Richard,

On Jul 30, 2019, at 9:53 AM, rsauerbrun <richard@...> wrote:
My board should arrive tomorrow so I can start experimenting. I have already prepared my JMRI preferences (running on the RPi) by adding the Raspberry Pi Foundation as a connection, and configured as RPi GPIO.

Once set up in preferences, you can add turnouts in the table associated with this connection. My assumption is that you connect each turnout servo to a specific GPIO pin for control. We will see if that works.

The GPIO pins that are available by default in JMRI are the GPIO pins on the RaspberryPi itself.

The chip on the servo boards provides another set of GPIO pins that are used to control servos.

There is a Java example showing how to use the chip in question here:

And here:


The second of those shows how to control a servo.

My intention is to use that second file as a guide for writing the script, with the changes required to make this work within JMRI.

Paul


Locked Re: Suggestion for next release #operationspro

 

Hi Bob,

If you resize a column it should stay that way unless you open a second window.? For example if you open the Cars window, the window location, and all of the columns get saved when you close the window.? Now if you open it again, it should be exactly the way it was.? Now if you open a second Cars window, that will have the defaults, you can again change it the way you want, and it can be different.? If this isn't they way its working for you, please let us know.

Dan


Locked Suggestion for next release #operationspro

 

This is a piddly suggestion (isn't it nice we are at the point where we can entertain piddly suggestions?);? when I resize a column in, say, cars or schedules, the column would stay resized unless resized again? Currently if a column is resized it reverts back to its original size when you leave the screen.
Thanks,
Bob Burke


Locked Re: JMRI Decoder Pro, EasyDCC, and SoundTraxx

 

Hi Don,

I use Steve Todd's image with my EasyDCC system and a PTB 100 connected to my program track.. I also have a Raspberry Pi connected to the EasyDCC.? I access via wired and wireless using the hotspot in Steve's image.? I like this setup very much.

Here is the link to RealVNC the remote desktop app (??).

Steve's documentation is good and gives the required passwords and everything you should need to get started.

Victor?


Locked Re: Raspberry Pi Servo pHAT

 

Thanks Paul,

My board should arrive tomorrow so I can start experimenting. I have already prepared my JMRI preferences (running on the RPi) by adding the Raspberry Pi Foundation as a connection, and configured as RPi GPIO.

Once set up in preferences, you can add turnouts in the table associated with this connection. My assumption is that you connect each turnout servo to a specific GPIO pin for control. We will see if that works.

Looking forward to your script as well ...

Richard


Locked Re: JMRI Decoder Pro, EasyDCC, and SoundTraxx

 

Don,

On 30 Jul 2019, at 2:30 AM, Don Weigt <dweigt47@...> wrote:

ps: As for the CV numbers, I just quickly viewed the online decoder document I found on the SoundTraxx site, and the highest number I noticed was 22x. I have no idea what decoders it was for.
Tsunami 2, Econami, ESU V4/Select/5 all make extensive use of CVs in the range 257-512 inclusive, the range specified by the NMRA for Indexed CVs (multiple pages of CVs 257-512, referenced by the index values in CVs 31 & 32). Hornby and some other decoders use CVs in the 513-1024 range.

Dave in Australia