multiple i2c devices

309 views
Skip to first unread message

Steve Kwee

unread,
Jan 14, 2022, 8:38:53 PM1/14/22
to TasmotaUsers
Hi,
this must have been asked often, but i cannot find the solution...
I have two i2c devices: a BMP680 (i2c 0x77) and a SCD30 (i2c 0x61) on an i2c bus on a Wemos D1 mini running the sensors binary.

Both sensors are detected and i get readings and mqtt messages for each of the sensors, when only one of them is connected to the i2c bus.

When both are connected i still get readings but only from one sensor.
i2scan tells me that both sensors are detected:
{"I2CScan":"Device(s) found at 0x61 0x77"}
but console and mqtt messages are only sent for one of the sensors.

I have seen videos simply connecting multiple i2c sensors and they are shown in the main tasmota screen an send mqtt messages without any further configuration.
what am i missing ?

Cheers
Steve

Philip Knowles

unread,
Jan 14, 2022, 11:50:50 PM1/14/22
to Steve Kwee, TasmotaUsers
It's a while since I setup my I2C devices but I seem to remember having to use I2CDriver<x> to enable multiple drivers.
If I get a chance later I'll see if I can find it.

Regards

Phil K


From: sonof...@googlegroups.com <sonof...@googlegroups.com> on behalf of Steve Kwee <steve...@gmail.com>
Sent: Saturday, January 15, 2022 1:38:53 AM
To: TasmotaUsers <sonof...@googlegroups.com>
Subject: multiple i2c devices
 
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/43654672-8e6c-48ab-a4e3-0bd4410418c2n%40googlegroups.com.

Steve Kwee

unread,
Jan 15, 2022, 1:41:56 PM1/15/22
to TasmotaUsers
Hi Phil,
thanks a lot!
The explicit command that worked was:
enable: "i2cdriver10 1"
disable: "i2cdriver10 0"
to control a bme680. It's in the docs here https://tasmota.github.io/docs/I2CDEVICES/.
Seems a bit weired to me, that there is not space between the command and the first parameter.

Regards 
Steve K

Philip Knowles

unread,
Jan 15, 2022, 11:29:28 PM1/15/22
to Steve Kwee, TasmotaUsers
It's the same with most of the commands. The command is I2CDriver10 (like Power2)
Sent: Saturday, January 15, 2022 6:41:55 PM
To: TasmotaUsers <sonof...@googlegroups.com>
Subject: Re: multiple i2c devices
 
Reply all
Reply to author
Forward
0 new messages