Self balancing line follower

I am making self balance line follower and i am stuck in between as it is only following the line not balancing it self please sombody help me out of this as it is very urgent for me because its my final year project otherwise my mentor will kill me hahahahah. Somebody please give me the full working
code

(deleted)

I am making self balance line follower

Great project! You will learn a great deal.

Get the self balancing part working first.

shubhanker:
as it is only following the line not balancing it self

I am intrigued to know how it can follow anything if it can't balance.

...R

(deleted)

This code is apparently going well, with just a minor issue. Should be easy to fix.

just a minor issue

I'll bet that the OP is still waiting for that MPU6050 interrupt.

Hi!

You have managed to get line following function working. Thats good.
Now scale down the projekt into the balancing task. Just work with the balancing issue!
Robots balancing on, f ex 2 wheels, have already been made so there must be threads to find.

shubhanker:
my mentor will kill me

Please give me your mentor's address so that I may send them lavish gifts for being a good educator.

INTP:
Please give me your mentor's address so that I may send them lavish gifts for being a good educator.

The Darwin Awards have been extended to education :slight_smile:

Hope they apply it at the end of year one for economy

...R

I think this will be very helpful for OP to get their project back on track.