A .NET 6 library that implements the OWI-007 Robotic Arm parallel port protocol. Tested on Windows 10 using USB Controlled Robotic Arm Kit
Before operating the arm, ensure that you have the correct USB driver installed, as follows (based on WinUSB (Winusb.sys) installation for developers):
- Plug in the arm to the host system.
- Open Device Manager and locate the device.
- Select and hold (or right-click) the device and select Update driver software... from the context menu.
- In the wizard, select Browse my computer for driver software.
- Select Let me pick from a list of device drivers on my computer.
- From the list of device classes, select Universal Serial Bus devices.
- The wizard displays WinUsb Device. Select ADB Device to load the driver.
The following code example demonstrates the API. It will rotate the base clockwise, move the shoulder up and turn on the LED. After 2 seconds all movement is stopped and the LED is turned off.
IOwiFactory factory = new OwiFactory();
IOwiArm arm = factory.CreateArm(new LibUsbOwiConnection());
await arm.ConnectAsync();
IOwiCommand command = factory.CreateCommand().BaseRotateClockwise().ShoulderUp().LedOn();
await arm.SendCommandAsync(command);
Thread.Sleep(2000);
await arm.SendCommandAsync(command.StopAllMovements().LedOff());
await arm.DisconnectAsync();
The library is available on nuget - owi-arm-dotnet.
For a Windows desktop usb implementation, refer to the sister package - owi-arm-dotnet-usb.
The sample application can be used to access all of the robotic arm features via a basic user interface.