943,949 Members | Top Members by Rank

Ad:
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Jul 18th, 2009
0

Re: Sensor Programming

Click to Expand / Collapse  Quote originally posted by Colin Mac ...
Since that detects any sort of motion then takes pictures, you would need to look at the pictures to be sure if there was a car in the bay.
In a project like this, you would also need sensors that indicate for sure whether there is a car. A program can then scan the lot and report the number of free spaces etc.
hi Colin

regarding the diagram on http://home.cogeco.ca/~rpaisley4/ATDetLong.GIF

tat's an example for setting the IR to send data out?

can i know wat's the basic h/w i need for it?
Reputation Points: 4
Solved Threads: 0
Newbie Poster
justin105 is offline Offline
9 posts
since Jul 2009
Jul 18th, 2009
0

Re: Sensor Programming

That's all that's needed for the sensor. The IR LED is on constantly. The output is taken from the collector of the phototransistor, which acts as a switch. When an object blocks the IR light, the phototransistor is off and the output is HIGH. When there is nothing in between, it's on and the output is LOW.
Reputation Points: 78
Solved Threads: 22
Posting Whiz
Colin Mac is offline Offline
327 posts
since Sep 2006
Jul 18th, 2009
0

Re: Sensor Programming

Indoor or outdoor parking lot? Sunlight washes out infrared!

Feel like digging up a parking lot, then halleffect sensors. A single loop will detect motion of magnetic metal. A double loop acts as a metal detector.

Pressure sensors.

Infrared - washed out by sun.

Ultrasonic - Can detect distance to ground, if short then being blocked then highly likely a car parked there.

Camera - Will need pattern matching to not shading difference to detect motion, etc. (Think MPEG MacroBlocks). Are pixel blocks being disrupted into a parking stall without going out? And what about those overline parkers?

First problem is the sensor. Work on it first!

Hint: There's a reason automated parking lots use choke points with vehicle counters.
Last edited by wildgoose; Jul 18th, 2009 at 1:05 pm. Reason: addendum
Reputation Points: 546
Solved Threads: 99
Practically a Posting Shark
wildgoose is offline Offline
891 posts
since Jun 2009
Jul 18th, 2009
0

Re: Sensor Programming

If it's just a proof of concept project, and you're not going to be near a car park. Then IR is fine.
Last edited by Colin Mac; Jul 18th, 2009 at 12:55 pm.
Reputation Points: 78
Solved Threads: 22
Posting Whiz
Colin Mac is offline Offline
327 posts
since Sep 2006
Jul 19th, 2009
0

Re: Sensor Programming

ya is just a proof of concept idea

so here's what i will do

a IR transitor and one receiver tat's constantly on, once a object block it, the receiver will send out the signal right?

here's the problem.. how should i capture the signal and send it to the pc? as far as i know the FTDI link and USB thingy given by Colin seems bit complicated is it?

my idea is to add in an IC with calculating the counter programmed in it and send it to the PC

i planed to use rs232 to send the signal to the PC, but the problem is wat type of signal is it? how do i determine the type of signal?

as far as i understand the signal will be determine by the programmed in IC is it?
Reputation Points: 4
Solved Threads: 0
Newbie Poster
justin105 is offline Offline
9 posts
since Jul 2009
Jul 19th, 2009
0

Re: Sensor Programming

The phototransistor is just a switch, the output is either the positive supply or ground. You could program a microcontroller to read the outputs and send serial data to the PC's serial port.

The FTDI devices are just a simple way of creating a USB interface.
Last edited by Colin Mac; Jul 19th, 2009 at 8:45 am.
Reputation Points: 78
Solved Threads: 22
Posting Whiz
Colin Mac is offline Offline
327 posts
since Sep 2006
Jul 20th, 2009
0

Re: Sensor Programming

ya tat's what i m planning to do.. i haven figure out what should i do when the signal is transfer to the PC.. mayb VB or C++ to program a calculation and display

i m trying to get the h/w and try to get the signal to the pc now, tat's the stage i m now
Reputation Points: 4
Solved Threads: 0
Newbie Poster
justin105 is offline Offline
9 posts
since Jul 2009
Jul 20th, 2009
0

Re: Sensor Programming

RS-422 or RS-485 would be an appropriate serial connection. Handles distance. Since it sounds like you're putting a processor (may I recommend a PIC) directly attached to the sensor(s) you may consider putting an LED on an output driver as well. You can self test by toggling the LED on and off and monitoring the input sensor.
Reputation Points: 546
Solved Threads: 99
Practically a Posting Shark
wildgoose is offline Offline
891 posts
since Jun 2009
Jul 20th, 2009
0

Re: Sensor Programming

Click to Expand / Collapse  Quote originally posted by justin105 ...
i m trying to get the h/w and try to get the signal to the pc now, tat's the stage i m now
So you've experimented on a breadboard and observed a working design; first, before taking the leap of hooking it up to the PC?
Last edited by MosaicFuneral; Jul 20th, 2009 at 4:41 pm.
Reputation Points: 888
Solved Threads: 114
Nearly a Posting Virtuoso
MosaicFuneral is offline Offline
1,270 posts
since Nov 2008
Jul 28th, 2009
0

Re: Sensor Programming

Have you thought of using a photo cell(or a solar cell) and a laser(visible or invisible)? It can also be used to detect movements. If it suits your needs, then programming and other things can be so much easier!

Just a thought.
Reputation Points: 76
Solved Threads: 6
Junior Poster
djextreme5 is offline Offline
103 posts
since Mar 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Computer Science Forum Timeline: Most predictable programming language
Next Thread in Computer Science Forum Timeline: FYP Telecommunication Software





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC