Replies: 3 comments 9 replies
-
What is the error that you see? |
Beta Was this translation helpful? Give feedback.
-
Here the board! |
Beta Was this translation helpful? Give feedback.
-
I found a way to read and write on the chip assigning the registries as you can see in the picture. I just cannot catch why it's Reg=0x05 =b0100 if the registry should be 0x04. This happens in all input infact they are all 1bit more....Why? |
Beta Was this translation helpful? Give feedback.
-
Hello everybody,
i'm open this topic coz i wanna read the analog value from a i2c 8bit A/D D/A converter, PCF8591.
Now here is the point: the pcf8591 has 4 analog IN and one analog OUT, actually is commonly used in Arduino, but in the past MINDSENSOR sold a general purpose board for MINDSTORM NXT (a sort of kit!) using this chip (and also the digital version PCF8574, with 8 digital I/O). Actually i already used it with NXT and NXC programming languages, without much issues, now my targert is to use it with EV3 and micropython programming. Of course i'm not a proper programmer and surely i'm a "new user" in Python but i i'd like to experiment some generic sensor to propose in my robot class. Ok then:
i tried a software:
then after this "effort" i'm stucked! I don't know how to print the value (wich should assign to a variable!), whatever in the Console or thru the EV3 display, infact if i assign a variable such as analog0 = device.read(.....), it gives a error (of course). I guess i've to create a Class...but actually i'm not clear how to move on!
Maybe somebody already work around this issue in case please let me undestand how to do :)
Appreciate
Beta Was this translation helpful? Give feedback.
All reactions