![]() ![]() There is a button next to it called state which you can use to test it. User Name: "Signal" (This can be whatever you fancy) System Name: CH1 (The C is the system identifier which should match step 7, the 'H' stands for 'Head' and the 1 is the signal number) (10)For this signal we need an 'Double Output' signal as we only have two outputs, a red light and a green light First go to Tools->Tables->Signals->Signal Heads ![]() (Note, the C is the system identifier, the 'T' stands for 'Turnout' and the 1 is the turnout number) Make a note of these two identifiers as you will need them in the next step. Select the file you saved previously and click Load. To load the file next time you open JMRI, on the main JMRI window select Panels->Load Panels. Quick note, to save the changes, in the lights window, click 'File->Store Configuration only to file'. Click the button the LED attached to D13 should come on. There will be a button beside it under 'State' which lets you control the light. (15) You should see your new light in the 'Lights' window you opened in step 10. Then click 'OK' to the reminder that appears (its just telling you to remember to save changes later on) ![]() You should see "New Light added:CL1,DigitalPin13" or a message along those lines. I called it DigitalPin13, but anything will do, even an empty box. Username allows you to set a friendly name for the Light. Lets start with a quick test and set up a 'Light'. You can do this one of two ways, either using a 'Light' (good for a quick test), or using a 'Signal Head' (You will need this later for your signals). To use the hello_world sketch, you need to set up an output in JMRI. (If you see an error message, ensure you have downloaded the hello_world sketch to the Arduino and the correct COM port is selected) (9) Once it reopens you should see in the main window: (8) It will ask if you want to restart JMRI. Finally click the 'Save' button in the bottom left of the screen. If you see a warning saying that "Error - Node with address '0' already exists", then click the Delete Node button, then click the Add Node button again. You should see a message under Notes saying "C/MRI Node added. (5) On the window that appears set the following: (3) Select your serial port and then check the "Additional Connection Settings" box. (2) Select 'C/MRI' as the system manufacturer, and then select 'Serial' as the system connection. Click connections and then go to the '+' tab along the top. You should see a connections option on the left of the screen. (1) Open JMRI (Decoder Pro), then go to Edit->Preferences. There are instructions at the top of the hello world sketch, but regardless, here goes: I am using JMRI version 2.12 as that's what I installed a year or so ago, but the instructions should apply to the latest version. I have got the Hello World example running. I'm just playing around with CMRI to see how it works. ![]()
0 Comments
Leave a Reply. |