Closed lemorage closed 3 months ago
Hi, have you checked the pins? they should not be in conflict.
Is your question with multiple scd4x on the same bus or other sensors? I²c only allows one same address per bus. Scd41 is 0x62. If you have two devices replying to a query, CRC issues are expected unless they both reply the exact same answer. I didn't see how to reconfigure the address but you can use another bus if available or otherwise use a multiplexer device.
Yes, exactly. I have more than one sensor on the same bus, and scd41 is 0x62 by default. They get into conflicts when I try to run the example code. I know we could change the I2C address using a multiplexer, but can we also change the address in our program?
Hello @lemorage , You are not the first person to request an example using several sensors. We unfortunately did not find the tie yet to do it. I will try to push it out of the backlog.
The general rule for using several of the same sensor:
I hope it helps Quentin
@qfisch Cool, I'll try to see if these options solve the problem, anyway it seems this must be something related to the hardware stuff, not something we can do through programming.
Look forward to any updates on the progress.
Hello @lemorage ,
We finally released an article on Hachster.io about that topic. There is even an attached example code that can be used and modified for your project.
I hope it will help you, Q
The example usage code is quite great for newbies, however, after I connected more than one sensor to the Arduino board, my program crashed. And the provided error log is "Wrong CRC Found", which makes me lose my head. I wonder if there will be some example code to show how to interact with multiple sensors?