Skip to content
Read from a USB scale in Ruby
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Add comment for stability byte Jul 28, 2016
spec
.gitignore
.rspec
Gemfile Start a gem structure Jul 22, 2016
LICENSE Add license Aug 3, 2016
README.md Rename project Aug 3, 2016
circle.yml
usb-scale.gemspec

README.md

usb-scale

Reads input from Dymo S100 Digital USB Postal Scale

http://www.dymo.com/en-US/s100lb-digital-usb-shipping-scale

Raw data format:

=> [0] Unknown 3
=> [1] Stability (2 when at 0, 3 when getting stable, 4 when stable, 5 when negative, 6 when too much weight)
=> [2] Mode (lbs = 12, kg = 3)
=> [3] Scale factor
=> [4-5] 16 bit weight

Scale

$ irb -r ./lib/scale.rb
> scale = Scale.new
You can’t perform that action at this time.