Forum Replies Created
-
AuthorPosts
-
Max
Participant— Possible Layout Controller Settings (not for TrixBrix Servos)
//Controller1
const int SERVO_MIN_ALLOWED = ; // i.e. 80
const int SERVO_MIN = 85;
const int SERVO_START = 92;
const int SERVO_MAX = 98;
const int SERVO_MAX_ALLOWED = ; // i.e. 105//Controller2
const int SERVO_MIN_ALLOWED = ; // i.e. 80
const int SERVO_MIN = 84;
const int SERVO_START = 92;
const int SERVO_MAX = 100;
const int SERVO_MAX_ALLOWED = ; // i.e. 105Max
ParticipantHallo Ralf,
aus meiner Erfahrung kann ich dir nur “Try and Error” empfehlen da jede Weiche und jeder Controller da leider individuell sind. Fange mit relativ kleinem Winkel (min / max Werten) an.
Z.B.
//Controller1
const int SERVO_MIN_ALLOWED = ; // z.B. 80
const int SERVO_MIN = 85;
const int SERVO_START = 92;
const int SERVO_MAX = 98;
const int SERVO_MAX_ALLOWED = ; // z.B. 105Oder:
//Controller2
const int SERVO_MIN_ALLOWED = ; // z.B. 80
const int SERVO_MIN = 84;
const int SERVO_START = 92;
const int SERVO_MAX = 100;
const int SERVO_MAX_ALLOWED = ; // z.B. 105Ist eine Weichenstellung erkennbar kann feinjustiert werden. Zum Schluss dann MIN_ALLOWED und MAX_ALLOWED einstellen.
Auch empfehle ich zunächst ein einfaches Layout zu testen (zwei drei Weichen je Controller) und mit etwas Erfahrung kann dann größer skaliert werden.
Melde dich mal, obs klappt 🙂
Max
ParticipantGenerell nochmal zum Thema Software / Verkabelung:
Schau ob du den Code auf einem gleichen, nackten Board fehlerfrei compilieren kannst.
Damit solltest du Fehler in der Verkabelung nachgehen können.Debug:
Port – Serial definieren
Level – 1. generell gilt, je weniger desto einfach zu lesen 2. wenn man nicht weiß was man angeben soll / kann, mehr wählenJetzt gehts ans eingemachte. Du benötigst:
1. Debug aus Arduino IDE -> was empfängt / verarbeitet das Board
2. MQTT Log -> was empfängt / verarbeitet MQTT
3. Rocrail -> was empfängt / verarbeitet RocrailSchau mal ob hier das Log Rocrail -> MQTT -> Board soweit passt.
Max
ParticipantHast du mal geschaut, ob MQTT nicht schon läuft?
Testmeldungen getriggert?Max
ParticipantHi!
Zu den Ansatz von Matze möchte ich dir noch den Guide zur Fehlersuche ans Herz legen.
Den findest du hier: GuideBei mir lag es seinerzeit an einer falschen Schaltung.
Sei dir also sicher, dass alles korrekt verdrahtet ist.Grüße Thomas
Max
ParticipantHey Joos thank you for your feedback!
Max
ParticipantHi Max,
personally I would rather verify the settings prior to install a foreign lib.
Did you already found https://mattzobricks.com/de/forums/topic/mattzobricks-train-automation-for-beginners#post-2244?
Greetings Thomas
-
This reply was modified 3 years, 11 months ago by
Max.
October 14, 2021 at 11:17 in reply to: Steuerungsbefehle von Rocrail kommen nur teilweise am Mattzocontroller an #3789Max
ParticipantHi Mike,
das ist in der Tat eine schwierige Angelegenheit.
MQTT basiert auf TCP/IP. D.h. wir können auf der Ebende Probleme beim Transport nahezu ausschließen.
Ich würde eher Richtung WLAN mit der Analyse der Ursache beginnen:
1. eine dedizierte 2,5Ghz SSID einrichten
2. die wahl des Kanals prüfen (möglichst ohne eine Überlappung anderer SSIDs)
3. Sender und Empfänger möglichst nahe bei einander
4. keine Firewall zwischen Client, MQTT Server und Rocrail ServerWas auch reinspielen könnte ist, dass wenn MQTT und Rocrail auf einem Server läuft könnte es sich auch um ein Problem mit dem Server handeln.
Da sprechen wir jedoch von einer gänzlich anderen Herangehensweise zur Ursachenforschung.MQTT kann sehr einfach auch Testnachrichten generieren. Vielleicht versuchst du das mal und schaust wie schnell das geht.
Grüße Thomas
Max
ParticipantHallo Andy,
sry, ich meinte natürlich die COM Schnittstelle 🙂
Max
ParticipantHallo Andy,
vielleicht magst du noch eine Sache versuchen.
Richte im Router mal eine neue 2,5G SSID ein und passe die Konfig über die Konsole an.Ich hatte in meinem Netz beobachtet, dass trotz gleicher SSID/PSK zweier verschiedener Router, die Controller ausschließlich mit einem der beiden Router verbinden wollten.
Abhilfe schaffte nur, die Controller mittels Konsole neu zu konfigurieren.
Max
ParticipantHallo Andy,
schau mal dass du unter WLAN -> Funknetz -> 2,4-GHz-Frequenzband aktiv hast. Die Boards können ausschließlich 2,4Ghz.
Alternativ könntest du vorübergehend eine SSID für Gäste ausstrahlen und es damit versuchen.Grüße
Max
June 11, 2021 at 07:57 in reply to: Frage zur Signalansteuerung mittels Layoutcontroller und Portexpander #3658Max
ParticipantSehr cool geworden, top!
June 10, 2021 at 09:17 in reply to: Frage zur Signalansteuerung mittels Layoutcontroller und Portexpander #3654Max
ParticipantHallo Achim, damit in diesem Forum Bilder angezeigt werden, musst du diese auf einer entsprechend öffentlichen Plattform hochladen und den Link dann hier teilen 🙂
Max
Max
Participantschön das Ihr das jetzt umgesetzt habt 😉
Hallo Andy, danke fürs Feedback! Ist deutlich übersichtlicher geworden.
Dennoch, wenn euch was fehlt, immer her mit den Vorschlägen!Grüße Max
June 8, 2021 at 13:13 in reply to: Frage zur Signalansteuerung mittels Layoutcontroller und Portexpander #3586Max
ParticipantLässt sich dies eventuell im Sketch umstellen?
Hallo Achim, wir sind sehr darum bemüht die Sketches so umfangreich und gleichzeitig so plausibel wie möglich zu gestalten. Das umstellen ist nicht möglich.
Solltest du mit deinen Signalen vorankommen, würden wir uns freuen wenn du diese in MattzoBricks Integration vorstellst 🙂
June 7, 2021 at 13:06 in reply to: Frage zur Signalansteuerung mittels Layoutcontroller und Portexpander #3583Max
ParticipantHallo Achim, ohne nähere Informationen befürchte ich, können wir dir nicht weiterhelfen.
Grüße Max
Max
ParticipantI am very proud to introduce my latest project:
The dual motorized 10194 Emerald Night loco!
I ever wanted to optimize it’s motorization with one goal in mind. Keep the drivers cabin somehow in place. The solution was, to place two PF L motors in the front. And here it is!
Some summarized facts:
– Electronic components can be stored in the tender
– Two PF L motors in the front to power the loco
– Traditional motorization with IR receiver is not testedThe instruction can be found here: rebrickable.com – MOC-77974
And of cause a bit of a preview:
-
This reply was modified 4 years, 4 months ago by
Max.
Max
ParticipantHallo Andy,
tatsächlich arbeiten wir bereits an einer Möglichkeit die Struktur des Forums übersichtlicher zu gestalten. Bis es soweit ist, bitten wir noch um etwas Geduld 😉
Viele Grüße Max
Max
ParticipantHallo Achim, vielen Dank für die Lösung!
Ich werde diese im Thread MattzoBricks Train Automation for Beginners dokumentieren.Grüße Max
Max
ParticipantHi Olivier,
thank you for this solution! We’ll analyse this and include it in the next version as a fix.
Stay tuned! 🙂
Max
ParticipantHi Rod! I did not forget you 🙂
Rather to get a workaround working, I would like to have your original setup (with the PCA9685) working as it is the more prefered solution..– You wrote that you have 5 switches and 3 signals.
As the main feature from the PCA is that it is powered down between the switch commands you should connect the signals directly to the ESP.– The config of your ESP with a connected PCA as follows:
1. LayoutController needs to #include “MattzoLayoutController_Configuration_PCA9685.h”
2. Swap the value of “// Digital pins for signal LEDs” and “// Digital input PINs for hall, reed or other digital sensors” and vice versa.I.E:
// Digital pins for signal LEDs
const int NUM_SIGNALPORTS = 5;
uint8_t SIGNALPORT_PIN[NUM_SIGNALPORTS] = { D3, D4, D5, D6, D7 };
uint8_t SIGNALPORT_PIN_TYPE[NUM_SIGNALPORTS] = { 0, 0, 0, 0, 0 };// Digital input PINs for hall, reed or other digital sensors
const int NUM_SENSORS = 8;
uint8_t SENSOR_PIN[NUM_SENSORS] = { D3, D4, D5, D6, D7 };
uint8_t SENSOR_PIN_TYPE[NUM_SENSORS] = { 8, 9, 10, 11, 12, 13, 14, 15 };
uint8_t SENSOR_PIN_TYPE[NUM_SENSORS] = { 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40 };The corresponding port in Rocrail begins with 0.
If this does not help, we need your Rocrail and ESP config.
Greetings!
Max
ParticipantHi Rob, what kind of power supply do you use and is everything connected trough a breadboard?
Max
ParticipantHallo Guido,
herzliches willkommen bei Mattzobricks!
Klasse, dass die ersten Schritte geklappt haben.
Für weitere Ideen und Tips kann ich dir folgende Topics empfehlen:
– MattzoBricks Train Automation for Beginners
– MattzoBricks IntegrationViele Grüße
-
This reply was modified 4 years, 4 months ago by
Max.
Max
ParticipantA short integration of a switch servo case:
Instruction: rebrickable – MOC-74140
Servo: SG90
How to cut switches: LEGO Train Junction “Outward” Hack, Simple LEGO Train Hack : Shorter Junctions and Crossover
If they are available, you can buy relatively good and cheap switches here: steingemachtes.de
-
This reply was modified 4 years, 5 months ago by
Max.
Max
ParticipantEdit: Ich habe einen Post zum Thema verfasst unter mattzobricks-integration
-
This reply was modified 3 years, 11 months ago by
-
AuthorPosts