03-31-2024 10:04 PM
I am currently trying to build an I2C interface between USB8452 with any slave devices for product testing. Currently I have finished a python code for trying out the I2C communication between the USB8452 and arduino UNO as my slave just to test the code if it's working or not. However, I came across this error -301742 when running my code in VScode. Can anyone help me or check if there's any error in my code. I have provided the python code and also the arduino setup along with this message. Thank you.
04-01-2024 02:44 AM
Update! I already know what seems to be the problem here. It is the pull-up resistor, I thought that the NI USB8452 default would be to enable its internal pull-up resistor but in actuality we must enabled it manually. So, the question is how do I enable it through python? There is no documentation on the C API of the NI USB8452. Also, to put the resistor externally seems to be very difficult since I used the USB cable connected to my laptop for both the Arduino and the USB8452 as their main power source.