Having issues with a raspberry pi pico #11
Replies: 11 comments 1 reply
-
Hi Ibrahim, Are you using a genuine Maxim sensor? The values seem ok, but keep in mind that their magnitude depend on the sensor's configuration, that you have to tune based on your use case. Also, did you load your project on the board, or executed main.py "on the fly"? Please follow the instructions given in the README.md, here if you haven't before. |
Beta Was this translation helpful? Give feedback.
-
I believe I am using a genuine sensor, is there anyway for me to tell? |
Beta Was this translation helpful? Give feedback.
-
Do you have a link to a shop webpage? Did you load your project on the board, or executed main.py "on the fly"? Have you tried ti simply reset the board with reset button? |
Beta Was this translation helpful? Give feedback.
-
I run main.py 'on the fly', I use pico-go on vscode you see, it has a run button |
Beta Was this translation helpful? Give feedback.
-
Ok, I suggest you to upload the files as described in the README, and then to press the reset button. Otherwise, we can't be sure that everything is running well. (Using pico-go you should use the 'Upload' feature.) The sensor seems a clone to me. You can check it by following these hints. |
Beta Was this translation helpful? Give feedback.
-
I am having quite a bit of trouble doing so. Getting your example to work I mean Edit: Scratch that, I think I found the issue! |
Beta Was this translation helpful? Give feedback.
-
Hi, I am using this driver since more than a year. I always used the latest micropython version, which now is 1.18. Provided that you set the correct i2c pins, of you upload the Feel free to ask anything, |
Beta Was this translation helpful? Give feedback.
-
I just need to ask about one thing |
Beta Was this translation helpful? Give feedback.
-
Hi, MAX30105 and MAX30102 are very similar; the 105 packs 3 LEDs (red, green, ir) while the 102 does not provide a green led. This library is a port of MAX30105 library, and I had the chance to test it only on max30102 sensor. This is why you see references to max30105. You're reinvent the wheel. If you reead the first lines of this repo's readme, you'll see that this is a port of a C driver. You should just use the sparkfun driver. These drivers just interface with the sensor module through i2c. To understand how it works, you should take a look to Maxim MAX30102 datasheet. I'll close this issue and convert it to a discussion, have a nice day. |
Beta Was this translation helpful? Give feedback.
-
I see, will the sparkfun sdk work with the pico c/c++ sdk though? I thought it relied on the arduino sdk |
Beta Was this translation helpful? Give feedback.
-
As I said before, you only need to "talk" with the module through I2C bus. Thus, you do need a library that enables you to implement a I2C communication over I2C pins. Down-to-earth, here they use TwoWire; you should replace it with something suitable for Raspberry Pi Pico (this, I suppose). |
Beta Was this translation helpful? Give feedback.
-
I'm using a Raspberry Pi Pico running micropython.
I have the device attached on the hardware I2C pins and I pass through the instance just fine
Sensor setup works. However I can't seem to read any actual data from it
Using the example you have given I get strange errors, most are related to strings in the check function, for example:
Other times, I get a few readings then it just freezes.
I have tried with check() and safe_check()
Both give the same result
Also the readings I get are like this:
Are they normal for this sensor?
Beta Was this translation helpful? Give feedback.
All reactions