Download ESP32-CAM proteus model for free from the download link below.
Download Esp32-CAM Proteus Model Free
Watch the following video on how to use this ESP32-CAM proteus model in simulation. Here the ADC of ESP32-CAM is being tested using an analog LM35 temperature sensor.
The code was written in micropython and is provided below.
from machine import Pin, ADC
import time
# Configure ADC on GPIO 12
adc = ADC(Pin(12))
print("LM35 Temperature Sensor Initialized on GPIO 12")
while True:
# Read the 16-bit ADC value (0 to 65535)
raw_value = adc.read_u16()
# Convert using the calibrated 0.924V reference voltage
voltage = (raw_value / 65535.0) * 0.924
# Convert voltage to Celsius (10mV per degree C)
temp_c = voltage * 100.0
# Convert Celsius to Fahrenheit (matching your Arduino code)
temp_f = (temp_c * 9.0 / 5.0) + 32.0
# Print the results
print("Raw ADC: {:5d} | Temp: {:.1f} °C | Temp: {:.1f} °F".format(raw_value, temp_c, temp_f))
time.sleep(1.0)
See also our free proteus models, project, software download page.
