站内搜索
发作品签到
专业版

ESP32 控制ESP8266

工程标签

254
0
0
3

简介

esp32 遥控控制 ESP8266 数字量 模拟量 通过 wifi点对点控制ESP8266

简介:esp32 遥控控制 ESP8266 数字量 模拟量 通过 wifi点对点控制ESP8266
基于ESP32物联网征集令

开源协议

GPL 3.0

创建时间:2024-08-19 17:26:34更新时间:2024-09-14 16:43:58

描述

控制端使用ESP32-WROOM32 模块为核心,引出所有可用ADC 采集模拟电压量,所有可用GPIO口采集数字亮

打包字符串后通过ESP-NOW 协议发送给ESP8266 作为物联网控制,当然也可以控制ESP32,或者使用wifi协议或者使用云服务远距离控制

 

遇到一个大坑

因为只给了50元费用, 又要买一堆电位器开关什么的 我就选了LCSC 价格最低的 ESP32-SOLO ,阅读规格书, solo=ESP32-WROOM 的单核版本, 硬件兼容。

根据需求, 不需要多线程需求, 价格又便宜12元 跟2x的区别

ESP32-SOLO:

https://item.szlcsc.com/3522404.html?fromZone=s_s__%2522ESP32%2522

我把一切装好后, 芯片循环重启!串口提示, 这是单核CPU 但是用了 双核APP!

串口提示如下:


ELF file SHA256: c2884a8091441e45

E (119) esp_core_dump_flash: Core dump flash config is corrupted! CRC=0x7bd5c66f instead of 0x0
Rebooting...
E (95) cpu_start: Running on single core variant of a chip, but app is built with multi-core support.
E (95) cpu_start: Check that CONFIG_FREERTOS_UNICORE is enabled in menuconfig

abort() was called at PC 0x400829b9 on core 0


Backtrace: 0x400833dd:0x3ffe3b80 0x40087f2d:0x3ffe3ba0 0x4008d17d:0x3ffe3bc0 0x400829b9:0x3ffe3c40 0x40079276:0x3ffe3c90 |<-CORRUPTED

 

 

我想ESP32-C3 也是单核 编译上传, 芯片是ESP32 不是C3!

GITHUB 找到个方案, 覆盖SDK

但是依赖老版本开发板库文件, 最新版是2.0.2

没有离线版只能想办法正常装2.0.2

家里深圳电信网络无法安装, 但是街道办的免费WIFI 可以跑满速

 

项目使用了 223329 字节,占用了 (17%) 程序存储空间。最大为 1310720 字节。
全局变量使用了14160字节,(4%)的动态内存,余留313520字节局部变量。最大为327680字节。
esptool.py v3.1
Serial port COM1
Connecting......
Chip is ESP32-S0WD (revision 1)
Features: WiFi, BT, Single Core, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: c4:5b:be:a9:24:5c
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00010000 to 0x00046fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 699.4 kbit/s)...
Hash of data verified.
Compressed 18528 bytes to 12721...
Writing at 0x00001000... (100 %)
Wrote 18528 bytes (12721 compressed) at 0x00001000 in 0.4 seconds (effective 379.4 kbit/s)...
Hash of data verified.
Compressed 223776 bytes to 123539...
Writing at 0x00010000... (12 %)
Writing at 0x0001d629... (25 %)
Writing at 0x00022d58... (37 %)
Writing at 0x0002846f... (50 %)
Writing at 0x0002da4f... (62 %)
Writing at 0x000360a6... (75 %)
Writing at 0x0003e399... (87 %)
Writing at 0x000438fe... (100 %)
Wrote 223776 bytes (123539 compressed) at 0x00010000 in 2.2 seconds (effective 824.3 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 128...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (128 compressed) at 0x00008000 in 0.0 seconds (effective 524.1 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

 

 

赶快编译一下左右摇杆的ADC值。一切正常, 现在可以愉快的折腾代码了!

 

 

附件arduino-esp32-solo-2.0.2.zip 覆盖到 arduino 这个路径

签名名字要根据你电脑实际修改

C:\Users\xitonghan\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2

 

 

 

原件PCB 安装:

1 用加热盘 锡膏先贴顶层贴片元件, 用烙铁补地层贴片元件

如果焊接充电电路, 可以分区贴片, 即用小加热盘或者部分地区热保护隔离写双面

 

 

 

 

 

测试视频

 

 

参考资料 :

ESP32电容触摸传感器设计文档参考 https://github.com/espressif/esp-iot-solution/blob/release/v1.0/documents/touch_pad_solution/touch_sensor_design_cn.md#33-pcb-%E5%B8%83%E5%B1%80%E8%A7%84%E8%8C%83

esp32 接口定义参考资料 

 

 

--------------------------------------------------------------------------------------

https://www.bilibili.com/video/BV1VK4teoEmB/ 功能测试视频

设计图

未生成预览图,请在编辑器重新保存一次

BOM

暂无BOM

3D模型

序号文件名称下载次数
暂无数据

附件

序号文件名称下载次数
1
arduino-esp32-solo-2.0.2.zip
11
2
TEST_ALL.ino
7
3
test.mp4
8
克隆工程
添加到专辑
0
0
分享
侵权投诉

工程成员

评论

全部评论(1
按时间排序|按热度排序
粉丝0|获赞0
相关工程
暂无相关工程

底部导航