Hi xl97,
I finally got my parts but I have some issue now.
Here is what I did:
1) I used exactly your code but only plug 4 leds (2 on each side) for testing. The servo I'm using is HD-1501MG supply voltage is 6v.
2) I bought a 5v module (input: 6-12v, Output: 5v 800ma) to replace the lm7805, 0.33uf & 0.1uf on your diagram. Looks like this
View attachment 609288
3) I used a 9v battery for power supply. I also have 4 AA battery pack but it only provide 6V not +7v, So I used 9v battery.
4) I use bread board to connect everything for test.
View attachment 609289. So I connect the battery to the 5v module and than connect it to the breadboard. Then connect all servos and leds to the breadboard.
Here is my problems:
1)When I plug in the power supply, the servo start moving themselves.
2) when I push the button, the led turns on but keep flashing and the servo keeps moving by themselves after they move to the right position
3) Seems like every time when servo start moving by themselves, the L led light on the UNO r3 board flashing as well.
Could you give me a hand on this?
Thanks
Dio