Parking lot counter

Thread Starter

SpeechMan

Joined Feb 11, 2009
3
Like mentioned in the title, I need to design a parking lot counter. Problem is that I have no enter/exit input, instead I have sensor placed on each lot, which will activate if the lot is occupied. The system would consist of 8 areas, each having 8-19 lots and own separate display (either green/red or 7-segment), so I need binary output of the amount of occupied lots.

Anyone have any idea how this could be made? I've been searching net for hours but came up with nothing.
 

RiJoRI

Joined Aug 15, 2007
536
Given the constraints, I do not believe it can be done. You will need some type of sensor for the entry & exit point(s).

--Rich
 

KMoffett

Joined Dec 19, 2007
2,918
Like mentioned in the title, I need to design a parking lot counter. Problem is that I have no enter/exit input, instead I have sensor placed on each lot, which will activate if the lot is occupied. The system would consist of 8 areas, each having 8-19 lots and own separate display (either green/red or 7-segment), so I need binary output of the amount of occupied lots.

Anyone have any idea how this could be made? I've been searching net for hours but came up with nothing.
By "lot" do you mean an area with multiple, marked places to park cars? Or, does "lot" mean just the marked place to park one car?

Ken
 

tuborggg

Joined Jan 3, 2009
37
If I' missing something, tell me...
Otherwise, you have the sensors for each parking space - count how many of them are occupied. (a register of #number of sensors width, and a counter for how many '1's you've got at a given time).
also, each bit of the register will be connected to a led which will be on when the bit is '1'...
 

Thread Starter

SpeechMan

Joined Feb 11, 2009
3
@KMoffett
By lot, I mean the space for single car, so on each space there would be a sensor watching if the position is free or used.

@tuborggg
Idea is that every space for car would have a sensor, that is the input.
For output I have 3 variations.

1) map with led for each space
2) Traffic light system, green for more than 5 available spaces on certain area, yellow for 1-5 available spaces and red for all full.
3) 7-segment display that shows how many spaces are available.

Option 1 is easy, just by simply connecting each sensor to a led.
But for options 2 and 3 I need a system that counts how many sensors are '1' and then outputs that amount as either BCD or binary digit. That is my biggest problem at the moment, I know it can be done, as many parking areas have such system and some of them don't require a PC, but I haven't found any schematics or info on how the system actually works.

I can easily create the necessary compare and decoder systems for the output, but the biggest problem is that for those I need that BCD or binary digit.
 

Ron H

Joined Apr 14, 2005
7,063
Sounds like you have unary inputs, and you want to add them and convert the result to binary or BCD. Is that a fair description of your problem?
 

Ron H

Joined Apr 14, 2005
7,063
Exactly. Unfortunately, I don't know have any idea how to do this.
A microcontroller might be the simplest way. If you want to use discrete logic, the first thing that comes to mind is a multiplexer to scan all the inputs, with its output connected to the count enable of a binary counter. Each occupied space would cause the counter to increment by one. Unoccupied spaces would inhibit the counter.
You would need another counter to create the address inputs to the multiplexer.
 

Ron H

Joined Apr 14, 2005
7,063
Car parks which display number of places available simply sense cars entering (give -1 to the register) or car leaving (give +1 to register). The register is set to start with total number of spaces available.
An alternative to the microcontroller would be a BCD up/down counter such as 4510 or 4518 (dual version of 4510). Number of these needed depends on total number of spaces to be counted. Use BCD to 7 seg converter such as 4511 to drive the display.
How do you reset this scheme if the count gets screwed up?
 

Wendy

Joined Mar 24, 2008
23,429
A simple camera, where pixels for each space is monitored. If they are off colored (ie, a car is parked there) then it is a 1, if it matches the color profile for time of day it is empty, a 0. It would still be easy to spoof, but cheap.
 

Ron H

Joined Apr 14, 2005
7,063
I would not expect my students to consider the count getting screwed up as this demonstrates a lack of confidence in your solution.
You may be correct. I suppose it depends on the lesson that was intended. If my students did not consider the count getting screwed up, I might tell them that they had not considered failure modes. Good engineers try to foresee possible failure modes, and protect against them or provide a workaround.
Would it satisfy your extension of the problem to say add 2 push button inputs in the control box to increase or decrease the count?
That is a reasonable workaround. In the absence of nonvolatile memory, it would require a little work to restore the count in the event of power failure.
 

Ron H

Joined Apr 14, 2005
7,063
Thanks for that. My response is to some extent conditioned by teaching 14 to 18 year olds, it is 42 years since I was in engineering.
If this were a major project I would certainly require my student to consider all scenarios including all possible failures. I would also demand more than one possible solution.
I'm a 67 year old retired EE. I have never taught. I guess we could each learn from the other.:D
 
Top