Trying to use 4 timers for PWM and fifth for Irq
Posted: Sat May 16, 2020 8:21 am
Hi,
During this Covid 19 lockdown I have been trying to finish my I completed projects.
When I first received my WIPY I tried building a bob the biped robot but never completed it.
So, I have resurrected my WIPY and updated to the latest firmware.
I found some great Arduino code and decided to use that as a basis for a python version.
I need to control 4 servos using PWM and use a fifth timer to determine when to move.
The timer IRQ works, I can write a script that will move the two feet or hip servos.
When I write a script controlling all four servos one of them does not move.
If I run the script controlling two servos they work.
At the moment I do not know whether I have got a faulty servo or wiring, so I was thinking of hooking the robot up to an Arduino.
Am I running out of memory on the WIPY, I need to investigate how to check this.
I am using a servo library I found on GitHub.
So my general question is has anyone managed to do something similar? I can post more details on timers I am using or code if it helps.
Sent from my iPad using Tapatalk
During this Covid 19 lockdown I have been trying to finish my I completed projects.
When I first received my WIPY I tried building a bob the biped robot but never completed it.
So, I have resurrected my WIPY and updated to the latest firmware.
I found some great Arduino code and decided to use that as a basis for a python version.
I need to control 4 servos using PWM and use a fifth timer to determine when to move.
The timer IRQ works, I can write a script that will move the two feet or hip servos.
When I write a script controlling all four servos one of them does not move.
If I run the script controlling two servos they work.
At the moment I do not know whether I have got a faulty servo or wiring, so I was thinking of hooking the robot up to an Arduino.
Am I running out of memory on the WIPY, I need to investigate how to check this.
I am using a servo library I found on GitHub.
So my general question is has anyone managed to do something similar? I can post more details on timers I am using or code if it helps.
Sent from my iPad using Tapatalk