我已经连接了一个ESP8266接口到串行模块到串行到USB连接器。
我能够用下面的ESP8266脚本和设置连接到:
import serial
def echoCommand(cmd,expected_return,halt_on_fail,tOut = timeoutPeriod) :
ser.write(cmd + '\r\n')
if(echo_local_command):
print('Sent --> '+cmd)
if not echoFind(expected_return,tOut) and
我使用下面的代码并尝试连接我的esp8266,这样它就会将温度上传到thingspeak.com
#include <SoftwareSerial.h>
#include <stdlib.h>
// LED
int ledPin = 13;
// LM35 analog input
int lm35Pin = A0;
// replace with your channel's thingspeak API key
String apiKey = "xxxxxx";
// connect 10 to TX of Serial USB
//
这个问题与此有关,,但设置不同。
我有一个NodeMCU devkit v1,它的商业名称是NodeMCU v2。我试过不同的设置来连接devkit。
首先,devkit有一个(CP2102)和电压适配器,从5v (USB)到3.3v。所以我通过USB把devkit和机器连接起来。驱动程序安装正确,我可以看到com,它是COM3。打开NodeMCU之后,我可以看到一个Wifi AI-THINKER-adfe21。
- Then I tried with the [nodemcu-flasher](https://github.com/nodemcu/nodemcu-flasher)
我构建了这个项目: ESP8266输出了一些东西,我认为应该可以。但是在Thingspeak频道里没有条目。我已经检查过API写键了。这是串行输出:
Setting up WIFI...
> IP unavaiable, Waiting...
IP unavaiable, Waiting...
IP unavaiable, Waiting...
IP unavaiable, Waiting...
IP unavaiable, Waiting...
IP unavaiable, Waiting...
Config done, IP is 192.168.1.9
Last temp: 216
我试图闪存esp8266的nodemcu fw,使用usb到串行适配器,它安装在/dev/ttyUSB0上,但无法与模块通信。所有的连接都正常,我也尝试过使用Windows,所以问题是软件方面的问题。这是dmesg输出:
[ 3144.796181] usb 5-1: new full-speed USB device number 70 using uhci_hcd
[ 3144.957166] usb 5-1: New USB device found, idVendor=10c4, idProduct=ea60
[ 3144.957174] usb 5-1: New USB device
我正在使用MicroPython扩展,并且已经成功地通过串行COM端口使用MicroPython闪存工具将ESP8266固件(操作系统)刷新到NodeMCU目标设备。
Port not exist, please connect device and try again!
我已经尝试了所有4个USB端口,重新安装驱动程序软件,重新启动计算机,重新启动目标设备,并确保目标设备处于程序闪存模式(以允许应用程序写入它),每次我尝试连接VSC到它!
我一整天都在学习如何为ESP8266模块启用"AT“命令。我正在使用我的Arduino Uno作为通往我的ESP8266的桥梁。所以我的引脚连接是:
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 grou
我正在使用Arduino Mega ADK芯片和Itead Bluetooth shield V2.2和Arduino 1.01软件,我不知道如何让AT命令从Arduino串行监视器返回'OK‘。
我已经为cmd设置了蓝牙芯片,其中rx在D0上,tx在D1上,交换机处于cmd模式,就像手册中显示的那样,它应该配置为cmd。(请参阅下面的链接)
然后我尝试了芯片上的一个应用程序,比如blink,其中不涉及串行命令,当我打开串行监视器时,我可以输入命令,但没有收到任何响应。我也尝试了监视器的每种波特率。
我计划使用Amarino应用程序来控制蓝牙芯片,但我找不到任何帮助来让这些命令工作。