Remote control for 42114 Volvo Articulated Hauler #511
Replies: 11 comments 19 replies
-
Hi, Just a question: how do you find the correct PID parameters? Trial and error or some different procedure? Finally, could be a good improvement that instead of use "steady" color to indicate gear (or dump) you can set the number of "blink" of the led of the remote (1 "blink" for 1st, 2 "blinks" for 2nd gear, ... and a steady value for dump, for example). Thank you |
Beta Was this translation helpful? Give feedback.
-
This is great, thanks so much for sharing!
We're definitely interested in sharing your example (and those that others have contributed recently). We're aiming to work on the website after we finish some of the upcoming releases :) |
Beta Was this translation helpful? Give feedback.
-
Dear Repkovsky,
Thanks so far for your quick response , iam going to test it and let you know asap.
Greetings Tobo.
Verstuurd vanaf mijn iPad
… Op 22 okt. 2021 om 22:26 heeft repkovsky ***@***.***> het volgende geschreven:
Dear Tobo,
Thank you for the feedback. Unfortunately I don't have another 42114 for testing (maybe I will try to borrow one), so your experience is very important for improving this program. First I would check if the gearbox calibrates properly - after the remote is connected, it should move maximally to the left, to the position visible for example here https://youtu.be/kKGAsx_oDbM?t=844. Then switch to the manual mode (green button) and try to set 2nd gear (right red button). Normally the violet element in gearbox it should move 90 degrees right. What happens in your case?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
Thanks Repkovsky,
Iam looking forward to it. Tobo.
Verstuurd vanaf mijn iPad
… Op 25 okt. 2021 om 12:46 heeft repkovsky ***@***.***> het volgende geschreven:
Dear Tobo,
thank you for the picture. I have some idea what may be the reason, I will check this out as soon as I will be able to (hopefully tomorrow).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
@tobobus @Gcopper1984 I have pushed new code to the repository, please check if this works for you. Calibration procedure is a bit different than before. Previously it started with rotation of the gearbox motor with limited power to make it precise, but a side effect could be that the power was too small to make any move (which could result in no activity after connecting remote). Now initially the power is set to maximum, and after gearbox motor is moved at all, the precise calibration follows. Additionally, if for some reason gearbox enters hangup state, it will be automatically recalibrated after some time of no activity (1.5 sec), and set to 1st gear. |
Beta Was this translation helpful? Give feedback.
-
Dear repkovsky, I did a quick test and hurray it works. Tomorrow i will test it futher but iam confident that you did a great job so a very very big Thanks you. |
Beta Was this translation helpful? Give feedback.
-
Dear Repkovky, After some futher testing, hangup problem solved. regards Tobo. |
Beta Was this translation helpful? Give feedback.
-
Dear Repkovky, I finally found some time to make some python tutorial and to test your work. I think I found the main problem for the model to struggling and stop working, I hope this solve also Tobos trouble. The main reason that I found is that you set too higher parameters value (speed, acceleration, etc) for movements and simple my model can not do that (I think it is a lazy worker :-) ) At this point model start working in a good and predictable way, finally enjoying your really good work. Also your code is really good and I will try to set it as "good practice" for future work. I really like the remote color code, it is clear a very useful. I try to add better playability adding also hub light to indicate different state of the model to better understand what their are doing. I also enjoy the function that check gearbox status. But here I removed the remote red light indicator (it is confusing, I was thinking my model turn in 3rd gear - automatic mode) and instead set red the hub light. After calibration it returns green. Just a question: steering command are sended only once when a button is pressed or in every while True: loop if the button is pressed? Because while turning my model slow down a lot... Finally, I also commented the gearbox print function I hope this help also @tobobus. I cut and paste the code here and I am trying to open a pull request in github. Tell me if it is ok for you. All my comment in your code are marked with GC84.
Thank you |
Beta Was this translation helpful? Give feedback.
-
@Gcopper1984 I have finally merged your code into repository (sorry for this long silence on my side). I have modified some parts to make Python code more standard and adjusted PID parameters for steering. The ones which I used initially could be to high, but on the other hand I think defaults are too low, and returning to center takes much too long, so finally I have chosen something in the middle. Once again thanks for cooperation! |
Beta Was this translation helpful? Give feedback.
-
If you're interested, it would be awesome if you want to add your project to the Here's an example of the files and formats to make it work: Here's how that project looks on the site: |
Beta Was this translation helpful? Give feedback.
-
I took me a while to come back to this project, make it compatible with 3.1 version and fix some errors, but finally I managed to create pull request. I am not sure if .md files are written properly, I hope you can review it and fix or give me some hints what should be corrected. |
Beta Was this translation helpful? Give feedback.
-
Update: It's published here
I managed to write a program for controlling 42114 Volvo Articulated Hauler with Bluetooth remote 88010, if someone is interested, the code is available here: https://github.com/repkovsky/technic/tree/main/42114-volvo-articulated-hauler. Both automatic and manual gearbox are implemented and they work rather well. In contrast to most of the remote control programs I decided to use classes, since without this it could be hard to write it in a clean way. There are many comments, so I hope this code still has some educational value. I would appreciate any comments, corrections as well as sharing it further. Here you can find little demo of driving, automated and manual gear switching and operating dumper https://www.youtube.com/watch?v=j4ZxOhXygNY.
Beta Was this translation helpful? Give feedback.
All reactions