[SOLVED] "Error" when running Ultrasonic_And_Relay.py

So I’m trying to follow the tutorial that the GrovePi Kit came with and I tried running the ultrasonic and relay code.

However, when I ran it, it just showed “Error” repeatedly down my terminal.

My ultrasonic sensor also gets REALLY warm after a few seconds when running the code.
Is there a bug with the code or is my ultrasonic ranger faulty?

Hi @amanda.anicete,

It might be that you don’t have the firmware flashed to your GrovePi. Do the following things in a terminal:

cd /home/pi/Dexter/GrovePi/Firmware
bash firmware_update.sh

This will flash the firmware onto your GrovePi.

After you do this, please give this script another go and see if it works.

Thank you!

It worked! Thank you very much!