<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Help with USB communication between PC and Core2]]></title><description><![CDATA[<p dir="auto">Hello everyone,<br />
I’m facing a problem that I haven’t been able to solve.<br />
I have connected four servo motors to pins G19, G25, G26, and G27 of the Core2, and using UIFlow1 I can correctly control the servos’ movements.</p>
<p dir="auto">Now, I need to establish USB communication between my PC and the Core2. Essentially, I would like to run a Python script on my PC that sends an angle to the Core2 so it can command the motors to reach that desired value. I want to understand whether the USB cable connecting the Core2 to the PC is sufficient (I’ve asked on <a href="http://chat.m5stack.com" target="_blank" rel="noopener noreferrer nofollow ugc">chat.m5stack.com</a> and it should be possible according to AI response).</p>
<p dir="auto">I’ve tried many approaches, all unsuccessful. Here are the two main ones:</p>
<p dir="auto">Attempt 1: In UIFlow1 I used the Hardware -&gt; UART blocks, defining both uart1 = machine.UART(1, tx=32, rx=33) and uart2 = machine.UART(2, tx=17, rx=16). In both cases, I cannot read anything (uart1.any() / uart2.any() return nothing).</p>
<p dir="auto">Attempt 2: I flashed the UIFlow2 firmware, but I cannot find blocks for serial communication.</p>
<p dir="auto">It seems I could also bypass UIFlow entirely and program everything in VS Code using the Python and Pymakr extensions, but I would like to know if this is the only way before going that way.</p>
<p dir="auto">Thanks a lot for your support!<br />
Eleonora</p>
]]></description><link>https://community.m5stack.com/topic/7939/help-with-usb-communication-between-pc-and-core2</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 00:38:18 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7939.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Dec 2025 13:16:24 GMT</pubDate><ttl>60</ttl></channel></rss>