HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /A school car park has a barrier at its entrance and a sign that shows the number of free spaces…
MediumComputer ScienceHigh School (9–10)Computer Science › Automated and Emerging TechnologiesConceptualIGCSE

A school car park has a barrier at its entrance and a sign that shows the number of free spaces…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

A school car park has a barrier at its entrance and a sign that shows the number of free spaces. When a car drives up, the barrier lifts. When the car has passed, the barrier comes down. The car park holds 404040 cars.

  1. Name a suitable sensor for detecting a car at the barrier, and say what data it captures.
  1. Name the actuator and say what it does.
  1. Describe what the microprocessor does each time a car comes in.
Need a reminder? The key ideaShowHide

An automated system has three kinds of part. A sensor measures a physical quantity and sends the data (through an analogue-to-digital converter if the signal is analogue). The microprocessor compares the data with stored values, decides, and sends signals. An actuator turns a signal into a physical movement, such as a motor opening a window.

The worked solution

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

(a) A proximity sensor detects that an object is near the barrier. (An infra-red sensor whose beam the car breaks, or a magnetic field sensor in the road, would also earn the mark.)

(b) An electric motor is the actuator. It lifts the barrier arm and lowers it again.

(c) The microprocessor:

  1. receives the data from the sensor and decides that a car is waiting;
  2. checks its stored count of cars. If the count is below 404040, it sends a signal to the motor to lift the barrier;
  3. adds 111 to the count and sends the new number of free spaces to the sign;
  4. when the sensor shows the car has passed, it sends a signal to lower the barrier.

If the count is 404040, it keeps the barrier down and the sign shows that the car park is full.

Watch out. "The sensor counts the cars" loses the mark. The microprocessor holds and changes the count.

Log in to save this for later
← All Problems
← The microprocessor of a cold store reads one temperature sensor every 15 seconds…A heater uses two stored values. It switches on when the reading is below 18 °C and it is off, and… →
More onComputer Science › Automated and Emerging Technologies

Discussion (0)

Log in to join the discussion.

Loading…

More on this topic

  1. A filter calls an email unwanted when its score is greater than its dividing line T…Hard
  2. A bank wants software to decide which card payments might be fraud…Hard
  3. A learning filter is given eight emails that users have labelled…Medium
  4. An email service has a filter that moves unwanted messages into a separate folder…Medium
  5. A health centre in a remote area uses an expert system to help a nurse decide whether a patient…Hard
All problems on this topic →