Search found 18 matches

by Greg-R
Fri May 25, 2018 6:18 pm
Forum: General Discussion
Topic: Controlling BRUSHED dc motors with quadrature encoders?
Replies: 3
Views: 8620

Re: Controlling BRUSHED dc motors with quadrature encoders?

The latter. The counter gets the pulse timing, and that is translated into RPM. A simple PID in C code sets the PWM duty cycle. A counter is needed to fire the PID periodically. So the system periodically samples, and the PID adjusts duty cycle to keep the loop error low. The PID is implemented as a...
by Greg-R
Mon May 21, 2018 12:52 pm
Forum: General Discussion
Topic: Controlling BRUSHED dc motors with quadrature encoders?
Replies: 3
Views: 8620

Re: Controlling BRUSHED dc motors with quadrature encoders?

I've done a PID motor controller using the MCPWM. I used only a single encoder output, not quadrature. The capture module in the MCPWM measures the time between pulses, thus providing the feedback to the PID controller. There is a sample project in the ESP-IDF examples folder which illustrates usage...
by Greg-R
Fri May 18, 2018 1:42 pm
Forum: General Discussion
Topic: JTAG-OpenOCD problem
Replies: 4
Views: 6636

Re: JTAG-OpenOCD problem

You have an official WROVER-KIT board and your Windows based OpenOCD script is working with that board?

Regards,
Greg
by Greg-R
Wed May 16, 2018 10:51 am
Forum: General Discussion
Topic: Suitable JTAG for ESP32
Replies: 5
Views: 7395

Re: Suitable JTAG for ESP32

I have one of these, from Amazon, and it works with the blink example from Espressif:

https://www.amazon.com/gp/product/B00HK ... UTF8&psc=1

I posted the commands for Openocd on this forum recently.

Regards,
Greg
by Greg-R
Thu May 10, 2018 11:34 pm
Forum: General Discussion
Topic: JTAG Debug with WROVER-KIT Example not working
Replies: 10
Views: 14002

Re: JTAG Debug with WROVER-KIT Example not working

So the JTAG clock speed is changed by editing a file included with OpenOCD: share/openocd/scripts/board/esp32-wrover.cfg Open this file and look for this line: adapter_khz 20000 For example, to change to 10MHz clock: adapter_khz 10000 Save and close the file. Note that there is a different file if y...
by Greg-R
Thu May 10, 2018 2:41 pm
Forum: General Discussion
Topic: JTAG Debug with WROVER-KIT Example not working
Replies: 10
Views: 14002

Re: JTAG Debug with WROVER-KIT Example not working

Yes, I will do that this evening, as well as command used with the FTDI cable. If I can insert a photo of the connection of cable to development board, will do that as well.

Regards,
Greg
by Greg-R
Thu May 10, 2018 11:41 am
Forum: General Discussion
Topic: JTAG Debug with WROVER-KIT Example not working
Replies: 10
Views: 14002

Re: JTAG Debug with WROVER-KIT Example not working

So I ordered an FTDI cable C232HM-DDHSL-0 cable. Using the instructions on the Espressif JTAG pages, I connected to a regular development board with a WROOM module. At first, I was seeing the same problem as with the WROVER kit. But then I changed the clock speed from 20000 to 10000. Now working per...
by Greg-R
Sun May 06, 2018 9:52 pm
Forum: General Discussion
Topic: JTAG Debug with WROVER-KIT Example not working
Replies: 10
Views: 14002

Re: JTAG Debug with WROVER-KIT Example not working

Tried everything, built from source, different machine, V3.0 ESP-IDF, no luck!

Finally I submitted a ticket here:
https://github.com/espressif/openocd-esp32/issues

Hoping for the best!

Regards,
Greg
by Greg-R
Tue May 01, 2018 11:30 am
Forum: General Discussion
Topic: JTAG Debug with WROVER-KIT Example not working
Replies: 10
Views: 14002

Re: JTAG Debug with WROVER-KIT Example not working

The new OpenOCD tar file was released 13 days ago. I must have downloaded the old version the day before the new release! Anyway, thank you for alerting me to the new version! Unfortunately, except for some differences seen in the stdout coming back from OpenOCD, the result is the same. And removing...
by Greg-R
Mon Apr 30, 2018 11:59 pm
Forum: General Discussion
Topic: JTAG Debug with WROVER-KIT Example not working
Replies: 10
Views: 14002

Re: JTAG Debug with WROVER-KIT Example not working

Thank you for the suggestion, but it did not work. With or without that line in gdbinit, it never gets to the gdb prompt. I discovered I had an obsolete tool chain and upgraded it. And I tried another machine. Finally, I decreased the JTAG clock to 10MHz. Same result, very consistent each time it ne...