[Solved] Multiple i2c devices ...
Moderators: grovkillen, Stuntteam, TD-er
[Solved] Multiple i2c devices ...
Hi, I wonder how to address multiple devices on I2C bus
For dallas ds18b20, there is an option under tasks - "Device Nr", but there is nothing for other I2C devices (INA219 or ADS1115).
Maybe it is not implemented yet ?
For dallas ds18b20, there is an option under tasks - "Device Nr", but there is nothing for other I2C devices (INA219 or ADS1115).
Maybe it is not implemented yet ?
Last edited by simeonof on 13 Feb 2016, 22:20, edited 1 time in total.
Re: Multiple i2c devices ...
Selecting addess for INA219 is not implemented, only 0x40 is available.
Only OLED and LCD displays have a selectable address so you can connect 2 OLED's of LCD displays
Only OLED and LCD displays have a selectable address so you can connect 2 OLED's of LCD displays
Re: Multiple i2c devices ...
having a selectable I2C address would be useful for MCP23017 + PCF8574
I have a board which I was using with my Pi which has 2 x MCP23017 address 0x20 / 0x21
I have a board which I was using with my Pi which has 2 x MCP23017 address 0x20 / 0x21
Re: Multiple i2c devices ...
i would appreciate if there was an address field in the task list where you can define the address of the specified device manually.
Re: Multiple i2c devices ...
You can just use the port numbers to address both devices. These will be 1-32 in your situation. I've added the table in the Wiki page:hamster wrote:having a selectable I2C address would be useful for MCP23017 + PCF8574
I have a board which I was using with my Pi which has 2 x MCP23017 address 0x20 / 0x21
http://www.esp8266.nu/index.php/MCP23017#Input
Re: Multiple i2c devices ...
How can i use 32 ports when there are only 12 tasks available?Martinus wrote:You can just use the port numbers to address both devices. These will be 1-32 in your situation. I've added the table in the Wiki page:hamster wrote:having a selectable I2C address would be useful for MCP23017 + PCF8574
I have a board which I was using with my Pi which has 2 x MCP23017 address 0x20 / 0x21
http://www.esp8266.nu/index.php/MCP23017#Input
Re: Multiple i2c devices ...
This is only supported for outputs. Inputs use a high speed polling technique that will likely not work for too many ports and overload the ESP Easy.chunter1 wrote:How can i use 32 ports when there are only 12 tasks available?Martinus wrote:You can just use the port numbers to address both devices. These will be 1-32 in your situation. I've added the table in the Wiki page:hamster wrote:having a selectable I2C address would be useful for MCP23017 + PCF8574
I have a board which I was using with my Pi which has 2 x MCP23017 address 0x20 / 0x21
http://www.esp8266.nu/index.php/MCP23017#Input
I'm not even sure if it will survive 12 input tasks, has never been tested.
Re: Multiple i2c devices ...
Well... I am currently using 8 Inputs and 8 Outputs on one ESP1E which I am replacing with the one below using a 12E
(Originally I had this connected to a RPI. using MCP23s17's . These now swapped out with a MCP23017 and rewired as I2C)
Soon as I get this one back working I will try. many thanks By the way; fantastic project.I am really impressed how the improvements keep coming.. Well Done ESP EASY !
(Originally I had this connected to a RPI. using MCP23s17's . These now swapped out with a MCP23017 and rewired as I2C)
Soon as I get this one back working I will try. many thanks By the way; fantastic project.I am really impressed how the improvements keep coming.. Well Done ESP EASY !
Re: Multiple i2c devices ...
Since i took a closer look at the ESPEasy sourcecode, i think there is some potential for improvement.Martinus wrote:This is only supported for outputs. Inputs use a high speed polling technique that will likely not work for too many ports and overload the ESP Easy.chunter1 wrote:How can i use 32 ports when there are only 12 tasks available?Martinus wrote: You can just use the port numbers to address both devices. These will be 1-32 in your situation. I've added the table in the Wiki page:
http://www.esp8266.nu/index.php/MCP23017#Input
I'm not even sure if it will survive 12 input tasks, has never been tested.
I would have preferred going with the ESP8266_RTOS_SDK or esp-open-rtos much more.
However, i'm glad and thankful this project exists
Re: Multiple i2c devices ...
Feel free to launch your own repo on github and offer your support here. The more projects, the more people can achieve with this little device. ESP8266.nu is currently backed by only one project, developed by only one developer (with some plugin contributions by community members). Many people may think that this platform is only about ESP Easy and this is not correct as ESP Easy is just one sample project discussed here.chunter1 wrote:I would have preferred going with the ESP8266_RTOS_SDK or esp-open-rtos much more.
Re: Multiple i2c devices ...
Fantastic job..
2x MCP23017's working
Using ports 17 to 32 work as either inputs or outputs as does ports 1 to 16 (I'm using R78)
Many thanks
2x MCP23017's working
Using ports 17 to 32 work as either inputs or outputs as does ports 1 to 16 (I'm using R78)
Many thanks
Re: Multiple i2c devices ...
SOLVED?
i would may help others quicker if the threadstarter could mark the whole thread as SOLVED
...if it is...
i would may help others quicker if the threadstarter could mark the whole thread as SOLVED
...if it is...
Re: [Solved] Multiple i2c devices ...
Yes, it was helpfull informatinon.
But evry day I'm working with ESPEasy it pops up another problem.
Anyway I've see how many work you've done boys. Thank You again and keep the good work!
But evry day I'm working with ESPEasy it pops up another problem.
Anyway I've see how many work you've done boys. Thank You again and keep the good work!
Who is online
Users browsing this forum: No registered users and 152 guests