Jump to content

Recommended Posts

Posted

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 ...

 

Posted (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 by kaxynet
Typo
Posted

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.

Posted
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 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...