Arduino pro mini serial port9/2/2023 My second computer (connected to the SoftwareSerial port of the arduino) is receiving the following 25 (not 26) bytes (also shown in dec. I'm broadcasting the following 26 bytes (shown below in dec. ![]() #include īyte output= ĭigitalWrite(6,LOW) //Set ground pin on SoftwareSerial to LOW This is the simplified code that I'm running on the Arduino. The power supply requires a packet of 26 bytes. It seems most likely that it must be either 1) the Software serial setup or 2) me incorrectly broadcasting the data. I can only assume that the I haven't set up the adruino to communicate correctly. The second computer (using Docklight as a serial monitor) noticed that information was being received, but it didn't match what was sent (see below). I then plugged in a second computer into the SoftwareSerial port (instead of the power supply) to monitor communication and make sure that the commands were properly sent. ![]() I tried implementing the above, but the BK1785 didn't show any sign of receiving or understanding the commands. Therefore, I decided to use the SoftwareSerial library to setup an additional software RS232 port (on digital pins) for communicating with the power supply. ![]() I'm using my computer (via the only RS232 hookup on the arduino) to program and debug the code, and my arduino only has one serial port. Specifically, I want the arduino to eventually communicate with a BKPrecision 1785B power supply and control its voltage, current, etc. I'm trying to have my Arduino Pro Mini (w/ ATmega328) communicate with a serial device via RS232.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |