You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()
The text was updated successfully, but these errors were encountered:
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}")
if name == "main":
main()
The text was updated successfully, but these errors were encountered: