Temperature scanner and RFID entrance system


Hello. I am to create a system that reads a person's temperature before scanning his RFID pass on a turnstile gate.

The system works on step by step basis:

STEP 1. Scan the temperature (if within the normal range, he is allowed to scan his RFID to open the gate. If the temperature scanned is not within the normal range, he is not allowed to scan his RFID pass.
STEP 2. RFID Pass Scanning - the system should not work if the scanned temperature is not in the normal range. The purpose is not to allow the possible spread of the virus.

Here is my concern, how can I program the system so that STEP 2 will not be done if STEP 1 failed?

I tried programming it but they always work simultaneously.

Powering the servo from the Arduino board is no, no. Use a separate power supply.

Can you elaborate on the need to use a separate power supply?

The tiny conducting strips on the board are not designed for motor currents. Motors sometimes pulls amps when starting. Being lucky the voltage drop makes the motor misbehave. Being unlucky the strip blows like a fuse.

But it's not the "tiny conducting strips on the board".

It's the fact that you need to power the board and the servo with 5 V. Or maybe 6 or so Volts for the servo which will take an Amp or more - depending on size as you have not specified it - when it operates.

From where are you getting your 5 Volts? You cannot get it by feeding power to the "barrel jack" or "Vin" as the regulator on the board has no heatsink and will overheat and (hopefully reversibly) shut down when you draw more than a couple of hundred milliamps.

And the USB jack has a 500 mA "polyfuse" to limit the current drawn.

So you need to provide regulated 5 V with at least 1 Amp capacity to the servo and connect it to your "5V" pin. Except do not connect it to the "5V" pin when you connect to USB on your PC for programming.

We might be able to help if we could see your code.

The Arduino is NOT a power supply.

Motors and servos inject electrical noise into their power supplies, which can damage or reset an the Arduino if they share a power supply. Never use the Arduino 5V output for motors or servos, for additional reasons mentioned above.

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