Post your NXJ projects, project ideas, etc here!
Moderators: roger, imaqine, 99jonathan
- New User
- Posts: 5
- Joined: Tue Apr 14, 2009 10:46 am
I am trying to get my nxt to balance on two wheels by using an accelerometer (tiltsensor) to detect if it is falling. However I cant seem to get it to work. It does not react fast enough to movement and just keeps falling over. Does anyone have any tips on how I could get it working.
Also should I used the tiltsensor to measure which way it is leaning, or whether or not it is falling? And should I allow time for the motors to speed up before changing direction as it does not seem to move fast enough?
Any help is appreciated.
- leJOS Team Member
- Posts: 4698
- Joined: Fri Sep 28, 2007 2:06 pm
- Location: UK
I think you will have a lot of problems trying to do this... You really need a gyro not an accelerometer (and ideally you want both).... There is a long thread discussing this over on the nxtasy.org that you might want to take a look at....
PS You might want to take a look at...http://www.gloomy-place.com/legoindex.htm
which was my balancing robot...
Return to “NXJ Projects”
Who is online
Users browsing this forum: No registered users and 1 guest