Search found 60 matches

by jcf
Fri May 05, 2023 6:39 am
Forum: Drivers for External Components
Topic: Micropython library for the TI INA219 voltage/current sensor
Replies: 26
Views: 168236

Re: Micropython library for the TI INA219 voltage/current sensor

I have started a thread INA226 on the Github forum
by jcf
Tue May 02, 2023 9:47 am
Forum: Drivers for External Components
Topic: Micropython library for the TI INA219 voltage/current sensor
Replies: 26
Views: 168236

Re: Micropython library for the TI INA219 voltage/current sensor

Oh, I'm sorry, I noticed just now that I have added some confusion to this discussion. I found this topic when looking for an INA226 lib. And I found yours, Chris. Somewhere under this topic there is a mention of the 226, I mentioned it too in my post. But you, Chris, spoke of the 219, I think? Ever...
by jcf
Tue May 02, 2023 9:38 am
Forum: Drivers for External Components
Topic: Micropython library for the TI INA219 voltage/current sensor
Replies: 26
Views: 168236

Re: Micropython library for the TI INA219 voltage/current sensor

Hi Chris, on page 16 you have a table where a resolution of 2.5uV is mentioned for the shunt register. Also on page 24 they say Full scale = 81.92mV and LSB = 2.5uV I do not see where you find 10uV on p.5. Anyway, this datasheet is a mess! Totally confusing! Probably you should raise an issue agains...
by jcf
Tue May 02, 2023 8:15 am
Forum: Drivers for External Components
Topic: Micropython library for the TI INA219 voltage/current sensor
Replies: 26
Views: 168236

Re: Micropython library for the TI INA219 voltage/current sensor

I discovered a bug in the library: @property def shunt_voltage(self): """The shunt voltage (between V+ and V-) in Volts (so +-.327V)""" # no, +-80mV! value = _to_signed(self._read_register(_REG_SHUNTVOLTAGE)) # The least signficant bit is 10uV which is 0.00001 volts # NO!! It is 2.5uV # return value...
by jcf
Mon May 01, 2023 7:06 pm
Forum: Drivers for External Components
Topic: Micropython library for the TI INA219 voltage/current sensor
Replies: 26
Views: 168236

Re: Micropython library for the TI INA219 voltage/current sensor

Now as I wanted to document my work I noticed that I had done an error when calculating the Calibration value. I have Rs = 0.002 Ohm and Imax = 15A. That gives 0.5mA (rounded) for Current_LSB and 12.5mW for Power_LSB. From that I deduce CAL = 5.12mV / (Current_LSB) = 5.12/ (0.5 * 0.002) = 5120 With ...
by jcf
Sat Apr 29, 2023 9:29 am
Forum: Drivers for External Components
Topic: Micropython library for the TI INA219 voltage/current sensor
Replies: 26
Views: 168236

Re: Micropython library for the TI INA219 voltage/current sensor

Hi Chris, thanks a lot for the INA226 driver, and especially for the example in the code. If I had seen that at the beginning I could have progressed much faster! The datasheet is a pain to read, very confusing, mixing register values and electrical values, neglecting the units etc. Once I had disco...
by jcf
Mon Jan 16, 2023 4:52 pm
Forum: Drivers for External Components
Topic: Driver for ENC28J60 Ethernet chip
Replies: 7
Views: 80385

Re: Driver for ENC28J60 Ethernet chip

Thanks for your driver! I got it to work with my chip. However I have not enough knowledge (or maybe it is not possible / not easy) to make the Pico work like a PicoW, with the difference that it would be connected by cable. Not to speek of doing MQTT ... What would be needed is what is in the netwo...
by jcf
Fri Sep 30, 2022 9:03 am
Forum: ESP32 boards
Topic: SPI is not working with Infineon current sensor TLI4970
Replies: 2
Views: 20289

Re: SPI is not working with Infineon current sensor TLI4970

@ujur007
Have you got your sensor to work?
I have just now looking at a TLI4790 I had lying around and was wondering if there is a lib for it.
by jcf
Mon Sep 26, 2022 1:55 pm
Forum: Raspberry Pi microcontroller boards
Topic: Pico Mounting SD Card
Replies: 41
Views: 194061

Re: Pico Mounting SD Card

For my Analog logger project I always use this sequence:
- open file
- write data
- close file.

The idea was to avoid corrupt files.
Is there any inconvenient when doing it like this with an SD card?
by jcf
Mon Sep 26, 2022 1:41 pm
Forum: Raspberry Pi microcontroller boards
Topic: Pico Mounting SD Card
Replies: 41
Views: 194061

Re: Pico Mounting SD Card

That's what I thought. So it is not needed.