-
Posts
1,240 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Everything posted by Lok24
-
I never use this "config screen", and everything else here works fine. With my ASUS Dongle. Movehub, SmartHub, Sbrick. The only thing that doesn't work is my Boost App with Win 10.
-
In the windows control panel I only see the adapter, no hubs or connections at all, and there is no "right click". With left click it gives "remove device", but this of course removes the BT-Dongle.
-
Thanks, I don't doubt. But: How to check in Windows and, if so, realese this connection?
-
Hi @Jetro Don't know how to check that, and LEGO says nothing about that. As I wrote, the Appp checks BT and replies "ok" And: if it it is use by Win itself, why do Cosmik's project and my Python-prog connect without any problems?
-
I use the same as for Cosmiks BAP project or another one which works with my python prog. App starts, "Press green button", then check "batteries", ok, then "check BT", ok, then "contact service", which I did.
-
Yes, was anyone succesful in running that? I have lots of contact with the service , but no solution yet, so I'have two Boost sets wich I cant't operate at all....
-
Your confusion comes from mixing up things "Boost" is a SET "Hub" is any box, containing Batteries, receiver and connectors MoveHub is the name of the hub contained in the Boost set Spike prime is a Set containing the Large Hub and different PowerdUp Sensors and Motors "PowerderUp" is the LEGO platform for electronics, a kind of a label which describes properties (connecteors and protocol) Ooops - what was the question? The "Hub No.4" is called Hub or SmartHub or has even more names. No, I just borrow one or a tablet for the 5 Minutes to update. And of course you don't need a smartphone to run a layout, there is enough other software. But as you can do programming with the app (which is not stupid at all) you could do that, I' ll try to show that on some conventions this year. And of course this is the way LGEO should do Updates, because it's the easiest way for the users. Please keep in mind that there are a lot of sets which mandatory need a smart device to be run.
-
Thanks, sounds good. How do we overcome that a non-train-Motor cannot be regulated with the handheld? Or in other words, is this a property of Hub or handheld? And: How to Upgrade the Handheld?
-
Hi, the "simple" is the well known WeDo 2.0 motor as used in the Batmobil. The other one is known from Boost, and is tacho regulated, so you can move it with a specific angle. Or measure the angle it is moved externally.
-
Hi language is C#, there is no "goto" like in BASIC an example for a loop would be for (int i = 0; i < 10; i++) { Hub[0].setMotorSpeed("A",i*10); } And a subroutine is placed in "Global code" static void startMotor(Hub X, int v) { X.setMotorSpeed("A",v); } and called from events with startMotor(Hub[0],25);
-
No, as I have no train layout at all
-
Just some explanation to learn a little bit programming You have a list of Filenames which is called "sound": public static string [] sound = {"siflement1","File2","file3".....}; So you automatically have 3 variables: sound[0], sound[1], sound[2] If you add a filename to the list you can address sound[3] But the "play"-Routine doesnt expect the name of the file, but a number! So you can start it with "play(0);" "play(12); " would lead to an error, cause list "sound" has only 3 Elements, numbered form 0 to 2. And to add symbolic names (bell) which are easy to remember (filenames might by different) you add line like: public const int bell = 1; So its the same if you write "play(1);" or "play(bell);" Have fun!
-
No, not at all. They use their standard Firmware. In both cases you have a "translater" between handset and HUBs, this is a Win10 PC or a rasberry. They must run all time, collect the commands(Button A+ pushed) and translate into the appropriate commnds for PUP Hub, Boost Hub, Sbrick (Motor on Hub x, Port y, Speed v) and so on. But you dont need monitor and Keyboard, they can be "invisible"
-
What I showed here is controlled by the Brick Automation program by @Cosmik42, on the RasberryPi I use normal Rasbian with some Python Scripts.
-
Hi, good news This is a list with one(!) element "siflement1" { "siflement1", }; but count starts with 0(!!!) So please change public const int bell = 1; into public const int bell = 0; A programmer would say: bell "points" to the element 0, the content of which is "siflement1" And in this line string fn = path + sound [so] + ". wav"; it must be ".wav" and not ". wav" otherwise you have a blank in your filenanme After this line you may insert: MainBoard.WriteLine(fn); This will display the complete filename... Good Luck!
-
Hi @Cheatay, very good, one small error: the code you insert (so my sound-example) belongs in Line 1 or at the end, but never(!) in the section // Create your own helper functions public void MyGlobalFunction() Was my fault, I didn't make that clear. And yes, after the line "Xxx" there must be a comma to seperate form next line. Or just remove it. What you have there with the filenames is a simple list, you can write it {"file0","file1";"file2",....} as well. And yes, there should not be blanks in the path, but i suppose they come from copying here in the thread For a beginner in programming you are doing very well, give your code, examples and error messages, brilliant.
-
Hi, no problem. You will learn it in a few minutes. just put the program below completely into the Global code (you find this in the menu under "programs") Click the button "compile code" left bottom, should give "succesful" then you need some .wav files (I think .mp3 work as well) and adjust the program to reflect the names (Points 1+2) Click the button "compile code" left bottom, should give "succesful" Adjust path (point 3) Click the button "compile code" left bottom, should give "succesful" and in the event or the sequence you just write play(bell); If you get FATAL: maybe your path is incorrect or file doesnt exist Try it! Here is the program: public static string [] sound = { // Filenames "xxx", "sound1", // <-----1------ change this into a filename on your disk without the .wav "sound2", // <------2----- change this into a filename on your disk without the .wav }; public const int bell = 1; //<---------- change "bell" into the name you want to use to start the sound or leave it as "bell" public const int hupe = 2; // <---------- change "hupe" into the name you want to use to start the sound or leave it as "hupe" public const string path = "E:\\Daten\\Lego\\Boost - PU - SBrick\\PoweredUp\\LegoTrainProject\\Sounds\\"; // <-----3----- change this to the path your sounds are on disk, note the double \\ // ----play---------------------------- // <------ leave the rest as it is static void play(int so) { System.Media.SoundPlayer player = new System.Media.SoundPlayer(); string fn = path + sound[so] +".wav"; player.SoundLocation = fn; player.Play(); }
-
Hi, thank you. Yes, I was there in 2018, and the layout with the "T41" and a steam-loco was driven completetly automatically by a RaspberryPi and some reed-contacts in the rail. As it was in June and PoweredUp now available yet it was driven by two SBrick.
-
Hi, thanks, just made a more detailed video (2:50) where you can see how the buttons are used. A screen (PC, Laptop, RAspberry) is not used and not necessary. https://www.youtube.com/watch?v=EEqTLUEx9Ps