-
Notifications
You must be signed in to change notification settings - Fork 12
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
dfrobot _ina 219 #2
Comments
I have that same problem. Now i test what you found. |
I have the same problem. Could you add better documentation? |
Just look for common library and example for raspi ina219 ic, the moded code I ve losted. Now use current to voltage analog. I'll put moded code if I LL found on computer. Good luck |
@cristeamihai Thanks for your help. I've found library and the code works.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the provided code is not working with python either python 3
error get when python
pi@raspberrypi:~/DFRobot_INA219/Python/RespberryPi $ python get_voltage_current_power.py
Traceback (most recent call last):
File "get_voltage_current_power.py", line 29, in
while not ina.begin():
File "/home/pi/DFRobot_INA219/Python/RespberryPi/DFRobot_INA219.py", line 69, in begin
self.set_bus_ADC(self.adc_bits_12, self.adc_sample_8)
File "/home/pi/DFRobot_INA219/Python/RespberryPi/DFRobot_INA219.py", line 118, in set_bus_ADC
if(bits < adc_bits_12 and sample > adc_sample_1):
NameError: global name 'adc_bits_12' is not defined
found working code at pi-ina219 1.3.0
The text was updated successfully, but these errors were encountered: