Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error in WCMCU-200 I2c to USB Adapter #869

Open
Kishsan689 opened this issue Jul 12, 2024 · 0 comments
Open

Getting error in WCMCU-200 I2c to USB Adapter #869

Kishsan689 opened this issue Jul 12, 2024 · 0 comments
Labels
New Board Request This is a request for a new board to be supported.

Comments

@Kishsan689
Copy link

Dear All,

I am using WCMCU-200 I2c to USB adapter to ADS1115 data on Computer using python ..

Getting Error Even Installing all Library Please Help us..

Error Traceback (most recent call last):
File "C:\Users\radia\PycharmProjects\pythonProject19\main.py", line 2, in
import board
File "C:\Users\radia\PycharmProjects\pythonProject19\venv\Lib\site-packages\board.py", line 433, in
raise NotImplementedError(
NotImplementedError:
Adafruit-PlatformDetect version 3.72.0 was unable to identify the board and/or
microcontroller running the Windows platform. Please be sure you
have the latest packages by running:
'pip3 install --upgrade adafruit-blinka adafruit-platformdetect'

Python Code ....

import time
import board
import busio
import adafruit_ads1x15.ads1115 as ADS
from adafruit_ads1x15.analog_in import AnalogIn

i2c = busio.I2C(board.SCL, board.SDA)

ads = ADS.ADS1115(i2c)

chan = AnalogIn(ads, ADS.P0)

def main():
try:
while True:
# Read the raw ADC value
raw_value = chan.value
print(f"Raw ADC Value: {raw_value}")

        voltage = chan.voltage
        print(f"Voltage: {voltage:.3f}V")

        time.sleep(1)

except KeyboardInterrupt:
    print("Program stopped by user")

if name == "main":
main()

@Kishsan689 Kishsan689 added the New Board Request This is a request for a new board to be supported. label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Board Request This is a request for a new board to be supported.
Projects
None yet
Development

No branches or pull requests

1 participant