Sensor Programming

Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
Reply

Join Date: Jul 2009
Posts: 9
Reputation: justin105 has a little shameless behaviour in the past 
Solved Threads: 0
justin105 justin105 is offline Offline
Newbie Poster

Re: Sensor Programming

 
0
  #11
Jul 18th, 2009
Originally Posted by Colin Mac View Post
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?
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 327
Reputation: Colin Mac is on a distinguished road 
Solved Threads: 22
Colin Mac Colin Mac is offline Offline
Posting Whiz

Re: Sensor Programming

 
0
  #12
Jul 18th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 830
Reputation: wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all 
Solved Threads: 94
wildgoose's Avatar
wildgoose wildgoose is offline Offline
Practically a Posting Shark

Re: Sensor Programming

 
0
  #13
Jul 18th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 327
Reputation: Colin Mac is on a distinguished road 
Solved Threads: 22
Colin Mac Colin Mac is offline Offline
Posting Whiz

Re: Sensor Programming

 
0
  #14
Jul 18th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 9
Reputation: justin105 has a little shameless behaviour in the past 
Solved Threads: 0
justin105 justin105 is offline Offline
Newbie Poster

Re: Sensor Programming

 
0
  #15
Jul 19th, 2009
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?
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 327
Reputation: Colin Mac is on a distinguished road 
Solved Threads: 22
Colin Mac Colin Mac is offline Offline
Posting Whiz

Re: Sensor Programming

 
0
  #16
Jul 19th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 9
Reputation: justin105 has a little shameless behaviour in the past 
Solved Threads: 0
justin105 justin105 is offline Offline
Newbie Poster

Re: Sensor Programming

 
0
  #17
Jul 20th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 830
Reputation: wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all 
Solved Threads: 94
wildgoose's Avatar
wildgoose wildgoose is offline Offline
Practically a Posting Shark

Re: Sensor Programming

 
0
  #18
Jul 20th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 950
Reputation: MosaicFuneral is just really nice MosaicFuneral is just really nice MosaicFuneral is just really nice MosaicFuneral is just really nice MosaicFuneral is just really nice 
Solved Threads: 92
MosaicFuneral's Avatar
MosaicFuneral MosaicFuneral is offline Offline
Posting Shark

Re: Sensor Programming

 
0
  #19
Jul 20th, 2009
Originally Posted by justin105 View Post
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.
"Jedenfalls bin ich überzeugt, daß der Alte nicht würfelt."
"I became very sensitive to what will happen to all this and all of us." -Two geniuses named Albert
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 66
Reputation: djextreme5 is on a distinguished road 
Solved Threads: 4
djextreme5's Avatar
djextreme5 djextreme5 is offline Offline
Junior Poster in Training

Re: Sensor Programming

 
0
  #20
Jul 28th, 2009
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Computer Science Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC