×

Please see all COVID-19 updates here as some shipments may be delayed due to CDC safety and staffing guidelines. If you have an order or shipping question please refer to our Customer Support page. For technical questions please check out our Forums. Thank you for your continued support.

Member #233078

Member Since: June 18, 2011

Country: United States

  • I'm not a Python guy but that code doesn't do what you say it does. The first comment already picked the derivative created by the following line: error_change = count12_delta - prev_count12_delta But then there's an integration step later on... left_motor_speed -= motor_speed_correction Think about what happens if the error is stuck at a constant = one wheel always ahead of the other. This will keep adding to (subtracting) to the speed on every step "forever". One way to recognize an integral is it can easily add up to a very large number when given enough time. So the term you call "P" is the integral and the "I" is the proportional.

    Where's the full code? I'm actually interested in the ATtiny code and maybe a link to a tutorial on how you got that code onto the Twist board.

  • I bought this to program some 4D Systems displays but I found that it is immensely useful as a general FTDI adapter. I use it more often for programming Arduino variants such as the 7-segment LED displays from Sparkfun. Just grab a 6-way header out of one of your Arduino kits https://www.sparkfun.com/products/9280 and glue it onto the back of this board. Wire it up: Black/Ground, CTS, +5V, TX, RX, Green/RTS and you are good to go FTDI! Little bits of Black+Green heatshrink are useful for some devices that label the FTDI connector with the colours instead of the names. Makes a great substitute for https://www.sparkfun.com/products/9716 (but no 3v regulator, so it can't program 3.3v devices.)

No public wish lists :(