The code is being updated in the Github, so you may wish to check this. I modified mine to 8Mz, and with this the cyce time with the RFID reader was about 15ms. Notes: The MRFC522 code I used had a bug in the set clock speed, and defaulted to circa 2MHz. CV 5 is the highest servo setting (typically 170 degrees) with CV 9 being the fastest backwards speed (Setting typically 10 degrees). Cv2 is the start servo setting(ie motor just running)(typically 95 degrees) forwards, and CV6 is the equivalent for backwards(typically 85 degrees). The Loco control uses CV's 5,2 6 and 9 unconventionally in this version. If not being used for code timing this pin works as per the Static version, being switchable as an output, or as in input, both with addresses set via the Locoio interface. This latter is also the blue led on the esp8266.Ī front light (D3) and Back light (D2) are also defined and will switch on with f0 and changes of direction. IT ALSO uses D0 for RST and D4 for SS pin. The RFID reader uses D7,D6 and D5 for MOSI, MISO and SCK. When #define _LOCO 1 (line 1 of the ino) is set, the code sets itsself up as a MOBILE device,Īnd expects a RFID reader RC522 to be fitted. this is pulsed to indication message reception and is also used for the RFID interface (see later) just do not try to use it for Red Led control!.ĭ1 can be selected to give timing pulses for debug and test purposes.ĭ4 is the blue LED. Using the following ports can or will cause issues:ĭ0 is the red led, but we can still use D0 for a servo. It should quickly flash when a message is sent or received. The Addressit sends will be the one set in locoio interface.ĭ4 is connected to the ESP8266 blue led, which is used to indicate message reception on the board or switch change detection. When a change is sensed on an input it will send a B2 Message to rocrail. Note: The red led will turn on because D0 is used on a V2 module.) Servos turn off after reaching their positions (plus a short additional delay) to save power. Servo "speed" is set by "V" and this and the servo end positions can be changed using the Rocrail LocoIO "servo" tab. Inputs are "Input" (SV3*port number &0x88 = 0x00) Servos are set up as config "output and output pulse" (SV3*port number &0x88 = 0x88)ĭigital output is Output and not pulse ((SV3*port number &0x88 = 0x80)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |