
[英]Problem with serial communication between Arduino Mega2560 and ESP32
大家,早安。 我正在尝试在 arduino mega 和 esp32 之间建立串行通信,我都使用硬件串行。 arduino中的uart3 esp中的uart2。 我已经多次检查引脚连接。 我还使用电平转换器将 arduino 的 tx 信号适配到 esp32。 本质上我需要向 esp32 发送一个 ...
[英]Problem with serial communication between Arduino Mega2560 and ESP32
大家,早安。 我正在尝试在 arduino mega 和 esp32 之间建立串行通信,我都使用硬件串行。 arduino中的uart3 esp中的uart2。 我已经多次检查引脚连接。 我还使用电平转换器将 arduino 的 tx 信号适配到 esp32。 本质上我需要向 esp32 发送一个 ...
[英]Why do I receive characters at an offset in the buffer when using ReadFile()?
我想做什么: 我正在尝试编写 win 控制台,它将通过 UART 与我的 ATMega2560 板进行通信。 现在它应该将保存在stringToSend中的字符串发送到 MCU,该 MCU 应该发送回 PC。 MCU发送过来的字符串要保存在receivedString中,然后写入win控制台wi ...
[英]Parsing The Data from Rasberry Pi to Arduino for controlling 8 Relay
我的项目 Bidirectional Communicate between Arduino and Rasberry Pi for implementing many AC Applications,到目前为止,从 Arduino 到 Rasberry Pi 的读取已经解决现在唯一的问题是解析从 ...
[英]I2c for 1602LCD display not working (raspberry pi pico)
我目前在尝试将我的 pi pico 与 I2c 适配器(我的 1602LCD 显示器的 LCM1602)连接时遇到问题。我尝试了 raspberry pi github 页面上的官方示例(它使用 pi pico 的 c/++ SDK,但是这是不成功的。我可以编译/加载代码,但没有任何显示。我做了 ...
[英]Clean way to send data struct from python to arduino?
我正在研究机器人,我想以某种方式使用 pySerial 向 arduino 发送命令。该命令看起来像 {MOVE, 60, 70} 或 {REQUEST_DATA},我会在其中读取 arduino第一个值,如果它是“MOVE”,那么它会以 60 和 70 的速度驱动一些电机,如果它是“REQUES ...
[英]Is there an apk for reading and writing on a RS485 serial line
是否存在 android 4.0 的 apk 能够在 RS485 连接上读取和写入数据? 我使用的噪声传感器有 4 个 output 引脚(485A、485B、V+、V-),安装 android 的设备有一个母 RS485 端口,我直接将这 4 个引脚连接到端口。 我已经使用过Serial Com ...
[英]Serial Communication C++ Select Connect
主要的 串行cpp 串口.h 我正在编写代码以通过选择串行端口进行连接。 例如,1.COM1 / 2.COM3 / 3.COM4 如何修改主连接与3号匹配的COM4? 如何自动读取并使用匹配端口来匹配号码? 我正在编写代码以通过选择串行端口进行连接。 例如,1.COM1 / 2.COM3 / 3.C ...
[英]Does anyone have a simple code I can reference for serial communication from Pi to Arduino?
如果我在我的 Raspberry Pi 上从 1 到 10 循环并分配给变量 x 作为一个小例子,我如何获取它并通过串行将它传输到 Arduino 以便能够用于我的步进电机的角度还是简单地使其可用作循环中的变量? 是否有来自 Pi 和 Arduino 的小代码可以帮助我? 我知道这很容易,但我正在 ...
[英]Unable to transfer complete data stream from Arduino Uno at high baudrate
我正在尝试将 115200 Bd 的一些数据传输到 C# 表单 RichTextBox。 下面是我的 Arduino 代码:void serialEvent() { if (Serial.available()) { int command = Serial.parseInt( ...
[英]error: expected ';', ',' or ')' before numeric constant in Serial communication ATmega32
我正在尝试通过串行通信连接蓝牙模块。 但是在我定义波特率的行上发生了错误,即“错误:预期的';',','或')'在数字常量之前”。 找不到错误在哪里。 帮助将不胜感激,谢谢! ...
[英]Sending Strings from arduino to Processing
我想让处理从 Arduino 读取字符串。 我从 arduino 发送两个字符串消息,我想将它们存储在处理的两个不同变量中。 我试图这样做,但两个字符串被传递给第一个变量,第二个变量保持为空。 我不明白为什么会这样。 有人可以帮忙吗? 问候 Arduino 代码 处理代码 ...
[英]error while uploading arduino code avrdude: stk500_cmd(): programmer is out of sync
我正在尝试在 Arduino Nano 中上传 Arduino 代码,但出现错误 我尝试了几件事来重置 Arduino。 RX tx 引脚未排序,引导加载程序刻录也不工作。 有什么答案可以试试吗? ...
[英]RaspberryPi > Arduino (USB/serial comm issues)
我当前的项目有一个问题(RPi 的东西不是很好......用 Arduino 更好) 摘要: RPi 安装了 LAMP 并托管了一个网站。 该网页通过 PHP 将自定义串行数据提交给 USB 连接的 Arduino,通过 ttyUSB0。 (这是个老项目,最近改了Arduino,以前的东西是tt ...
[英]6-bit CRC datasheet confusion STMicroelectronics L9963E
我正在研究微控制器和 L9963E 之间的 SPI 通信。 L9963E 的数据表几乎没有显示有关 CRC 计算的信息,但提到: 一个 6 位的 CRC, X 6 + X 4 + X 3 + 1 = 0b1011001的多项式 0b111000的种子该文档还在 SPI 协议详细信息中提到,CR ...
[英]STM32 Uart reading issue
以下代码仅读取第一次迭代。 我似乎没有看到问题。void USART2_IRQHandler(void){ if (USART_GetITStatus(USART_MODULE, USART_IT_RXNE) != RESET) { Rx_Buff[counter+ ...
[英]Getting Error When access the com port With blazor
【使用System.IO.Port 1访问COM端口时会报错 ...
[英]Arduino Pyserial Communication is too slow
#include <Servo.h> String incomingByte ; Servo frri, frle, reri, rele, frriup, frleup, reriup, releup; // the motors we used, there are 8 motor ...
[英]Problem when sending a long string through serial Com port (python to arduino)
我正在尝试通过serial.write将字符串数组作为用字符(#)分隔的大字符串发送到arduino。 这样一旦 arduino 中的字符串,我就可以将它再次分离成一个字符串数组。 但是,当我运行此代码时, print(finalData) 部分什么也不打印。 我究竟做错了什么? python ...
[英]C# communication from Arduino to a UI written in WPF
我想通过串口接收数据。 我想在用 C# -- WPF 编写的 UI 上的文本框中显示这些数据 我了解用户界面和通讯。 在 2 个不同的线程上运行,但我无法更进一步。 我怎样才能做到这一点? ...
[英]Is there code to receive data from a serial port?
我正在开发一个从串行端口接收数据并将其显示在 GUI 上的程序。 我对 C# 很陌生,这是我正在进行的项目的一部分。 在过去的几周里,我一直试图寻找代码,并观看了关于此事的所有教程,但都以失败告终。 我对编程和 OOP 还是很陌生。 我遇到的问题是接收到的数据没有粘贴到显示框中。 我已经验证串行端 ...