This post looks at extending the idea to using the accelerometer to pick up directions and send them to the robot unicorn (that still seems weird to write). Microbit's accelerometers, using the x and y directions, provide the inputs and then send the direction commands. The robot unicorn code is the same in the second post, the new code for the gestures is shown below.
This a work in progress it detects x and y changes together so it does have a tendency to do one direction and then the other. This needs further work.
All my code for the robot unicorn projects can be found at: https://github.com/scottturneruon/Robo_unicorn_python or if you want to cite it : Turner, S., 2017. Robo_unicorn_python. Available at: <Robo_unicorn_python> https://doi.org/10.6084/m9.figshare.5729583.v7
All opinions in this blog are the Author's and should not in any way be seen as reflecting the views of any organisation the Author has any association with. Twitter @scottturneruon
Thanks.....
ReplyDeleterobot kit
Robotics in Education
Educational robotics
Very informative!!!!
ReplyDeleterobot kit
This comment has been removed by a blog administrator.
ReplyDelete