Verfasste Forenbeiträge
-
AutorBeiträge
-
Matthias Runte
AdministratorKlingt interessant. Das sehen wir uns bei Gelegenheit mal an.
Matthias Runte
AdministratorThank you, we are giving our best.
As you said, you need a memory card and a speaker for train sounds. We are going to implement that one day. Until then, you can use the built-in sounds in Rocrail, if that’s a possible interim solution for you.
Matthias Runte
AdministratorNa ja, kann man so machen. Idee war eigentlich, das in der MotorShield Configuration zu machen. Aber was läuft das läuft. 🙂
Matthias Runte
AdministratorVisual Studio Code, um genau zu sein. Schau Dir mal die Doku von platform.io an, dort wirst Du fündig (platform.io serial monitor). Unten in der Symbolleiste den kleinen Stecker klicken.
Matthias Runte
AdministratorSchau doch mal in den seriellen Monitor. Das sieht dann in etwa so aus:
MattzoController booting…
Loaded mattzoControllerId from EEPROM: 52708
Connecting as MLC-SignalOvershoot-52708 to Wifi Railnet
.
MattzoController setup completed.
Wifi connected. My IP address is 192.168.178.49.Matthias Runte
AdministratorDas Verzeichnis der WLAN-Geräte im lokalen Netzwerk kann meist im Router aufgelistet werden. Bei der Fritzbox geht dies z.B. über Heimnetz/Netzwerk.
Aber wozu brauchst Du das? Für OTA?
Januar 1, 2023 um 23:40 Uhr als Antwort auf: MLC – with 2 MCP23017 and one PCA9685- Sensor work, Signal not working #5746Matthias Runte
AdministratorJust released firmware V1.0.1.
Matthias Runte
AdministratorIch hoffe die Bilder, die ich Dir per E-Mail gesendet hatte, haben ein bisschen geholfen.
Ich habe in den letzten Tagen ein paar Regressionstests gemacht und bin auf einen witzigen Bug in der Firmware gestoßen, der in speziellen Konfigurationssituationen auftreten kann. Dieser ist mit Release V1.0.1 behoben. Bitte Firmware updaten, falls Du auch die orangenen Servo-Motoren für die Brücke verwendest.
Dezember 31, 2022 um 13:22 Uhr als Antwort auf: MLC – with 2 MCP23017 and one PCA9685- Sensor work, Signal not working #5742Matthias Runte
AdministratorHappy to hear that. I have reviewed all of the MLC example files. There will be a lot of changes, updates and improvements in firmware version 1.0.1.
Dezember 31, 2022 um 01:51 Uhr als Antwort auf: MLC – with 2 MCP23017 and one PCA9685- Sensor work, Signal not working #5738Matthias Runte
AdministratorJepp, it’s the bug introduced by the MLC example configuration files in the bascule bridge configuration.
You need to do two things:
1.
Please remove these lines (in the bascule bridge configuration section)://Must be defined, but are zero
#define NUM_SIGNAL_ASPECTS 0
#define NUM_SIGNAL_LEDS 0
#define NUM_SIGNAL_SERVOS 02.
Please change (in the signal configuration section):>>
// Number of signals
const int NUM_SIGNALS = 8;
// Maximum number of signal aspects (e.g. red, green, yellow)
const int NUM_SIGNAL_ASPECTS = 3;
// Number of signal LEDs (usually equal to NUM_SIGNAL_ASPECTS)
const int NUM_SIGNAL_LEDS = 3;
<< into // Number of signals #define NUM_SIGNALS 8 // Maximum number of signal aspects (e.g. red, green, yellow) #define NUM_SIGNAL_ASPECTS 3 // Number of signal LEDs (usually equal to NUM_SIGNAL_ASPECTS) #define NUM_SIGNAL_LEDS 3 << Then it should be working. Cheers, MattzeDezember 30, 2022 um 20:16 Uhr als Antwort auf: MLC – with 2 MCP23017 and one PCA9685- Sensor work, Signal not working #5736Matthias Runte
AdministratorMeanwhile, could you check if you still have the following code in your controller_config.h in the level crossing section?
// BASCULE BRIDGE CONFIGURATION
// General switch for bascule bridge (false = no bridge connected; true = bridge connected)
bool BASCULE_BRIDGE_CONNECTED = false;
// Must be defined, but are zero
#define NUM_SIGNAL_ASPECTS 0
#define NUM_SIGNAL_LEDS 0
#define NUM_SIGNAL_SERVOS 0This was the problem that I fixed yesterday. You need to delete these defines from your configuration, as these values override the mentioned parameters by accident.
Dezember 30, 2022 um 20:08 Uhr als Antwort auf: MLC – with 2 MCP23017 and one PCA9685- Sensor work, Signal not working #5733Matthias Runte
AdministratorCould you send or paste your complete conf/my/controller_config.h file, please?
Dezember 30, 2022 um 15:28 Uhr als Antwort auf: MLC – with 2 MCP23017 and one PCA9685- Sensor work, Signal not working #5728Matthias Runte
AdministratorThanks. 🙂 Let me know how it worked out.
Dezember 30, 2022 um 00:24 Uhr als Antwort auf: MLC – with 2 MCP23017 and one PCA9685- Sensor work, Signal not working #5722Matthias Runte
AdministratorHi Fabian,
you are doing everything fine. There is a bug in the example files for the MLC in release V1.0. This is the reason why the light signals do not work. I just found bug myself this evening while uploading the firmware to one of the “MLC megas” that I am presently building.I just fixed the bug and pushed the bugfix it to the development branch. The fix will be included in the next release 1.0.1, which we are going to release soon.
If you know how to check out the development branch, just go for it. If not, drop me a message, then I will help you.
But thanks for your feedback anyways!
Cheers,
MattzeMatthias Runte
AdministratorEine IO-Datei habe ich leider nicht. Von dem Prototypen gibt nur die Bilder auf der Website und das Video.
Wenn ich Zeit und Lust habe, baue ich aber noch eine anständige Brücke auf Basis der Trixbrix-Brückenelemente, die voraussichtlich 6 oder 8 Standard-Geraden lang sein wird. Vielleicht mache ich dazu eine IO-Datei.
Dezember 27, 2022 um 18:41 Uhr als Antwort auf: MLC sendet an den Port Extender aber keine Reaktion der Weichenmotoren #5702Matthias Runte
AdministratorWenn da Lampen blinken, nimmt der MLC ja zumindest schon mal Kommandos von Rocrail an. Das ist schon mal sehr gut und 90% der Miete. Funktionieren die Weichenmotoren denn am MLC ohne Port Extender?
Matthias Runte
AdministratorWe have already done some preparations for that, also on the hardware level. We are planning to work on this matter in the future.
Matthias Runte
AdministratorHappy to hear that. Somewhere on the website there are some tipps for improving performance of the automation. Did you find that?
May I also propose to shift the discussion to the MTC4BT topic? This is the MTC4PU forum. 🙂
Thanks!
Matthias Runte
AdministratorWe have optimized some internal settings within MTC4BT to speed up processing. We will publish a new release soon and also plan to open up the git repository to the public. Stay tuned…
Matthias Runte
AdministratorReleased V0.6.1 with a bugfix for the MTC4BT. Hope it helps.
Matthias Runte
AdministratorWe are working on that for both MTC4BT and MTC4PF. The aim is to correct the train speed for decreasing battery power as long as possible.
Matthias Runte
AdministratorHappy to hear that. Thank you for the feedback.
Matthias Runte
AdministratorHallo Volkmar,
wir haben das Problem identifiziert und mit der neuen Firmware 0.6 hoffentlich auch gelöst. Hintergrund war, dass abs() keine unsigned integers schluckt (eigentlich logisch), und daher bei einigen Compilern Fehler wirft.Schau mal, ob es jetzt funktioniert, falls das Problem noch aktuell ist.
Gruß,
MattzeMatthias Runte
AdministratorAndrew, did it work?
Matthias Runte
AdministratorHello Karoly,
we investigated the abs() problem again and we found the solution for it (or Hilbert did, to be precisely).I have just released firmware 0.6. The problem should be fixed now.
Cheers,
Mattze -
AutorBeiträge
