Hello everyone,
I'm writing in English because my German grammar isn't at a level that I can start a thread at this MoBa forum.
I have a Arduino Nano + shield to control turnouts and/or signals. The function of this device is like the K83/84 decoders.
The understanding of programming the Arduino is on an OK level, and all the tutorials on YT are very helpful. Switching with buttons is no problem, I can control turnouts with coils and servo's (SG90 servo with a 3Dprinted adapter shaped like Marklin e-drive for Crail). And change the lights of signalposts.
But that is all analog driven by switches and buttons and in combination with and MS1. I've also a set 6021/6036/6040/6002. What fun would it be to control it with the 6040! and there is the giant leap for my knowledge.
The theoretical stuff i've read multiple times, have an optocoupler (6N137) working and been playing with different .ino files and libraries.
Links to them:
Laserlicht his library https://github.com/Laserlicht/MaerklinMotorola didn't use this no more
Laserlicht his library bugfixed by Mmame https://github.com/mmame/MaerklinMotorola
The Attiny85 decoder ino of Mmame https://github.com/Laserlicht/MaerklinMotorola
Taken different bumps in the road...... changing code Bits to Trits (?!?), Trouble compiling for Arduino Nano and even slimming down the (Mmame) code to the bare minimum for only reading and presenting the MM protocol to the serial monitor of the Arduino com port.
Sadly nothing works and the thing is driving me crazy, is someone willing to assist?
Answers in German in no problem, reading and speaking is something i can, writing is worse.
Wkr/Mfg Christiaan
Edit Wed 14. Apr 2021: Progress had been made, see post #13. Project had now it's own name: ARDIMO-wise!
The name ARDIMO is the acronym for AR(duino) DI(gital) MO(torola). the suffix wise refers to the wissels/seinen (dutch for turnouts and signals).