USB Robot Arm and hidapi.dll

Everything else that doesn't fall into one of the other PB categories.
akj
Enthusiast
Enthusiast
Posts: 668
Joined: Mon Jun 09, 2003 10:08 pm
Location: Nottingham

USB Robot Arm and hidapi.dll

Post by akj »

I have bought and constructed the Robot Arm with USB PC Interface as shown at http://www.maplin.co.uk/robotic-arm-kit ... ace-266257
and now wish to program it's movements using PureBasic. The best library to use for this seems to be the Human Interface Device library hidapi.dll as described at
http://javahidapi.googlecode.com/hg-his ... README.txt
and http://www.signal11.us/oss/hidapi/hidap ... __API.html
But hidapi.dll seems to require building using the WDK (Windows Driver Kit) and I have been unable to achieve this. Does anyone know where I can find a pre-built copy of hidapi.dll for Window 7 32-bit (and hopefully also 64-bit)?
Alternatively, are there any other suitable available libraries, apart from the hard-to-use hid.dll from Microsoft?
Anthony Jordan
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: USB Robot Arm and hidapi.dll

Post by IdeasVacuum »

That looks like a very interesting bit of kit 8)

The project on the github site is written in C, so I have compiled it for you (for Windows). I have not studied the files so I do not know if there are any specific compile options required, but the dll was created without errors or warnings:

http://www.professorcad.co.uk/PB_Stuff/hidapi.dll
http://www.professorcad.co.uk/PB_Stuff/hidapi.lib

Edit: It also creates a console exe file hidtest.exe, which produces a list of USB devices.
http://www.professorcad.co.uk/PB_Stuff/hidtest.exe
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply