Forum Replies Created
-
AuthorPosts
-
Matthias Runte
KeymasterI am not sure what the problem is. My first suggestion is to that if you used the correct versions of the required libraries as stated in the documentation. I know that some newer versions of some libraries do not work, so the versions are important.
Matthias Runte
KeymasterJust use the same Loco Id.
Matthias Runte
KeymasterDas freut mich und das Team! Viel Erfolg noch weiterhin!
Matthias Runte
KeymasterIn der MattzoLayoutController.ino findest Du folgenden Abschnitt:
// Default values for TrixBrix switches (in case servo angles are not transmitted)
const int SERVO_MIN_ALLOWED = 50; // minimum accepted servo angle from Rocrail. Anything below this value is treated as misconfiguration and is neglected and reset to SERVO_MIN.
const int SERVO_MIN = 75; // a good first guess for the minimum angle of TrixBrix servos is 70
const int SERVO_START = 80; // position after boot-up. For TrixBrix servos, this is more or less the middle position
const int SERVO_MAX = 85; // a good first guess for the maximum angle of TrixBrix servos is 90
const int SERVO_MAX_ALLOWED = 120; // maximum accepted servo angle from Rocrail. Anything above this value is treated as misconfiguration and is neglected and reset to SERVO_MAX.Um kleinere Werte als 50 zu erlauben, ändere bitte den Wert von SERVO_MIN_ALLOWED. Ich habe diese Parameter als Sicherheit eingeführt, damit unsere User nicht zu viele Weichenmotoren versehentlich verheizen. Gut zu wissen, dass es doch Situationen gibt, in denen kleinere Winkel als 50 notwendig sind. Ich passe den Standard-Wert für die Firmware 0.5 mal auf 45 an.
Ab Firmware 0.5 werden die Servos voraussichtlich nach ein paar Sekunden ohnehin abschalten und keine Stellkraft mehr erzeugen.
Matthias Runte
KeymasterDas Problem ist:
const char* MQTT_BROKER_IP = “localhost”Hier musst Du die IP-Adresse eintragen, auf dem der MQTT läuft, z.B.:
const char* MQTT_BROKER_IP = “192.168.1.100”
oder wie auch immer die Adrese von Deinem Rechner lautet.
Gruß,
MattzeMatthias Runte
KeymasterDeinstallier mal mosquitto 2.0 wieder… 🙂
Da läuft noch etwas anderes auf dem MQTT Port, vermutlich der mosquitto 2.0 Service.
-
This reply was modified 3 years, 10 months ago by
Matthias Runte.
Matthias Runte
KeymasterBeobachte zunächst mal die Status-LED vom Controller. Wie man die anschließt ist in den Schaltplänen zu sehen. Diese muss ein paar mal blinken und dann ausgehen. Eine blinkende Status LED signalisiert kein Wifi bzw. keine Verbindung zum MQTT Server.
Hilfreich ist der Debug-Mode von mosquitto (mosquitto -c mosquitto-conf -v bzw. einfach mosquitto -v). Wenn dort keine Nachrichten auflaufen, wenn Du in Rocrail etwas tust, hast Du vermutlich keine Verbindung zum MQTT Server in Rocrail – entweder ein Konfigurationsproblem oder Deine Firewall macht Ärger.
Wenn auf dem MQTT etwas ankommt, würde ich als nächstes die Firmware mit Serial Debug Level “DEBUG” kompilieren, den Controller per USB am Rechner lassen und die Debug-Nachrichten an der Arduino-Konsole ansehen. Dort siehst Du, ob Kommandos von Rocrail eintreffen und wie diese verarbeitet werden.
Matthias Runte
KeymasterUpdate:
– I reviewed the reported problems on board manager 3.0.2.
– First of all I created a fix for the abs() / fabs() problem, which impacts the level crossing implementation. I did not do regression testing on level crossings yet, but I am quite confident that there are no negative side effects. The fix will be included in the upcoming firmware release 0.5.
– The firmware compiles with board manager 3.0.2 now, and I can confirm the reported WiFi connectivity problem. I didn’t find a solution yet, but Joos is also working on it and we might find a solution soon.
– For now I have placed a note in the General Section that only board manager version 2.7.4 is supported, and not version 3.0.0 and above.
– The root cause might have to do with a major WiFi library change introduced with board manager 3.0.0.-
This reply was modified 3 years, 10 months ago by
Matthias Runte.
Matthias Runte
KeymasterLucky to hear that. Good luck with your next steps!
Matthias Runte
KeymasterThanks for sending me your configuration. The problem here is, that you need to start counting at 1 for each different component type in Rocrail. Imagine you have 1 switch, 2 signal LEDs and 2 sensors. The components may be connected to pin D0, D1/D2 and D3/D4 respectively, but this does not play a role for the correct numbering of the Rocrail ports.
The numbering for the Rocrail ports should look like this:
Switch (pin D0): Port 1
Signal 1 (pin D1): Port 1
Signal 2 (pin D2): Port 2
Sensor 1 (pin D3): Port 1
Sensor 2 (pin D4): Port 2As you can see, the pin allocation on the microcontroller does not play a role for the numbering of the Rocrail ports.
A small lookout: with firmware 0.5, configuration is going to get somewhat easier (I hope).
Matthias Runte
KeymasterHi Joos,
hmm, good question. The configuration file looks quite good as far as I see it… in my setups, the MattzoLayoutController with the attached MCP23017 was running without problems, even with a lot of sensors.I will build and test some more MattzoLayoutControllers in the upcoming future and test it with firmware 0.5, which is to be released soon. Maybe the problem do not show with firmware 0.5. Let me know if you want to help us testing, then I will grant you early access to the firmware.
Thanks for the heads up regarding the wiring diagram.
Cheers,
MattzeMatthias Runte
KeymasterHallo Stephan,
bei mir stapeln sich derzeit verschiedene Projekte. Die Boards von Kevin sind super und ich probiere sie auf jeden Fall auch noch aus. Derzeit bin ich leider noch nicht dazu gekommen.Danke für Deine Geduld.
Gruß,
MattzeMatthias Runte
KeymasterJepp, it will be ESP-32 based. Please send me an e-mail if you want to have early access to the firmware.
Matthias Runte
KeymasterHi Max,
a good question and some good news for you: we will publish a new controller soon: the “MTC4BT” (MattzoTrainController for Bluetooth). It handles both LEGO Powered Up and SBricks. So the question is: yes, just may put SBricks in your train.There is a promotion on the website (www.mattzobricks.com) for MattzoBricks users to purchase SBricks with a discount. Feel free to use the published voucher code.
Cheers,
Mattze-
This reply was modified 4 years ago by
Matthias Runte.
Matthias Runte
KeymasterHallo allerseits,
wie oben schon geschrieben ist der springende Punkt die Ausrichtung des Magnetfelds. Dann sollte es keine Probleme mit den Reedsensoren geben. Die Richtung des Magnetfelds ist übrigens auch erheblich wichtiger als die Feldstärke des Magneten. Trotzdem kann es nicht schaden, ggf. mehrere Magnet in Reihe zu schalten. Das macht das Feld stärker und auch geometrisch größer, was in Kurven nicht ganz unwichtig ist.Gruß,
MattzeMatthias Runte
KeymasterHi gramels,
thanks for your appreciation of the project.Sure, we have considered using RFID, but the use cases are pretty rare and integrating them into Rocrail would require some significant and in-depth changes to the way we are handling Rocrail messages. We might tackle this in the future, but presently we do not have plans to support RFId.
Cheers,
MattzeMatthias Runte
KeymasterHallo Marcus,
freut mich! Viel Erfolg noch!Gruß,
MattzeMatthias Runte
KeymasterSomething like that. Check https://mattzobricks.com/automation/controllers/general, section “MQTT”.
September 23, 2021 at 18:22 in reply to: Frage zur Signalansteuerung mittels Layoutcontroller und Portexpander #3756Matthias Runte
KeymasterHallo Hans-Joachim und alle,
zunächst einmal großen Dank, dass Du unsere Technologie für Deine Anlagensteuerung adoptierst und sogar mit Deinen eigenen Signalen anreicherst. Typen wie Du sind der Grund, wieso wir das hier machen. Schön, dass Du dabei bist.Zu Signalen haben wir einiges in der Pipeline – das nächste Update der MattzoLayoutController Firmware wird auch Formsignale unterstützen, und überdies auch Signalbegriffe, die sich über mehr als eine LED erstrecken (z.B. Langsamfahrt bei einigen DB-Signalen, gelb und grün leuchten gleichzeitig). Das wird mich noch einiges an Arbeit kosten, aber das Ergebnis einschließlich Video wird hoffentlich viele Begeisterte finden. Ein bisschen Geduld müsst Ihr aber noch haben.
Danke für Euer Engagement.
Gruß,
MattzeMatthias Runte
KeymasterHi Edwin,
can you send me your MattzoLayoutController configuration file?Besides this, keep up the good work with your layout!
Cheers,
MattzeMatthias Runte
KeymasterHi folks,
I have read your comments above. I am pretty busy at the moment, but I have just created a bug report in our internal bug tracking tool. I will check out if I can reproduce the problems with the new ESP-8266 firmware (V3.x.x). I will also have a look at the proposed abs() / fabs() work-around.Thanks for your esteem.
Cheers,
MattzeSeptember 23, 2021 at 17:53 in reply to: Would it be possible to combine the LayoutController and the MTC4PU controller? #3753Matthias Runte
KeymasterHi Joos,
thanks for your comment and your interest in our technology. I am happy to hear that you are going to build a layout with MattzoControllers.To your question: the issue is that the MattzoLayoutController has been developed for an ESP-8266, while the MTC4PU is designed for the ESP32 board. It would be possible to integrate both firmwares into one and base it all on an ESP-32, but this is complicated, takes a lot of time and testing. This is why we do not have plans to allocate our time on this matter at the moment.
So, my recommendation is for buy a couple of ESP-8266s and one or two ESP-32 for a start. It is useful not to centralize the layout control too much. When your layout grows, you should rather allocate a couple of MattzoLayoutControllers on different parts on your layout. Especially switches do not react too well when the cable lengths become too long.
I wish you good success with your automation. It’s big fun!
And stay tuned for the latest MattzoController which we are (hopefully) going to release very soon. It will be called MattzoController for Bluetooth (MTC4BT), and controls both LEGO Powered Up devices and SBricks.
Cheers,
MattzeMatthias Runte
KeymasterHi ROb,
thanks. This part of the wiring is not required at the moment as we are not using the voltage information on A0 of the microcontroller yet. Will will do this in a future release of the MTC4PF. So feel free to just leave that part out for now.Cheers,
MattzeMatthias Runte
KeymasterIch meine die Datei “MattzoController_Library.h”. Bitte diese Datei auch aktualisieren falls noch nicht geschehen.
Der Update-Prozess ist derzeit noch etwas hakelig. Wir arbeiten dran.
-
This reply was modified 4 years, 5 months ago by
Matthias Runte.
Matthias Runte
KeymasterOkay. Und das Library File hattet Ihr aktualisiert, oder?
-
This reply was modified 3 years, 10 months ago by
-
AuthorPosts