BrickDesignerNL

Eurobricks New Members
  • Content Count

    5
  • Joined

  • Last visited

About BrickDesignerNL

Spam Prevention

  • What is favorite LEGO theme? (we need this info to prevent spam)
    31055-1
  • Which LEGO set did you recently purchase or build?
    51515-1

Extra

  • Country
    Netherlands

Recent Profile Visitors

42 profile views
  1. BrickDesignerNL

    Using multiple Spike Prime/Robot Inventor Hubs

    Just found this page https://lego.github.io/lego-ble-wireless-protocol-docs/ is this also for the spike prime / robot inventor hub?
  2. BrickDesignerNL

    Some RIS 51515 Docs

    (removed by user) OT: [sorry, I was reading an other topic and replied there but for some reason my reply ended up here, in a topic that I hadn't even seen .. ] -sorry
  3. BrickDesignerNL

    Using multiple Spike Prime/Robot Inventor Hubs

    As earlier quoted the protocol used by the hub is TTL´╗┐ UART. And you can link two hubs together if you make a link cable with two connectors. Since it also has Bluetooth it might be interesting to see if you can find a lib that can scan for other devices, and then connect to them, to so then the hubs can talk serial (uart) over bluetooth between the hubs. The bluetooth MAC-addresses of the hub are exposed in code when you sync it with the hub (zip file contains xml with this info).
  4. BrickDesignerNL

    Using multiple Spike Prime/Robot Inventor Hubs

    I thought let's bring this info to here for the case it will disappear elsewhere. Thanks @Tcm0 until now I only read people saying it was not possible :) So this is very good news :) # Sender Spike Prime or Robot Inventor Hub # Code by Gianluca Cannalire import utime import hub from hub import port port.A.mode(port.MODE_FULL_DUPLEX) a=port.A a.baud(115200) i=0 while True: utime.sleep_ms(150) p=hub.button.center.was_pressed() if p==True: i=i+1 hub.display.show(i) print("Send: " + str(i)) a.write(str(i)) if i==9: i=0 # Receiver Spike Prime or Robot Inventor Hub # Code by Gianluca Cannalire import utime import hub from hub import port port.B.mode(port.MODE_FULL_DUPLEX) b=port.B b.baud(115200) i=0 while True: utime.sleep_ms(150) s=b.read(100).decode() if len(s) > 0: hub.display.show(s) The above example code from Gianluca Cannalire to let two LEGO hubs talk to each other via a wire between them, if you press the center button on the "sender" it will increase the number (up to 9, and then starting at 1 again) and show it on the hub, send it to the receiver hub, that then will reads the number and displays it. His comments: Adding a small delay after the "mode.(port.MODE_FULL_DUPLEX)" you can fix the above mentioned error, as Nard Strijbosch suggested.
  5. This is my first creation with the Robot Inventor set, 51515-1 , created in stud.io using LDraw parts as custom parts. I hope you like it and it inspires you to build. The PDF building instructions and part list are available at Rebrickable for free. I haven't build it myself because I do not own the set, but greg10 did and posted a photo. In LEGO Studio the motor cables are not available so; I recommend to use the 49283 Wire Clip with Axle Hole (also available in the set) to manage them so that they will not end up in the wheels.