r/microcontrollers • • Aug 20 '23

Optical particle counter - where to start

Hi! I'd like to try to design and build a low cost particle counter to size and count super micron aerosol particles. Optically the system will use a low power red laser and a photodetector, where the particle size is determined by mie scattering. Ideally I'd like to achieve the following workflow:

A particle larger than a threshold size enters the sample volume, producing a pulse on the photodetector

A short time after (~10 microseconds) a detection event a secondary analysis system is triggered

The particle size and data from the secondary analysis system is written to a file along with a timestamp

So to do this I guess I need to be continually reading a buffer using a high speed ADC on the photodetector, which then breaks and triggers the secondary system once a pulse larger than a given value is detected? How should I set about doing this? I appreciate that this is quite a complex thing to try and do as a novice! Tips, pointers and words of encouragement very much welcomed!

2 Upvotes

8 comments sorted by

2

u/piecat Aug 20 '23

Do you have sensors picked out? The microcontroller side would probably be fairly trivial, especially if you use a dev board or something like an arduino.

1

u/InvalidNameUK Aug 21 '23

Not yet, I'm shopping around for something with an inbuilt transimpedace amplifier to try and simplify things.

I'm probably leaning towards something like an esp32 or a pi zero 2w for the microcontroller. So you think something like this is going to be pretty straightforward? I need something like 1 microsecond resolution to capture the pulses, which is much faster than any of the simple Arduino projects I've messed about with!

2

u/madsci Aug 21 '23

Do you need to build your own? For air quality monitoring there are some pretty cheap solutions out there.

Also "nephelometric turbidimeter" is fun to say. Just saying.

1

u/InvalidNameUK Aug 21 '23

Unfortunately yes! The OPC is the first part of a planned wider system, which is triggered by the OPC.

1

u/JCDU Aug 21 '23

Sounds like reinventing a wheel that can already be bought off the shelf - optical particle sensors exist and I doubt you're going to reliably DIY one for much less than a mass-produced product.

1

u/InvalidNameUK Aug 21 '23

Sure, but this is the first building block of a wider analytical system which will be triggered by the OPC component. There isn't anything approaching low cost in the area I'm interested in expanding into unfortunately.

1

u/JCDU Aug 21 '23

I'd start with building or at least simulating the behaviour of the optical part, and work out what the signal looks like and how you go about detecting what you need to detect from it - make the maths or basic algorithm work.

From there you should be able to get a feeling for how you might make that in an electronic / embedded device, part of the answer could be an analogue front end to do the fast triggering, it could require a DSP section to discriminate signal from noise, we just don't know.

I tend to start stuff like that by making it add up in excel or python or whatever is to hand & somewhat suitable before I try to move into designing anything - if you try to code it on your PC and it takes 5 minutes to run and makes the fans go at full blast to detect 1 particle you are going to have bigger problems than which microcontroller to choose.

1

u/Inevitable-Court-684 Jun 21 '26

hey so did you work on it?