Learn the mechanisms of a self balancing device with this module
http://brettbeauregard.com/blog/2011/04/improving-the-beginners-pid-introduction/ - Awesome blog on how to write a PID algorithm
MCU crashing was a major issue. Sorted that out by putting a bunch of capacitors across the ...
read moreIncreasing setpoint/targetAngle makes the bot move in that direction.
The MPU6050 crashes or gives erratic readings when the motor is powered on. The motor might be ...
read moreThe program is crashing because of the MPU screwing up with the whole system. Partly because of ...
read moreIf d0 pin is connected to anything else, arduino cannot be programmed. The bluetooth module will have ...
read moreReason unknown. It seems to be happening on every code that is accessing the MPU. Again could ...
read moreSometimes MPU6050 starts giving really sporadic readings. Cause unknown. Typically it happens when there is a sudden ...
read moreaccelgyro.setXGyroOffset(82);
accelgyro.setYGyroOffset(-59);
accelgyro.setZGyroOffset(30);
int val=255;
void setup() {
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
Serial.begin(9600);
// pinMode(11, OUTPUT ...
PWM works between 0 to 255. This motors stops moving at values below PWM value of 95.
#include <elapsedMillis.h>
elapsedMillis timeElapsed;
int val=0;
int sensorPin = A0;
int interval = 1000;
int count=0 ...
Since time is our biggest constraint, to see how much can we work with backlash, we buy ...
read more1) Backlash from motors
2) Lack of sensitivity of rotary encoders
![](../../../vi/P0b3XgswRM4/0.jpg)