# Pidog RGB Strip failing

**URL:** <https://forum.sunfounder.com/t/pidog-rgb-strip-failing/2749>\
**Category:** General\
**Created:** [March 1, 2025, 3:30pm UTC](https://forum.sunfounder.com/t/pidog-rgb-strip-failing/2749 "2025-03-01T15:30:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![theo](https://avatars.discourse-cdn.com/v4/letter/t/a87d85/32.png) [@theo](https://forum.sunfounder.com/u/theo)\
**Post date:** [March 1, 2025, 3:30pm UTC](https://forum.sunfounder.com/t/pidog-rgb-strip-failing/2749/1 "2025-03-01T15:30:25Z")

</div>

Hello, my pidog fails to initialise both the rgb\_strip and imu\_sh3002, and does not perform any actions. This is the output I get if I run the 3\_patrol.py script. I also get similar failures with the other example scripts:

sudo python 3\_patrol.py  
**config\_file: /home/patri/.config/pidog/pidog.conf**  
**robot\_hat init … done**  
**imu\_sh3001 init …** fail  
**rgb\_strip init …** fail  
**dual\_touch init … done**  
**sound\_direction init … done**  
**sound\_effect init … pinctrl set 20 op dh**  
**done**  
**ultrasonic init … done**  
distance: 35.46 cm  
ERROR: ‘Pidog’ object has no attribute ‘rgb\_strip’  
Stopping and returning to the initial position …  
Quit

If I have the rgb strip and imu module connected to each other and the robot\_hat, then the pidogs servos do not function. If I just disconnect just the IMU module the servos will function. The IMU module power light never comes on when connected.

---

<div class="post-metadata">

**Author:** ![scubasizemore](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@scubasizemore](https://forum.sunfounder.com/u/scubasizemore)\
**Post date:** [October 12, 2025, 8:49pm UTC](https://forum.sunfounder.com/t/pidog-rgb-strip-failing/2749/2 "2025-10-12T20:49:19Z")

</div>

I am pretty bummed, I was setting this up for my son, got everything built and ran into this exact error and not sure why but both **imu\_sh3001 init …** fail  
**rgb\_strip init …** fail … Would really like some clarity on how to move forward

Mine shows:

**config\_file: /home/pi/.config/pidog/pidog.conf**

**robot\_hat init … done**

**imu\_sh3001 init …** fail

**rgb\_strip init …** fail

**dual\_touch init … done**

**sound\_direction init … done**

**sound\_effect init … pinctrl set 12 op dh**

**done**

**ultrasonic init … done**

ERROR: ‘Pidog’ object has no attribute ‘rgb\_strip’

Stopping and returning to the initial position …

Quit

---

<div class="post-metadata">

**Author:** ![theo](https://avatars.discourse-cdn.com/v4/letter/t/a87d85/32.png) [@theo](https://forum.sunfounder.com/u/theo)\
**Post date:** [October 13, 2025, 6:11am UTC](https://forum.sunfounder.com/t/pidog-rgb-strip-failing/2749/3 "2025-10-13T06:11:10Z")

</div>

I contacted SunFounder support, and they provided me with a replacement RGB strip. This fixed the issue for me.

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [October 13, 2025, 7:26am UTC](https://forum.sunfounder.com/t/pidog-rgb-strip-failing/2749/4 "2025-10-13T07:26:18Z")

</div>

Please confirm whether the 6-DOF IMU is properly connected to the 11-channel light board.

Try changing the connection to another interface on the 6-DOF IMU and check how it works.

Connect the 6-DOF IMU cable directly to the I2C interface of the robot hat, then run the sample code for testing the 6-DOF IMU module to see if it operates correctly:

cd ~/pidog/test  
sudo python3 imu\_test.py

If the 6-DOF IMU module is detected and works, this indicates that the issue lies with the interface of the 11-channel light board.

Change the wiring of your 11-channel light board to another interface and connect it directly to the I2C interface of the robot hat. Then, run the sample code for the 11-channel light board module to see if it functions correctly:

cd ~/pidog/test  
sudo python3 rgb\_strip\_test.py

---

<div class="post-metadata">

**Author:** ![PiRSquared](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@PiRSquared](https://forum.sunfounder.com/u/PiRSquared)\
**Post date:** [January 5, 2026, 9:09am UTC](https://forum.sunfounder.com/t/pidog-rgb-strip-failing/2749/5 "2026-01-05T09:09:54Z")

</div>

This might help someone else with exactly the same errors when there is no real fault on the RGB or IMU board.

I disconnected the 4 pin cables and closely examined the pins. One of the pins in the socket was bent to one side and so not inserted into the plug.

Either :-

1. one of the cables or the pins in the socket must have been minutely misaligned on the RGB board so when assembling it allowed the pin to bend out of the way instead of inserting or
2. possibly factory testing might have misalgned the pin

Will never know fopr sure.

This meant that neither the RGB or IMU boards were recognised as the BUS daisy chains through the RGB to the IMU. I ‘carefully’ realigned the pin with a small watchmakers screwdiver and reassembled and all works OK. Even though I took great care when assembling I did not notice any excess force being required when inserting the plug so did not realise there was an issue.

Both the RGB and IMU test scripts failed before fixing the problem.

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [January 6, 2026, 1:17am UTC](https://forum.sunfounder.com/t/pidog-rgb-strip-failing/2749/6 "2026-01-06T01:17:14Z")

</div>

Thank you for the reminder, this information will be very helpful to other users.
