Skip to main content
shopping_basket Basket 0

People counter project for Covid-19


An important product announcement. Barth now offers a ready to go product based on this project. It's available from RS and can be ordered today. Further details can be found at the bottom of this article.

Miniature PLC manufacturer BARTH® Elektronik GmbH and RS Components have joined forces to bring you a maker project that will help people deal with the challenges of Covid-19, especially now that social distancing restrictions look like they are being eased. Essentially, it counts the number of people in a room and calculates whether any more people can enter that room. BARTH® Elektronik provided the idea and the necessary parts, which can be ordered from RS. 


The idea came from the challenge that many businesses are currently facing, of having to employ more supervisors to limit the number of people in shops to a reasonable maximum. This is to reduce the likelihood of the virus spreading further through human contact. Paying these extra staff increases the company's cost base. An alternative solution is to give out counting cards, but this raises further questions about hygiene. Solving this problem requires a precise, contactless solution that does not necessitate any additional staff.

Parts List

See more products


The "PeopleCounter" maker project provides exactly this solution: The application counts the number of people entering and exiting a room, such as customers going in and out of a shop and compares this number with a value that has been pre-set on the device. When this value is reached, the red light switches on, or a sound is emitted, prohibiting more people from entering until others have left. It uses the same basic principle as counting the number of free spaces in a car park.

The PeopleCounter works as follows: Using two RS Pro, light barriers (729-5117) to detect the direction of movement, which enables the people entering the shop to be added and the people exiting it to be subtracted, thus allowing the number of people in the shop to be calculated in real-time.

The password-protected BARTH® CAN Display DMA-15 (174-5641) can be used to enter the maximum number of people. This display subsequently acts as a traffic light, turning green when access is granted and turning red when access is denied. A BARTH® miniature PLC (134-8863) processes the data and controls the display.


All the necessary parts are available from RS Components, please refer to the attached BOM for details. The application takes no longer than 30 to 60 minutes to assemble and is remarkably simple.

No other steps need to be taken. 3D data, manuals, BOM, and software are provided in Downloads below.


To commission the system, simply set up the device at the desired location and connect the mains adapter to the mains voltage. Then adjust and secure the mirrors for the light barriers and enter the maximum number of people on the display.

How-to video

As the next step, BARTH® Elektronik is thinking of introducing a fully preassembled product that is ready to install when delivered. The technology described above would be fitted in an easy-to-set-up configuration that indicates whether people are allowed to enter using two large "STOP" and "GO" traffic lights.

Important product announcement update

Barth and RS now offer a complete commercial version of this people counter, it can be ordered under RS Stock no (201-7846) . This unit is a complete ready to go system which is easily set up, it's ideal for shops, offices and public buildings, or places where social distancing needs to be observed. For more information please view the attached datasheet People counter 2017846.


Please follow this link for the Barth created automatic hand sanitizer dispenser solution.

As an owner-managed company, BARTH® Elektronik GmbH is one of the leading supplier in the field of miniaturized PLC technology. Our focus is set on principles such as professionalism, tradition and long-term perspectives - personally and rooted in the soil - and represents the basis of the more than 25-year successful company history. Both the goal-oriented implementation of our mission and the continuous further development contribute significantly to the success of BARTH® Elektronik GmbH.

Recommended Articles


July 8, 2020 15:36

Is there a better manual for it?

0 Votes

June 17, 2020 07:12

I love the new display, if a shop had multiple doors that either both worked to count up and down or one was an entrance and one an exit or maybe more than two doorways. Would it then be possible to have wireless comms possibly with one as a master and the others as slaves?

Then there is the application to have them inside the shop to monitor the number of people on each floor and have these at the escalator and elevators as well as the doors and have a maximum number of people per level.

I love this application and I think it has a lot of potential

0 Votes

May 11, 2020 07:53

I think this requires a much larger beacon with Red and Green lights, something like the machine safety beacons.

I'd also add a big sounder to go off if someone enters when the sign is Red

May 11, 2020 07:53

red and green beacons can easily be connected to the mini-PLC - also a sounder which rings out if the maximum number of people is reached.
A stele with two big square LED lights 'STOP' and 'GO' is currently under development.

DesignSpark Electrical Logolinkedin