Go Down

Topic: Ping sensor light (Read 763 times) previous topic - next topic

newbie22

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??   :~

RIDDICK

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
?
-Arne

newbie22

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

teckel

#3
Sep 15, 2012, 10:23 pm Last Edit: Sep 15, 2012, 10:30 pm by teckel Reason: 1

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


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
Arduino - Teensy - Raspberry Pi
My libraries: NewPing - LCDBitmap - toneAC - NewTone - TimerFreeTone

newbie22

well teckel for a grumpy little kid like you, i don't need ur help :)
so don't think anyone would appreciate ur help XD

teckel

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
Arduino - Teensy - Raspberry Pi
My libraries: NewPing - LCDBitmap - toneAC - NewTone - TimerFreeTone

RIDDICK

teckel looks a little bit like elliot in Leverage (TV series)...  :P

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?
-Arne

Go Up