Search found 780 matches

by OutoftheBOTS_
Fri Dec 01, 2017 12:59 am
Forum: ESP8266 boards
Topic: PWM on ESP8266
Replies: 10
Views: 2941

Re: PWM on ESP8266

I did just google human hearing range and it seems that humans hear from 20hz to 28khz so 40khz is what I should be running the PWM at for motors to stop them humming or squealing. I suppose this would be just 1 more advantage of the PCA9685 being able to do PWM at that freq
by OutoftheBOTS_
Thu Nov 30, 2017 9:04 pm
Forum: ESP8266 boards
Topic: PWM on ESP8266
Replies: 10
Views: 2941

Re: PWM on ESP8266

Yes I use the same freq on all 4 pins but I change different duty cycle on different pins. [edit] 40hz not khz here's my setup code left_forward = PWM(Pin(4)) left_forward.freq(40) left_forward.duty(1023) My H-bridge works backwards in the fact u have to pull to low to active the motor. So when 1 wh...
by OutoftheBOTS_
Thu Nov 30, 2017 3:47 am
Forum: ESP8266 boards
Topic: over clocking
Replies: 7
Views: 1466

Re: over clocking

Well changing my clock speed to 160Mhz seems to have pushed the ESP8266 from not quite being able to keep up with what I wanted it to do to being able to get the job done :)
by OutoftheBOTS_
Thu Nov 30, 2017 2:56 am
Forum: ESP8266 boards
Topic: over clocking
Replies: 7
Views: 1466

Re: over clocking

by the way google and youtube let me down I searched "micropython esp8226 overclocking" and didn't find anything useful
by OutoftheBOTS_
Thu Nov 30, 2017 2:49 am
Forum: ESP8266 boards
Topic: over clocking
Replies: 7
Views: 1466

Re: over clocking

OK thanks guys

I wasn't expecting it to be that easy

I will read away and have a play :)
by OutoftheBOTS_
Thu Nov 30, 2017 2:46 am
Forum: ESP8266 boards
Topic: PWM on ESP8266
Replies: 10
Views: 2941

Re: PWM on ESP8266

Well that's certainly fast enough updates even with multiply channels. The PCA9685 also is very small in size and cheap to buy too. It is definitely an option to think about. Thanks
by OutoftheBOTS_
Wed Nov 29, 2017 9:16 pm
Forum: ESP8266 boards
Topic: PWM on ESP8266
Replies: 10
Views: 2941

Re: PWM on ESP8266

Yes I do have a PCA9685 that I use for my hexapod robot and my worm robot that uses a lot of servos. One of my biggest factors always with all my robots is available space. I am trying hard to avoid using too many external chip like the encoder counter chip and PWM chip (using a external h-bridge ca...
by OutoftheBOTS_
Wed Nov 29, 2017 8:57 pm
Forum: ESP8266 boards
Topic: over clocking
Replies: 7
Views: 1466

Re: over clocking

ok so next question how do I get my ESP8266 to run at the 160mhz with micropython??
by OutoftheBOTS_
Wed Nov 29, 2017 11:43 am
Forum: ESP8266 boards
Topic: over clocking
Replies: 7
Views: 1466

over clocking

From what I can understand it seems that the ESP boards have an over clocking feature. They can run at the standard 80mhz or with the change of 1 bit they can run at 160mhz. Id this feature possible to use in micropython and if so what is the down side to running the biard at 160mhz??
by OutoftheBOTS_
Wed Nov 29, 2017 7:45 am
Forum: ESP8266 boards
Topic: PWM on ESP8266
Replies: 10
Views: 2941

Re: PWM on ESP8266

I am currently using 40khz rate as this tends to be a fairly standard rate for PWM of motor control. The lower the rate the more efficient the H-bridge tends to be because of less switching delay in the transistors but if you go below 40khz then u get in the human hearing range and you will hear a h...