kekrahulik
Member
I would look to use a FIFO- a bit shift would also work since you are 13 places away.
To me, the big question is whether you need to blow off the 13th product or the product that is some fixed distance away (maybe its both). I'm guessing that the distance from detection to blow off is fixed. So tracking distance makes good sense.
Counting products can also work. However, if a product can be missing (ie you have 12 products and an empty space) then counting products can fail. On solution for this is to place an additional "new" sensor at the 13th location and then count up the products at the original sensor location and count down the products at the 13th location with your new sensor . ie, you can track the number of products between the two locations. You need to also work out a way to know if your count is off and a means to get it back on track.
Regardless of what you do, take Okie's advice and error proof you sensor signals.
Making it work is easy. Making it work robustly is where you spend your time.
To me, the big question is whether you need to blow off the 13th product or the product that is some fixed distance away (maybe its both). I'm guessing that the distance from detection to blow off is fixed. So tracking distance makes good sense.
Counting products can also work. However, if a product can be missing (ie you have 12 products and an empty space) then counting products can fail. On solution for this is to place an additional "new" sensor at the 13th location and then count up the products at the original sensor location and count down the products at the 13th location with your new sensor . ie, you can track the number of products between the two locations. You need to also work out a way to know if your count is off and a means to get it back on track.
Regardless of what you do, take Okie's advice and error proof you sensor signals.
Making it work is easy. Making it work robustly is where you spend your time.