![]() ![]() And you can link two hubs together if you make a link cable with two connectors. Is any of that type of detailed technical info out there yet for these hubs?Īs earlier quoted the protocol used by the hub is TTL UART. Or a bi-directional serial link with a bit of work maybe? Need to know a lot more about the internals for that. Is there enough info out there about the port specs for either a dedicated fibre optic link between hubs or some other suitably isolated electronic link? Effectively a one-way serial link. The novelty of it (quite a few years ago!) extended it to controlling Micro Scouts and even a Bionicle Manta driving base (look it up kids - Lego did some weird stuff back then). I used to use a fibre optic cable (from the ancient Technics Fibre Optics kit) to link an RCX brick to a Scout brick to do the same thing. 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. I = 0 # Receiver Spike Prime or Robot Inventor Hub # Code by Gianluca Cannalire import utime # Sender Spike Prime or Robot Inventor Hub # Code by Gianluca Cannalire import utime Unfortunately size limitations prevent me from uploading images of the set up and demo code at the moment. In this context a model containing the one hub could “launch” the second.Īs SP and RI software can be easily swapped on any hub the user has the choice of using SP/SP or SP/RI or RI/RI platforms. On the downside the process sacrifices at least one port on each of a pair of hubs (if the requirement is for one way communication between the pair). The sensors need to be carefully and firmly positioned for reliability although there is no other requirement for any connection between them. This process could be 2 way, could enable daisy chaining of hubs and could be expanded to longer instructions (again high speed not being a limitation). The number of flashes in a fixed time frame thus delivers information from Transmitter to Receiver. As expected using downloaded compiled code speeds the process up though not massively. The idea which I have tested is to use the distance sensor to signal light flashes to the colour sensor. Whereas wireless Inter-hub communication could be very helpful enabling models to use multiple hubs and access both software platforms this is not something that Lego have explicitly provided at the moment. There is however a very simple and seemingly reliable work around available immediately that could help in cases where high speed comms and high data volumes are less important. This is to use optical communication. Unfortunately Lego only provide 6 ports on each hub and have 2 versions of software both of which initially appear limiting. Now in robotics three elements stand out as being super important: being able to use multiple motors (motors are basic building blocks), multiple sensors plus having the computational brain (and software) to hold it all together. ![]() One thing seems clear is that the hardware is well thought out (yes there are issues with cables). ![]() I have read all sorts of complaints about Robot Inventor and by inference Spike Prime. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |