[Vasilis] has entered Lazydoro in the Trinket Everyday Carry Contest. Lazydoro is designed to get him up off his backside, and walking around. Recent medical research has determined that sitting too long is a bad thing. In fact, Dr. David Agus has been quoted by Nike as saying that sitting for several hours is as bad as smoking (wayback machine link). While we’re not exactly up on the latest medical trends, we can definitely see that getting up and walking around a bit never hurt anyone. Lazydoro will alert [Vasilis] once every 20 minutes or so to get up and stretch his legs a bit.
[Vasilis] plans to pair a Pro Trinket with an accelerometer module, specifically an ADXL377 from Analog Devices. The accelerometer will allow Lazydoro to determine if [Vasilis] has moved around. If 20 or 30 minutes go by without major movement, Lazydoro will nudge him to get up and take a walk.
Since shipping to Greece takes awhile, [Vasilis] is developing with an Arduino Uno and a ADXL345 while he waits for his parts to arrive. He’s hacked this into a wrist mounted device for testing. One thing [Vasilis] hasn’t figured out yet is how to alert the user to move around. A small vibrating motor would probably work – but we’d suggest electric shocks. A good zap always puts the spring in our step!
There is still plenty of time to enter the Trinket Everyday Carry Contest. The main contest runs until January 2, but we’re having random drawings every week! Don’t forget to write a project log before the next drawing at 9pm EDT on Tuesday, December 23. You and all of the other entrants have a chance to win a Cordwood Puzzle from The Hackaday Store!
[Anilm3] wrote in to share the IMU tutorial series he is working on. An Inertial Measurement Unit is most often found in self-balancing robots and quadcopters, providing enough high-speed sensor data to keep up with the effects of gravity. He previously used some all-in-one IMU devices in school which did most of the work for him. But he wanted to grind down and look at what each sensor spits out and how those measurements are used. The first installment deals with the accelerometer, using its data to calculate pitch and roll. For these demonstrations [Anilm3] is using this ADXL345 sensor board, an Arduino, and some processing sketches for testing.
Whenever working with sensors you need to take noise into consideration. The post shows how to implement a low-pass filter in the code which will help smooth out the readings. The filtered data is then fed to a couple of mostly-painless formulas which calculate the movement of the accelerometer in degrees. The demonstration sketch is mapped to a 3D cube to give you an idea of how accurate the accelerometer is. There’s a little bit of lag which would let a self-balancing robot have a nasty fall. The solution to this issue will be discussed in upcoming parts of the series. The next installment tackles the gyroscope sensor.
Continue reading “Tutorial explains the concepts behind an IMU”
If you’ve ever wondered about the use of or theory behind or the use of accelerometers, this tutorial by Love Electronics is a very good resource. In this article, Love takes one through how to hook up an ADXL345 accelerometer and use it with a Netduino processor. Before the subject of hooking everything up is broached, a very good discussion is given on the general theory and operation of accelerometers.
Information is given about installing all the required software and libraries. Additionally, a mini tutorial about writing a “hello” application using the .NET framework is given. Finally, the application gives the [Windows Presentation Foundation] tools necessary to visualize the raw data that the Netduino produces.
One could really start using this processor and accelerometer from scratch with this tutorial and some basic electronics knowledge. This could add a great new feature to your next robot or allow measurement that couldn’t be done with simpler sensors.