memsic accelerometer code drives motor or servo for unicycle project
Let's Go!
Posts: 124
hello everyone, i am trying to engineer a self balancing unicycle, and have studied the code samples provided by the parallax product site. but it stops short in that it just shows the debug.
does anyone know how to take the code offered (and willing to share·with us)·and then move a motor appropriately, that turns the wheel and also simultaneously balances the unicycle,·via the stamp 2 measurement taken from the memsic.
this project has lots of unique implications for those willing and able to take the plunge. here's a site that is very interesting ·http://tlb.org/eunicycle.html
thanks and will look forward to comments
does anyone know how to take the code offered (and willing to share·with us)·and then move a motor appropriately, that turns the wheel and also simultaneously balances the unicycle,·via the stamp 2 measurement taken from the memsic.
this project has lots of unique implications for those willing and able to take the plunge. here's a site that is very interesting ·http://tlb.org/eunicycle.html
thanks and will look forward to comments
Comments
Look around in Completed Projects for the "self-balancing robot" stuff.
·for the self balancing robot. although it is required to provide code to post on that page...
http://forums.parallax.com/showthread.php?p=570699
For some "reason" he U/L'ed the programs as .BS2.TXT (so, knock off the .txt)
·
You'll need an accelerometer *and* a gyro (the electric unicycle link you provided uses both). The accelerometer alone is not enough (it will report a "tilt" when you may just be stopping or starting hard). Using both together is often called an IMU (Inertial Measurement Unit). Sparkfun sells some nice modules for just this purpose (with accelerometer and gyro built in). The IR or Ping methods won't work unless you plan to only use the cycle on perfectly level ground.
www.sparkfun.com/commerce/categories.php?c=85
In particular the SEN-00741 seems like a good value.
You can also purchase gyros for RC copters separately if you want to go that route.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
I have a question: will the user be able to pedal? If you have the motor hooked up dirrectly to the wheel, then this could lead to complications...
·
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
Use gyros and accelerometers for motion sensing
Use the BS2 for computations and output
Use a linked motor for drive
What exactly are you looking for?