2019-06-20 16:13:47 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								ESP32-S2 Temperature Sensor
 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-13 14:04:38 +10:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								===========================
 
							 
						 
					
						
							
								
									
										
										
										
											2019-06-20 16:13:47 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Overview
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								--------
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2020-01-29 09:31:14 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								The ESP32-S2 has a built-in temperature sensor. The temperature sensor module contains an 8-bit Sigma-Delta ADC and a temperature offset DAC.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								The conversion relationship is the first columns of the table below. Among them, offset = 0 is the main measurement option, and other values are extended measurement options.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								+--------+------------------------+------------------------+
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								|  offset | measure range(Celsius) | measure error(Celsius) |
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								+========+========================+========================+
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								|    -2   |        50 ~ 125        |           < 3          |
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								+--------+------------------------+------------------------+
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								|    -1   |        20 ~ 100        |           < 2          |
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								+--------+------------------------+------------------------+
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								|     0   |       -10 ~ 80         |           < 1          |
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								+--------+------------------------+------------------------+
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								|     1   |       -30 ~ 50         |           < 2          |
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								+--------+------------------------+------------------------+
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								|     2   |       -40 ~ 20         |           < 3          |
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								+--------+------------------------+------------------------+
 
							 
						 
					
						
							
								
									
										
										
										
											2019-06-20 16:13:47 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Application Example
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-------------------
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-01-13 21:23:08 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Temperature sensor reading example: :example: `peripherals/temp_sensor` .
 
							 
						 
					
						
							
								
									
										
										
										
											2019-06-20 16:13:47 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								API Reference - Normal Temp Sensor
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								----------------------------------
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-11-13 11:46:16 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								..  include-build-file ::  inc/temp_sensor.inc