![]() So my question is, do I need to go in and change libraries to adapt them for the dual i2c ports on the e-series? Or possibly not use libraries at all? I am much more well-versed in hardware than firmware, so some resources on how to use i2c without libraries would be very appreciated. Any sparkfun libraries we use work, but the sgp30’s adafruit libarary did not work. ![]() I saw in one place that Adafruit libraries assume a singluar i2c port, which messes things up with the e-series board’s two i2c ports. When running the SAME CODE all of the sensors output good data. (I hooked it up to either the 5V or 3.3V bus). Now here’s the weird part: I hooked up an arduino to the particle board’s VCC, GND, SCL, and SDA lines, while holding the RESET button on the particle board. They output errors when trying to begin the connection. When running an i2c scanner, I find the address and sensor, but not even the example codes will work. For instance, we are using an SGP30 with a logic level shifter to get it from its 1.8V supply to the 3.3V i2c bus. My main problem is that some of the sensors show up on the i2c scanner, but wont send data. I have been having troubles with these, but I’ve seen the other community discussions about this. I mistakenly wired the 3.3V i2c sensors to one i2c port (D0 & D1, wire) and the 5V sensors to the other i2c port (C4 & C5, wire1). I’m making a device using the particle e-series and a bunch of air sensors.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |