Nivst
Eurobricks Vassals-
Content Count
32 -
Joined
-
Last visited
About Nivst
Spam Prevention
-
What is favorite LEGO theme? (we need this info to prevent spam)
City
-
Which LEGO set did you recently purchase or build?
60197
Profile Information
-
Gender
Male
Extra
-
Country
Israel
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Control all your Powered Up & Power Function (SBrick) devices with a single software
Nivst replied to Cosmik42's topic in LEGO Train Tech
@Cosmik42 any chance we can see the new IR transmission capability soon? Since the latest PoweredUp app version you can use the PU color/distance sensor to send IR commands to PF. -
Control all your Powered Up & Power Function (SBrick) devices with a single software
Nivst replied to Cosmik42's topic in LEGO Train Tech
I'd check it now, but don't think I can claim this as work related while working from home -
Control all your Powered Up & Power Function (SBrick) devices with a single software
Nivst replied to Cosmik42's topic in LEGO Train Tech
Can you call a script on the host filesystem from within BAP? -
Control all your Powered Up & Power Function (SBrick) devices with a single software
Nivst replied to Cosmik42's topic in LEGO Train Tech
If you can just push commands to attached devices then you're halfway there. I imagine it will require some work on both ends though. -
Control all your Powered Up & Power Function (SBrick) devices with a single software
Nivst replied to Cosmik42's topic in LEGO Train Tech
Sensors are much cheaper and there's a greater variety of them. Also removes the silly 2 devices per hub limit imposed on us :( -
Control all your Powered Up & Power Function (SBrick) devices with a single software
Nivst replied to Cosmik42's topic in LEGO Train Tech
@Cosmik42 thanks for the reply, I should be able to manage my layout without needing state[99] ;) Any chance you had time to check the sensor LED bit? Attaching the PoweredUp app control of this setting. -
Control all your Powered Up & Power Function (SBrick) devices with a single software
Nivst replied to Cosmik42's topic in LEGO Train Tech
What a newbie mistake! This is why you don't do complicated things at 23:00 The thing that threw me off was that the help says: - State[0-100] - 100 slots of integers... Seems like 99 is also not available - same fatal error. Thanks @djm! -
Control all your Powered Up & Power Function (SBrick) devices with a single software
Nivst replied to Cosmik42's topic in LEGO Train Tech
@Cosmik42That's for the hub LED, the color sensor has its own LED. Also, I'm trying to randomize my layout a bit - I've built a siding that I want the train to take randomly by stopping and backing into a switch - but I don't want to hit it every time it goes through the main loop. I added this to one of my triggers, but Hub.State doesn't seem to like being assigned an int through a variable. Random rnd = new Random(); int rand_num = rnd.Next(1, 10); Hub[0].State[100] = rand_num; The result is this error and breaking out of the execution code: FATAL ERROR In Program: Index was outside the bounds of the array. Any help would be appreciated! -
Control all your Powered Up & Power Function (SBrick) devices with a single software
Nivst replied to Cosmik42's topic in LEGO Train Tech
Does anyone know how to set the PoweredUp color and distance sensor LED to a certain color? You can do it in the PoweredUp app and setting it to white seems to improve color detection. @Cosmik42 have you thought about adding the option to control the color sensing threshold? Color detection works a lot better with the LEGO app. -
Control all your Powered Up & Power Function (SBrick) devices with a single software
Nivst replied to Cosmik42's topic in LEGO Train Tech
@Walt White members of the forum and the trains group on FB have reported better success when mounting the sensor sideways and downwards. You can also use the different hub.states to store and act upon the different stages of your layout. -
Control all your Powered Up & Power Function (SBrick) devices with a single software
Nivst replied to Cosmik42's topic in LEGO Train Tech
Can you show your layout? -
Control all your Powered Up & Power Function (SBrick) devices with a single software
Nivst replied to Cosmik42's topic in LEGO Train Tech
I've seen people here and on the Facebook page say they're using dongles, either for PC's without or with an old/weak onboard BT card. -
Control all your Powered Up & Power Function (SBrick) devices with a single software
Nivst replied to Cosmik42's topic in LEGO Train Tech
Ah, yeah, you're right. What's I've done in our last show was add a PoweredUp remote and assign some actions to several buttons, that way I didn't need to fiddle with the computer when I wanted small things to happen manually. -
Control all your Powered Up & Power Function (SBrick) devices with a single software
Nivst replied to Cosmik42's topic in LEGO Train Tech
Color coding can help you differentiate between different hubs and states, for example - hub turns purple when it's about to go into a siding. Or you can also use it as another flag, change color when a certain event triggers or a condition is met, and query the hub for it's color later on for some logic. Have you tried click the "Stop Listening" button at the top left of the program tab? That will stop that branch. -
Control all your Powered Up & Power Function (SBrick) devices with a single software
Nivst replied to Cosmik42's topic in LEGO Train Tech
You can get around that by using the hub states as flags.