Pages: [1]   Go Down
Author Topic: Ping sensor light  (Read 730 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi i'm a new user of the Arduino program
I want to make a led light which reacts to the ping sensor as I get closer
For instance, If i get closer the light will get brighter and fader when I'm far
I have little knowledge in codes or wires so internet research was of little use
can anyone be helpful enough to show me the codes and the breadboard layout of the ping sensor to light
for Arduino Uno??   smiley-confuse
Logged

Brunsbüttel, SH, F.Rep.GERM
Offline Offline
God Member
*****
Karma: 4
Posts: 596
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

for the LED dimming u can get some information here:
http://www.arduino.cc/en/Tutorial/DimmingLEDs

do u have a datasheet of that ping sensor?
or do u want to build it urself?
do u mean this:
http://arduino.cc/en/Tutorial/Ping?from=Tutorial.UltrasoundSensor
?
Logged

-Arne

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks but i have a ping sensor and i want to combine the ping sensor code with the led light code smiley
Logged

Toledo, OH
Offline Offline
God Member
*****
Karma: 35
Posts: 508
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks but i have a ping sensor and i want to combine the ping sensor code with the led light code smiley

So basically what you're looking for is for someone to totally write a custom sketch for you, and tell you exactly how to wire it up.  And, you're not interested in learning how to program yourself or how to build simple circuits.  Further, you want this for free.  Is that correct?  Good luck with that.

Tim
« Last Edit: September 15, 2012, 03:30:35 pm by teckel » Logged

Arduino - Teensy - Raspberry Pi
My libraries: NewPing - LCDBitmap - toneAC - NewTone - TimerFreeTone

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

well teckel for a grumpy little kid like you, i don't need ur help smiley
so don't think anyone would appreciate ur help smiley-lol
Logged

Toledo, OH
Offline Offline
God Member
*****
Karma: 35
Posts: 508
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

little kid

There's no better compliment than to be called a kid when you're 43 years old.  Thank you very much!  I guess doing 8 marathons a year and being a multi-time Ironman is paying dividends.

Tim
Logged

Arduino - Teensy - Raspberry Pi
My libraries: NewPing - LCDBitmap - toneAC - NewTone - TimerFreeTone

Brunsbüttel, SH, F.Rep.GERM
Offline Offline
God Member
*****
Karma: 4
Posts: 596
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

teckel looks a little bit like elliot in Leverage (TV series)...  smiley-razz

in re: the software question:
just read the sensor
and
then compute the desired LED brightness
and
then configure the LED driver

or what was ur problem?
Logged

-Arne

Pages: [1]   Go Up
Jump to: