Small update on my hexapod:
The past days I fiddled some more with my hexapod sketch. It now listens pretty well to my remote control. I first had some issues with controlling the servos. My code had some small errors, several walking gaits would be running at the same time causing the servos to act erratically. I added some more code and it now seems to walk fine.
Today I wired and soldered 4 RGB leds to my hexapod. The RGB leds are controlled by 3 PWM pins and 3 small NPN transistors so I can do some colour mixing. I took me a couple of hours to solder the 12 resistors to the leds and connect them to the transistors. I then integrated the code that I used here in my sketch and uploaded it to my hexapod. I first had to replace the delay function, I just used the code that you can find in the “Blink without delay” example sketch in the Arduino IDE to use the millis function. According to some people I now have a walking Christmas tree :p I’m still waiting for some more parts, I’ve ordered 12 MG90 servos with metal gears and a smaller fan to cool the regulator. With the big PC fan mounted above the regulator I can not fit my top acryl plate. This plate will hold an ultrasonic sensor or maybe my Dagu compound eye, we will see…