Lok24 Posted December 9, 2019 Posted December 9, 2019 Hi all, is there a simple way to send the GATT commands needed for Powered Up from a Arduino? Are there libraries that can be used? Thanks in advace! Quote
JopieK Posted December 9, 2019 Posted December 9, 2019 You don't send GATT commands. GATT is the bluetooth profile of the device. You can just use BLE module for Arduino and send commands using RX / TX. https://github.com/corneliusmunz/legoino I downloaded the library from https://github.com/nathankellenicki/node-poweredup for the Raspberry Pi Zero W and it works like a charm! Quote
Lok24 Posted December 9, 2019 Author Posted December 9, 2019 Thanks a lot, I cannot find any hints to MAC Adresses to connect a device in the legoino project, that's why I don't kow how to use. For my Raspberry I wrote my own programms using GATTTOOL, which works fine and has been shown on different exhibitions his year. My idea: Arduino needs less time to start, less energy to run, has analog inputs, that's why I wanted to switch to the Arduino Quote
Lok24 Posted December 10, 2019 Author Posted December 10, 2019 (edited) Hi, Surprise: sent a question yesterday concerning MAC-Adresses to the developer of legoino, and solution was implemented 3h later! Next Step: buying an arduino.......... Edited December 10, 2019 by Lok24 Quote
GianCann Posted August 5, 2020 Posted August 5, 2020 Now, thanks to "Cornelius" (and my suggestion on the NimBLE library) it is possible to use Legoino to manage up to 8 hubs ;) In the video I connected 8 device, changing the led color in a continuous loop Quote
Toastie Posted August 9, 2020 Posted August 9, 2020 On 8/5/2020 at 11:24 AM, dr_spock said: Fantastic. Expand It really is. Got myself an ESP32 (nodeMCU, with not knowing at all what that thing can do - for 8 Euros - and yes, I know, I got the overpriced version, but it came in the mail within 2 days) and installed the required stuff for the Arduino IDE - and it simply >works<. It is amazing, what Cornelius and @GianCann and many others are creating on GitHub. I asked Cornelius (Legoino) about the implementation of the LWP code for the L motor on the 2 I/O hub - and he responded positively! That means train speed control (not power) with an ESP32 will be possible rather soon. And that makes the difference for me, as power regulated speed results in very smooth train operation, even when not using 2 XLs to simply kill friction forces. Thanks a lot to all the developers! Best Thorsten Quote
Lok24 Posted August 23, 2020 Author Posted August 23, 2020 Hi, yes it works! I just did some testing, but compiling with arduino IDE is very very slow, even a program with only a dozen of lines withtuout any includes takes half a minute, the leguino exaples a minute or more, upload of course depends on size of program. So for testing and developing purposes this is very hard. That's not what I expected. Can I improve this? Quote
GianCann Posted August 24, 2020 Posted August 24, 2020 On 8/23/2020 at 9:44 AM, Lok24 said: That's not what I expected. Can I improve this? Expand Try to disable the Antivirus (if you have one) Quote
Toastie Posted August 24, 2020 Posted August 24, 2020 On 8/23/2020 at 9:44 AM, Lok24 said: That's not what I expected. Expand How many bytes is the compiled code for a few lines of code? Best Thorsten 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.