How can uart1 of M7 OPENMV work?

Discussion related to "under the hood" OpenMV topics.
mlw931
Posts: 2
Joined: Sat Apr 15, 2017 5:16 am

How can uart1 of M7 OPENMV work?

Postby mlw931 » Sat Apr 15, 2017 5:20 am

My openMV M7 's uart3 can work well,but uart1 not.
Is the problem in firmware?
How can i get it work well?
thanks!
User avatar
kwagyeman
Posts: 4287
Joined: Sun May 24, 2015 2:10 pm

Re: How can uart1 of M7 OPENMV work?

Postby kwagyeman » Sat Apr 15, 2017 4:58 pm

The microptyhon firmware code probably just needs to be updated so UART one connects to the right pins on the M7.

Ibrahim, can you fix this?
Nyamekye,
User avatar
iabdalkader
Posts: 1198
Joined: Sun May 24, 2015 3:53 pm

Re: How can uart1 of M7 OPENMV work?

Postby iabdalkader » Sat Apr 15, 2017 5:17 pm

Hi,

It's not enabled in the firmware, I'll enable it in the next release.
mlw931
Posts: 2
Joined: Sat Apr 15, 2017 5:16 am

Re: How can uart1 of M7 OPENMV work?

Postby mlw931 » Tue Apr 18, 2017 12:35 am

OK,Thanks you!
And Can I use this in my commercial product?
:lol:
User avatar
kwagyeman
Posts: 4287
Joined: Sun May 24, 2015 2:10 pm

Re: How can uart1 of M7 OPENMV work?

Postby kwagyeman » Tue Apr 18, 2017 8:54 am

Nothing is stopping you from buying an OpenMV Cam and putting it into a product.
Nyamekye,
User avatar
rommel
Posts: 12
Joined: Tue Jul 11, 2017 5:42 pm

Re: How can uart1 of M7 OPENMV work?

Postby rommel » Thu Nov 16, 2017 4:29 pm

Camera: OpenMV M7
Firmware: v2.5.0

It says that in
2.4 (2017-05-30)

Enable UART1 on OpenMV3/M7

I was able to verify UART3 like original poster, however, I still am unable to verify UART1 is functional.
Below is the code I used to verify UART3/ and tried on UART1

Code: Select all

# UART Control
#
# This example shows how to use the serial port on your OpenMV Cam. Attach pin
# P4 to the serial input of a serial LCD screen to see "Hello World!" printed
# on the serial LCD display.

import time, sensor, pyb
from pyb import UART

sensor.reset()                      # Reset and initialize the sensor.
sensor.set_pixformat(sensor.GRAYSCALE) # Set pixel format to RGB565 (or GRAYSCALE)
sensor.set_framesize(sensor.QQVGA2)   # Set frame size to QVGA (320x240)
# Always pass UART 3 for the UART number for your OpenMV Cam.
# The second argument is the UART baud rate. For a more advanced UART control
# example see the BLE-Shield driver.
uart = UART(1, 9600)
led = pyb.LED(3)


while(True):
    #uart.write("xA")
    #time.sleep(1000)
    if (uart.any()):
        c = uart.readchar()
        print(chr(c))
        if (c == 0xAA):
            led.on()
        if (c == 0xAB):
            led.off()
        if (c == 0xD):
            led.on()
:geek: :ugeek:
User avatar
kwagyeman
Posts: 4287
Joined: Sun May 24, 2015 2:10 pm

Re: How can uart1 of M7 OPENMV work?

Postby kwagyeman » Thu Nov 16, 2017 11:59 pm

Ibrahim, can you take a look at this?
Nyamekye,
User avatar
iabdalkader
Posts: 1198
Joined: Sun May 24, 2015 3:53 pm

Re: How can uart1 of M7 OPENMV work?

Postby iabdalkader » Fri Nov 17, 2017 7:59 am

Hi, please try the latest firmware release (2.6)
User avatar
rommel
Posts: 12
Joined: Tue Jul 11, 2017 5:42 pm

Re: How can uart1 of M7 OPENMV work?

Postby rommel » Mon Nov 20, 2017 1:24 pm

Thanks, I have verified UART1 working with v2.6.0

:geek: :ugeek:

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest