Sensoring the vertical
Moskog
Posts: 554
Anyone here who know about a cheap sensor to detect the vertical (or horizontal) level? I need such a sensor to place on an arm to know if its standing right upwards. Accuracy withing one or two degrees. For easy interfacing with Prop or Bs2.
Comments
And take a look at this article: http://www.parallax.com/Portals/0/Downloads/docs/prod/compshop/TiltDispCntrl.pdf
I'm not sure if it detects 1 or 2 degrees
-Phil
In this case I want to make a sensor to detect the angel of a pallet fork compared to the ground. I have a setup similar to the attached picture, the real problem is to see the fork from behind the stearing wheel and know exactly if the fork is leveled right when picking up a pallet. The front parts of my tractor is hiding the fork when its lowered to the ground, forcing me to hang out of the side door when fine-tuning the fork.
-Phil
- Ed
@ Franklin: Yes, that would be a very simple solution, but I would like to have the possibilities of adjust it leveled to the ground too, just in case the slope and other, different situations. The picture is not my tractor but something I found on Internet just to clear up things.
@ kwinn: Yes, I think I need to measure both the tractor and the fork. There is another thing too, I'm not using only the fork but other kinds of tools in front of the tractor. Things like tractor buckets for sand or snow. These are tools that all needs to be adjusted different to get the right angel compared to the ground or to the loader arm.
My scenario is that I have a box inside the tractor. There are (let's say) three buttons on the box, one for the fork, one for the snow bucket and one for the sand bucket. There is a LED-display that shows the angel of the tool where 0 degrees is level and with - or + depending on the tilt. The microcontroller adjust for whatever tool I use. Maybe I can use two displays to keep control of level to ground or level compared to the tractor.
So when attaching the fork I push the Fork-button and read the angel, same thing with the other tools.
Sorry for confusing explanation but I wasn't born with the English language!
I meant to say one display will show level to the ground (or level compared to the tractor) and one display show level to true ground (water surface).
@Ed T: Yes, I think I will go for something like that.
The Tumbler-sensor will probably be the best solution!
Of course a pot could work, but I'm concerned about the environment that could be quite rough sometimes. It needs to be very good protected as the tractor is used in very different conditions: Like in forresting, snow and rain and others. I would prefer a sensor with no moveable parts protected in a waterproof box.
Two accelerometers and a microcontroller can calculate and give you whatever level readings are best for the mounted attachment.
Another option is to mount a camera on the front with a display in the cab.
PS - I think you will have to do some filtering and averaging of the accelerometer signals to get good readings.
Well, that could be a nice challenge too, especially if I should find a way to level to true ground using pots. It could probably be done a mechanical way, by use of gravity and a weight attached to a pot, perhaps.
A lot of good and very interesting ideas here, thank you so much for all your replies.
Another thing, a BS2 or Propeller in the old tractor would be an ugly case of overkill, just for controlling levels. I believe I need to come up with more ideas for additional tasks.
I would suggest sticking to accelerometers. They have no moving parts to be affected by the vibration, dirt, and moisture being mounted on a tractor entails. As to the BS2 or Prop being overkill, I do not agree. A micro with on chip ADC's may be a better choice but there is enough processing required to filter the signals, calculate the angles, and drive the displays, that using a BS2 or Prop can be justified. Personally, I would start with a protoboard for a project like this.
I have now ordered two accellerometers from Parallax so that will be the way to go. I have two other projects currently running and also working on modifying a third. But with all the inputs here I think I've got some really good ideas now and I do look forward to start prototyping as soon as I can.
--Ed
Ah you southerners. Always complaining about the weather and darkness in winter ; - ) Although I am living in Edmonton Canada now I came from Harstad Norway originally. Now there you have real winter weather and darkness.