Cardboard counter with Industrial measurement/distance sensor in arduino Mega

Dear guys,

I would like to make a carboard counter unit and made prototype, tested within sheets aproximetly 10x10 cm.

The system is so basic. I determine referance thanks to IR sensor. And I put sheets under Unit. Betweeen last measurement and referance, system calculate measurement differance and divide per sheet thickness.

For instance,

I want to count sheets that 50 micron (100 micron = 1mm) how many sheets under sensor?

Referance: 600 mm Micron: **50 ** OK

START measurement

Referance: 600 mm

Instant value: 500 mm

Sheets: 200 sheets (Because difference is 100 mm and 100 mm = 10000 micron 10000/50 = 200)

I detect referance and my input sheet thickness is 50. Thanks to HMI panel I can determine my input informations. But as you can estimate I can not take healty data from my sensor. My sensor resolution is 1 mm but unfortunataly my data are fluctuated.

Even my set values are like that.

for instance again my referance are 600 mm

but sensor showed me that (580, 610,608,602,**600,**605)

as you see actually sensor can detect true value but screen showed me fluctuated values. as the same logic my sheet measuremens also fluctuated. if my true sheets quantity are 200 sheets (190,215,220,200,198,205)

My board: Arduino MEGA
HMI: Nextion HMI 3.2 Inc
Sensor: GY-VL53L0X

Of course I can not take healty values and thats why I want to choose industrial measurement sensor.
1-) It should not be effected from especially light, heat and humudity
2- It should measure 1000 or 1500 mm but minimum is not necessary for now(optional 100 mm-150 mm)

as you can know that I can not apply more than (40 mA 5V), (50 mA 3.3V) and isdustrial sensors output signals are 100 mA, 12V, 24V, 30V.

Even if I use voltage divider circuit how I can sustain amper value ?
How I can import Idustrial measure sensor in my project?
What sensor could you tell me that I can use in my project?

Is it enough only use Analog pins in arduuino and use signal map or should I write library?

1 mm = 1,000 micron (or µm).

As you must know (you did read the datasheet, no?) the accuracy of the VL53L0X sensor is no better than +/- 3% based on the chosen integration time and the reflectivity of the target. Do the math... it appears you're well within that error.

I have no idea what industrial sensors you are talking about but 100 mA output is HUGE. Common outputs are a 4-20 mA current loop, or an analog voltage output. Your Arduino can sink/source 20 mA (absolute max 40 mA) but as input the current flowing in or out of the pin is negligible.

Pick your desired sensor, post its datasheet, and we can comment on how to deal with that sensor.

A starting point.

@wvmarle True I wrote wrong but it does not matter now. Because I can find true sheets quantity just some fluctuation. Already the reason is clear. Because of sensor. Btw I do not have any problem that the sensor read +10 sheet more or-15 sheet less. I want that if 1st the sensor read that 90 sheet it also have to read 2nd time 3rd time or more 90 sheets.

thats why The sensor which I will choose have to be:

1- Repeatability
2- Resolution ( at least 1 mm)
3- No fluctuation
4- Should not Output effect kind of dust, water, humidity, light lux etc.

Thats why I want to choose Industrial sensor. I know max 20 mA and 5 V arduino analog input.

and I wonder that can I find good solution to use voltage divider method

kind of sensors looks fair. The important thing is I mentioned above. Please aid me about that. Your comments is important for me thanks :=)

https://industrial.omron.com.tr/tr/products/e3z and kind of sensors are fair too.

Important things is sensor output voltage and current , resolution, repaitability

The first two are proximity sensors, not distance sensors.
The third (link in #4) I can't judge, I don't know that language.

@wvmarle the sensor can calculate until 1500 mm, and according to the measure the sensor output voltage or current will change its ok for me. I do not want 2 m 4 m range ok. Even 1000 mm is ok for me. please offer me according to the information what I said, Could I use Industrial sensor or not ?

I didn't see any varying output on those sensors, just presence (i.e. high/low). Both sensors offer a open collector signal, that's easy to interface, but it won't tell you how high the pile is, just that it's higher or lower than a certain point.
So yes, you can use those sensors just fine, but I don't think they're suitable for your purpose. A major clue to the latter is in the sensor's name...

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.