Society of Robots - Robot Forum
Software => Software => Topic started 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
-
Must it be a PIC microcontroller?
Can it be AVR?
-
i think you would be able to get way more help if you use avr
-
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.
-
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