Author Options:

Having problems with Arduino code for Self Balancing Robot Answered

Whenever I try to Compile this code


arduino gives me this error

E:\Balance Bot\BalanceBot2_PID_Control\BalanceBot2_PID_Control.ino: In function 'void setup()':

BalanceBot2_PID_Control:38: error: 'class MPU6050' has no member named 'Initialise'



E:\Balance Bot\BalanceBot2_PID_Control\BalanceBot2_PID_Control.ino: In function 'void loop()':

BalanceBot2_PID_Control:43: error: 'class MPU6050' has no member named 'Update'


Now when I also include this library which contains GetGyroReading, GetAccelerometerReading etc variable it again give me the same error. I am pretty new to arduino programming and is trying out some PID controls.


BOmotorpair library:

Project I am following

3 Replies

rickharris (author)2016-11-14
Downunder35m (author)2016-11-12

Just to avoid you an endless amount of hassles:
1. Check which IDE versions are supported/suggested for your plugins and code - use the lowest version of all.
2. If in doubt download a bunch of versions, the 1.05 is always a good starting point.
3. Some code and plugins require a specific IDE version to compile correctly (assuming the code itself is otherwise fine).
This means before digging through the code to find some non-existing error it is best to compile with different IDE versions first.

For Arduino projects the latest IDE is not always the best choice and in some cases not even working ;)

Select as Best AnswerUndo Best Answer

iceng (author)2016-11-12

Do you know what PID means ?

Select as Best AnswerUndo Best Answer