(read failed: [Errno 6] Device not configured)

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
Yadnik
Posts: 65
Joined: Thu May 13, 2021 6:01 am

(read failed: [Errno 6] Device not configured)

Post by Yadnik » Tue Aug 03, 2021 8:29 pm

I am running an Ultrasonic sensor on the UART protocol.The code for it can be seen as follows:https://github.com/Yadnik1/Ultrasonic-U ... %20uart.py
The program returns:
U0
U0
U0
followed by:
Connection lost (read failed: [Errno 6] Device not configured)
I am trying to run the Ultrasonic 2 click: https://www.mikroe.com/ultrasonic-2-click on the UART protocol using the Zephyr port of MicroPython.Can someone please tell me what is going wrong in program that it does not return numeric values but returns U0.
Thank you very much!!

Post Reply