Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Shahe scales with Arduino
#8
Hi

I just thought I'd post my Arduino code for shahe scales here. As this thread was one of my starting points.

.txt   ShaheDRO_arduino.txt (Size: 3.1 KB / Downloads: 85)

I went for a different approach in that I deal with one bit of the scale data at a time rather than read the whole packet of data at once. This hopefully allows multiple scales to be read simultaneously without using interrupts.
It certainly appears to work fine so far.

I also had a problem my 'long' value being converted to an int and values flipping at 32768, it turned out to be the bitwise operation :
  value |= 1 << x;
the 1 needs to be explicitly cast as a long i.e.:
  value |= long(1) << x;

The scales I have are ones that although powered with 3v, the data signals are only 1.5v. So I had to do some level conversion for arduino inputs. 

.pdf   TouchDRO v8.pdf (Size: 16.22 KB / Downloads: 68)

I hope this may be of help to anyone trying to work with these scales on an Arduino.

Regards
Kevin
Reply


Messages In This Thread
Using Shahe scales with Arduino - by n00bz0rz - 12-11-2019, 11:04 PM
RE: Using Shahe scales with Arduino - by Yuriy - 12-11-2019, 11:27 PM
RE: Using Shahe scales with Arduino - by n00bz0rz - 12-11-2019, 11:56 PM
RE: Using Shahe scales with Arduino - by Yuriy - 12-12-2019, 12:12 AM
RE: Using Shahe scales with Arduino - by n00bz0rz - 02-14-2020, 04:47 PM
RE: Using Shahe scales with Arduino - by Yuriy - 02-17-2020, 06:46 AM
RE: Using Shahe scales with Arduino - by n00bz0rz - 02-20-2020, 01:13 PM
RE: Using Shahe scales with Arduino - by olddogsleeping - 04-15-2020, 09:52 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)