Search found 781 matches

by OutoftheBOTS_
Wed Nov 29, 2017 7:45 am
Forum: ESP8266 boards
Topic: PWM on ESP8266
Replies: 10
Views: 2952

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...
by OutoftheBOTS_
Wed Nov 29, 2017 6:26 am
Forum: ESP8266 boards
Topic: PWM on ESP8266
Replies: 10
Views: 2952

PWM on ESP8266

I am using PWM for speed control of my motors through a H-Bridge. The H-bridge uses PNP transistors so it is backwards in that when it is pulled to high the h-bridge is off and when pulled to low it is active. This is the issue that I am finding. Everyone once in a while my robot will suddenly accel...
by OutoftheBOTS_
Tue Nov 28, 2017 4:14 am
Forum: ESP8266 boards
Topic: strange start behavoiur on vertain pins
Replies: 3
Views: 828

Re: strange start behavoiur on certain pins

Thanks you very much this explains why I was having the problems that I did. Yes I have a dev board with crazy pin numbering but have a cheat sheet of what the correct names for pins are :) Ok my H-bridge doesn't pull anything up or down but my encoders do depending upon the exact position they r in...
by OutoftheBOTS_
Mon Nov 27, 2017 8:31 pm
Forum: ESP8266 boards
Topic: strange start behavoiur on vertain pins
Replies: 3
Views: 828

strange start behavoiur on vertain pins

Ok I have my robot working now but it was a battle with what I connected to what pin before it would work on startup or reset. Some background. It is a basic 2 wheel drive robot with drag caster wheel. The motors have quadrature encoders and the H-Bridge(L9110S) that I am using uses PNP so the H-bri...
by OutoftheBOTS_
Mon Nov 27, 2017 8:21 pm
Forum: Drivers for External Components
Topic: A library for reading rotary encoders (ESP-8266 and Pyboard/stmhal)
Replies: 22
Views: 14035

Re: A library for reading rotary encoders (ESP-8266 and Pyboard/stmhal)

This leads to other questions about the RTOS and WiFi. Obviously I have chosen the ESP chipsets family because of its WiFi ability. Is there a way to adjust priority level of the wifi and how much resources it consumes. Does running its own access point consume more resources than being connected to...
by OutoftheBOTS_
Mon Nov 27, 2017 8:13 pm
Forum: ESP8266 boards
Topic: pin.irq priority
Replies: 3
Views: 1083

Re: pin.irq priority

Thanks for both of your response. At least now I understand the priority feature and this will be handy. I have ordered a ESP32 but am still waiting for it to arrive. I am hoping that it is not only faster but dual coare so this might fix the problem. I am hoping to be able to put my interrupts on 1...
by OutoftheBOTS_
Sun Nov 26, 2017 5:03 am
Forum: ESP8266 boards
Topic: pin.irq priority
Replies: 3
Views: 1083

pin.irq priority

I am currently playing with high resolution motor encoders which means I need fast high priority reading of the encoders pins. I am currently just using a pin.irq(trigger=(Pin.IRQ_FALLING | Pin.IRQ_RISING),) and this works fine while the ticks are below about 900hz but once they get above that then ...
by OutoftheBOTS_
Fri Nov 24, 2017 8:50 pm
Forum: Drivers for External Components
Topic: A library for reading rotary encoders (ESP-8266 and Pyboard/stmhal)
Replies: 22
Views: 14035

Re: A library for reading rotary encoders (ESP-8266 and Pyboard/stmhal)

I am using a quadrature motor encoder, it is a magnetic encoder with 11 pairs of poles poles attached to a motor and the motor has a 31:1 gear box so I get a very resolution per rotation. I have tried both writing my own routines and using the great 1 written by spotlightkid. I have found them to wo...
by OutoftheBOTS_
Tue Nov 21, 2017 1:52 am
Forum: General Discussion and Questions
Topic: micropython framework
Replies: 2
Views: 977

Re: micropython framework

Thanks :)
by OutoftheBOTS_
Mon Nov 20, 2017 10:02 pm
Forum: General Discussion and Questions
Topic: micropython framework
Replies: 2
Views: 977

micropython framework

First of all thanks to everyone that is donating their time to make micropython a reality. Ok I am new to micropython coming from Raspberry pi. One of the reasons for my learning about micropython (mainly for the ESP chips) is to get around the real time problems that RPi has due to the operating sy...