RasPi 4 + Grove TDS sensor code (No module named grove.adc)

Hi everyone,

I’m really new, so please forgive me if I’m asking a dumb question. I got my Grove Base HAT connected to my RasPi 4 and I’m trying to set up Grove TDS sensor. I’m following this tutorial: https://wiki.seeedstudio.com/Grove-TDS-Sensor/#play-with-raspberry-pi

and I get this error: ModuleNotFoundError: No module named ‘grove.i2c’

I cannot find this module in plug-ins.

P.S. I have a Grove Tem&Humidity sensor running through the HAT and had no problem with that one.

I would appreciate any advice!

Thank you!

Hi @elenfoxx, This is because you don’t’ have the python module named ‘grove/i2c’, and you can install it with the grove py package.

You can install the latest grove.py by

curl -sL https://github.com/Seeed-Studio/grove.py/raw/master/install.sh | sudo bash -s -

After installing the grove.py can you try to run your code, if you still have the error, please share the code and error log. Thanks :slightly_smiling_face:

@salman Thank you so much for a quick reply! I will try it Tuesday when I get to my office Pi!

@elenfoxx did you get it working?
if so, did you compare the ppm result with an other TDS meter?

Hi @elenfoxx
I had the same problem with you today, which prompted ModuleNotFoundError: No module named ‘grove.i2c’.
The reason is after I use “git clone https://github.com/Seeed-Studio/grove.py” to clone the grovepy, I forget to use

# Python2
sudo pip install .
# Python3
sudo pip3 install .

I did get it working, but I didn’t compare it to any other probes yet. I can compare the readings to a Vernier TDS probe and see if they match. That would be interesting to see!

hi,

it would be nice if you share the results. i am very curious :slight_smile: