Hello, I detailed some information on the sparkfun forums:
https://forum.sparkfun.com/viewtopic.php?f=14&t=46875&p=196520#p196520
Basically, when I compile on a Teensy 3.5 I get nonsense values that seem to max out the ADC immediately. When I zero the offset and pull <1kg on the sensor (that should be good in the 20mV range to about 15kg) I max out the adc again in the other direction. I don't read 20mV on the A- and A+ pins as one would expect, if I was really maxing out the ADC.
I tried two HX711 boards from sparkfun.
The same code minus a pin change (from A4 and A5 to A0 and A1) works on an UNO.
I will do my best to try and understand more of this issue. It seems I could not find anyone using the HX711 on the Teensy 3.X platform, though there must have been some people who saw this (if I am correct in finding there to be an issue.)
I tried changing all the library calls for "long" to "int32_t" and "unsigned long" to uint32_t, as well as changing all the doubles to floats. It seems with other libraries this has been an issue before:
(https://forum.pjrc.com/threads/27270-Float-versus-Double-on-Teensy-3-1)
But next I will try to understand how the bit combination works and if I can find a fix to what I believe is a real issue, and I will report back. But I'm not a 'real' programmer and it may take some time.
I hope by posting this issue, if other people see it and immediately know what could be wrong, I will save time in case I don't find the solution myself. I'm about 12 hours into trouble shooting this setup >.<, :).
Hello, I detailed some information on the sparkfun forums:
https://forum.sparkfun.com/viewtopic.php?f=14&t=46875&p=196520#p196520
Basically, when I compile on a Teensy 3.5 I get nonsense values that seem to max out the ADC immediately. When I zero the offset and pull <1kg on the sensor (that should be good in the 20mV range to about 15kg) I max out the adc again in the other direction. I don't read 20mV on the A- and A+ pins as one would expect, if I was really maxing out the ADC.
I tried two HX711 boards from sparkfun.
The same code minus a pin change (from A4 and A5 to A0 and A1) works on an UNO.
I will do my best to try and understand more of this issue. It seems I could not find anyone using the HX711 on the Teensy 3.X platform, though there must have been some people who saw this (if I am correct in finding there to be an issue.)
I tried changing all the library calls for "long" to "int32_t" and "unsigned long" to uint32_t, as well as changing all the doubles to floats. It seems with other libraries this has been an issue before:
(https://forum.pjrc.com/threads/27270-Float-versus-Double-on-Teensy-3-1)
But next I will try to understand how the bit combination works and if I can find a fix to what I believe is a real issue, and I will report back. But I'm not a 'real' programmer and it may take some time.
I hope by posting this issue, if other people see it and immediately know what could be wrong, I will save time in case I don't find the solution myself. I'm about 12 hours into trouble shooting this setup >.<, :).