ACD10 CO2 gas sensor driver - serdev in IIO subsystem.
0) Enable 5V power supply on am62x board on 40 pin user expansion header.
# 1. Ensure P06 is set HIGH in the output register (0x04)
# 0xff | 0x40 remains 0xff since all outputs are already high
$ i2cset -f -y 1 0x22 0x04 0xff
# 2. Configure P06 as an output by clearing bit 6 (0x40) in the config register (0x0C) # 0xf7 & 0xbf clears bit 6 -> results in 0xb7 (0b10110111)
$ i2cset -f -y 1 0x22 0x0c 0xb7
This needs to be done on every boot.
1) Device tree on am62x - pinmux and uart device nodes
2) serdev framework
3) UART 5v to 3.3 volt conversion for pin compatibility.
tx from am62x --> 3.3v --> let it go directly to sensor.
rx from am62x --> step down tx of sensor.
No comments:
Post a Comment