Frage zu meinen System


Hallo zusammen, Ich habe einen Frage zu meinen Programm. Dies will einfach nicht laufen und ich finde keinen Fehler mehr. Ich habe mein Programm bei Simulink geschriebenen den Code bei Maltab Function. Das Board ist ein Adruino Uni Board. Ein Ultrasonic Sensor soll die Füllstände ich Wäschekörben messen. Dabei wird unter voll oder halbvoll entschieden. Anschließend wird ein Motor angesprochen, der entweder 15 oder 30 Sekunden laufen soll. Überwacht wird der Motor von einem Thermistor (den habe ich hier PT100 genannt) und einen Vibrationsschalter. Dazu soll der Vibrationsschalter über einen Resetknopf zurückgesetzt werden. Ich hoffe ihr könnt mir weiterhelfen. Vielen Dank:) if true % code end
dpb
dpb on 6 Jul 2026 at 14:26
Hello everyone,
I have a question about my program. It just won't run, and I can't find any more errors. I wrote my program in Simulink and the code in a MATLAB Function block. The board is an Arduino Uno board. An ultrasonic sensor is supposed to measure fill levels in laundry baskets. It determines whether it is full or half-full. Then, a motor is triggered to run for either 15 or 30 seconds. The motor is monitored by a thermistor (which I've named PT100 here) and a vibration switch. Additionally, the vibration switch should be reset using a reset button. I hope you can help me out. Thank you very much! :)
Christopher Stapels
Christopher Stapels on 6 Jul 2026 at 12:53
I dont think the model you shared made it, perhaps you can try again? Can you localize where it fails, or make a simpler model with just the thermistor or just the vibration switch? Also perhpas a version that only trns the motor on and off?
Ralf Axel
Ralf Axel on 6 Jul 2026 at 15:47
Thank you very much for your reply. Unfortunately, I can't pinpoint the exact problem. I think it's related to the temperature measurement or the ultrasonic sensor. Sadly, I can't tell for sure. What do you think?
dpb
dpb on 6 Jul 2026 at 16:29
I've not seen any mention of what the issue(s) is/are, specifically? Errors, doesn't produce expected results, ...???
W/o the system, though, not sure what can be done here, but more details couldn't hurt.
Ralf Axel
Ralf Axel on 6 Jul 2026 at 17:14
Thank you very much for your response. According to MATLAB, the program is error-free and should work correctly. Unfortunately, however, my circuit is not working. The ultrasonic sensor should detect a fill level between 0 and 30 cm. If a fill level between 0 and 15 cm is detected, Output 5 should be activated for 10 seconds. If a fill level between 15 and 30 cm is detected, the output should be activated for 20 seconds. The motor is monitored by a thermistor, which should switch off the output if the temperature reaches 40°C. The motor is also monitored by a vibration sensor, which should switch it off if excessive vibration is detected. If either of these faults is detected, a reset switch must be pressed before the motor can run again. Based on my understanding, the project should work as intended. Unfortunately, nothing happens at all. There is no response from the controller. Could you please let me know whether you can see any obvious errors in my program, or whether the problem is more likely related to my circuit? Thank you for your Support.

Tags

No tags entered yet.