Skip to content

Puck.js v2.1: Why don't Accel/Mag sensors share common I2C bus? #7779

Discussion options

You must be logged in to vote

There's no particular reason other than that it makes layout easier, and it meant that if we ended up communicating with one device from an interrupt and the other outside, we don't have to worry about 'sharing' the bus.

In a way we had the pins available, so there was really no reason not to have each device with its own I2C bus.

On the Puck.js v1 we also switched power to the magnetometer (https://github.com/espruino/EspruinoBoard/blob/master/Puck.js/pdf/puckjs_sch.pdf) and in that case you can't just power off a device on the I2C bus because it'll drag the I2C lines low - but we're able to just leave everything powered on newer Puck.js

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@BraidenPsiuk
Comment options

@gfwilliams
Comment options

Answer selected by BraidenPsiuk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants