![](https://img-blog.csdnimg.cn/20190918140145169.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
esp32学习笔记
本学习笔记基于ESP32的最小系统,主控芯片为ESP32 D0WD,Flash容量打下为4MB(16Mbit)主要记录自己在学习中的一些相关问题的解决,附上程序代码以及思路理解
ZeroPcbOne0615
奇奇怪怪,保持可爱。
展开
-
esp32 ESP32D0WD 芯片引脚
最近使用ESP32的WIFI模组后面需要做集成,所以需要对ESP32 D0WD芯片进行了解由于需要使用的IO34引脚,在芯片中没有找到对应的引脚后面找了芯片datasheet,发现IO34对应的是ESP32D0WD芯片的10号引脚芯片元器件等,遇事不决,看DATASHEET硬件文档以及esp32芯片均来自立创商城:https://item.szlcsc.com/141454.html...原创 2021-02-26 12:00:14 · 2479 阅读 · 0 评论 -
esp32 采集某个路由器信号强度
路由器信号强度的强弱与设备距离路由器的远近有关,当然环境也是有影响的,在信号复杂的地方和空旷地,采集出来的信号强度都是会有所差别的之前使用stm32与esp8266就有采集信号强度的经历,当然esp8266用AT指令进行驱动,主要还是串口接收esp8266数据进行解析得出信号强度此次使用的esp32的最小系统进行信号强度的采集对指定路由器AP进行信号强度采集,程序代码如下:#include "freertos/FreeRTOS.h"#include "freertos/task.h"#原创 2020-12-25 16:05:18 · 2480 阅读 · 2 评论 -
esp32 采集dht11温湿度数据
dht11传感器可用来进行采集周围的温湿度数据,之前使用stm32 m0以及m3的板子都有对其进行驱动,使用esp8266 sdk开发也驱动过现在使用的是esp32,对dht11进行数据采集dht11有三个引脚,分别是GND,VCC,DATADATA接ESP32的IO4引脚程序代码如下#include <stdio.h>#include "esp_system.h"#include "esp_spi_flash.h"#include "esp_wifi.h"#inc原创 2020-12-25 15:45:40 · 6300 阅读 · 6 评论 -
esp32 pwm控制LED灯
使用PWM控制LED灯渐亮到渐灭,达到呼吸灯的效果蓝灯IO 32PWM 0通道程序代码#include <stdio.h>#include "esp_system.h"#include "esp_spi_flash.h"#include "esp_wifi.h"#include "esp_event_loop.h"#include "esp_log.h"#include "esp_err.h"#include "nvs_flash.h"#include "fr原创 2020-12-25 14:39:31 · 1994 阅读 · 0 评论 -
esp32 使用nvs进行软件复位
1、硬件:一块ESP32最小系统板2、程序源码#include <stdio.h>#include <string.h>#include <unistd.h>#include "freertos/FreeRTOS.h"#include "freertos/task.h"#include "freertos/event_groups.h"#include "nvs.h"#include "esp_log.h"#include "nvs_fla.原创 2020-10-16 10:55:38 · 3360 阅读 · 0 评论 -
esp32 定时器的使用
1、原理图1.1、最小系统ESP32模组:1.2、板载LED电路:2、程序源码:2.1、main.c主函数#include <stdio.h>#include "esp_system.h"#include "esp_spi_flash.h"#include "esp_wifi.h"#include "esp_event_loop.h"#include "esp_log.h"#include "esp_err.h"#include "nvs_flash.原创 2020-10-09 16:54:13 · 2720 阅读 · 0 评论 -
esp32 ADC数据采集(光敏电阻)
1、关于光敏电阻的原理介绍等信息就不一一介绍了,先上具体原理图 硬件连接,采用的是esp32 s2 的IO34号引脚,也就是ADC1_CH6(GPIO34)2、程序源码#include <stdio.h>#include "esp_system.h"#include "esp_spi_flash.h"#include "esp_wifi.h"#include "esp_event_loop.h...原创 2020-09-26 10:46:36 · 8992 阅读 · 3 评论 -
esp32 串口发送和接收
1、原理图2、源码程序app_main.c#include <stdio.h>#include "esp_system.h"#include "esp_spi_flash.h"#include "esp_wifi.h"#include "esp_event_loop.h"#include "esp_log.h"#include "esp_err.h"#include "nvs_flash.h"#include "freertos/FreeRTOS.h"#inc原创 2020-08-18 14:32:53 · 6046 阅读 · 0 评论 -
esp32 GPIO点亮LED灯
客套话就不说了,直接上原理图和程序,理论介绍那些后续再进行补充1、原理图解析:根据电路图我们可以看出:当IO16引脚输出低电平,LED1亮;当IO16引脚输出高电平,LED1灭;2、程序:采用模块化编程,所以项目会有一个main主函数以及各个模块.c .h文件2.1、main函数#include <stdio.h>#include "esp_system.h"#include "esp_spi_flash.h"#include "esp_wifi.h"#in原创 2020-08-15 10:29:19 · 2133 阅读 · 0 评论