As spiff72 also pointed out, negative weights are displayed as positive. That's quite confusing for our students. For now, I've addressed this by using the raw ADC data as a zero point after an offset (tare). If the value during a measurement is greater than the zero point, then the value of 'scales.getWeight()' is positive. If the value is smaller, then I multiply 'scales.getWeight()' by -1.
I hope that issue is solved in the next library update.
Posts made by hazo
-
RE: M5Unit Miniscale Questions
-
RE: PbHUB CH4 and CH5 cannot set to digital read?
@felmue Thanks for your reply. I found the table below on the official M5Stack (https://docs.m5stack.com/#/en/unit/pbhub?id=pinmap) and started from there. That's why I thought all ports had the same functionality ....
-
RE: ADC-Unit, major problem
@hazo
To solve the problem I connected the two internal i2c pull-up resistors to 5V. You need steady hands to cut the copper layer between R3 and C1.When done, solder a wire between R3 and 5V (on connector J1).
That's all ;-) -
RE: ADC-Unit, major problem
@hazo
Did some test with the ADC-Unit connected to a M5Stack Gray via a passive Hub instead of the active Hub in my previous posting:
ADC-unit connected via a passive (Grove) HUB: input voltage is 1.00V, ADC-Unit output is 2501.
Also connect a DAC to the passive HUB: ADC-Unit output is 2465.
Also connect a Joystick unit to the bus: ADC-Unit output is 2335.
These results are worrying... -
ADC-Unit, major problem
There is a major problem when connecting a ADC-Unit through a PaHUB. The i2c pull-up resistors inside the unit cause an unintentional increasing from the 3.3V internal supply voltage. Because the reference of the ADS1100 depents on this 3.3V supply the output of the ADS1100 varies.
The difference in output value, when the unit is directly connected tot an M5Stack or via a PaHUB, is about 17%.In other words, the unit is useless when connected via a PaHUB and possible also when multiple i2c devices are conncted on the same bus (untested).
My suggestion is to connect both the pull-up resistors inside the unit to 5V.
Anyone has a better solution? -
RE: PbHUB CH4 and CH5 cannot set to digital read?
Another problem:
Digital read from port 4 and 5 (counting 0-5) is not possible for data line A. Return value is always '0'.
Does anyone have a solution?