LEGO 42146 Liebherr LR 1300 crane with one remote connected to each Technic hub #1259
BertLindeman
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
Nice! I was playing with that just yesterday 😄 Looking forward to seeing your results. |
Beta Was this translation helpful? Give feedback.
1 reply
-
The comments in The main program: lego_42146_main.py.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
General
Have built the huge
LEGO 42146 Liebherr LR 1300 crane
and "played" with a mobile phone on the Powered up app.Great build that took not enough time 😃
Rationale
I want to use pybricks.
Have used
beta.pybricks.com
for this project.The crane is controlled by two Technic hubs.
In pybricks the remote
LEGO 28739 Control Unit, Powered Up
cannot be connected to more than one hub.So: one remote controls one Technic Hub.
The crane has two hubs, so I need two remotes. (Although hub to hub communication is another possibility)
Program description
lego_42146_set_remote_names.py
Utility program to set the name of the remote
Run two times. Once for each remote.
lego_42146_liebherr_config.py
Module that keeps various values for the main program, like the name of the top and bottom hub, names of the remotes.
lego_42146_main.py
The program to run at least once on each hub, to load the specific module for that hub.
Module loaded on the top hub: lego_42146_tophub.py
Module loaded on the bottom hub: lego_42146_bottomhub.py
The hubs remember the program that ran last on it.
Install
Prepare
lego_42146_liebherr_config.py
lego_42146_set_remote_names.py
while connected to any Technic hub to set the remote names (so run twice).lego_42146_main.py
once on each hub.After the program was orderly stopped, the crane can be used without the use of a PC.
Start both hubs (one at a time)
Bottom hub
(starts blinking)Right remote
(starts blinking)Bottom hub
The hub goes to steady blue and then after connecting to the remote they both turn on brown.
One hub active, now the other:
Top hub
(starts blinking)Left remote
(starts blinking)Top hub
The hub goes to steady blue and then after connecting to the remote they both turn on green.
Ready to play
The remote units
Functions of the remotes:
Both remotes:
CENTER (green) button: Send a STOP command to the connected hub; the program stops
Left remote Top Hub State
green
:yellow
:brown
:magenta
:The hoist and rotate motors have been set to start REALLY SLOW as in the real world.
So have a bit of patience with these functions.
If you keep the button pressed, the hoist speed will amaze you in the end. (I think.)
I feel that still information is missing here, but at the moment I do not know what.
The information is also in the README.txt file, possibly in other words.
Please, let me know if you miss something, or spot errors.
Thank you,
Bert
Beta Was this translation helpful? Give feedback.
All reactions