CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Parking sensor on the house

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
PrinceNai



Joined: 31 Oct 2016
Posts: 452
Location: Montenegro

View user's profile Send private message

Parking sensor on the house
PostPosted: Sun Aug 09, 2020 2:19 pm     Reply with quote

Dear Sirs,

I'm toying with the idea to make myself a parking sensor on the house. The situation is like this: I have a parking space in front of my house for two cars. It is narrow and on top of that the car that goes next to the house must attack it at an angle. Car must be parked like 15cm from the house to be able to normally open the door if the second car is already parked or to leave enough space if it isn't there. By default the tricky spot is mine, of course. I already managed to brush my car on the house once or twice, which did wonders for my mood.

Now to the idea. I'd like to make like a 1,5m long bar with maybe 10 proximity sensors and that many bright LED's. So if I come closer than approx. 20cm to the wall, green LEDs are on, closer than 5cm red lights should go on on the spot where I'm too close. What kind of sensors would you recommend? All the numbers here are arbitrary, length of the bar, number of sensors and distances, so I'd be glad to hear any ideas.

No, my car doesn't have front sensors and I don't want to drill into it to install them :-).

Regards,
Samo
temtronic



Joined: 01 Jul 2010
Posts: 9097
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sun Aug 09, 2020 4:19 pm     Reply with quote

hmm...
First I'd consider 8 sensors and LEDs. Might be easier to program as a byte of data.
2nd, Maybe ultrasonic sensors ? Probably a lot of them available as 'robot distance' sensors, so economical and easy to buy.
You could drive a red-green LED off 2 I/O pins, though that uses 16 pins, another 8 for sensors adds up to 24 so a 28 pin PIC may work for you, I still like 40 pin devices. You always need extra pins for 'something'.
It'll be interesting to read the replies from others.

Jay
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Aug 09, 2020 5:32 pm     Reply with quote

Here is an Arduino project which is similar to what you want:
https://www.mysensors.org/build/parking
Ttelmah



Joined: 11 Mar 2010
Posts: 19215

View user's profile Send private message

PostPosted: Sun Aug 09, 2020 11:45 pm     Reply with quote

I used to have a place that needed precise parking. I just had a bamboo
cane hanging down on cord, and you drove in till you touched this....
benoitstjean



Joined: 30 Oct 2007
Posts: 543
Location: Ottawa, Ontario, Canada

View user's profile Send private message

PostPosted: Wed Aug 12, 2020 3:17 pm     Reply with quote

@TTelmah... haha, that's funny. Can't go wrong, works all the time. But of course it defies the concept of creating and learning :)

Ben
temtronic



Joined: 01 Jul 2010
Posts: 9097
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Aug 12, 2020 5:59 pm     Reply with quote

Ok, make the bamboo stick 'high tech'.
install RGB LED, XYZ motion sensors, battery and a PIC of course.
When car hits stick, LEDs light up.
Maybe add Bluetooth to talk to your car's 'info center' and display the stick's motions, have car speaker's 'talk to you'.
Actually you could add a small camera in the stick, have the PIC send the image, in realtime of course, of your car coming towards it.

Any other 'upgrades' ????
newguy



Joined: 24 Jun 2004
Posts: 1900

View user's profile Send private message

PostPosted: Wed Aug 12, 2020 6:21 pm     Reply with quote

Old job I had involved tank gauges. Employer wanted to make inroads in a market segment where an ordinary stick reigned supreme. Lots of meetings, consultations, design churn. In the end the initiative was abandoned. Why? Couldn't compete with the price of a stick.
Ttelmah



Joined: 11 Mar 2010
Posts: 19215

View user's profile Send private message

PostPosted: Thu Aug 13, 2020 12:26 am     Reply with quote

That is so true... Very Happy
The problem with hi-tech approaches, is they also need power. The stick
still works when the battery is flat....
temtronic



Joined: 01 Jul 2010
Posts: 9097
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Aug 14, 2020 5:07 am     Reply with quote

aw.... just add a solar cell array, MPPT electronics, auto switching,....
come on guys... add another PIC.....
we need to fill the bamboo tube FULL of electronics !
diode_blade



Joined: 18 Aug 2014
Posts: 52
Location: Sheffield, South Yorkshire

View user's profile Send private message Send e-mail

PostPosted: Fri Aug 14, 2020 5:24 am     Reply with quote

Also you could add a couple of 6146B valves to the stick and have a 100W HF transceiver..
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group