¿ªÔÆÌåÓý

Locked Controlling Servos directly connected to Arduino with DCC++ Base Station #arduino #dccpp


 

Hello Group,

I have an Arduino Mega with motor shield running DCC++. I also have a Raspberry Pi running Steve Todd's image. I have upgraded JMRI on the RPi to v4.16 and Java 1.8.0_65. I have the letter "D" as the connection prefix in the JMRI connection preferences.

I have a servo connected directly to the Mega with 5V, GND, and PIN15 for control. I checked the wiring and have a good 5V going to the servo. I have created an entry in the JMRI turnout table with hardware address 115 (now shows as DT115) and chose "BSOUTPUT" in the Feedback Mode chooser. I then added an output to the DCC++ base station configuration with Index 115 assigned to PIN 15.

I built a quick panel with DT115, and this seems to work OK as the icon moves when clicked, I see "closed/thrown" in the turnout table and I see the Output Cmd "Output ID: 115 low/high" in the DCC++ traffic monitor, but the servo does not move. I have tested the servo by itself using an Arduino servo sketch and it works fine.

What have I missed?

Thanks for your help,

Richard

Join [email protected] to automatically receive all group messages.