Willkommen bei MattzoBricks › Foren › Switches › MattzoSwitchController
- Dieses Thema hat 58 Antworten und 10 Teilnehmer, und wurde zuletzt aktualisiert vor 1 Jahr, 8 Monaten von Matthias Runte.
-
AutorBeiträge
-
-
Januar 10, 2021 um 15:23 Uhr #1660Matthias RunteAdministrator
-
Januar 16, 2021 um 20:28 Uhr #1833Henk JansenTeilnehmer
Hi Matthias,
I’m tryin to build a mattzoswitchcontroller.
I managed to get the sketch on my ESP8266. I think i’m running MQTT (although i’m not sure its good). And i have installed rocrail.
Is there an easy way to set the whole thing up to test if all is done well? i don’t see a thing 🙂 i have one switch (servo) connected to D1…I lost your description here:””” On first boot, the controller generates a random number called “MattzoControllerID”.”””
Can’t get this done. i get:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at processing.app.Serial.write(Serial.java:254) at processing.app.Serial.write(Serial.java:274) at processing.app.SerialMonitor.send(SerialMonitor.java:122) at processing.app.SerialMonitor.lambda$new$1(SerialMonitor.java:66) at javax.swing.JTextField.fireActionPerformed(JTextField.java:508) at javax.swing.JTextField.postActionEvent(JTextField.java:721) at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:836) at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1668) at javax.swing.JComponent.processKeyBinding(JComponent.java:2882) at javax.swing.JComponent.processKeyBindings(JComponent.java:2929) at javax.swing.JComponent.processKeyEvent(JComponent.java:2845) at java.awt.Component.processEvent(Component.java:6316) at java.awt.Container.processEvent(Container.java:2239) at java.awt.Component.dispatchEventImpl(Component.java:4889) at java.awt.Container.dispatchEventImpl(Container.java:2297) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:835) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1103) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:974) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:800) at java.awt.Component.dispatchEventImpl(Component.java:4760) at java.awt.Container.dispatchEventImpl(Container.java:2297) at java.awt.Window.dispatchEventImpl(Window.java:2746) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84) at java.awt.EventQueue$4.run(EventQueue.java:733) at java.awt.EventQueue$4.run(EventQueue.java:731) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
-
Januar 17, 2021 um 18:42 Uhr #1843Matthias RunteAdministrator
Hello Henk Jansen, did you try to upload a simple sketch from the standard demos that just turns a servo back and forth? You should probably try to get such a sketch working first. Be careful not to break your switch motor, you should only use angles between 70 and 80 for testing if it’s a TrixBrix switch motor.
Cheers,
Mattze
-
-
Januar 17, 2021 um 14:42 Uhr #1834Paul VerkaikTeilnehmer
Hello Everyone,
Got a lot of stuff working already ( sensor/signal and controller) perfectly, but…
I don not seem to get the switchcontroller to work.
It boots, the control led blinks several times then is goes off.
Mosquitto “sees” the switchcontroller (29266 inmy case) so everything looks fine.
In Rocrail I added a switch with the adress and port nr ( 29266 port 1) so it should work.
But when I control the switch in Rocrail it does not respond.
I checked the servo (brand new but you never know) but in a test sketch it works perfectly.Is there any way to manually ( from Rocrail) to test the switch?
Should the controlled light up when a servo is used?Hope you guys can help out,
Paul
-
Januar 17, 2021 um 18:44 Uhr #1844Matthias RunteAdministrator
Paul Verkaik,
did you monitor MQTT, e.g. with mosquitto_sub? What do you see there? And does the switch visibly switch on the Rocrail layout?Cheers,
Mattze-
Januar 17, 2021 um 19:10 Uhr #1846Paul VerkaikTeilnehmer
In Mosquitto I can see the controller and its “number” so that’s also working.
At this point I have one servo connected to the Vin of the esp-board, should I connect the servo to a seperate power supply?
In the Arduino IDE I also see the controller boot.
In Rocrail I have a switch defined and in Rocrail its switches. (on screen)Can you tell me what the controlLED should do, does it light up when the switch is used?
I only see it blink a few times at boot.
Also I remember you had a design for the controller with the txs0108e, is that not needed anymore?Hope to figure this out soon, it’s the last one, all other controllers work perfectly.
I have a smaal test setup now with 2 signals and 2 blocks and 4 sensors. When the switchcontroller works I can expand!Greetings
Paul
-
-
-
Januar 17, 2021 um 18:14 Uhr #1835Thorsten SchmitzTeilnehmer
Hi Paul,
first check the Hardware. Is everything wired up in the right way? Are the servos supplied with 5 V?
Connect the controller to the Serial Monitor of the Arduino IDE.When you switch in Rocrail do you see something in the monitor?
If not, check the settings in Rocrail. In Rocrail you can test the switches on many different ways, may be read the manual for this task.
Please refer to the forum if you make some progress!- Diese Antwort wurde geändert vor 3 Jahren, 3 Monaten von Thorsten Schmitz.
-
Januar 17, 2021 um 19:29 Uhr #1847Paul VerkaikTeilnehmer
I can see the commands being send from Rocrail to Mosquitto to the controller.
In the serial monitor I can see that it send the “58” or “85” angle command is send.
So,.. this means that the servo is not responding, I checked this one and it works in a test sketch so it;s not defective.In my answer above I asked: Also I remember you had a design for the controller with the txs0108e, is that not needed anymore?
Is this still needed or is it “just” a power issue ?Greetings,
Paul
-
Januar 18, 2021 um 08:56 Uhr #1851Matthias RunteAdministrator
Hi Paul,
we believe that we do no longer need the logic level controller. Sufficient power should do. You should power up a switch controller with an USB-Charger of 2 Amps minimum. Higher voltage is helpful as well.But I am not sure that this is the problem here. Did you connect your MattzoSwitchController to your PC and checked the output on the serial monitor? Do you see that it is connected to WiFi and MQTT and actually parsing the switch commands and trying to turn the servo?
One more important thing is the mapping of the port numbers. Port No. 1 in Rocrail corresponds to port no. 0 internally in the controller.
Good luck!
Cheers,
Mattze-
Januar 18, 2021 um 11:52 Uhr #1852Paul VerkaikTeilnehmer
Hello Matze,
Yes i can see it parsing the command from rocrail via MQTT to the esp/servo but nothing happens.
Also at boot the servo does not do anything ( I suppose it should check its position?)
I will try a different esp and see what happens,Thanks for your input, I keep ou posted about my progress.
Paul
-
Januar 18, 2021 um 12:03 Uhr #1853Matthias RunteAdministrator
Ok. Can you post the lines from the serial monitor where the controller parses the command and tries to flip the switch?
-
Januar 18, 2021 um 16:12 Uhr #1854Paul VerkaikTeilnehmer
Hello Matze and Thorsten, fixed it !
It was the last thing I expected, the esp board itself!
Changed to a new one and now it works perfectly.
Thanks to Thorsten for the tip on using the serial-monitor. When I say that working all ok ( I could see the commands being parsed) the only thing left was the output of the board itself. Even after reflashing it, no joy.
So after replacing it, all is well 🙂Thank you guys for your input.
I really love this project and it works (with some small hick-ups) perfectly.
Keep up the good work,Greetings from the Netherlands,
Paul -
Januar 27, 2021 um 23:16 Uhr #2049Matthias RunteAdministrator
Happy to hear that! Good luck with the rest!
-
-
-
Januar 28, 2021 um 08:14 Uhr #2061MaxTeilnehmer
Hi Paul,
as your problem with the SwitchController sounds exactly like mine in the MQTT thread, i would like to know which board and power supply (with specifications) you are using? 🙂Many greetings! Max
-
Januar 28, 2021 um 19:21 Uhr #2070Piet BeinekeTeilnehmer
hello,
I have a similar problem as Paul(Serial says everyrthing goes through to the controller, but the led does nothing and the servos don’t either), but switching the controller didn’t work for me. I also tried switching the plus and minus cables of the motors on my breadboard. My question: Is there a simple way to get my hands on a test-sketch for the switch motors(to see if they are the problem), or would I have to write that code myself?
Regards
Piet-
Januar 29, 2021 um 10:46 Uhr #2094Matthias RunteAdministrator
Arduino IDE has some built-in example sketches for servos. But be careful not to break your switch motors. It might be a good idea to take the servo out of the casing before testing with the standard sketches.
-
Januar 29, 2021 um 11:16 Uhr #2095Piet BeinekeTeilnehmer
Is ist pissoble to take of the lid, because I don’t quite seem to get the servo out of the 3d printed casing…
Regards-
Januar 29, 2021 um 13:10 Uhr #2096Piet BeinekeTeilnehmer
I’ve now extraxted the servo out of the casing and will check it’s functionality
-
Januar 29, 2021 um 14:54 Uhr #2098Piet BeinekeTeilnehmer
I have used the potentiometer code and just threw out the potentiometer code so it should work, but it didn’t. Just for confirmation: Orange is in a D0-7 Pin, red is in plus and black is in minus, right?
Regards
Piet -
Januar 29, 2021 um 15:43 Uhr #2099MaxTeilnehmer
Hey Piet, as far is a know that is right sir.
-
-
-
-
Januar 29, 2021 um 16:19 Uhr #2100Paul VerkaikTeilnehmer
Hi Max and Piet,
I’m using cheap chinese boards.
Bought a whole bunch of them.
The defective one was one of the same ones I have, so I think my problem was just a bad production one.For my test I power everything with a big powerbank.
In the future for my trainlayout I will have to use other powersupllies but I have not bought them yet..I buy them on Aliexpress look for ” Wireless module CH340/CP2102 NodeMcu V3 V2 Lua WIFI Internet of Things development board based ESP8266 ESP-12F with pcb Antenna”
Greetings,
Paul
-
Januar 30, 2021 um 15:12 Uhr #2115Piet BeinekeTeilnehmer
Hello,
I have experimeted with my switch-controllers cable(replacing some of them to see if they are broken, because I had this issue with these cable in one of my previous Mattzo-controller builds), but they weren’t the problem either. I have tried every single motor in my order(14 in total), but none of them worked on the controller(so it is very unlikely that they are the problem). By now I just don’t know a other reason why it doesn’t work for me, but it did for eg.Paul, so I made this video in unlisted mode to show my setup in particular. I hope someone can help me fix this, because it is the only thing that is left in my setup of all Mattzocontrollers, which all work perfectly by now.
Link: https://www. youtube.com/ watch?v=i6ztJCU0OMc
Regards
Piet
Edit: The Link seems to be not working due to Spam-safety(understandably), so I seperated it in the middle- Diese Antwort wurde geändert vor 3 Jahren, 2 Monaten von Piet Beineke.
- Diese Antwort wurde geändert vor 3 Jahren, 2 Monaten von Piet Beineke.
-
Januar 30, 2021 um 15:59 Uhr #2118MaxTeilnehmer
Hi Matthias, hey Thorsten,
Piets Problem looks like mine.
As enaugh voltage is crucial at the SwitchController, can we somehow modify the layout to a more capable power source?I would like to test it with eight AAA 1.2V batteries but i do not know how to chsnge the layout by now.. 🙂
-
Januar 30, 2021 um 16:05 Uhr #2119Piet BeinekeTeilnehmer
No, beacause the motors need 5v, which is provided by the usb cable and then distributed by the vin pin, so more power is not a good idea… That is why I don’t understand what my problem is, because there should be enough power provided
-
-
Februar 2, 2021 um 10:43 Uhr #2199MaxTeilnehmer
Hey Piet,
you are absolutely right! Of cause there is enough power input from USB connection.
In the meantime I’ve found a little sketch for ESP32 and adapted it for ESP8266 to test basic functionality of the servo.
The outcome is the same. Via console its clear that the sketch works and the ESP “does something”.
But the power output is not enough for the servo.I’ve ordered ESP8266 V2 and will test again with it.
Here you can find the servo_test sketch:
#include <Servo.h> //Servo library for 8266 static const int servoPin = D0; // Connect servo (orange) to D0 on the board Servo servo1; //Connect the servo1 on VIN and G int angle =0; int angleStep = 5; int angleMin =20; int angleMax = 160; void setup() { Serial.begin(115200); servo1.attach(servoPin); } void loop() { for(int angle = 0; angle <= angleMax; angle +=angleStep) { servo1.write(angle); Serial.println(angle); delay(20); } for(int angle = 180; angle >= angleMin; angle -=angleStep) { servo1.write(angle); Serial.println(angle); delay(20); } }
-
Februar 2, 2021 um 10:52 Uhr #2200Matthias RunteAdministrator
Don’t forgot to take the servo motors out of the casing first, else they could be damage with this test script. Safe angles are usually between 70 and 80 degrees for Trixbrix servos. After calibration, you usually end-up between ca. 60 and 90 degrees (depends on the specific servo, must be checked for every single servo).
- Diese Antwort wurde geändert vor 3 Jahren, 2 Monaten von Matthias Runte.
-
-
Februar 3, 2021 um 17:32 Uhr #2219ZoltanTeilnehmer
How is the servo to be connected to which pins of the controller?
The video is nice, but has no step-by-step directions for beginners.
Or did I miss something?
Eg. a Fritzing Schema would be nice with NodeMCU and two servos.
Thanks, ZoltanPS.: Also for the other items (Sensor, Loco…) some step-by-step guide would be nice. I am a greenhorn to microcontrollers but I love the idea to automatize Lego Trains, but I cannot follow here. Could be set up a forum thread for really DAUs?
-
Februar 3, 2021 um 18:33 Uhr #2220Matthias RunteAdministrator
I suggest to read the documentation first:
Or for the other MattzoControllers:
Wiring diagrams are included.
Nevertheless I agree that some basic knowledge about microcontrollers, networking and IT is helpful when building MattzoControllers. I had no clue at least about microcontrollers a short while ago, but buying an Arduino starter set and watching some Arduino youtube tutorial videos helped me a lot.
You may start a topic in the forum for beginners yourself. Why don’t you call it “MattzoBricks Train Automation for Beginners” or something similar?
-
Februar 3, 2021 um 18:42 Uhr #2221ZoltanTeilnehmer
Of course I have read the docu! Several times. I must have obviously overseen some things… I cannot remember wiring diagrams. Tomorrow I shall start over again.
-
Februar 3, 2021 um 21:18 Uhr #2227Matthias RunteAdministrator
Excellent, good luck! 🙂
-
-
-
-
Februar 4, 2021 um 08:53 Uhr #2238MaxTeilnehmer
After replacing the 8266 V3 to a V2 NodeMCU it works and I’am realy proud of it.
Concidering the fact that I’ve never “programmed” an Arduino board before the MattzoControllers I’am realy proud about the result:Maybe the final casing:
Max
-
Februar 4, 2021 um 08:57 Uhr #2241Matthias RunteAdministrator
Congratulations!
-
Februar 17, 2021 um 15:17 Uhr #2418YevgenTeilnehmer
Hi Max,
Are you holding the servo inside with Lego only? It does not pry itself off the bricks/plates when switching?
-
-
Februar 5, 2021 um 08:16 Uhr #2264ZoltanTeilnehmer
DAU question: if I want to build my own switch motor, which miniservo should I buy? Are they normal analogie servos or mut they ne digital ones? Thanks!
-
Februar 5, 2021 um 08:27 Uhr #2265MaxTeilnehmer
Hey Zoltan, it depends.
I think Matthias does have good experience with switch motors from TRIXBRIX.
The advantage for sure is that they are completely ready to be integrated.Personally I’am using “SG90 Micro Servo Motor”. It is not a tragedy if a motor gets messed up.
They are very cheap and can be modified in a way that they fit very good between two Lego “Panel 1 x 2 x 3” as you can see above.EDIT: Bricklink Lego Switch Case
- Diese Antwort wurde geändert vor 3 Jahren, 2 Monaten von Max. Grund: Link to Bricklink Case
-
-
Februar 5, 2021 um 09:43 Uhr #2267ZoltanTeilnehmer
Thanks, I shall try them. But I have also a project NOT with Lego, but with LGB R3 Switches, and for this I want to “misuse” Matthias’ SwitchController code as well, if he allows it 🙂
-
Februar 5, 2021 um 12:02 Uhr #2272Matthias RunteAdministrator
Ha ha, permission granted. 🙂
-
-
Februar 5, 2021 um 14:50 Uhr #2275Matthias RunteAdministrator
But you need to send me pictures, track plans and videos for the “Projects” section. 🙂
-
Februar 9, 2021 um 08:18 Uhr #2292Nikos LygizosTeilnehmer
My limits for one of the switch servos was off and after a few days operating it it stripped the gears. So I “pop” the hood of the servo casing, cut-off the back wall of the servo housing and after cutting the ears of the new servo it fit perfectly and works better than the original.
After trying a few Chinese micro servos I chose this servo because it has metal gears and most dimensions fit the housing. I could not find a replacement servo with the same dimensions of the original.
Lewansoul 9G Servo Micro servo Metal Gear Motor Anti Blocking servo
-
Februar 15, 2021 um 17:56 Uhr #2401ZoltanTeilnehmer
Hallo, ich habe ein Problem mit dem SwitchController.
MattzoSwitchController hat ID 8904
Weiche ist konfiguriert als:
Adresse: 8904 Port 1
Parameter 58 Wert 85Status LED zwischen D8 und GND
Blinkt beim Booten 3-mal, dann noch einmal, dann bleibt es aus.Servo ist rot auf V1N, schwarz auf GND, orange auf D0
(Servo mit Servotester getestst, funktionirt okay.)
Beim Weichenschalten in Rocrail sagt Rocrail:
17:36:20 turnout [sw1] 8904 1 turnout fada=71224 pada=35613 bus=0 addr=8904 port=1 gate=0 dir=0 action=1 delay=500 type=0 17:36:03 turnout [sw1] 8904 1 straight fada=71224 pada=35613 bus=0 addr=8904 port=1 gate=0 dir=1 action=1 delay=500 type=0
Beim Weichenschalten in Rocrail sagt SerialMonitor:
17:37:05.961 -> Received MQTT message [rocrail/service/command]: <sw id="sw1" cmd="straight" manualcmd="true" forcecmd="false" controlcode="" slavecode="" server="infw5C000ED0" iid="" prot="D" uidname="" bus="0" addr1="8904" port1="1" gate1="0" param1="58" value1="85" delay="500" actdelay="true" singlegate="false" accessory="true" porttype="0" decid=""/> 17:37:05.994 -> 17:37:05.994 -> Parsing XML successful. 17:37:05.994 -> <sw> node found. 17:37:05.994 -> addr1: 8904 17:37:05.994 -> port1: 1 17:37:05.994 -> cmd: straight 17:37:05.994 -> param1: 58 17:37:05.994 -> value1: 85 17:37:06.039 -> Turning servo on port 1 to angle 58 17:37:13.777 -> Received MQTT message [rocrail/service/command]: <sw id="sw1" cmd="turnout" manualcmd="true" forcecmd="false" controlcode="" slavecode="" server="infw5C000ED0" iid="" prot="D" uidname="" bus="0" addr1="8904" port1="1" gate1="0" param1="58" value1="85" delay="500" actdelay="true" singlegate="false" accessory="true" porttype="0" decid=""/> 17:37:13.816 -> 17:37:13.816 -> Parsing XML successful. 17:37:13.816 -> <sw> node found. 17:37:13.816 -> addr1: 8904 17:37:13.816 -> port1: 1 17:37:13.816 -> cmd: turnout 17:37:13.816 -> param1: 58 17:37:13.816 -> value1: 85 17:37:13.816 -> Turning servo on port 1 to angle 85
Anscheinend ist alles okay, aber:
Servo bewegt sich nicht.
Status LED bleibt dunkel.Getestet sowohl mit PC USB Port als Power als auch mit 5V 2,3 A USB Handylader als Power, kein Unterschied
Wo kann das Problem sein?
-
Februar 15, 2021 um 17:58 Uhr #2402Piet BeinekeTeilnehmer
Ich und ein paar weitere hatten das Problem zunächst auch. Wichtig ist, welche Version des NodeMCU’s du nutzt.
VG-
Februar 15, 2021 um 18:08 Uhr #2403ZoltanTeilnehmer
Diese.
Ich habe keine andere.
Die anderen Controller (sensor und mtc4pf) scheinen zu gehen (bis auf das dort drüben beschriebene Motordrehrichtungsproblem).
Compile und upload geht problemlos.-
Februar 15, 2021 um 18:10 Uhr #2404Piet BeinekeTeilnehmer
Ah ok, das war bei uns auch das Problem, wie vielleicht auch oben im Chat zu sehen. Funktionieren tuen bei den Switches leider nur die V2-Modelle. Die anderen Controller gehen mit V3, aber die Switches leider nur so.
VG
-
-
-
-
Februar 15, 2021 um 19:56 Uhr #2405ZoltanTeilnehmer
Das ist aber blöd, dass ich das vorher nicht wusste.
Fragen:
1.)
Kann Matze nicht etwas im Code unternehmen, dass es doch läuft?2.)
Geht es auf dem Vemos D1 mini?3.)
Geht es auf dem ESP32?Und was ist eigentlich der Unterschied diesbezüglich zwischen V2 und V3? Irgendwo las ich etwas darüber, dass der sog. V3 eigentlich V1 sei, und V2 die neuere ist…?
Vorerst kann ich also keine Weichen schalten… schade.
Und mit der Motordrehrichtung beim anderen Controller habe ich ja auch noch mein Problem, da hat sich noch niemand gemeldet… na vielleicht wird es morgen ein besserer Tag.
-
Februar 15, 2021 um 23:45 Uhr #2407Matthias RunteAdministrator
Hallo allerseits,
könnt Ihr mal probieren, auf dem verdächtigen Controller das ganz einfache Beispiel-Sketch laufen zu lassen und einfach den Servo ein bisschen zu drehen? Vorsicht mit dem zulässigen Winkelbereich, zerschießt Euch nicht die Weichenmotoren. Danke!Nur der MTC4PU braucht bislang einen ESP-32, alle anderen Controller benötigen einen ESP12 / ESP8266.
Gruß,
Mattze -
Februar 16, 2021 um 08:47 Uhr #2411ZoltanTeilnehmer
Problem solved.
It was a silly error mysides.
MattzoController_Switch works on the AZDelivery 3 x NodeMCU Lolin V3 Module ESP8266 ESP-12F WIFI.
Problem was: The servo “red plus +” should not be connected to Pin VIN, but to Pin VU!
Then it works fine!
-
Februar 16, 2021 um 14:36 Uhr #2413Piet BeinekeTeilnehmer
Welp, I did the same thing. Now it works with the V3 too, kind off, because it now has this weird thing that it connects and disconnects to my laptops usb, which I use for power while testing, constantly and the servos dont stop calibrating. Does someone have this issue too, or is it just my Laptop, because I’ve tried all outlets and switched the cable multiple times…
-
-
Februar 16, 2021 um 19:27 Uhr #2417MaxTeilnehmer
Hey Piet, I do face the same behavior of the SwitchController.
Try to use only one servo at a controller. Does the problem persist?-
Februar 17, 2021 um 15:34 Uhr #2419Piet BeinekeTeilnehmer
I have found the problem: Wrong calibration, so when the motor is pressing against the wall of its container, the controller will disconnect and connect again, the servos calibrating with the same, wrong values. Once you put in values that don’t make the servo “oversteer” the controller works perfectly fine for me!
-
-
Februar 23, 2021 um 20:34 Uhr #2464ZoltanTeilnehmer
Hallo, ich habe eine Frage zu den Winkeln.
Ich habe eine eigene Mechanik, wo der Servo von Mitte auf einem bestimmten Winkel gehen soll. In der Doku steht:
Enter the minimum value of the switch servo motor into the “Parameter” field, and the maximum value into the “Value” field.
Was stellen diese Werte “minimum value und maximum value dar?
Was ist der erlaubte Bereich dafür?
Sind das Winkel? Oder Zahlen, die man mappen muss?
Welcher Wert entspricht “Mitte”?
Sicherlich kann man das experimentell herausfinden, aber mit Anhaltspunkte wäre es sehr viel einfacher. -
Februar 24, 2021 um 10:33 Uhr #2465ZoltanTeilnehmer
Ich habe es experimentell herausgetüftelt.
Allerdings musste ich die Min- und Max-values ändern, da bei mir Parameter=105°für Gerade und Wert=130 °für Abzweig eingestellt werden musste.Nun sind alle drei Controller soweit fertig.
Ich muss noch die Weiche und die “Lok” “einboxen”, und danach mache ich ein Filmchen über meine Spielerei. Vielleicht interessiert mein “Missbrauch” des Matzo Systems (was ich eigentlich nur fürs Testen des Ganzen im Voraus gemacht habe) jemanden. (Resumee schon im Voraus: Tut man etwas Mühe und Lernen investieren, dann funktioniert es einfach… :))
-
März 3, 2021 um 09:29 Uhr #2626ZoltanTeilnehmer
Mein “Projekt” ist fertig.
Wie schon erwähnt, MattzoBricks Lego Automation hat mich fasziniert!
Aber ich habe keine Lego Züge. Ich wollte es aber trotzdem ausprobieren. So habe ich das Projekt etwas geändert (in den Äusserlichkeiten), und auf Spur G als Test umgesetzt. Hier ist ein Bericht über den Bau der “Weiche”.-
März 3, 2021 um 09:34 Uhr #2629Matthias RunteAdministrator
Great work!
-
-
Juli 17, 2022 um 10:56 Uhr #5348Andrew HewittTeilnehmer
Good day. I have finaly working my laptop that he can see the esp8266. We are going to start with the switches and leds and sensors (all from trixbrix) My question is can i connect 1 one double cross switch (with 2 switches ) and 2 leds one sensor. And than 2 swichtes single with two leds and two sensors on one esp8266. In totaal i have 2 switches (single), 6 leds and 4 sensors. I want to know must i use one esp8266 (MLC) or two. thanx
-
Juli 20, 2022 um 21:27 Uhr #5351Matthias RunteAdministrator
If you are not using a port extender, a MattzoLayoutController can handle 8 switches, OR 4 signals (8 LEDs), OR 8 sensors, OR any combination of these appliances.
-
-
Juli 31, 2022 um 15:11 Uhr #5368Andrew HewittTeilnehmer
Can i make this switch all in Visual Studio Code. In Arduino IDE i get a lot of errors. In Visual Studio i have make one esp32 working with one PU train
-
August 8, 2022 um 08:45 Uhr #5377Matthias RunteAdministrator
Theoretically yes, if you use a Arduino upload plug-in. Nevertheless, the code and the directory structure for most of the controllers is presently optimized for Arduino.
-
-
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.