Society of Robots - Robot Forum

Software => Software => Topic started by: omar on August 30, 2009, 03:21:32 PM

Title: self leveling table
Post by: omar on August 30, 2009, 03:21:32 PM
Hello, i wanna make a self leveling table controlled by a pic and two servo motors one for the x-axis and the second for y-axis,to ensure that the table must be horizantal i bought an analogue accelerometer ,, so that how can i get a code to drive this system,, i doesn't matter in which language the programming will be, all i need to program the pic to drive the system,,
Help me please. ;D
Title: Re: self leveling table
Post by: airman00 on August 30, 2009, 09:09:02 PM
Must it be a PIC microcontroller?
Can it be AVR?
Title: Re: self leveling table
Post by: Joker94 on August 30, 2009, 10:10:32 PM
i think you would be able to get way more help if you use avr
Title: Re: self leveling table
Post by: omar on September 01, 2009, 06:50:17 AM
i doesn't matter what to use for control,,so i can use AVR but you have to tell me how to use it since i didn't have any idea for this.
Thanks alot.
Title: Re: self leveling table
Post by: SmAsH on September 01, 2009, 02:50:04 PM
you can check out this board http://www.societyofrobots.com/step_by_step_robot.shtml (http://www.societyofrobots.com/step_by_step_robot.shtml)
it can handle this task and the code would be pretty easy.
read the sensor, adjust the servo in the right direction until the accelerometer meets the right value.
if you just need the table horizontal why not use legs? :P