我有一个覆盆子pi和arduino通过串口连接.一切正常,但Arduino IDE没有用于添加新库的"导入库"部分.
我只能导入IDE附带的库.我想在pi上向Arduino IDE添加更多库,并想知道库文件夹的位置.
到目前为止,我还没有找到它.
有人有经验吗?
另一个抬头,跑着笨拙的喘息声.
我有一个Arduino Uno并且代码昨天加载正常但今天我一直收到以下错误(通过将上传部分设置为详细显示)
avrdude: Version 5.11, compiled on Sep 2 2011 at 18:52:52
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/Users/seanwhipple/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/tty.usbmodemfa131
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not …Run Code Online (Sandbox Code Playgroud) 我正在使用GPS和Arduino创建地理围栏.我想实现Haversine公式以找到两点之间的距离,以便用半径计算它.问题是我发现很难在Arduino IDE上实现Haversine Formula,我在Arduino上比较初学.
a = sin²(??/2) + cos(?1).cos(?2).sin²(??/2)
c = 2.atan2(?a, ?(1?a))
d = R.c
Run Code Online (Sandbox Code Playgroud)
如何在Arduino IDE上实现上述公式?
我的Arduino Uno全部成立,工作正常.
项目:Arduino根据给定的命令控制9v电机.由于Arduino仅提供5v,我通过晶体管为其添加了9v电池
我决定在Arduino中添加新代码,但是当我尝试失败时.我已经成功地上传了几千次代码(成功)IDE突然发出以下消息
avrdude:ser_open():无法打开设备".\ COM3":访问被拒绝.
我已经在这个论坛和其他地方寻找了很多解决方案.以下是我到目前为止所尝试的内容:
出于某种原因,以上所有都给了我相同的输出.当电路板连接到电源(我的笔记本电脑)时,内置LED灯和电源LED开启.董事会可能被任何机会损坏了吗?如何检查电路板是否损坏?我应该买一块新板吗?
我是 NodeMCU 的新手。我的 NodeMCU 版本是 LOLin 0.1
我上传的第一个代码是 Spacehuhn 的 Deauther。我为 deauther 设置设置了我的 AP,一切正常。
几天后我写了一个新代码(与WIFI相关),但没有用。然后,我查看了 WIFI,它说我的旧 AP(应该被覆盖)
有什么办法可以将 NodeMCU 恢复出厂设置吗?
我尝试将 1MB 的内容写入0x000000 0x100000 0x200000 和 0x300000。看起来它起作用了,但是当我检查回 Arduino IDE 并再次上传我的新代码时,该 AP 回来了,但名称不同(更改为ESP_1B24B6)
也许问题出在Arduino IDE或NodeMCU
我制作了一个简单的 Node.js 本地服务器来接收来自 ESP32 的 POST 请求并将其放入数据库中。当我使用邮递员测试时,服务器工作正常。服务器正在侦听端口 127.0.0.1:3000。我的问题是client.connect(host, port)总是返回 false。我无法连接到客户端以发出 POST 请求。
#include "Arduino.h"
#include "Arduino.h"
#include "WiFi.h"
WiFiClient client;
const IPAddress server(192,168,1,10);
const int httpPort = 3000;
const char* ssid = "******";
const char* password = "********";
void setup() {
Serial.begin(115200);
Serial.println();
Serial.println("Booted");
Serial.println("Connecting to Wi-Fi");
WiFi.begin (ssid, password);
WiFi.mode(WIFI_STA);
while (WiFi.status() != WL_CONNECTED) {
Serial.print(".");
delay(500);
yield();
}
Serial.println("WiFi connected");
if (client.connect(server,httpPort )) {
Serial.println("Client Connected");
} else {
Serial.println("No Connection");
}
void loop() {
}
Run Code Online (Sandbox Code Playgroud) 我试图使用 nodemcu、LED 和 blynk 应用程序构建一个简单的 IoT 产品。这是使用 NodeMCU 可以做的最基本的事情。但是,当我从 Blynk 库上传示例时,出现此错误。
这似乎是一个端口错误,但我仍然无法理解它。
错误信息如下:
Arduino: 1.8.9 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
Sketch uses 279792 bytes (26%) of program storage space. Maximum is 1044464 bytes.
Global variables use 28848 bytes (35%) of dynamic memory, leaving 53072 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.6
2.6
esptool.py v2.6
Serial …Run Code Online (Sandbox Code Playgroud) 我正在开发基于 Arduino 的系统,该系统将随着时间的推移而扩大。目前它只有湿度和温度读取功能。但很快就会添加门控、录音和 gsm 网络客户端支持。我希望所有这些都作为库包含并在主要部分中使用。我正在考虑一个包含所有其他模块并调用它们的函数的 ino 文件。我的问题是最好和最干净的方法是什么?
我读到 iOS 附带 USBSerial.kext 可以处理这个问题,但我不认为它对我有用。
我已经尝试安装 FTDI 驱动程序,我可以在 /system/library/extensions 中看到 .kext,但仍然无法正常工作。
手动安装时出错
/Library/Extensions/FTDIUSBSerialDriver.kext failed to load - (libkern/kext) not loadable (reason unspecified); check the system/kernel logs for errors or try kextutil(8)
Run Code Online (Sandbox Code Playgroud)
须藤 dmesg
Notice - new kext com.apple.driver.usb.AppleUSBHostPlatformProperties, v1.2 matches prelinked kext but can't determine if executables are the same (no UUIDs).
Run Code Online (Sandbox Code Playgroud)
注意: Arduino 板出现在 IDE 中,但 FTDI 没有。
更新模块适用于 iOS High sierra 10.13.6
当我将代码上传到我的 AI thinker esp 32 cam 时,我不断收到错误消息。我使用 microusb 连接它,但总是出现此错误:
发生致命错误:无法连接到 ESP32:未收到串行数据。有关故障排除步骤,请访问:https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html 上传失败:上传错误:退出状态 2
arduino-ide ×10
arduino ×5
arduino-uno ×2
esp32 ×2
esp8266 ×2
macos ×2
nodemcu ×2
debian-based ×1
ftdi ×1
haversine ×1
raspberry-pi ×1
raspbian ×1
usbserial ×1