![]() ![]() But these steps (the length of the pulses) could be also read by the Arduino. These steps are realized as a pulse-wide modulation which power the motor. A MM decoder has 14 or 27 steps for the speed. I think about using an older decoder for locomotives. This will work but will be practically unusable. Using function decoders will work theoretically but will use a bunch of decoders and addresses. There is no MM-decoder with +10 functions. And so far, I don't know whether I will realize it. If the key is pressed by mistake, pressing again leaves the programming mode.Įdited by user 21 December 2016 10:25:07(UTC) In this programming mode a LED near the USB-port flashes rapidly. If something is mismatched with the position of the bridge, pressing overwrites the position in the memory according to the position chosen. ![]() If the position is equal to the key pressed the loco is turned 180°. If the bridge does not travel in the right direction to reach rail 1 in the shortest way, the red and green connections on the turntable must be swapped. As a first test the key should be pressed. On pressing one of the keys - it rides to according position. After installing the sketch the keys must be pressed to rewrite the start-position.Īt the initial start the turntable should be in the position between 0 and 7 like on the sketch below. When the sketch is installed the first time the EEPROM could contain an invalid value for the position. The most import part is the current sensor: It notices when the bridge has reached a position and triggers the restart. and the ino-file in the zip-file attached.After programming the ARDUINO works as stand-alone device) a computer to upload the sketch to the ARDUINO ( only for the programming.or an USB-Cable to supply it from a computer wall-plug power supply for the Arduino.With smaller modification of the code it can be also build with a ARDUINO MINI PRO. I don’t have any preference for any of the sellers): Hardware (all ebay links just as a sample. All parts used can be bought from China for less than 25.00 EUR. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |