kaxynet Posted November 16, 2020 Posted November 16, 2020 Hi every one , I be been working on putting together a library for Arduino to emulate Lego powered up distance/color sensor and Tilt sensor . Everything seems working fine using smart hub, control+ , can be used with spike prime and 51515 (sensor detection , values reporting) Following the link to the library github (lin code , wiring diagram, examples) https://github.com/ahmedjouirou/legopup_arduino Waiting for your contributions to get more custom sensors ... Quote
Toastie Posted November 16, 2020 Posted November 16, 2020 19 hours ago, kaxynet said: emulate Lego powered up distance/color sensor and Tilt sensor Hi @kaxynet, "emulate for" or "use with" Arduino? Best Thorsten Quote
kaxynet Posted November 17, 2020 Author Posted November 17, 2020 (edited) It actually uses an arduino to make it recognizable by the Hub as a sensor , so you can implement whatever sensor you want (pressure , angle , contact ,...) it implement the serial protocol that LEGO pup sensors use so it fakes the Hub as if the arduino was an actual sensor Edited November 17, 2020 by kaxynet Typo Quote
Toastie Posted November 17, 2020 Posted November 17, 2020 Wow! How cool ist this?! This is fantastic! Does your software run on the Arduino nanos as well? Thanks a lot for sharing! Best Thorsten Quote
FoxOne Posted November 17, 2020 Posted November 17, 2020 Looks awesome, thanks! Have you thought about connecting RC-servos to PU hub also? Trying to decide if it worth the effort, or just let go of standard controller altogether. Quote
kaxynet Posted November 17, 2020 Author Posted November 17, 2020 8 hours ago, Toastie said: Wow! How cool ist this?! This is fantastic! Does your software run on the Arduino nanos as well? Thanks a lot for sharing! Best Thorsten Yes the project supposed to run on all arduinos( tested on mega , uno , nano , stm32 nucleo) enjoy ;) 5 hours ago, FoxOne said: Looks awesome, thanks! Have you thought about connecting RC-servos to PU hub also? Trying to decide if it worth the effort, or just let go of standard controller altogether. Yes it s totally possible to intercept commands coming from the Hub (there's a small commented lines in the distance sensor file that read data coming from the hub , I ll eventually add support for RC servo to set their angle from the powered up app as if they were lego tacho- motors Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.