Mr Hobbles

Eurobricks Knights
  • Content count

    537
  • Joined

  • Last visited

About Mr Hobbles

Contact Methods

  • Website URL
    http://

Profile Information

  • Location
    Dundee, Scotland

Extra

  • Country
    Scotland

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Mr Hobbles

    Powered Up - A tear down...

    No, you've confused channels with outputs. :) Buttons on the left are for output A, buttons on the right for B. There are five channels (colors), which you can cycle between by pressing the green button in the middle. So you can have 10 trains per remote.
  2. Mr Hobbles

    Powered Up - A tear down...

    It's actually hardcoded in the sensors firmware to only detect 10 colors - "None", Pink, Purple, Blue, Light Blue, Cyan, Green, Yellow, Orange, Red, and White. I don't know if these correspond to Lego brick colors exactly. These are the same colors as appear in the Boost app for programming. The sensor has other modes that can be activated (distance only, distance and color, light intensity), but I don't know if anyone has found one for raw color values.
  3. Mr Hobbles

    Powered Up - A tear down...

    Oh I absolutely agree, this is my plan too! However it's perhaps overkill for someone who just wants to make a tram go ping-pong between two points. Ps. Thanks for the kind words, hopefully some people will find the library useful.
  4. Mr Hobbles

    Powered Up - A tear down...

    If you take the official remote control and app out of the equation, then what you are left with is the ability to communicate directly with the hub from a Bluetooth enabled laptop/device by writing code. I've released a library to help other programmers write code that talks to the Hub (https://github.com/nathankunicki/node-lpf2). By writing code: 1) Yes, you can make a WeDo motor run continuously. (This is not possible using the official remote, it only runs for as long as the button is pressed). 2) Yes, you can drive both ports at the same time. 3) Yes...kinda. In my experiments I've noticed that the train motor runs slightly slower in reverse at the same power level. Not sure why. In my code I adjust for this by adjusting the power level up slightly when running in reverse. But yes you can have one port run in reverse at the same time as the other port running forward if you want. Also note that we have the remote figured out too, and can connect this to a laptop. So by using a laptop in between the remote and the hub we can interpret the button presses as we want and make the hub do whatever we want, in essence overriding the default remote behaviour. I personally have my train remote controlling a Lego Boost Vernie robot at the moment. :) In fact its one of my code examples: https://github.com/nathankunicki/node-lpf2/blob/master/examples/vernie_remote.js No, it does not just work by itself. It needs to be connected to a Bluetooth device that is running the logic. In my example video the hub is connected to my laptop, running some Node.js code, written with the library mentioned above. It works by: a) Hub is connected to laptop. b) Hub sends color sensor data back to laptop continuously. c) Code on laptop detects when color sensor data matches the desired colors. d) Laptop then sends new motor commands to the hub to reverse the direction. I have no idea how power consuming it is. I think @JopieK is working on an iOS (And Android? :)) app that can take the place of laptop and custom code and maybe make it a bit more normal-user friendly...
  5. Mr Hobbles

    Powered Up FAQ and Community Wishes

    I stand corrected! And I even remember watching that video too. Oh dear. Lego should update their FAQ. :) Speaking of which, I wonder when/if we'll get answers to our earlier questions?
  6. Mr Hobbles

    Powered Up FAQ and Community Wishes

    When using a remote, looks like no, there is a limit of 2 hubs per channel, according to that FAQ.
  7. Mr Hobbles

    Powered Up FAQ and Community Wishes

    Well, Lego rarely tells anyone their upcoming products roadmap, so I'd expect a lot more to come shortly. We know of the WeDo 2.0 medium motors getting a general release in the App Powered Batmobile, and the lights will be available sometime soon(tm). We're still missing x-large motors, servo motors, and a more Technic-appropriate hub, to name but a few. We'll just have to see what else they've got planned. I'm personally hoping for a splitter cable, a PF adapter cable, an extension cable, and a polarity reversing switch.
  8. Mr Hobbles

    Powered Up - A tear down...

    Yes, and that's definitely a desired option, but at this point it's added complexity. For example despite the compatibility of Boost/WeDo stuff with Powered Up, there's no way for the average joe to take advantage of it without having fairly advanced programming knowledge, at least until Lego or the community release more apps. Someone earlier in the thread mentioned having a tram that can go back and forth between two points, essentially using the color sensor to reverse direction. Simple functionality, and highly desired, I've seen many people want to do this. The Duplo train is capable of this (out of the box!), but LPF2 is not. I wonder if LEGO could have put a color sensor into the bottom of the train motor with no added wires. I also really hope that Lego releases a easy coding app like Boost, but compatible with Powered Up, so trains can be easily programmed.
  9. Mr Hobbles

    Powered Up - A tear down...

    Hah, well done, I was curious about that. :) I agree - the tech in there is much more impressive/useful as it has the built in color sensor, LED, and speaker. Would be nice if the normal Powered Up hub had some of that too. Perhaps "Hub No.1", "Hub No.2", or "Hub No.3" might have? ;) I also notice on the LEGO replacement parts service that the remote is labelled "Handset No.2". I'm guessing there's another one due for release at some point? Perhaps with more joystick like controls like the Technic PF remote. Also note, I've finally opened up my library, see here if you're curious - https://github.com/nathankunicki/node-lpf2. It's a Node.js library written in TypeScript.
  10. Mr Hobbles

    2018 Lego Trains

    And a PF/9v conversion cable, and a polarity reversing cable. :)
  11. Mr Hobbles

    Powered Up - A tear down...

    On the remote? The LED on the hub works the same as Boost hub, but I haven't figure out how to control the remote's LED yet. The 5 ports I was talking about are what the remote reports (2 are the buttons).
  12. Mr Hobbles

    Powered Up - A tear down...

    The benefits of a standard protocol! LEGO has really thought this through. Pretty much guessing. When the hub connects it advertises all its ports, and what device (if any) is connected to it. The remote advertises 5 when it powers up, 0x00, 0x01, and three others. I have no idea what the other three do right now. Maybe one is the LED? But that's inconsistent to how the LED works on other hubs). One of them also has an "attached" id 0x38, which is interesting as the buttons are 0x37, so it might be some other functionality of the remote? I then decided to fire off a standard port activation message, starting at 0x00, and moving upwards if I got no notifications. Luckily, 0x00 worked perfectly. :)
  13. Mr Hobbles

    Powered Up - A tear down...

    Exactly. Port 0x00 for left, 0x01 for right, sensorMode 0x00. You start getting 0x45 notifications (same as color sensor), and byte 5 is the button state. Button states are: x01 up pressed, 0xff down pressed, 0x7f stop pressed, 0x00 released (Looks like 0x00 is emitted for release regardless of which button was pressed. If you want determine what button was released I guess you need to maintain state somewhere in your application as to the last pressed button). Did you manage to get the remote's LED color to change? The hub was simple, works the same as the boost hub, but the remote LED appears to be different.
  14. Mr Hobbles

    Powered Up - A tear down...

    Annnd I've sussed out the remote. :) Port 0x00 appears to be the buttons on the left hand side, and 0x01 is on the right. They are advertised as sensor type 0x37. Activating the sensor with mode 0x00 begins button press notifications, emitted from the remote as standard sensor messages.
  15. Mr Hobbles

    Powered Up - A tear down...

    Woo hoo, it's very exciting isn't it! I've uploaded a YouTube video of the simplest example I could think of: