![]() To ensure that the outputs for turnouts or signals are always used inverted, the value in the field "Parameter" on the "Interface" tab of these objects must be set to "1". When changing the option "Invert / Pull-up", the following must also be observed: For outputs, the "Invert" setting here is only valid when starting Rocrail. After that, all used pins are listed at "Query" and the options can be changed directly. Then Rocrail should be restarted and all commands of objects that use output pins should be executed once because at startup all used input pins and, when executing a command, all output pins are created from Rocrail in the DCC++ CS temporarily. It is generally recommended that you first create all objects in the plan with the desired pins. I use Rocrail to drive the trains and Arduino based devices for turnout control, bloc detection and reverse loops. The hardware part is fairly straightforward: 8 digital output pins are used on the arduino, connected to the 8 relay inputs. The relay board technically requires 5V in inputs but in fact it switches nicely using the 3.3V inputs. With the stationary version (set defineStatic) multiple ESP8266's can be used as stationary nodes and sense trains, or be used to swich signals or servos to control points. The Arduino Due, the DigiX and pretty much all the ARM-based Arduino boards run at 3.3V. The board accepts a static TTL logic level input for each servo. Rocrail arduino code#This is experimental code that controls Servos and /Switches and reads RFID tags over WIFI using Loconet UDP. The board drives 1 to 6 servos for Model Railroad turnout (switch) control or for any other accessories, see fritzing and arduino sketch. ![]() Rocrail arduino manual#Manual intervention is required, only in the case that other options than the default ones are to be used at startup. WIFI ESP8266 Arduino code for use with Rcorail. ![]() For input pins, the option "Invert / Pull-up" is activated by default, i.e. Rocrail automatically defines Arduino pins as input or output pins as soon as the pins of such a DCC++ CS are used for triggering sensors, turnouts or signals. ![]() Usually no manual settings are required here. In deze video leg ik uit hoe je de DCC++ EX (of CS-EX) centrale instelt in Rocrail en welke instellingen belangrijk zijn om een locomotief te laten rijden.00. 1 = use internal pull-up resistor for the pinÄ = don't use internal pull-up resistor for the pin ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |