Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Segway type balancing robot

Status
Not open for further replies.

FreeRideSkier

New Member
Has anyone made a Segway type balancing robot?

I have made a sort of working prototype using 2 x DC motors and a gyro + accelerometer board.

My question is how to use the PID correctly as my robot is perfectly stable around the balance point but if you knock it over the PID wildly over compensates!

So If I get the PID working around the balance point it over shoots if you knock it to the ground.

Any ideas?
 
If it over compensates when you knock it then play with the Integral term.

See attachment for some additional pointers.

Mike.
 

Attachments

  • Segway lookalike - Edgar final report.pdf
    24.8 MB · Views: 609
Thanks thats a great document!

Of course I've played with the P integral to optimise the overshoot, and this works fine in 'Normal' operation.

My issue is for example if the unit is switched off and lying on the ground. When it's activated it jumps into life and over shoots initally until it finds the center point. From then on it's ok. One of the things I had to do was add the gyro output to the angle reading which made it much more stable.

I've atatched the FlowStone project (cool PC graphical DSP software) so you can see where i'm at.

This is my kit list:

RD02 Robot Drive Sytem from Robot Electronics (COM port controlled)
Phidgets Spatial 3/3/3 Gyro acelerometer board
FlowStone FREE PC DSP Graphical Prgramming language from DSPRobotics

Thanks again for your help!
 

Attachments

  • Mini Segway.JPG
    Mini Segway.JPG
    2.3 MB · Views: 1,105
  • phidgets segway V1.03.zip
    30.8 KB · Views: 323
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top