Skip to content

nricciar/usb_scale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

A C# class to interface with a USB scale extended from the blog post https://nicholas.piasecki.name/blog/2008/11/reading-a-stamps-com-usb-scale-from-c-sharp/

This class uses Mike O’Brien’s USB HID library, which can be found at: https://github.com/mikeobrien/HidLibrary Current Binaries: https://github.com/mikeobrien/HidLibrary/downloads

See Example.cs on how to use the library.

Tested with the Mettler Toledo PS60 Scale (may work with other Mettler Toledo scales automaticly)
Should also support the Stamps.com USB Scale

Other scale support should be possible by adding their vendor/product id to the GetDevices() method in the Scale.cs file.

Example compilation:
C:\usb_scale> c:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe /t:exe /out:UsbScale.exe Example.cs Scale.cs /r:HidLibrary.dll

About

c# library for usb scales

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages