Shop OBEX P1 Docs P2 Docs Learn Events
Sensor application for detecting height of a plant. — Parallax Forums

Sensor application for detecting height of a plant.

edlikestoboogieedlikestoboogie Posts: 71
edited 2007-06-30 15:56 in BASIC Stamp
Although this question is not microcontroller specific, the basic stamp forum seems to be most active. I will build the prototype of this model using the BS2.

I have this radical idea for a machine that trains a plant. Basicly a wooden box is suspended above the plant by a rope that is connected through a pulley onto a motor controlled by the BS2. The box will also have a sensor that is detecting the height of the plant by offsetting the sensor's position by a foot below the box. The box will have a small piece of string about a foot's length to keep the plant up. The idea is to keep the string connecting the plant and the box at firm tension. This will be done by sensing the plants height and pulling the box with the motor. I have included a rough drawing outlining this concept. My question is: what kind of sensor should I use to detect the plant's height? I can't think of what to use. Infrared wouldn't work, because I feel like the plant is so skinny, that it might not be able to detect it. Plus this would be used on sunny days, which might mess up its readings. I was thinking about using the sonar device that parallax uses. The one to detect distance for robots. Any suggestions?
427 x 407 - 12K

Comments

  • edlikestoboogieedlikestoboogie Posts: 71
    edited 2007-06-10 23:50
    I just thought of something even better.. maybe instead of trying to sense the plant's actual height.. which has tons of room for error, you could just attach the string connected to the box to a spring, and try to measure the tension of the spring. Any ideas on how to do that.. or sense the plant's height in relation to the box..
  • RinksCustomsRinksCustoms Posts: 531
    edited 2007-06-11 06:08
    not sure where this is going to get you, but here goes...
    take and make two "7" brackets, orient one 180 degrees from the other so that the two shorter sides can hold onto one another. this is the tricky part, take a force sensor· and you sandwich it where the two "7" brackets meet one another. one "7" is attached to the string leading to the BS2 motor, the other bracket attaches to the spring leading to the plant, see diagram. and parallax gives demo source for interfacing this sensor with your BS2.

    
    
         |<--------To winch side
    

        /    /
      / 
     /
    /
    &#9474; &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9474;
    &#9474; &#61567;&#61567;&#61567;&#61567;&#61567;<&#9472;&#9472;&#9532;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472; Flex force sensor
    &#9492;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;  &#9474;
              /
             /
            /
           / 
          /
         |
         |<----------To spring and plant
    

    Not sure how successful the setup will be, but it's possible you can interface the Ping sensor as well, it can measure to the millimeter if this is sufficient, don't know the resolution of the force sensor. I'm running a Propeller, Ping))), and have them interfaced with the PC using the Prop Terminal (a debug window for the prop), the resolution is good, update·speed is unbelievable!

    You may want to give the propeller a look having ALOT more processing power, a TON of more memory, and twice the I/O pins. and once you get the concept of the SPIN language it's cake to interface stuff with minimal components like·sensors, mouse/keyboard, TV's, CRT Monitors, LCD's, you name it! I came from the BS2 (I have two), it's a cool MCU, but the prop can just blow it out of the water!

    Take your project for example, you can easily interface an LCD display, the force sensor, a Ping))) sensor, a little winch motor, keyboard and mouse for an input, have it do some data logging... all in parallel, without it even breaking a sweat!

    In any case, good luck with it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Definetly a E3 (Electronics Engineer Extrodinare!)
    "I laugh in the face of imposible,... not because i know it all, ... but because I don't know well enough!"


    Post Edited (RinksCustoms) : 6/11/2007 6:17:31 AM GMT
  • Tracy AllenTracy Allen Posts: 6,664
    edited 2007-06-11 15:09
    If you go with the spring idea, maybe the spring can be used as the sensor. Beau Schwabe has posted several circuits and ideas along thise line. Here is one for the Stamp:
    http://forums.parallax.com/forums/default.aspx?f=5&m=3282

    And one more recent for the Propeller:
    COIL_demo.zip

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2007-06-11 16:10
    Using a spring as a coil will work just fine.· The Coil inductance will usually be very small, and you should choose a spring that does not short it's own coil windings out.· Further, I have experienced a bit of a personal learning curve over the past couple of years dealing with coils used as·sensors.· Each discovery leading to an improved method of sensing.· While the STAMP metal detector version and the Propeller COIL_demo.zip work very nicely, both are probably not going to be sensitive enough to use such a small coil fabricated from a spring.

    In the Propeller Education Kit Labs, there is a lab that deals with metal detection.· This particular lab uses a single loop coil constructed from a piece of hookup wire only 3 inches long.· Using the circuit configuration in the lab, a spring/coil in place of the 3 inch hookup wire should be a piece of cake. You will however need to lower the resonate frequency as it will likely be much less for the spring than the single loop coil which is about 50MHz.


    Under "Counter Modules and Circuit Applications" from the 'Propeller Education Kit Labs"·link above·PE-Kit-Counters-Lab-v0.81.zip

    Take a look at the PDF on page·43 - "Metal Detection with PLL and Positive Detector Modes and an LC Circuit"

    Quote from LAB:
    "Inductors are coils that when placed in a circuit have the capacity to store energy. They get used in many types of applications, one of which is metal detection. There are lots of different kinds of metal detection instruments aside from the ones you may have seen passed over the sands on just about any beach on any given weekend. Other examples include instruments that identify the type of metal, check for stress fractures in metal surfaces, and precisely measure the distance of a metal surface from an instrument.

    Even though there aren’t any inductors in the PE kit, there are lots of wires that can be shaped into metal loops. When current passes through a metal loop, it becomes a small inductor. This portion of the lab demonstrates how a cog can use two counters, one in PLL mode and the other in POS detector mode, to send high-frequency signals into an LC (inductor-capacitor) circuits input, and infer the presence or absence of metal by examining the circuits output signal."

    ·

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.

    Post Edited (Beau Schwabe (Parallax)) : 6/11/2007 4:20:18 PM GMT
  • W9GFOW9GFO Posts: 4,010
    edited 2007-06-11 17:14
    Will you need to be able to vary the tension on the string? If not all you need is a string, a pulley straight above the plant and a weight on the other end of the string.

    There must be more to it than that though, I must admit I have no idea what is required to train a plant!

    Rich H
  • steve_bsteve_b Posts: 1,563
    edited 2007-06-11 19:48
    In one of our precip weighing gauges, they use a vibrating wire.
    The more weight that goes in to this wire (or more tension created) the strings frequency increases.

    Like plucking a guitar string and turning one of the headstock keys to tighten the string. The frequncy/note of the string increases with tension.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·

    Steve

    "Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
  • Tracy AllenTracy Allen Posts: 6,664
    edited 2007-06-12 04:10
    Steve, is the vibrating wire sensor you refer to on a load cell from Geokon, or something else? I think I'll have to come up with an interface for a Geokon piezometer (also vibrating wire), and I'm thinking a propeller will make the excitation and response analysis quite easy.

    edlikestoboogie, why do you want to train the plant in that manner? Grape vines etc etc have been in training for ages, on trellises and all kinds of supports, but I had never heard of a tensioning system.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com

    Post Edited (Tracy Allen) : 6/12/2007 4:16:23 AM GMT
  • RinksCustomsRinksCustoms Posts: 531
    edited 2007-06-30 15:56
    Perhaps with tension, it's possible to get the plant to maturity faster for harvesting or produce production..

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Definetly a E3 (Electronics Engineer Extrodinare!)
    "I laugh in the face of imposible,... not because i know it all, ... but because I don't know well enough!"
Sign In or Register to comment.