Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues when using camera driver in parallel with PWM #8

Open
jischebeck opened this issue Jul 19, 2020 · 2 comments
Open

Issues when using camera driver in parallel with PWM #8

jischebeck opened this issue Jul 19, 2020 · 2 comments

Comments

@jischebeck
Copy link

Hi Lemariva,

the driver is great and works perfect standalone.

When combined with PWM to control servos, either the system reboots, fails to initialize the camera or the servos don't work anymore.

Could it be due to the Timer used? TIMER_0 for Camera, TIMER_1 for PWN ? Do you have any idea?

Jan

I added the following PWM to the webcam.py:
servo_r = machine.PWM(machine.Pin(12), freq=50,duty=0)
servo_l = machine.PWM(machine.Pin(13), freq=50,duty=0)

@lemariva
Copy link
Owner

lemariva commented Aug 9, 2020

  • Do the servos work without the camera driver? Usually I have the problem that the servos drain too much current and the board reboots.
    or
  • It could be a memory problem, this means, the board runs out of memory.

@jischebeck
Copy link
Author

It works fine without the camera driver. If I run it on different channels / timers it works fine.
At https://robotzero.one/esp32-cam-rc-car/ someone run into the same problem, and got it solved with different channels.

Unfortunately, this can't be repeated easily using micropython, as there you cannot change the channels/times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants