jazz-2 / 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.

Home Page:https://github.com/jazz-2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

https://github.com/jazz-2


Languages

Language:C++ 100.0%