The TX pin of the converter is connected to the RX pin of the Arduino and vice versa. On the other side, I have an Arduino UNO which is connected via USB to the same computer. I've got an USB to Serial converter, which is connected as "COM3". By removing the if-condition, I get a whole lot of "Hello User" and "-1" in the Arduino IDE serial monitor. Also, no other signals are being printed. put your main code here, to run repeatedly: put your setup code here, to run once: SoftwareSerial mySerial(10, 11) // RX, TX The Arduino side looks like this, and is essentially the default example: (I'm using the standard serial port to send data to the terminal, and the SoftwareSerial Port to connect to the USB to Serial Connector.) Also, I'm using SoftwareSerial to set up a secondary serial terminal to see what the Arduino receives. However, whenever I send data from Pyserial or hTerm, it doesn't show up in the Arduino serial terminal. I've already verified that data transmission from Arduino to the PC is possible, by using hTerm and PySerial. I'm now using that Arduino to test how data is transmitted from a USB to Serial Connector to the Arduino. I've recently gotten my hands on an Arduino (or rather a Genuino, but the overall architecture should be the same) UNO.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |