I need to measure alot of different frequencies at the same time (up to 48) How?


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: I need to measure alot of different frequencies at the same time (up to 48) How?

    Thank you.

    It started out as something Dad and I wanted to do on his corn planter six years ago. Now I have sold over 4000 units in the US, UK, AUS, SA, and Ukraine over the last five years. This next year I bet I sell 4000 more.

    Its taken on a life of its own.

  2. #2
    Join Date
    Jun 2009
    Location
    Sc*nthorpe, UK
    Posts
    333


    Did you find this post helpful? Yes | No

    Default Re: I need to measure alot of different frequencies at the same time (up to 48) How?

    You have a working system that counts each seed, works out the spread rate and adjusts the rate to meet a set value.

    What sensor are you using to detect the seeds being dropped? I have used pulse counter chips as counters combine this with a clock timing of 100 ms will give spread rate seeds/second presumably tractor speed is also needed to give seed/metre.

    From calculating spread rate the drill has to adjust the rate too the set rate. Will the PIC do this or is there some other control on board the tractor to do this?

    I am thinking along the lines of 48 slave counters with serial connection to master controller. I can visualise what the slaves will do but can only guess at how the master will adjust the spread rate.

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: I need to measure alot of different frequencies at the same time (up to 48) How?

    I don't know true seed count as of now. My electric drives work two ways; with a hydraulic rate controller or a rate controller I make based on an Adroid tablet.

    For the first example, I have an Interface board that connects to the PWM output of a standard rate controller. It measures the PWM signal and makes the rate controller think a hydraulic drive is connected. By measuring the PWM and providing a feedback signal to the rate controller I am able to figure out how the rate controller is trying to spin a hydraulic drive. Normally a hydraulic drive spins the seed plates. So once I calculate the desired rpm needed by the rate controller based on row spacing, seed plate count, ground speed and needed population, I send the rpm number to the Control board. The Control board handles four rows individually. The slick thing is I send this data wirelessly from the Interface board to the Control board so the only connection I need between tractor and planter is power and ground.

    The Interface board also connects to the 'section control' outputs. On a hydraulically driven planter farmers can use electric clutches on each row to engage/disengage the drives to minimize seed waste. I connect to these outputs to know which rows need to be on/off.

    Each electric drive has an encoder that I use to measure rpm and adjust accordingly with a PID routine.

    At current time, with a rate controller from another manufacturer or using my Android based rate controller, there is a 'Seed Monitor' It is connected to a seed sensor on each row of the planter. It is basically an optic sensor on the seed tube between the seed plate and the ground. It pulls low when the seed is in front of the seed sensor. Its not even close to being a 50% duty cycle.

    If a farmer uses my rate controller, he is stuck with another display in his tractor that is the seed monitor. I want to integrate seed monitoring into my rate controller. I do display on my rate controller UI a population number but that is based purely from the encoder, not the seed being dropped into the ground.

    The big thing in planting corn is being able to detect skips...when a seed is supposed to be dropped yet not. This is usually due to the vacuum pulling a seed against the seed plate not being correct. So I really need to be able to measure population based on seed drop from the seed sensor, display it on my Android UI and also throw up a flag on the UI when a skip is detected also.

    I have started to work on the PIC32 chips but I am still running into the amount of available CCP/Input Capture pins not going up to 48 on a single processor. A 48 row planter is pretty rare but I need to be able to handle it. The majority of my customers are in the 12-16 row range.

    Quote Originally Posted by EarlyBird2 View Post
    You have a working system that counts each seed, works out the spread rate and adjusts the rate to meet a set value.

    What sensor are you using to detect the seeds being dropped? I have used pulse counter chips as counters combine this with a clock timing of 100 ms will give spread rate seeds/second presumably tractor speed is also needed to give seed/metre.

    From calculating spread rate the drill has to adjust the rate too the set rate. Will the PIC do this or is there some other control on board the tractor to do this?

    I am thinking along the lines of 48 slave counters with serial connection to master controller. I can visualise what the slaves will do but can only guess at how the master will adjust the spread rate.

  4. #4
    Join Date
    Jun 2009
    Location
    Sc*nthorpe, UK
    Posts
    333


    Did you find this post helpful? Yes | No

    Default Re: I need to measure alot of different frequencies at the same time (up to 48) How?

    The big thing in planting corn is being able to detect skips...when a seed is supposed to be dropped yet not. This is usually due to the vacuum pulling a seed against the seed plate not being correct. So I really need to be able to measure population based on seed drop from the seed sensor, display it on my Android UI and also throw up a flag on the UI when a skip is detected also.
    Pulse counter connected to PIC for serial communication looks the way forward. Have one pulse counter and PIC for each row. Just need to test a pulse counter that works with the seed drop pulse. I have used this for example CD4520BEE4 it counts in the background and outputs the count to four pins on the PIC. The count is simply read by sampling the port. They are cascade able so can be connected to give 8, 12, 16 ... bit counts. The PIC will read the port and send to the UI, which you have already sorted out.

    I presume that as there is a PIC on each row it could also be used to control the motor.

  5. #5
    Join Date
    Sep 2010
    Location
    Las Vegas, NV
    Posts
    305


    Did you find this post helpful? Yes | No

    Default Re: I need to measure alot of different frequencies at the same time (up to 48) How?

    You know some of things you think are pretty simple like a farmer planting seeds are indeed quite technical and wireless to boot. Awesome integration of technology with one of the most basic requirements of society. Very interesting project that will make me look at using PICs in different ways. Thanks. I hope you find an answer to your desire.

  6. #6
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: I need to measure alot of different frequencies at the same time (up to 48) How?

    I was working on similar project, only difference is that my device monitor 4 seed plates on mechanical planter.
    I used 1 IR LED 5mm, and 3 IR photo diode 3mm side by side connected in series, to detect falling seed from seed plate. If there is no detection for 3-5S then alarm will sound. Additional function is to count seed on each row, and total count.
    Another idea was to monitor holes on plate and to check if there is seed on every hole.
    I didn't use interrupts or counters, just detect falling edge from sensor, count them, and reset alarm timer...
    For edge detection I used
    IF PinOldState>Pin THEN DETECTED
    PinOldState=Pin
    That is all.
    On my setup time frame for detecting each seed is about 5mS. So just put that in loop, or use timer and interrupt on overflow, set interrupt frequency about 1KHz, and you are done...

Similar Threads

  1. How to Measure 2 or more digital inputs a the same time
    By longpole001 in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 29th April 2013, 02:23
  2. how to measure RPM and SPEED at the same time
    By teeeeee in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 30th July 2012, 08:34
  3. Measure time in mS between two pulses
    By Fredrick in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 7th March 2011, 07:20
  4. CCP1 and CCP2 to measure 2 frequencies together
    By bobonapoletano in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 28th December 2005, 07:34
  5. Using Different Xtal Frequencies
    By bobsimpson in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th July 2003, 21:36

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts