Liebherr 42146 with one remote #1447
Replies: 3 comments 1 reply
-
Awesome, thanks for sharing! |
Beta Was this translation helpful? Give feedback.
-
Funny. My programs. Bert |
Beta Was this translation helpful? Give feedback.
-
Hi! Checked your code, please accept some remarks: Anyway I almost finished my variant, with one control, everything is analogue controlled, different control optinons, speed options and calibration to have end positions of booms and hoist. Weight measurment/overload warning will be only available when vibration and or color change of controller is possible. |
Beta Was this translation helpful? Give feedback.
-
Setup:
Put the program on both hubs.
Upon starting the program the hub will search for a remote for 5 seconds, after that it will assume the other hub has the remote, so it will go into bluetooth receiving state.
So turn on both hubs, turn on the remote, one hub will connect to the remote, the other will receive commands over bluetooth, it doesnt matter which hub has the remote.
Files:
lego_42146_pybricks.zip
Is the main program entry point, figures out which hub it is based on the motor connection, if you have your motors differently you might need to adjust this.
Has all the shared code, also a few globals if you want to adjust maximum speed of the motors or
the bluetooth channel used.
Controls:
Remote green light
Controlling the upper hub
hoist
jib
boom
switch to lower hub
Remote blue light
Controlling the lower hub
left track
right track
Rotation
switch to upper hub
Beta Was this translation helpful? Give feedback.
All reactions