Lego technic Liebherr 9800 excavator (almost) full functionallity with both hubs with pybricks SOLVED #568
KassIsLegend
started this conversation in
General
Replies: 1 comment
-
ISSUE SOLVED |
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
-
Hi, i have figured out a simple way of getting both hubs to work on the excavator, Basically you want the latest stable version of pybricks, go to pybricks code, click the cog wheel, and down at the bottom under "App" click "Install as app" hopefully it makes a desktop shortcut, open pybricks code in chrome(only browser i use really, not sure if this will work on other browsers) and open it in the app version, load one hub script on browser side, load one on app side at any point a blue box pops up asking you to delete and refresh, do not, ignore it or just close the box, once you have each script loaded on each platform, turn on both hubs that(hopefully) have the firmware already installed by this point on each hub, now at this point it may be a bit of trial and error, on the pybricks code you loaded the upper hub one on, connect the hub per usual on that side, when you go to click "Pair" there should be two hubs, each showing its address now, if you connect the wrong hub no biggie, just click the bluetooth button and select a different hub, try to memorize which hub addres is which hub, itll make it easier to pair the right hub to the right pybricks platform(on browser or app) Again making sure to avoid clicking "delete and refresh" on the blue box that may pop up several times during setup and or operation, once you know you have both hubs connected to the corrects sides(Browser and app) simply press play on each pybricks, and imput your keys in the terminal below, easy as tabbing back and forth!
Again, this is really basic, the motors will not auto stop, and control is pretty analouge but it does work, to stop any motor simply press any key that is not bound to a motor like space or 5 on the numpad
Right now i need help with the legitimate final step in this project, thats the tracks with the bottom hub, basic forward/back and rotate left/rotate right
first part of the code(lines 29-37) is for forward and back. Second half(lines 39-48) are for left and right
it ignores 29-37 (forward and back) but responds to 39-48 (left and right) what am i missing here..... also ignore the fact i dont have port D coded out, it was there but i removed it to get the tracks working, once i have everything working i will release the .Py files here on github for th public to use, only thing i ask is if anyone happens to improove it at all, Please show me how to change it up i want to learn more about pybricks and python and i think this is a great way of doing so, anyway heres the area of issue
Beta Was this translation helpful? Give feedback.
All reactions