I’m looking to use Lynxmotion high-torque servos with an Arduino Uno WiFi Rev2. I attempted to run the LSS_Sweep example - it worked beautifully on an Arduino Mega, but didn’t work on an Uno WiFi Rev2. The commands were disploying on the serial monitor, but the servo was not receiving the commands. Based on the warning the IDE gave about AVR vs megaAVR architecture compatibility, I’m assuming the microcontroller difference has something to do with the example not working.
I’m wondering if there’s a version of the LSS Arduino library that is compatible with boards using the ATMega4809 microcontroller, such as the WiFi Rev2? Or is it something else causing my issue? Thank you.
Hello @ejaynes and welcome to the RobotShop forum,
Based on the warning the IDE gave about AVR vs megaAVR architecture compatibility, I’m assuming the microcontroller difference has something to do with the example not working.
You are correct. Could you share the warnings you got?
I’m wondering if there’s a version of the LSS Arduino library that is compatible with boards using the ATMega4809 microcontroller
Unfortunately, that is the only LSS Arduino library available. However, you can easily communicate with the servos by creating a sketch for serial communication that works with your board and using the LSS communication protocol.
Thank you for the response. When I verify or upload a sketch that uses the LSS library with my WiFi Rev2 the output window reads:
WARNING: library Lynxmotion Smart Servo -LSS- claims to run on avr architecture(s) and may be incompatible with your current board which runs on megaavr architecture(s).
I’ve messed around a bit with the LSS protocol, so I can see how that would work. This isn’t the first issue I’ve had with this board not being compatible with a library, so I might just look for another board that will work for my purposes. Out of curiosity, do you know if the current LSS library will ever be updated to work with both the avr and megaavr architecture?
@ejaynes Welcome to the RobotShop Community. Note that the LSS protocol is simple enough that using the library, although helpful, is not required. You might try creating your own code and if needed taking a look at the library if you encounter any issues.