Control LewanSoul digital smart servos from the EZ-B UART or PC COM Serial Port
How to add the Lewansoul Servo robot skill
- Load the most recent release of ARC (Get ARC).
- Press the Project tab from the top menu bar in ARC.
- Press Add Robot Skill from the button ribbon bar in ARC.
- Choose the Servo category tab.
- Press the Lewansoul Servo icon to add the robot skill to your project.
Don't have a robot yet?
Follow the Getting Started Guide to build a robot and use the Lewansoul Servo robot skill.
How to use the Lewansoul Servo robot skill
Control the LewanSoul Digital smart Servos (i.e., LX-16A) with ARC. The servos must be powered appropriately and connected to the EZ-B v4 or IoTiny with the respective port. Visit the Config menu of this plugin to view the port configuration. This plugin will only operate on EZB Index #0.
Demonstrated with IoTiny using Software UART
Details
ARC's Virtual Ports (V1..V99) can be assigned to the LewanSoul servos.This plugin requires the RX signal wire of the servo to be connected to the TX of the selected UART or digital port (if Software UART is selected) using a Dynamixel servo Cable provided by one of our hardware partners.
Hardware UART is available on the EZ-B v4 only and is recommended if using an EZ-B v4 with a Dynamixel servo Cable. View the EZ-B v4 datasheet to identify the UART ports (0, 1, or 2).
Software UART is available on both the EZ-B v4 and IoTiny. We only recommend using software UART on IoTiny and hardware UART on EZ-B v4.
The configuration menu also provides an option to select the Virtual Ports, which correspond with the ID's of the UBTech servos. If the LewanSoul servo ID #0 is connected, select V0. #1 = V1, #2 = V2, etc..
Default baudrate of LewanSoul servos is 115,200
Specify servo Port By servo ID
The servos are addressable, meaning they each have a unique address ID. The address ID is related to ARC's Vx servo (virtual servo). This means servo ID #1 is V1 in ARC. servo ID #5 is V5 in ARC. Etc. Specify the Vx ports to bind to using the configuration screen of this plugin. ID #1 (V1) is selected in the example image below. Any servo commands sent to V1 will move LewanSoul servo ID #1. You can choose as many Vx ports as necessary to bind in this plugin.Use USB/TTL Debug Board This option in the configuration is if you are using the optional TTL/USB debug board, which changes the communication to the servo. With this unchecked, the packet length includes the sent packet because the Rx & Tx are crossed. When checked (using the ttl board), the Rx & Tx will only include the return values. Keep this unchecked if you are not using a USB/TTL Debug Board.
Continuous Rotation (Motor) Mode
The servos can be configured for Continuous Rotation (i.e., Motor Mode) using the EZ-Script ControlCommand()...ControlCommand("LewanSoul Servo", SetToContinuousMode, v1)
You can change the port (v1 in the above example) to whatever port you wish to be in continuous rotation mode. Once you do that, the servos will respond as regular, continuous rotation servos, where position 90 stops, 180 is fast in one direction, and 1 is fast in the other. The values further from 90 in either direction change the speed. This allows these servos to be used with the Continuous Rotation Movement Panel.
Servo Mode
If you switched the servo into Continuous rotation mode, you can use the ControlCommand() to change back to servo mode. This can be done with the following command...ControlCommand("LewanSoul Servo", SetToServoMode, v1)
Hello! Here's my problem. I want to run the LewanSoul LX-16A servos in motor mode. Unfortunately I haven't been able to do it yet.
The servos cannot be set explicitly to motor mode in the configuration software of LewanSoul. I integrated the servos in the ARC with the plugin "LewanSoul Servo". They can also be executed with the module "Continuous servo Movement Panel" only in servo mode.
According to the LewanSoul configuration software, the following value ranges apply in motor mode: 0 = Stop -1 to -1000 = counterclockwise rotation with increasing speed 1 to 1000 = clockwise rotation with increasing speed
I cannot set these values in the "Continuous servo Movement Panel".
Where and which settings have to be made in ARC?
Thank you in advance.
Get the latest version of this plugin - and read the description above. You can put the servos in Continuous Rotation mode by using the ControlCommand() and the Movement Panel will now work for your needs.
It's working. I am enthusiastic about the fast implementation. Thank you.
@dd_sn, would you mind sharing a screen shot of your panels and scripts that you used to make it a continuous rotation? im trying use the servos to move small wheels, I have been successful at adding a joystick to move them, but once it gets to 180 degrees it automatically kicks the rotation of the gears back in the opposite direction. Thank you in advanced.
Interesting enough I just received the Lewan saul LDX227 and LDX218 (Chinese Robot), When I ordered them I thought they were serial bus servo's like the LX-16A but sadly they are just normal servo's (No position feedback). Good news is they work just stick them in any port (Connector is exactly same as EZB) and they work fine using default servo driver.
I haven't tried those servos yet, were they more expensive that the LX 16A? I was actually able to get them working the way I want them to, it was there all along just had to stop making more complicated that it was, you know when you have something right infront of you and you do see it...well that was me lol, DJ Sures thank you for setting up the codes for LX 16A, this is awesome!
Came with the robot but you can find them for about $15 US I think I paid $260 for robot and it has 16 of them. You don't get all sensors and controller but that is what the EZ-B is for. Little disappointed they don't provide position feedback though - I just assumed since the LX16A's did and the description said "High Precision Potentiometer" but I assumed incorrectly.
I have half a dozen of the LX-16A I purchased but the controller burnt out and one of the servo's fried so I am also very thankful that DJ Sures completed the plugin in the hack show for the EZ-B. If you have found a 3D printed bracket for them so I can actually mount them to something like a robot arm, I would be grateful.
Here is the video I think I posted a while ago but to be honest I don't think it will be much different then a JD with extra servo's in the legs and a bunch of sensors.
This is what I am currently working on, it has some brackets for the LX 16A but I don't know if they might be functional for your purposes, check it out in this link for brackets, [color=#111111][size=3][font=Verdana, Arial, Helvetica, sans-serif]who knows and maybe you will also start the project yourself too.[/font][/size][/color]
Project Looks Awesome, Thanks for the Bracket I am sure I will find some mounting use cases for it.
Oh boy - that mars rover is really really great. Heattroks, are you making one of those?!
Yes I am making one, I actually have 2 of my students helping me to build it, which is great because they are learning 3D printing, solidworks and how to program I'll post oocpictu once it's done, maybe even a video!
Oh yes! That'll be great to see. Ive been watching a lot of NASA documentaries on YouTube this past 2 weeks. Curious Droid's channel has been my go-to for space videos lately - he's very informative. Have you seen?
Not as much as a I used to anymore with work and everything else feels like I almost don't have enough time anymore, but I do try to keep up with what is going on. Yesterday actually, after 15 years the opportunity rover mission is over..
@Heattroks: Hello, I think we're working on the same project. Mechanically and electrically I finished a first testable version today.
I am still a newcomer on the EZ-Robot platform. That's why my current solution for forward and reverse driving is as follows:
This is really good!! thank you for the code, we are using a joystick to control it which makes it a lot easier. I am actually also making a CAD file to the EZB, once i have ill pass it over for your EZB. how did you make your shafts, or did you had someone else do them for you? also, where did you get the jumper cables to connect all of the servos?
The shafts are made of aluminum rods. This was cut to length. Then I drilled most of the holes for the screws (3.2 mm diameter). With some extinguishers I cut M3 threads.
I made the extension cables myself. These extend the original cables. In the next phase they have to be installed cleanly. (example)
Which joystick do you use?
ok, I actually bought a 6ft aluminum rod which i would need to cut, there is no way out of that lol. Im using an Xbox one controller which I was surprised that would work, many people were saying that the xbox 360 controller was the only that would work. in your code can you move the front wheels and back wheels independently?
this is the panel that is been used with the rover
If the English sounds a bit unusual, it's because of the translation tool (:-). I'm practically at the beginning of the programming process. At the moment all wheels are steered the same way (driving). When steering, the rear and front axles are integrated. The respective steering angles are mirrored.
The aluminium rods can be sawed quite well by hand. A stationary drilling machine is required for drilling. Otherwise the drill holes will be crooked.
Translated with www.DeepL.com/Translator
I see in the joystick control, that the servo positions are specified. I recommend using a Movement Panel and checking that option in the joystick configuration menu as well. The Movement Panel let’s the entire software know how to move the robot.
Click the word Movement Panel link here to read what it is and how it works.
I see, no worries i can understand you perfectly. For me the way I set them up with the joystick was the easiest way to make them move. Once I get the my battery replacement I will power up the servos and share the way have them set them up. The only problem I have so far is that I can only steer the front wheels left and right but not the back ones. Maybe we can figure out a way to make them move the way they are supposed to.
P.S.
I want to wait until I get my new battery just to make sure I share the correct set up that I have.
For the steering I currently used a slider (Min=60, Max=120, Default=90) in the "Mobile Interface". The value is passed to the variable $Steering_angle. If changed, the following code is executed:
V1 and V2 steer the front axis and V2 and V3 steer the rear axis.
Great rover project and another great plugin!! This is very cool!!!
I have been rolling the idea of changing the servo setup in my robot for quiet some time, this seems to be a good option!! Daisychaining will be helping a lot to clean the wiring mess, and positional feedback is a very nice addon!!
I also found this over on GitHub, which is looking good
https://github.com/maximkulkin/lewansoul-lx16a
Alright, finally after a busy weekend and a few hiccups along the way I was able to open up my program. Here is what I have, the way I have it set up lets me move it in any direction I want with an xbox one controller. I still need to work on the steering, if you find a solution let me know.
This is the code.
Set up for joystick#2
Set up for joystick #1
@Mickey666Maus it is indeed, it has been a really good learning process for me getting to know how to work with the EZBv4, there is just an endless amount of projects that you can work on.
Hey guys, I am feeling really stupid at the moment... I tried to drive my LX-16A with the plugin and they do not move. I can drive them with their Bus servo Terminal software but when I connect the EZ-B they do not move!! I am sure I just missed something very simple here!! Anyone had a similar problem and solved it?
I will double check everything later today... I used the same cable that I used on the Dynamixel, that should be allright? Does it matter if the left or right connection on the servo is plugged in? I set the IDs of my servos to 1 and 2 with the Lewansoul software...
Any pre-setup stuff that I missed out?
Plugin shows the connection as being established...
...not sure all what you did prior...but make sure those Ids are all different for each servo and, make sure all the baud rates match, and that they are check marked in the main window to be active. And make sure they are getting enough current.
Write every step you took. That’ll help you retrace the steps.
I am currently driving my servos with the above set up I have without any issues, now I do not know how your set up is for your servos, that might help guides a little better to help you.
Hey guys sorry for bothering you...I selected the wrong UART, after reading the instructions again and watching the video again I figured it out!!! Sometimes I am such a slow learner...
But reading helps!!
And thanks for backing me up with support!!
@dd_sn what gauge cable did you use to connect your servos? im using a 22 AWG, I am just not sure if it will be enough or if I should be an 18 AWG. I will be connecting all of the 10 servos.
@Hearttroks Im using a 22 AWG. for example: 22 AWG cabel
thank you! also, I made some adjusments to the clip holders for the nuts, I dont know about you but I found it hard to be puttting in the nuts with the current holders, im planning on putting them on thingiverse and if you want you can download them from there if you want, I am also currently making a holder for the EZ BV4 and Ill post the stl on thingiverse.
In Germany you cannot buy this profile as a private person. Therefore I use the aluminium rod (without profile). I have to drill the holes. I am interested in the holder.
@dd_sn Are you from Germany?
here is the one for the nuts just in case, https://www.thingiverse.com/thing:3567341. For holder is still in the process, I thought I had it but I still need to make some adjustments.
update is not working ok. System.NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld. bij LewanSoul_Servos.FormConfig.setConfigurationValuesFromUser() in C:\My Documents\SVN\Developer - Windows\ARC skill plugins\Behavior_Control_LewanSoul_Servos\Kondo KRS Servo\FormConfig.cs:regel 90 bij LewanSoul_Servos.FormConfig.btnSave_Click(Object sender, EventArgs e) in C:\My Documents\SVN\Developer - Windows\ARC skill plugins\Behavior_Control_LewanSoul_Servos\Kondo KRS Servo\FormConfig.cs:regel 95 bij System.Windows.Forms.Control.OnClick(EventArgs e) bij System.Windows.Forms.Button.OnClick(EventArgs e) bij System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) bij System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) bij System.Windows.Forms.Control.WndProc(Message& m) bij System.Windows.Forms.ButtonBase.WndProc(Message& m) bij System.Windows.Forms.Button.WndProc(Message& m) bij System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) bij System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Can you try to update ARC? It all works fine for me...
i removed ez from the pc and instal a new fress ez. i dit setup the same settings as before and the problem is the same. the lewansoul servo menu is the problem do nothing in it save and i get the same error.
Version: 2019.05.08.00
System.NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld. bij LewanSoul_Servos.FormConfig.setConfigurationValuesFromUser() in C:\My Documents\SVN\Developer - Windows\ARC skill plugins\Behavior_Control_LewanSoul_Servos\Kondo KRS Servo\FormConfig.cs:regel 90 bij LewanSoul_Servos.FormConfig.btnSave_Click(Object sender, EventArgs e) in C:\My Documents\SVN\Developer - Windows\ARC skill plugins\Behavior_Control_LewanSoul_Servos\Kondo KRS Servo\FormConfig.cs:regel 95 bij System.Windows.Forms.Control.OnClick(EventArgs e) bij System.Windows.Forms.Button.OnClick(EventArgs e) bij System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) bij System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) bij System.Windows.Forms.Control.WndProc(Message& m) bij System.Windows.Forms.ButtonBase.WndProc(Message& m) bij System.Windows.Forms.Button.WndProc(Message& m) bij System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) bij System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I am using the same plugin, I will do some testing once I am back home...
You must use the beta with the latest plugin update. Also, this update hasn’t been fully tested, as discussed in the other thread. Can you tell me if this is an existing project you’re loading? What causes the error?
I just updated to the latest Beta, and can confirm the problem... I cannot safe the LewanSoul servo control, it gives me the same error message!!
I think it has something to do with the new Design GUI? It worked with the Beta Version that did not have the ne GUI...
the normal and the beta software have the same problem the GUI good be the problem .
DJ i am working on a LOBOT Alienbot i like to use the ez brain to control this robot and play end test how it works en to day i instal the new lewansol software and nothing works anymore.
I think it will be easy to fix for @DJSures you will have your servos up and running very soon!!
Try the latest version - it was just updated
Still not working, but the error message changed...
Version: 2019.06.25.00
System.ArgumentException: Der PortName darf nicht leer sein. Parametername: PortName bei System.IO.Ports.SerialPort.set_PortName(String value) bei LewanSoul_Servos.FormMain.initUART() in C:\My Documents\SVN\Developer - Windows\ARC skill plugins\Behavior_Control_LewanSoul_Servos\Kondo KRS Servo\FormMain.cs:Zeile 92. bei LewanSoul_Servos.FormMain.SetConfiguration(PluginV1 cf) in C:\My Documents\SVN\Developer - Windows\ARC skill plugins\Behavior_Control_LewanSoul_Servos\Kondo KRS Servo\FormMain.cs:Zeile 63. bei LewanSoul_Servos.FormMain.ucConfigurationButton1_Click(Object sender, EventArgs e) in C:\My Documents\SVN\Developer - Windows\ARC skill plugins\Behavior_Control_LewanSoul_Servos\Kondo KRS Servo\FormMain.cs:Zeile 207. bei System.Windows.Forms.Control.OnClick(EventArgs e) bei System.Windows.Forms.Button.OnClick(EventArgs e) bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) bei System.Windows.Forms.Control.WndProc(Message& m) bei System.Windows.Forms.ButtonBase.WndProc(Message& m) bei System.Windows.Forms.Button.WndProc(Message& m) bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
same error i update all the parts.
Version: 2019.06.25.00
System.NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld. bij LewanSoul_Servos.FormConfig.setConfigurationValuesFromUser() in C:\My Documents\SVN\Developer - Windows\ARC skill plugins\Behavior_Control_LewanSoul_Servos\Kondo KRS Servo\FormConfig.cs:regel 90 bij LewanSoul_Servos.FormConfig.btnSave_Click(Object sender, EventArgs e) in C:\My Documents\SVN\Developer - Windows\ARC skill plugins\Behavior_Control_LewanSoul_Servos\Kondo KRS Servo\FormConfig.cs:regel 95 bij System.Windows.Forms.Control.OnClick(EventArgs e) bij System.Windows.Forms.Button.OnClick(EventArgs e) bij System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) bij System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) bij System.Windows.Forms.Control.WndProc(Message& m) bij System.Windows.Forms.ButtonBase.WndProc(Message& m) bij System.Windows.Forms.Button.WndProc(Message& m) bij System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) bij System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Ah this was just a minor bug...I tried to safe without specifying the COM port... The plugin works again!!!
That was super fast, thanks a lot @DJSures to get it back on track!!
Try to put something to the COM port, even if you are not using the port... That should be it?
It is just a minor bug that will not let you safe the control if that field is empty I guess...
Just for you info... I had one more error message, which did not persist. But might be good to know that there is another thing that might not run smoothly!
Version: 2019.06.25.00
System.InvalidOperationException: Der Anschluss ist geschlossen. bei System.IO.Ports.SerialPort.Write(Byte[] buffer, Int32 offset, Int32 count) bei LewanSoul_Servos.FormMain.sendServoCommand(Byte[] cmdData) in C:\My Documents\SVN\Developer - Windows\ARC skill plugins\Behavior_Control_LewanSoul_Servos\Kondo KRS Servo\FormMain.cs:Zeile 194. bei LewanSoul_Servos.FormMain.Servo_OnServoMove(ServoPositionItem[] servos) in C:\My Documents\SVN\Developer - Windows\ARC skill plugins\Behavior_Control_LewanSoul_Servos\Kondo KRS Servo\FormMain.cs:Zeile 174. bei EZ_B.Servo.SetServoPosition(ServoPositionItem[] servos) bei EZ_Builder.EZBManager.SetServoPosition(ServoDescriptor[] servos, Int32 position) bei EZ_Builder.UCForms.FormServo.tFdM7DjkGEf(Object , EventArgs ) bei System.Windows.Forms.Control.OnClick(EventArgs e) bei System.Windows.Forms.Button.OnClick(EventArgs e) bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) bei System.Windows.Forms.Control.WndProc(Message& m) bei System.Windows.Forms.ButtonBase.WndProc(Message& m) bei System.Windows.Forms.Button.WndProc(Message& m) bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
i think the problem is over. btw is it possible to make servo reverse and endpoint settings ???.
I think the best way to do this is to use a script... Just have a variable that watches the servo position and reverse the direction once you get to a certain servo angle!
mm somthing is not ok . i use Auto Position to set the servo end save the data end get this error.
error getting servo positions. tekenreeks is niet als een geldige boolean-waarde herkent.
The error message from #51 also appeared while using the horizontal servo control...
Try the latest build
in the liwansoul menu you can see the update info when you save data from a move only one servo is update test it several times servo v7 in mine test setup with 8 servo`s and dit nog move servo 7 ???? with error getting servo positions. tekenreeks is niet als een geldige boolean-waarde herkend.
i hope this info will help the software is too new for me too see what's going on.
Configure the communication settings correct.
is it possible to test a beta version and get back to the origin one now we have to handle with de not working model ???
DJ it looks like the servo input read is working ok now with the latest update. like to test more but need to sleep too sorry. and thanks.
Hey there...it seems like the problem still persists...I am trying to connect to the EZBPi server and get the following error message...
2019.06.28 11:21:23 +02:00 - Attempting connection on 192.168.178.73:23 2019.06.28 11:21:24 +02:00 - Connected to 192.168.178.73:23 2019.06.28 11:21:24 +02:00 - Reports CapabilityController 2019.06.28 11:21:24 +02:00 - Firmware 'Raspberry EZBPi v1' on 'Raspberry Pi (A, B, B+, Zero)' supports the following capabilities:
2019.06.28 11:21:24 +02:00 - EZ-B temperature is 53.34149752948088100C 2019.06.28 11:21:24 +02:00 - Connection Failed: System.ArgumentException: Der PortName darf nicht leer sein. Parametername: PortName bei System.IO.Ports.SerialPort.set_PortName(String value) bei LewanSoul_Servos.FormMain.initUART() in C:\My Documents\SVN\Developer - Windows\ARC skill plugins\Behavior_Control_LewanSoul_Servos\Kondo KRS Servo\FormMain.cs:Zeile 92. bei LewanSoul_Servos.FormMain.FormMain_OnConnectionChange(Boolean isConnected) in C:\My Documents\SVN\Developer - Windows\ARC skill plugins\Behavior_Control_LewanSoul_Servos\Kondo KRS Servo\FormMain.cs:Zeile 34. bei EZ_B.EZB.OnConnectionChangeHandler.Invoke(Boolean isConnected) bei EZ_B.EZB.PWBq7NxRL1() bei EZ_B.EZB.Connect(String hostname, Int32 baudRate) 2019.06.28 11:21:24 +02:00 - Disconnected
I specified the COM port of course...
The port must exist
It all works now...I guess the problem was that I had an Error Message about the LewanSoul plugin on startup, ARC removed the plugin instance and I added a new one. So whatever this problem was, it will probably not happen ever again to anyone just updating to the new version and running the plugin!
Thank you so much for resolving this!!! This is great!!!
Right on - that's good to hear
great work thanks mickey and dj.
i found a new problem 2 servo
s testing divert positions no problem after saving but when i use 3 or more servo
s the save data will not work anymore. i think we need more time to get all the servo data ??? test this with Auto Position menu.Thanks for the compliment but I did not do anything!
Thanks for helping to find bugs in this beta build @michelpet
i disconnect the d6 data from the servo and save the data from the screen this will work ok. data read with d6 connected is not stable. i am too new with this software to under stand how it works.
I did not try this yet...but maybe you can use a little script and put a timer, so there is a little pause after each servo position has been read? But if you already found a way to save your positional data, you can also stick with your method I guess!
Trying to get this to work but getting the following. Any ideas?
Try the latest update for this plugin. It seems the issue was with IoTiny. The IoTiny doesn't have hardware uart, but the default setting for the plugin is hardware uart so it gave an error. The plugin won't throw that error now. However, to use this on the IoTiny, you'll have to use one of the Software UART ports and deselect hardware Uart from the settings.
I'll give it a try DJ, thanks for the help.
Still having a bit of trouble here. I can not get it to recognize my servo. -Using IOTiny -I have my adapter plugged into port D0. -Selected D0 for the software UART -Assigned it to V1 (my servo identifier is #1)
Am I doing something wrong?
Says not connected to ez-b in your screen shot. Is that just because it’s a screenshot or did you forget to connect to the ezb?
if not, that all should work. I can test tomorrow with an iotiny and see if there’s any trouble.
Yes, I was connected to the ez-b. All good there.
Works great with IoTiny. Check your wiring and power to ensure it meets the minimum requirements. Here's a video..
Well I have success, thanks for the tip DJ. I made my own cable and had the polarity reversed on the ground and signal traces. Luckily it did not damage anything. Once the cable was fixed it took a bit of playing to get it to work. I kept waiting for the control to say connected to ezb. On a whim, I added a horizontal servo control and when I moved it everything jumped to life. The Lewansoul control never does say connected to the ezb even though it works.
I updated the plugin and removed the "not connected to ezb" message - because it was confusing. That was there for debug when I was making it. So it's not relevant anymore. Thanks!
Hi, after ARC update this skill stopped to load.. Thanks in advance for any help on this.
I’ll look into it right away for you. Stay tuned
Updated for you - enjoy!
That’s great. Now is working again. Thanks for the prompt reply!
Updated to use servo speed parameter. Read the manual above for information.
Thanks a lot DJ for the prompt reply.
I already tested the max-min settings and are working well:D. I made a fast test with the speed setting using the updated skill for the lewansoul but I could not see still the difference changing the speed value, probably I need to make it with more time to test. I understood that speed setting is for Motor mode only not Servo mode, but let's see.
The documentation says the speed is in MS. It's up above if you scroll up in this manual page. The documentation for the servo says it should work - but who knows O_o
Oh i see something - it looks like ARC might limit the speed to max 20. It seems we'll have to dive into ARC and make some changes for servos that require such high values. Stay tuned.
Okay - there's an update for ARC that i just did. I'm pushing it into QA right now so it'll be updated for early release tomorrow evening or the following day.
This update allows larger values for speed for this robot skill: https://synthiam.com/Products/ARC/Releases/ARC-2023-11-24-Pro-Runtime-21901
Thanks, speed now is working.
Updated to v28 for debug testing of: synthiam.com/Community/Questions/Lewansol-servos-reporting-inaccurate-degrees-in-auto-position-22084
Updated to v29 which includes a fix for reading the servo position