/ESP32-RTOS-Queue-VoltageDivider

Using the FreeRTOS Queue, read the ADC data from the voltage divider with a photoresistor and control the LED with PWM.

Primary LanguageC++

github.com/jazz-2

ESP32 with FreeRTOS Queue and Voltage Divider

Demonstration

Changing the ambient brightness changes the brightness of the LED

photoresistor


Description:

Using ESP32 with Arduino Framework the FreeRTOS Queue pass struct Sensor{}; data between the tasks. Choose the amount of samples samplesAmount and read the ADC data from the voltage divider with a photoresistor. Make calculations and control the LED with PWM. Calculate the desired resistors ratio values for the voltage divider with VoltageDividerCalc.ods.