Hey, I am currently using Itsybitsy nrf52840 with OLED and ADC module. There are times it runs without issues, and times when I get the issue with response below.
Not sure how to resolve this??
OSError: Errno 19 Unsupported operation
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- RainySun
- Posts: 73
- Joined: Thu Nov 18, 2021 2:55 pm
OSError: Errno 19 Unsupported operation
- Attachments
-
- Current Issue.JPG (65.77 KiB) Viewed 201 times
- adafruit_support_carter
- Posts: 29168
- Joined: Tue Nov 29, 2016 2:45 pm
Re: OSError: Errno 19 Unsupported operation
Most likely an intermittent connection issue.
What ADS1x15 breakout are you using and how is it connected to the Itsy?
What ADS1x15 breakout are you using and how is it connected to the Itsy?
- RainySun
- Posts: 73
- Joined: Thu Nov 18, 2021 2:55 pm
Re: OSError: Errno 19 Unsupported operation
I am using ADS1115 - https://www.adafruit.com/product/1085, and I have connected SCL and SDA pin of Itsy bitsy nrf52840 to SCL and SDA of ADS1115 and using A0 of ADS1115.
- adafruit_support_carter
- Posts: 29168
- Joined: Tue Nov 29, 2016 2:45 pm
Re: OSError: Errno 19 Unsupported operation
SCL/SDA are the I2C pins to use, but could be something specific to your setup. Please post a photo of your setup showing how everything is connected and we'll take a look.
- RainySun
- Posts: 73
- Joined: Thu Nov 18, 2021 2:55 pm
Re: OSError: Errno 19 Unsupported operation
Hey, Attached below is my current schematic.
I have just realized that the issue could be related to logic level incompatibility.
ADS1115 is powered by a 5V supply; not sure if that would cause the logic level to be 5V as well...
I bought the OLED from https://www.waveshare.com/1.5inch-oled-module.htm
It is 3.3V compatible, and can be powered with a 5V supply.
Schematic of OLED: https://www.waveshare.net/w/upload/a/a3 ... ematic.pdf
I will try to add a Logic level birdirection 3.3V to 5V converter between Itsy bitsy nrf52840 and ADS1115, and see if that fixes the issue.
If there is anything I am missing, please let me know.
I have just realized that the issue could be related to logic level incompatibility.
ADS1115 is powered by a 5V supply; not sure if that would cause the logic level to be 5V as well...
I bought the OLED from https://www.waveshare.com/1.5inch-oled-module.htm
It is 3.3V compatible, and can be powered with a 5V supply.
Schematic of OLED: https://www.waveshare.net/w/upload/a/a3 ... ematic.pdf
I will try to add a Logic level birdirection 3.3V to 5V converter between Itsy bitsy nrf52840 and ADS1115, and see if that fixes the issue.
If there is anything I am missing, please let me know.
- Attachments
-
- I2C.PNG (557.75 KiB) Viewed 135 times
- adafruit_support_carter
- Posts: 29168
- Joined: Tue Nov 29, 2016 2:45 pm
Re: OSError: Errno 19 Unsupported operation
Please follow this guide:
https://learn.adafruit.com/adafruit-4-c ... s/overview
and connect only the ADS1115 to your setup per the wiring shown here:
https://learn.adafruit.com/adafruit-4-c ... cuitpython
and then try the simpletest example from the library:
https://github.com/adafruit/Adafruit_Ci ... pletest.py
https://learn.adafruit.com/adafruit-4-c ... s/overview
and connect only the ADS1115 to your setup per the wiring shown here:
https://learn.adafruit.com/adafruit-4-c ... cuitpython
and then try the simpletest example from the library:
https://github.com/adafruit/Adafruit_Ci ... pletest.py
- RainySun
- Posts: 73
- Joined: Thu Nov 18, 2021 2:55 pm
Re: OSError: Errno 19 Unsupported operation
I used a logic level converter 3.3V to 5V on ADS1115, and it worked.
I tested the ADS1115 without the logic level converter on a new breadboard, and that worked as well.
I guess the "Errno 19 Unsupported Operation" was likely due to a connection issue.
Thank you
I tested the ADS1115 without the logic level converter on a new breadboard, and that worked as well.
I guess the "Errno 19 Unsupported Operation" was likely due to a connection issue.
Thank you
Please be positive and constructive with your questions and comments.