SparkFun Forums 

Where electronics enthusiasts find answers.

Topics pertaining to the Arduino Core & software used with the Artemis module and Artemis development boards.
User avatar
By DavidHilsabeck
#209334
When I run this sketch with nothing connected to the board, I get this:
SparkFun Arduino Apollo3 Wire Example (I2C Scanner)
Compiled on Nov 5 2019, 22:12:01

Scanning...
Unknown error at address 0x01
Unknown error at address 0x02
Unknown error at address 0x03
Unknown error at address 0x04
...
Unknown error at address 0x7E
No I2C devices found
Do I need to set up something different? I get the same output when I connect my Qwiic Scale board.
#209381
I just tried it with a BME280 sensor connected to SDA/SCL and it works OK. I don't have a Qwiic board to try. So check your wiring and make sure everything's 3.3V compatible.
To be clear I'm using a standard Artemis Redboard, though it shouldn't matter.

Unknown error at address 0x74
Unknown error at address 0x75
I2C device found at address 0x76 !
Unknown error at address 0x77
Unknown error at address 0x78
Unknown error at address 0x79
Unknown error at address 0x7A
Unknown error at address 0x7B
Unknown error at address 0x7C
Unknown error at address 0x7D
Unknown error at address 0x7E
done
#209394
The schematic shows the Quiic connector attached to pad D39/D40, same as the labeled SDA/SCL connectors. Just after the 'include wire.h', you could try adding this line to make sure it's using the right connections, though it shouldn't be necessary:
TwoWire myWire(4); //Will use pads 39/40, pins labeled SCL/SDA on BlackBoard Artemis
 Topic permissions

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum