Distance Meter With RGB

by 705849 in Circuits > LEDs

209 Views, 1 Favorites, 0 Comments

Distance Meter With RGB

6160E025-15D5-4518-AF68-43E156BC0C44.png

I made a distance meter but the catch is its not like a normal distance meter the further or closer it goes it changes into different colours.I had got this idea from when in class I had made a normal distance meter and I had made a normal RGB led so I thought to myself why don't I add these two together and see the outcome.The outcome was amazing.

Supplies

3E7A1B00-0030-41AD-8C62-BF005A4A4BA4_1_201_a.jpeg
  • RGB LED
  • 220 resistor
  • ardunio
  • ultra sonic distance meter

AB358611-2DC5-4CBE-AB56-0DFF09FBFAAB_1_201_a.jpeg

Thats my code:took inspiration from Domingo