Home › Forums › Voltage Regulator Support › 200220 DC-DC Buck converter UART
-
AuthorPosts
-
MitchelJune 16, 2017 at 10:27 pmPost count: 0MitchelJune 19, 2017 at 1:22 pmPost count: 0MitchelJuly 3, 2017 at 6:29 pmPost count: 0
Unfortunately, I got stuck again. I’ve tried using the commands from that communication protocol, but I can’t get any response. I would assume it is 9600 8N1, but I’ve tried many different baud rates and settings. Could you tell me what the baud rate, data bits, parity, and stop bits should be set to?
Thanks
MitchelJuly 6, 2017 at 8:55 pmPost count: 0Thanks again. I was able to get it working at 9600 8N1.
Notes:
– UART pin labels (RX/TX) are opposite from what I expected. The pin labelled RX is actually the TX pin on the MCU and vice versa.
– Commands must be prefixed with a colon. This is a bit unclear in the document.
– Auto power-on state doesn’t read properly. It always returns 0, indicating that auto power-on is disabled.Example communication:
:wo0
#wook
:wo1
#wook
:wu1000
#wuok
:wi0100
#wiok
:wl1
#wlok
:wl0
#wlok
:ru
#ru00000001000
:ri
#ri00000000000
:rt
#rt00000000003
:rc
#rc00000000000
:rv
#rv00000001000
:ra
#ra00000000100
:ro
#ro00000000001JamesSeptember 24, 2017 at 1:22 pmPost count: 0Jim BeansSeptember 25, 2017 at 6:53 pmPost count: 0AndrewSeptember 25, 2017 at 10:47 pmPost count: 0Hi James,
I’m trying both. I’ve only been able to get it working (slightly) with the arduino.
I’ve written commands to the buck converter and it reads them. When I send “:wu0700\r\n” as bytes it sets the voltage to 7 V, however, I am still not able to read any feedback (as far as I can tell). Like in the example, I haven’t been able to read in “#wuok”.
Thanks,
Andrew Allen
Chase PhantomOctober 30, 2018 at 6:55 pmPost count: 0Hello Chase Phantom,
Here is the link: https://www.droking.com/cs/wp-content/uploads/2017/07/200220.docx
Best regards.
Omar AhmadFebruary 20, 2019 at 2:17 amPost count: 0Hey can anyone here help me in regards to getting an Arduino to send commands to this device?
The rx,tx and gnd pins are connected and I just want to know how to properly send commands such as :wu1000 and :ru
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.write(“:ru”);}
Is the above the correct way to send a specific command? Whenever I try sending commands via the serial monitor its returning the ascii value of what i sent.
-
AuthorPosts