Search found 2 matches

by Daniel R
Wed Nov 25, 2020 3:57 pm
Forum: General Discussion and Questions
Topic: Using webrepl instead of USB connection with Thonny IDE
Replies: 24
Views: 3783

Re: Using webrepl instead of USB connection with Thonny IDE

I just released the next beta of Thonny 3.3, which should work much better with WebREPL: https://github.com/thonny/thonny/releases/tag/v3.3.0b7 Looking forward to your feedback! Great! WebREPL support is just what I need. Unfortunately, it's not very stable for me. Using a TinyPICO ESP32. Some thin...
by Daniel R
Wed Nov 25, 2020 3:15 pm
Forum: Programs, Libraries and Tools
Topic: Control dc motor speed - PID controller
Replies: 3
Views: 1046

Re: Control dc motor speed - PID controller

Hi, I recently wrote a PID, based on: https://en.wikipedia.org/wiki/PID_controller#Pseudocode class PID: def __init__(self, Kp, Ki, Kd, dt, setpoint, measure_func, output_func, output_min, output_max): self.Kp = Kp self.Ki = Ki self.Kd = Kd self.dt = int(round(dt / 1000)) # Convert from ms self.setp...