<?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[Documentation to use the UART of the UnitV with raspberry pi GPIO]]></title><description><![CDATA[<p dir="auto">Hi there,</p>
<p dir="auto">I'm looking for documentation to help me set up and use the UART between the M5Stick UnitV and the Raspberry 3B GPIO.<br />
Where can I find it?<br />
Has anyone already done this?</p>
<p dir="auto">Thanks a lot.</p>
]]></description><link>https://community.m5stack.com/topic/7170/documentation-to-use-the-uart-of-the-unitv-with-raspberry-pi-gpio</link><generator>RSS for Node</generator><lastBuildDate>Wed, 06 May 2026 07:10:29 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7170.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 07 Jan 2025 15:33:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Documentation to use the UART of the UnitV with raspberry pi GPIO on Wed, 05 Mar 2025 21:06:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/arn_8" aria-label="Profile: Arn_8">@<bdi>Arn_8</bdi></a><br />
Problem fixed !<br />
Thanks !</p>
]]></description><link>https://community.m5stack.com/post/28400</link><guid isPermaLink="true">https://community.m5stack.com/post/28400</guid><dc:creator><![CDATA[Arn_8]]></dc:creator><pubDate>Wed, 05 Mar 2025 21:06:04 GMT</pubDate></item><item><title><![CDATA[Reply to Documentation to use the UART of the UnitV with raspberry pi GPIO on Tue, 04 Mar 2025 18:45:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peolsolutions" aria-label="Profile: peolsolutions">@<bdi>peolsolutions</bdi></a><br />
Hi thanks, I used the link on the answer above and a tutorial to enable the UART!</p>
]]></description><link>https://community.m5stack.com/post/28391</link><guid isPermaLink="true">https://community.m5stack.com/post/28391</guid><dc:creator><![CDATA[Arn_8]]></dc:creator><pubDate>Tue, 04 Mar 2025 18:45:14 GMT</pubDate></item><item><title><![CDATA[Reply to Documentation to use the UART of the UnitV with raspberry pi GPIO on Tue, 04 Mar 2025 18:43:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/teastain" aria-label="Profile: teastain">@<bdi>teastain</bdi></a><br />
Hi thank you, it helped a lot to understand how to communicate!<br />
I have another query link to this, I tried this code which worked well and I could read the "hello_world\n" on my raspberry:</p>
<pre><code>import sensor
import image
import lcd
import time
import utime
from machine import UART
from Maix import GPIO
from fpioa_manager import *

fm.register(34,fm.fpioa.UART1_TX)
fm.register(35,fm.fpioa.UART1_RX)
uart_out = UART(UART.UART1, 115200, 8, None, 1, timeout=1000, read_buf_len=4096)

while 1 :
    uart_out.write('hello_world\n')
    utime.sleep_ms(100)
</code></pre>
<p dir="auto">and I tried to adapt it for my application (which is face recognition) like this:</p>
<pre><code>import sensor
import image
import KPU as kpu
import lcd
import time
import utime
from machine import UART
from Maix import GPIO
from fpioa_manager import *
fm.register(34,fm.fpioa.UART1_TX)
fm.register(35,fm.fpioa.UART1_RX)
uart_out = UART(UART.UART1, 115200, 8, None, 1, timeout=1000, read_buf_len=4096)
sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QVGA)
sensor.run(1)
task = kpu.load(0x300000)
anchor = (1.889, 2.5245, 2.9465, 3.94056, 3.99987, 5.3656, 5.155437, 6.14367, 6.3784, 7.26)
a = kpu.init_yolo2(task, 0.5, 0.3, 5, anchor)
while 1 :
        img = sensor.snapshot()
        code = kpu.run_yolo2(task, img)
        if code:
            for i in code:
                 uart_out.write(i)
                 a = img.draw_rectangle(i.rect())
a= kpu.definit(task)
</code></pre>
<p dir="auto">Initially it was a similar code that I used without UART on the MaixpyIDE and connected via USB which worked well.<br />
But when I put it in the <a href="http://boot.py" target="_blank" rel="noopener noreferrer nofollow ugc">boot.py</a> it doesn't write the coordinate to i on the Raspberry.<br />
I would point that I didn't put an SD card in the UnitV-OV7740. Could it be that I don't have enough memory to run this new code?<br />
Thanks a lot !</p>
]]></description><link>https://community.m5stack.com/post/28390</link><guid isPermaLink="true">https://community.m5stack.com/post/28390</guid><dc:creator><![CDATA[Arn_8]]></dc:creator><pubDate>Tue, 04 Mar 2025 18:43:21 GMT</pubDate></item><item><title><![CDATA[Reply to Documentation to use the UART of the UnitV with raspberry pi GPIO on Fri, 17 Jan 2025 14:14:10 GMT]]></title><description><![CDATA[<p dir="auto">To use UART on a UnitV with Raspberry Pi GPIO, refer to the official documentation of UnitV for pinout details and configuration steps, then enable UART on the Raspberry Pi.</p>
]]></description><link>https://community.m5stack.com/post/27929</link><guid isPermaLink="true">https://community.m5stack.com/post/27929</guid><dc:creator><![CDATA[peolsolutions]]></dc:creator><pubDate>Fri, 17 Jan 2025 14:14:10 GMT</pubDate></item><item><title><![CDATA[Reply to Documentation to use the UART of the UnitV with raspberry pi GPIO on Tue, 07 Jan 2025 20:25:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/arn_8" aria-label="Profile: Arn_8">@<bdi>Arn_8</bdi></a> I am not familiar with this camera or AI. Have you been able to connect to it and read it?<br />
The Pi would need SoftwareSerial UART and I suppose some app on the Pi to interpret the results.<br />
I assume you have been to this site?<br />
<a href="https://github.com/m5stack/M5-ProductExampleCodes/blob/master/App/UnitV/track_ball/track_ball.ino" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5-ProductExampleCodes/blob/master/App/UnitV/track_ball/track_ball.ino</a><br />
Hope this helps!</p>
]]></description><link>https://community.m5stack.com/post/27798</link><guid isPermaLink="true">https://community.m5stack.com/post/27798</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Tue, 07 Jan 2025 20:25:53 GMT</pubDate></item><item><title><![CDATA[Reply to Documentation to use the UART of the UnitV with raspberry pi GPIO on Tue, 07 Jan 2025 19:33:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/teastain" aria-label="Profile: teastain">@<bdi>teastain</bdi></a> Oh sorry I didn't specify, I'm using the UnitV - OV7740, with a Raspberry Pi 3B+.<br />
I want to use face recognition and get the rectangle coordinate to control a motor with the Raspberry GPIO.</p>
<p dir="auto">Thanks a lot.</p>
]]></description><link>https://community.m5stack.com/post/27797</link><guid isPermaLink="true">https://community.m5stack.com/post/27797</guid><dc:creator><![CDATA[Arn_8]]></dc:creator><pubDate>Tue, 07 Jan 2025 19:33:19 GMT</pubDate></item><item><title><![CDATA[Reply to Documentation to use the UART of the UnitV with raspberry pi GPIO on Tue, 07 Jan 2025 17:17:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/arn_8" aria-label="Profile: Arn_8">@<bdi>Arn_8</bdi></a> There are a surprising number on UnitV products, what is the part number?<br />
Such as U-nnn.</p>
]]></description><link>https://community.m5stack.com/post/27796</link><guid isPermaLink="true">https://community.m5stack.com/post/27796</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Tue, 07 Jan 2025 17:17:48 GMT</pubDate></item></channel></rss>