-
Posts
1,240 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Everything posted by Lok24
-
Thanks, this is good news. Germany : Version 2.4.0
-
Powered Up and Arduino
Lok24 replied to Lok24's topic in LEGO Technic, Mindstorms, Model Team and Scale Modeling
Hi, Surprise: sent a question yesterday concerning MAC-Adresses to the developer of legoino, and solution was implemented 3h later! Next Step: buying an arduino.......... -
Powered Up and Arduino
Lok24 replied to Lok24's topic in LEGO Technic, Mindstorms, Model Team and Scale Modeling
Thanks a lot, I cannot find any hints to MAC Adresses to connect a device in the legoino project, that's why I don't kow how to use. For my Raspberry I wrote my own programms using GATTTOOL, which works fine and has been shown on different exhibitions his year. My idea: Arduino needs less time to start, less energy to run, has analog inputs, that's why I wanted to switch to the Arduino -
Ah, I see! A shuttle train! in general SetMotorSpeed(50) is forward, and SetMotorSpeed(-50) is backwards Here is what you need if you have a sensor in the engine, you need two events (detecting white and red ie.) if (Hub[0].State[0] == 0) { Hub[0].State[0] = 1; Hub[0].RampMotorSpeed("A",0,1000); Wait(3000); Hub[0].RampMotorSpeed("A",10,50,1000); } if (Hub[0].State[0] == 1) { Hub[0].State[0] = 0; Hub[0].RampMotorSpeed("A",0,1000); Wait(3000); Hub[0].RampMotorSpeed("A",-10,-50,1000); } or without sensor, by time (3secs to run) while (True) { Hub[0].SetMotorSpeed("A",50); Wait(3000); Hub[0].Stop("A"); Wait(1000); Hub[0].SetMotorSpeed("A",-50); Wait(3000); Hub[0].Stop("A"); Wait(1000); }
-
Hi all, can anybody give me the command(s) to receive the values of the boost motor tacho? Thanks in advance!
-
Hi, One ore more hubs, motors and depending on the Software to control a smart device or PC. Yes, the Powerfunction devices are infrared. Of course you can mix that with some own soft/hardware, but I would not recommend. SBrick and WeDo are BT as well. The Smart Hubs (as in the trains) have two connectors, the technic Hub 4, but is to large for train. You can't increase. That depends of what you want to do, I have good experience with motor 45303 and sensor 88007 , best offer for motors and sensors is the LEGO shop. Best offer for Hubs is Bricklink. There is no limit of 5 hubs for controlling, there is a limit of 5(6) Hubs connecting them to a LEGO network. All solutions and recommendations depend of what you want to do....
-
[APP] BrickController2
Lok24 replied to imurvai's topic in LEGO Technic, Mindstorms, Model Team and Scale Modeling
Hello @imurvai thank you for implementing the FW,HW and battery. Very useful! But note for PU: you get 8(!) characters, which are read in the following way (from the PU-protocol at github): As an example 1.7.37.1510 is encoded as shown below: These are encoded in the 4 bytes as: Byte 3 (MSB): 0x17 (Presented at user-level) Byte 2: 0x37 (Presented at user-level) Byte 1: 0x15 Byte 0 (LSB): 0x10 so my move hub version is 2.0.00.0017, where BC2 shows 1.7.0.20- 1,310 replies
-
- sbrick
- game controller
-
(and 8 more)
Tagged with:
-
Hi, yes, you are right, but there is beyond this a method with four parameters. This is extremly useful, because with Hub[0].RampMotorSpeed("A",20,50,1000); you can set the first parameter to start the engine immediatly without humming until motors turns. In fact I use variables for that in the two sections Hub[0].RampMotorSpeed("A",vs,vm,tx); or Hub[0].RampMotorSpeed("A",vs*-1,vm*-1,tx); I set them in the Global Code: // Create your own constants! public const int vs = 20; public const int vm = 50; public const int tx = 1000;
-
I have only 6 tracks here to test, the tiles are only 2 Tracks apart No, it doesn't anything, it waits for event..... You should move the engine manually to one of the colored tiles in the track, that causes an event in BAP and starts the programm sequences. Or you edit the event with if (Hub[0].State[0] == 0) (which is initialised to 0 during the code within BAP which you can't see) and click on "run code"
-
Hi all, indeeed, sorry. The original program is more elegant, and I had to change it, but we can discuss this later. As you see the both programms are nearly the same, and the first seems to be correct ;-) In the second the line must of course be: Hub[0].RampMotorSpeed("A",0,-50,1000); That means accelerate motor on port A from 0 to -50 in 1000 milliseconds.
-
Hi @Snapshot I think that can't be done without programming code..... First you have two add to evens, one for red, one for white. For each of of them you choose "Execute Code" The two codes are below - they are very similar - and hopefully work.... I can't test them in the moment, no time. Perhaps you gvive it a try, and then we discuss what they do and how to do even easier. Please note: the white and red events have to correspond with the direction of the loco. So perhaps you have to change the two colored tiles or switch the 50 and -50 in the codes, last line. if (Hub[0].State[0] == 1) { MainBoard.WriteLine("----> White"); Hub[0].State[0] = 0; Hub[0].RampMotorSpeed("A",0,1000); Wait(1200); MainBoard.WriteLine("Wait"); Wait(5000); MainBoard.WriteLine("Start"); Hub[0].RampMotorSpeed("A",0,50,1000); } if (Hub[0].State[0] == 0) { MainBoard.WriteLine("-----> Red"); Hub[0].State[0] = 1; Hub[0].RampMotorSpeed("A",0,1000); Wait(1200); MainBoard.WriteLine("Wait"); Wait(5000); MainBoard.WriteLine("Start"); Hub[0].RampMotorSpeed("A"0,-50,1000); }
-
Sure you can do that. But you did not buy a set. And if you don't want to use it with the Control+ App or non-Lego-software you shouldn't buy it. The Brick automation Projekt has nothing to do with facebook? You find it here: https://www.eurobricks.com/forum/index.php?/forums/topic/169318-control-all-your-powered-up-power-function-sbrick-devices-with-a-single-software/ It is designed for Win 10 only. Perhaps it would be easier to help if you describe what you want to do ......
-
Yes, all correct. With pure LEGO you can use that only as you described. This might be one of the reasons why these parts aren't avaible in the stores and shops yet. But what is strange with that? You can use programs from other sources to use that all. I.E the Brick automation project, Brick Controller 2 or the proramming libraries for different languages.
-
Not yet, but is planned for the future by LEGO. For today there must be something in between like a smartdevice or PC or microcontroller to "translate" the commands from the handheld to the hub (I'm talking about the technic hub, Control+ is the app and more a sign for PoweredUp in the technic theme)
-
[APP] BrickController2
Lok24 replied to imurvai's topic in LEGO Technic, Mindstorms, Model Team and Scale Modeling
Hello , It would be very useful to show the FW-version under "devices" together with MAC Address, especially for PoweredUp devices, but others as well. Perhaps you find the time to implment, thanks in advance.- 1,310 replies
-
- sbrick
- game controller
-
(and 8 more)
Tagged with:
-
Hi @Cosmik42 and all, this weekend I was at Bricking Bavaria in Fürth (D) with more than 200 exhibitors. We had a sniffer which showed over 60 BT devices near my desk..... So I used the limitation of addresses, which really works fine! Here's my example: ------------------------------ Smart Hub No 1 (V100) - 90842B063B73 HandSet A434F1CE5C45 BOOST_MOVE_HUB - 1653AF77C3 4 Smart Hub No 6 90842B10790A technic-Hub 90842B4A0971 SBrick 780D048D2 ------------------------- As you see: - You can add text and blank lines - MAC owned by me but not used momentarily are "disabled" by "- " - leading zeros must be omitted (last entry, SBrick) With 1.5. technic Hub is detected properly and sliders shown, train motor, light and boost sensor at technic hub work fine. Thanks a lot, really helpful!