Sunday, May 27, 2018

WEEK 11: DISSOLVED OXYGEN SENSOR

Dissolved oxygen sensor circuit

The EZO sensor module can be operated by either by using UART or I2C protocol. I choose to use the I2C protocol since I can't seem to solve the error arise from the UART coding. Since the I2C protocol is used, the sensor module need to change into I2C mode as the sensor module is in UART mode by default. The coding for both mode is as provided at the manufacturer’s website, so it can be use according to the switched mode.

Switching the sensor module into I2C mode

Two 4.7k resistor need to be used as a pull-up resistor for each SDA and SCL line when using the I2C mode to operate the dissolved oxygen sensor. The SDA pin of the EZO sensor module is connected to the SDA pin of the microcontroller and the same goes with the SCL pin connection, the EZO sensor module’s SCL pin is connected to the SCL pin on the microcontroller.

Connection for the I2C mode


No comments:

Post a Comment