TS-300B Turbidity Sensor
This section deals with the configuration of the TS-300B turbidity sensor.
Application
The intention is to use the TS-300B sensor to measure the turbidity of the water output from an aerated wastewater treatment system (AWTS). It's not clear at the moment, however, whether or not having the sensor permanently located in this environment, taking periodic measurements, will be practical.
Details pending
Configuration
Source material:
Details pending
Hardware
The TS-300B is a 5V sensor that generates an output in the 0~4.5V range. This must be taken into account when configuring an MCU with an ADC that works on a smaller input range. In the present case, as discussed in the section on battery management, both the CubeCell and ESP32 platforms require the use of voltage dividers to bring this range back to 0~2.4V and 0~3.3V respectively. For the CubeCell platform, a 200kΩ/220kΩ combination will bring 4.5V back to 2.4V and, for the ESP32, a 100kΩ/220kΩ combination will bring the maximum output voltage back to 3.1V, avoiding the use of the notoriously non-linear top end of the ESP32 ADCs.
CubeCell Plus / TS-300B Electrical Circuit
WiFi LoRa 32 (V3) / TS-300B Electrical Circuit
Pin Configurations
| CubeCell Plus | WiFi LoRa 32 (V3) | TS-300B |
|---|---|---|
| Vin | 5V | VCC |
| ADC2 | GPIO48 | OUT |
| GND | GND | GND |
Details pending
Software
Details pending, but in the interim...
The following is a simple code example from this CircuitDigest project.
|


