I’m working with the new Sodaq SARA for a school project. The SARA is really cool, but I’m a bit confused about the GROVE sensor ports. Are they only digital, or only analog, or do I need to code something special to use one sensor or another?
When I connect the sound sensor to the right-hand Grove port and use the most basic code provided by Seedstudio (only changed the pin to A7, and replace Serial with SerialUSB) - it seems to work: the numbers are higher when there is sound in the testing room. Awesome!
But now I’m connecting the dust sensor to the same port, and also using the most basic code from Seedstudio. Changed the pin to A7 and replaced Serial with SerialUSB. That does not work: the result is always 0. Just like when you don’t connect any sensor at all.
The dust sensor does work. When i’m manually connecting the black Grove-cable to GND, the red one to 5V and the yellow one to D8 on the SARA, I do get values.
But why doesn’t it work on the default Grove-ports?
I think it has something to do with analog/digital. Can I configure the Grove-ports on the SARA for this? Or are they analog/digital only?
Bonus question: let’s say I want to add 3 Grove sensors.
Is there hardware available for adding more Grove-ports? What would happen if I connect a Grove sensor-hub like this: https://www.kiwi-electronics.nl/grove-i2c-hub ? What sensors can I connect then and which pin do I need to use?
As for the extension board, the i2c hub makes no sense if you’re not going to use i2c devices.
The base shield you selected will suffice .
As to why the dust sensor does not work when you select A7, I can’t really tell as I can’t seem to reproduce your error.
I can read digital values fine with A7.
Could you include a picture and the code?
Thank you Thom! You’re really helping me here!
Don’t know why, but i thought the left-hand Grove port (top one on your image) would be A6 and the right-hand one (bottom one on the image) A7 Stupid of me but I warned you that I’m a n00b haha
But now I understand: you can use the lower Grove-port for analog and digital sensors, and the upper one for I2C devices (the hub is also only for I2C)
If I want more analog or digital Grove sensors, I need to add the Grove shield.