esp8266

ESP8266 01S 串口编程

為{幸葍}努か 提交于 2019-12-30 04:54:36
文章目录 学习记录 系统接口 代码 效果 代码2 效果2 学习记录 ESP8266 01S 串口编程 系统接口 注意加入头文件。 代码 在user_init()中加入代码 user_init(void) { os_printf("\r\n---------------\r\n"); os_printf("SDK version: %s \n", system_get_sdk_version()); //串口打印SDK版本 os_printf("\r\n---------------\r\n"); } 效果 代码2 user_init(void) { uart_init(9600, 9600); os_printf("\r\n---------------\r\n"); os_printf("SDK version: %s \n", system_get_sdk_version()); //串口打印SDK版本 uart0_sendStr("\r\n HELLO WORLD \r\n"); os_printf("\r\n---------------\r\n"); } 效果2 由于前半段使用74800(76800)传输,使用9600接收为乱码。改变串口波特率为9600后,接收正常。 如果接收波特率设为74800(76800),前半段正常,后半段乱码。 来源: CSDN 作者:

ESP8266无线串口模块介绍

寵の児 提交于 2019-12-29 11:25:33
ESP8266浅谈 ESP8266是一款串口转无线模块,内部有自带固件,操作简单。 一、ESP8266简介 ESP8266芯片是一款串口转无线模芯片,内部自带固件,用户操作简单,无需编写时序信号等。 ESP8266 系列模组是安信可(Ai-thinker)公司采用乐鑫ESP8266 芯片 开发的一系列wifi 模组模块 ESP8266 特性 : *802.11 b/g/n *内置低功耗32位CPU:可以兼作应用处理器 *内置10 bit高精度ADC *内置TCP/IP协议栈 *内置TR开关、balun、LNA、功率放大器和匹配网络 *内置PLL、稳压器和 电源 管理组件 *支持天线分集 *STBC、1x1 MIMO、2x1 MIMO *A-MPDU、A-MSDU的聚合和0.4 s的保护间隔 *WiFi @ 2.4 GHz,支持 WPA/WPA2 安全模式 *支持STA/AP/STA+AP工作模式 *支持Smart Config功能(包括Android和iOS设备) *SDIO 2.0、(H) SPI、UART、I2C、I2S、IR Remote Control、PWM、GPIO *深度睡眠保持电流为10 uA,关断电流小于5 uA *2 ms之内唤醒、连接并传递数据包 *802.11b模式下+20 dBm的输出功率 *待机状态消耗功率小于1.0 mW (DTIM3) *工作温度范围

ESP8266 AT firmware doesn't say it's ready

微笑、不失礼 提交于 2019-12-25 18:14:19
问题 I'm using ESP12E module. I uploaded v1.1.1.1 AT Firmware.bin, connected pin 0 from ground to 3.3 V, restarted the module. When monitoring the COM port I see : In the end id doesn't say that it's ready and therefore none of the AT commands work. Any ideas how to fix it? 回答1: At the end of the image in your question, we see some garbage. On top it says ,rst cause:2, boot mode:(3,7) This tells us the device had an external reset and configured to boot from flash. Thus your pin connections are

Cannot Get GPIO0 High after programming RF settings ESP-12-Q

爷,独闯天下 提交于 2019-12-25 09:44:13
问题 I'm trying to flash AI-Thinker ESP-12-Q module with custom compiled nodemcu image. When very first time the chip boots up it shows a message saying it has 8mbit (1MB) flash. On every document also images it is shown that this module has 32mbit (4MB) flash. Here is what i did and the result: To eliminate power problems, I power the module with 10 Amps lab supply (3.3 volts of course). There is a 3.3v ftdi module sitting between esp and computer. I'm using official flash download tool v2.4 from

Send entire html code with client:send() in Nodemcu Esp8266 lua programming

旧时模样 提交于 2019-12-25 00:29:26
问题 I created a lua file that implements a 2relay module to control a rolling shutter through a website. I followed the led_webserver example and I extended my code from there. I tried so many ways to send a full html page with the function client:send() , but it doesn't seem to work. It's a page I developed myself and it works on the pc but I couldn't find an easy way to send it. I declare a local variable (for example test ) that contains all the html code and then i put it as parameter in

Multiple libraries were found servo.h

点点圈 提交于 2019-12-24 19:22:51
问题 Multiple libraries were found servo.h error. Please help to fix. I am getting this error: Error: Arduino: 1.8.5 (Windows 8), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 4M (3M SPIFFS), v2 Lower Memory, Serial1, None, Only Sketch, 115200" Smart_Door:20: error: 'servo' does not name a type servo.attach(2); // attaches the servo on GPIO2 to the servo object ^ Multiple libraries were found for "Servo.h" Used: C:\Users\Deepak\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1

ESP8266 AT+CWLAP gives generic ERROR message with no details

白昼怎懂夜的黑 提交于 2019-12-24 16:04:50
问题 I have been having trouble all day learning how to enable "AT" commands for the ESP8266 module. I'm using my Arduino Uno as a bridge to my ESP8266. So my pin connections are: ESP8266 | Arduino ----------------------- TX | TX RX | RX CH_PD | 3.3V (separate battery that has common ground with arduino) VCC | 3.3V (separate battery that has common ground with arduino) GND | GND GPIO0 | GND I initially had some success with an ESP8266 Flasher that someone shared here and he provides instructions

GET Request from Arduino to Lua (ESP8266)

限于喜欢 提交于 2019-12-24 16:04:03
问题 I have a problem with my GET request. ESP8266 with NodeMCU. My code in Arduino: String cmd = "conn:send(\"GET /json.htm?type=command&param=udevice&idx=2&nvalue=0&svalue=11 HTTP/1.1\r\nHost: 192.168.0.101\r\nConnection: keep-alive\r\nAccept: */*\r\n\r\n\")"; wifi.println("conn=nil"); wifi.println("conn=net.createConnection(net.TCP, 0)"); wifi.println("conn:on(\"receive\", function(conn, payload) print(payload) end)"); wifi.println("conn:connect(8080, \"192.168.0.101\")"); wifi.println(cmd);

ESP8266, NodeMCU, soft AP - UDP server-like soft AP, independent access point

断了今生、忘了曾经 提交于 2019-12-24 15:38:43
问题 I am using NodeMCU (with ESP8266-E) with an upgraded firmware. All basic commands work perfectly but there is one problem. I wanted to create an independent access point, which could have a behaviour like a UDP server. That means without direct connection to any other access points. A simple UDP server like soft AP. I followed these steps: I have uploaded a new firmware to NodeMCU. I have downloaded ESPlorer for better work with NodeMCU. I have uploaded the source code below. I have connected

nodeMCU TLS certificate error

Deadly 提交于 2019-12-24 08:08:12
问题 I am building realy simple IoT project, and I am stuck on nodeMCU TLS problem. I have MQTT broker on my Raspberry pi, all certificates are correctly inserted (everything working fine with Paho Client on same raspberry or with Mqtt.fx client on remote PC), but when I try to connect from my ESP8266 with nodeMCU I am getting SSL handshake error (yes, I am using same cert file for all mentioned clients). My ESP8266 code looks like this: tls.cert.verify([[ -----BEGIN CERTIFICATE----- -----END