support of INA219 and ADS1115
Moderators: Voyager, BertB, grovkillen, Stuntteam, LisaM
support of INA219 and ADS1115
Hi,
1. for one of my projects I would need support of INA219 (voltage and current) as well as ADS1115 (ADC).
2. As the ADS1115 is limited on 4 addresses it also would be helpful if i could Setup 2 or 3 separate i2c Interfaces instead of just one - is this anyhow possible. It would make life easier, because I don't know how to use upyeasy/espeasy with an i2c multiplexer...
Can someone help on that?
best regards and thanks
Karl
1. for one of my projects I would need support of INA219 (voltage and current) as well as ADS1115 (ADC).
2. As the ADS1115 is limited on 4 addresses it also would be helpful if i could Setup 2 or 3 separate i2c Interfaces instead of just one - is this anyhow possible. It would make life easier, because I don't know how to use upyeasy/espeasy with an i2c multiplexer...
Can someone help on that?
best regards and thanks
Karl
Re: support of INA219 and ADS1115
Hi,
I have no clue how to get these sensors supported... can anyone help?
regards
karl
I have no clue how to get these sensors supported... can anyone help?
regards
karl
Re: support of INA219 and ADS1115
I think its not easily possible, but has been discussed on github. https://github.com/letscontrolit/ESPEas ... =multiplex
time beeing, I would go with multiple ESPs to achieve funciontality
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8
Re: support of INA219 and ADS1115
hi
You are talking just about the multiplexer...
isn’t upyeasy different to espeasy in general?
Regards
Karl
You are talking just about the multiplexer...
isn’t upyeasy different to espeasy in general?
Regards
Karl
Re: support of INA219 and ADS1115
Yes, sorry I got here by "active toics" and didn't see its about upyeasy. Haven't had time to try that yet... so nerver mind
![Lach :)](./images/smilies/icon_e_smile.gif)
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8
Re: support of INA219 and ADS1115
The ESP32 micropython has 1 hardware i2c bus (d21/d22, who don't need pullups) and as many software i2c busses as you have dx ports. The difference between the two is the maximum speed at which the i2c can operate, the hardware one is capable of going much faster (unless you do a hardware remap).karl222 wrote: ↑25 Mar 2018, 21:53 Hi,
1. for one of my projects I would need support of INA219 (voltage and current) as well as ADS1115 (ADC).
2. As the ADS1115 is limited on 4 addresses it also would be helpful if i could Setup 2 or 3 separate i2c Interfaces instead of just one - is this anyhow possible. It would make life easier, because I don't know how to use upyeasy/espeasy with an i2c multiplexer...
Can someone help on that?
best regards and thanks
Karl
But... why the need for two i2c busses? Looks to me like overhead! The i2c address for the ADS1115 is 0x72 + 0x73 and the address for the INA219 is 0x40 so there should be only need for one i2c bus.
Both have micropython libs:
https://github.com/chrisb2/pyb_ina219
https://github.com/robert-hh/ads1x15
Cheers,
Lisa
Re: support of INA219 and ADS1115
Hi lisa,
Thx for your input!
I am thinking of an application where I need more than 16 adc‘s but I can split up in two or more esp32.
Sorry for the dumb question but How do I get upyeasy running with those libs? Just copy paste (to where) or do I have to compile something (which I’m not capable of
)
Best
Karl
Thx for your input!
I am thinking of an application where I need more than 16 adc‘s but I can split up in two or more esp32.
Sorry for the dumb question but How do I get upyeasy running with those libs? Just copy paste (to where) or do I have to compile something (which I’m not capable of
![Verward :?](./images/smilies/icon_e_confused.gif)
Best
Karl
Re: support of INA219 and ADS1115
You could just buy/build this, https://www.raspberrypi.org/forums/view ... hp?t=64503, since the MCP23017 has a standard ESPEasy plugin...karl222 wrote: ↑18 Apr 2018, 10:51 Hi lisa,
Thx for your input!
I am thinking of an application where I need more than 16 adc‘s but I can split up in two or more esp32.
Sorry for the dumb question but How do I get upyeasy running with those libs? Just copy paste (to where) or do I have to compile something (which I’m not capable of)
Best
Karl
Re: support of INA219 and ADS1115
But is the ltc2499 supported by espeasy either...?
Ltc2499 is really cool but it also lacking in nodered support...
Reards
Karl
Ltc2499 is really cool but it also lacking in nodered support...
Reards
Karl
Re: support of INA219 and ADS1115
But is the LTC2499 supported by espeasy? Haven’t seen that in the wiki...
Re: support of INA219 and ADS1115
The LTC2499 is connected to the MCP23017 and the latter is supported by ESPEasy!
The link above also has the gerber files, so you could simply have the pcb made by an online pcb maker.
I also downloaded and attached the zip file here which also contains the BOM.
Or you can order it here: https://oshpark.com/shared_projects/zHmwP8eC
![Knipoog ;)](./images/smilies/icon_e_wink.gif)
Cheers,
Lisa
- Attachments
-
- TempController.zip
- (48.71 KiB) Downloaded 625 times
Re: support of INA219 and ADS1115
Oh
Thx for that!
Thx for that!
Re: support of INA219 and ADS1115
Maybe I‘m too dumb for that. I checked the espeasy wiki on the mcp23017 https://www.letscontrolit.com/wiki/index.php/MCP23017
How the hell can I read analog values via the mcp23017 when a ltc2499 is connected to it.
I would use udp as a protocoll for sending data. In that case, following schematics of the pcb attached by you, are then analog values pushed to udp... this seems too easy going to me
Best
Karl
How the hell can I read analog values via the mcp23017 when a ltc2499 is connected to it.
I would use udp as a protocoll for sending data. In that case, following schematics of the pcb attached by you, are then analog values pushed to udp... this seems too easy going to me
![Erg Blij :D](./images/smilies/icon_e_biggrin.gif)
Best
Karl
Re: support of INA219 and ADS1115
At closer look, i can see why it's confusing. The board provides both analog inputs through the ltc2499 AND digital inputs through the mcp23017...karl222 wrote: ↑24 Apr 2018, 11:28 Maybe I‘m too dumb for that. I checked the espeasy wiki on the mcp23017 https://www.letscontrolit.com/wiki/index.php/MCP23017
How the hell can I read analog values via the mcp23017 when a ltc2499 is connected to it.
I would use udp as a protocoll for sending data. In that case, following schematics of the pcb attached by you, are then analog values pushed to udp... this seems too easy going to me![]()
Best
Karl
![Beschaamd :oops:](./images/smilies/icon_redface.gif)
The ltc2499 can communicate directly using i2c so the mcp23017 is not needed then. That would require you to write a ltc2499 uPyEasy (micropython) plugin using I2C...
Re: support of INA219 and ADS1115
Hahahahahahahaha, you are funny. I‘d rather climb the mounteverest as I do the programming of a plugin ![Erg Blij :D](./images/smilies/icon_e_biggrin.gif)
![Erg Blij :D](./images/smilies/icon_e_biggrin.gif)
Re: support of INA219 and ADS1115
Well, in that case you'll need one ESP per 16 channels (4x ADS1115 I2C per ESP). Since it requires switching I2C addresses, essentially building a new communication channel to the ADS115 for retrieving sampled analog data, sampling rate might not be optimal.
Re: support of INA219 and ADS1115
I assume sample rate is set by default?
I don’t mind, I’m happy with a value every second... as i send it from esp to nodered via mqtt, it doesn’t matter.
Regards
Karl
But support of INA219 would make me happy on esp32 still![Lach :)](./images/smilies/icon_e_smile.gif)
I don’t mind, I’m happy with a value every second... as i send it from esp to nodered via mqtt, it doesn’t matter.
Regards
Karl
But support of INA219 would make me happy on esp32 still
![Lach :)](./images/smilies/icon_e_smile.gif)
Who is online
Users browsing this forum: No registered users and 12 guests