A few days ago, I posted a post saying that ADS1115 will detect errors near 0V. These days are quite busy. I didn't take much time to solve this problem. Now the problem still exists.
When the direct ground line is detected, the result will be about 0.5V. Here is the circuit diagram of the program for everyone to learn and reference. A few days ago, I was doing ads7841 (the schematic and code have been uploaded), and the ground line is no problem. It only has an inherent error of about 0.03V. This can be eliminated from the converted result. Partly), the current ADS1115 is approximately 0.005V error at the time of detection (except when detecting near 0V, because the overvoltage measured with a digital meter accurate to 0.001V is indeed 0 (less than 0.001V), the result is The conversion value is very large, close to 65535).
Let's talk about the calculation of the results (their own ideas, calculate the results correctly, do not know if this is very correct): Because I chose the programmable gain amplifier range of -4.096~+4.096, the result = ( 4.096*2)/65535*ads1115 The value returned (according to the circuit diagram design, there is an error of about 0.005V, it seems to be, ,,,,,,, a few days ago, remember not very clear)
(The program was rewritten after reading someone else a few days ago. It is only for learning and reference. In addition, the analog IIC used here, I read a post today. The procedure for simulating IIC in uploading this program is not good. If you are not lucky, May damage the IO port, everyone needs to pay more attention, if you solve the existing problems in the future, it will be uploaded later)
The detailed calculation source program is in the zip package!
1. Wireless inductive charge without cable.
2. 600M Communication distance in open places.
3. IP65 Standard waterproof&dustproof design for warehouse application.
4. 2M free drop anti-shock structure, super long using life.
5. With memory card inserted in scanner and can store 100000 EAN-13 barcode.
6. 2200 mA Lithium battery can support 100000 times scan if the scanner is 100% charged.
7. High resolution imager can catch the barcode quickly and finish decoding correctly.
8. One cradle can be used to connect with 99 scanners at most.
Industrial Barcode Scanner,Industrial Fixed Barcode Scanner,Best Industrial Barcode Scanner,Zebra Industrial Barcode Scanner
SUNLUX IOT Technology (Guangdong) INC. , https://www.sunluxbarcodereader.com