NikosSprocket Posted January 12, 2021 Posted January 12, 2021 (edited) I am building a RC version of the Lego Land Rover Defender (42119) and it will include a 3 speed sequential Transmission. It will be operated from the Powered-Up Lego app. using 3 buttons and it includes a dial that shows the selected gear. I am using a Technic Hub (88012) and a Technic Medium Angular Motor (45603). The Remote Control has 3 buttons; up-shift, down-shift and neutral. When the application is started it calibrates the shifting axle to be at the "neutral" gear and sets the angle to 0. Pressing the up-shift button will engage the 1st gear, then if pressed again the 2nd until it reaches the 3rd gear. If you press the up-shift button more times it will not move the shifting mechanism but will make a "clanking" noise. Pressing the down-shift button will sequentially shift to the next lower gear until it gets to neutral where again will make a "clanking" noise trying to go lower. To the right of the 3 buttons there is a dial that indicates the gear is selected. [Media] Edited January 14, 2021 by NikosSprocket Quote
Lukes_Brick_Studio Posted January 13, 2021 Posted January 13, 2021 I really like this gearbox and the way you use the Control+ elements. I am trying to create a gearbox with the Control+ Elements too, but I didn´t find any good solution for a gear Indicator. So I am really interested how you write the program for the gear indicator with the Powered Up App, could you explain how you created this? Quote
NikosSprocket Posted January 13, 2021 Author Posted January 13, 2021 9 hours ago, Lukes_Brick_Studio said: I really like this gearbox and the way you use the Control+ elements. I am trying to create a gearbox with the Control+ Elements too, but I didn´t find any good solution for a gear Indicator. So I am really interested how you write the program for the gear indicator with the Powered Up App, could you explain how you created this? Thank you! I use a variable "a" for the gear number. Zero is for neutral, when you press the "up" button then the variable "a" becomes "a+1" and the button function rotates the gear selector 90 degrees. When you press "down" button then the variable "a" becomes "a-1" and the button function rotates the gear selector -90 degrees. Then I use a PU dial to display variable "a". I hope this helps. Nikos Quote
Lukes_Brick_Studio Posted January 13, 2021 Posted January 13, 2021 (edited) Thank you! You helped me a lot :) . Edited January 13, 2021 by Lukes_Brick_Studio Quote
NikosSprocket Posted January 13, 2021 Author Posted January 13, 2021 (edited) You are welcome! As my RC Discovery project progresses I will put more updates. The plan is to use 4 motors; steering, power motor, gear motor and a center diff motor. I think, I can fit all them and the hub! We will see.... Nikos Edited January 13, 2021 by NikosSprocket Quote
Big Adam Posted January 14, 2021 Posted January 14, 2021 Sorry for the nit-pick, but you mean Defender, not Discovery. Quote
NikosSprocket Posted January 14, 2021 Author Posted January 14, 2021 (edited) Adam don't be sorry! Actually thank you for pointing out my ... misinformation so I don't get a call from Land Rover (Tata...) about their new top secret car Discovery lol. Thanks again! Nikos PS. I am updating the name on all the sites Edited January 14, 2021 by NikosSprocket Quote
Legotyres Posted November 10, 2023 Posted November 10, 2023 Hi @NikosSprocket I,m hoping you can help! I can see you have created a great little piece of coding for a gear selector identifier and I’ve been trying to figure one out without much success for my own MOC Have you any coding suggestions on how you achieved it or would you be happy to share a screen shot showing the process of how you achieved it? I'd be very grateful Cheer, Legotyres Quote
Andman Posted November 11, 2023 Posted November 11, 2023 (edited) @Legotyres, did you try coding in powered up already. If so, please post a screenshot. The description of what the code does, was already provided. I assume you saw that and it did help you, did it? In any case i can help you too, if you wish so :) Edited November 11, 2023 by Andman Quote
vascolp Posted November 11, 2023 Posted November 11, 2023 @Legotyres: Or, if you have a lego remote, you could try RemoteBalBla. No need for programming,it already includes support for 90º steps gearboxes. Quote
Legotyres Posted November 11, 2023 Posted November 11, 2023 (edited) Hi @Andman, @vascolp I’ve changed the code so many times, I honestly cannot remember where I’m at anymore this is similar to the original coding and adds 1 then stops when I hit button four. If I hit it again, nothing happens which tells me I need to store that number. if I press button 5, will display -1 when I’ve pressed one of the two two buttons, it flickers through 1 and -1 with me having to end the program this looked to be because of the loop system as it stops when removed like I’ve said, it’s pickled my head and I’ve gone back to designing a 10 speed gearbox as it’s easier (plus I used to code PHP and cannot get my head around these block things) here’s the coding Cheers in advance for the help, Legotyres Edited November 12, 2023 by Legotyres Quote
Legotyres Posted November 11, 2023 Posted November 11, 2023 (edited) Hi @Andman, @vascolp From the video, I can see that some of the coding looks like this a = 0 b = a + 1 c = ab + button or counter? either way, it still returns a value of 1 and goes no further Cheers again, Legotyres Edited November 12, 2023 by Legotyres Quote
Legotyres Posted November 11, 2023 Posted November 11, 2023 So, I can see ab, just returns a value of 1. So the second storage isn’t that. I’ve tried the others and mod seems promising although using does nothing to the calculation Quote
Legotyres Posted November 12, 2023 Posted November 12, 2023 Sometimes it’s easier to show what I’m trying to achieve, so here is a video clip of the controller. This is only first stage and as you can see the gear counter fails at 1 Cheers, Legotyres Quote
Legotyres Posted November 13, 2023 Posted November 13, 2023 (edited) Couple of videos of the car remote control designed to work with a gearbox With help from Brian Madsen who kindly sent me a working counter, I’ve extended it so that it also works with Neutral There is also a fine adjuster as I’ve noticed it moves slightly when shifting the gears, so to combat future coding, I thought I add it I’ll create a PDF document with the coding so everyone can use it A couple of videos for anyone who wishes to use the code before the PDF of what it working The gearbox being used isn’t the correct one as that should be an 10 speed which should have 8 forward gears, neutral and reverse Enjoy, Legotyres Edited November 13, 2023 by Legotyres Quote
Legotyres Posted November 14, 2023 Posted November 14, 2023 Here are some static images of the coding of above hope it helps someone in the future Cheers, Legotyres Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.