-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RPi Grove Base Hat with MM32 - I2C error #287
Comments
Update. Changing the address in the adc.py file to 0x08 does in fact work as I can run "python adc.py" and it displays values for the light sensor. So appears the address being used in my Nighlight code is not using address 0x08. Need to figure that out. |
Update. |
Thanks for the update @WesEvern. I'm going to try to get hold of the new version of this board and put some appropriate instructions in the guide. |
I've got one coming to me, so once that arrives I'll update the instructions. |
I got it working using the clues in the thread above! This is a bit of a hack, but it works in my environment now, so I'll share my experience here in case it helps others. Environment - I had installed Raspberry Pi OS in "headless" mode with the smaller install footprint. As a result, I am running VS Code on macOS as my editor, and following the instructions at Remote access to code the Pi. Here are the steps I took for my workaround:
Now it works! |
I got the same error message "Check whether I2C enabled..." when I ran the code using a Pi 3 and the just-purchased Base Hat V1.0 with the MM32 chip. Because not every part of my Grove order had arrived yet, I used the older V1.1 sensor with a CdS cell and the TI LM358 op-amp instead of the suggested grove light sensor v1.2 with photodiode. This did not make a difference since the op-amp just outputs a voltage level to the A0 port. On a headless Pi 3 with PI OS 10.0 Lite: Pre-test:
Conclusion: the ADC and drivers work because the light levels output on A0 are converted to digital by the MM32 chip BUT: Next, I loaded a full desktop OS on a Pi 4 and installed VS Code on the Pi. I followed all instructions including the detailed (Thank you Marty-Optum) to change the base address of the shield to 0x08. And the nightlight code works!! While I love using VS Code with remote deployment (WSL with Ubuntu on W10), this does not work for the project in this course. I recommend VS Code on the Pi. |
Hi, I just got my RPi Grove kit but am stuck at the Nightlight experiment.
I am getting the message Check whether I2C enabled and Grove Base Hat RPi inserted
My hat has the MM32 chip instead of the STM32 chip. I posted on the Seeed forum and they advised changing the I2C address to 0x08 in the adc.py. I did that in the /home/pi/grove/grove.py/grove but still no luck. Suggestions?
Thanks,
-Wes
The text was updated successfully, but these errors were encountered: