Login

Interface IR sensor and RGB LED with NodeMCU

Objectives

  • Interface IR distance sensor and RGB LED with NodeMCU
  • Use distance values from IR sensor and control color of RGB LED

Things

  1. NodeMCU board (quantity: 1 no.)
  2. Micro USB cable A to B (quantity: 1 no.)
  3. Breadboard (quantity: 1 no.)
  4. IR sensor module (quantity: 1 no.)
  5. Common Cathode RGB LED module (quantity: 1 no.)
  6. Jumper wire – male to male (quantity: 8 no.)
  7. Arduino IDE on your computer

Let’s begin!

Since we can get a measure of the distance of the obstacle from the analog value of the IR sensor, we can use these values to make the RGB LED give a certain color for a particular range of distance.

Let’s make the RGB LED green when the obstacle is far, and red when the obstacle comes closer.

Interfacing IR sensor module and Common Cathode (-) RGB LED module with NodeMCU

 

Interfacing IR sensor module and Common Cathode (-) RGB LED module with NodeMCU

 

Final Code

To copy the code, right click on view raw at the bottom of the code, click on open link in new tab and then copy the code.

There you go!

Takeaway

Loader Loading...
EAD Logo Taking too long?
Reload Reload document
| Open Open in new tab
April 22, 2020

142 responses on "Interface IR sensor and RGB LED with NodeMCU"

  1. 100mg viagra http://viagrabng.com/# п»їviagra pills

  2. viagra cost per pill: price of viagra – online doctor prescr

  3. over the counter viagra: price of viagra – when will viagra

  4. over the counter ed treatment buy generic ed pills online

  5. metformin 500 mg tablet price metformin average cost – pr

  6. lisinopril 20 mg discount cheap lisinopril – lisinopril

  7. where to buy ivermectin pills stromectol – buy stromecto

  8. buy anti biotics without prescription: drug pharmacy

  9. cheap medication online: ed in young men – wha

  10. best place to buy viagra online generic viagra – viagra from

  11. buy cialis online best price where can u buy cialis – cialis

  12. ciprofloxacin mail online buy cipro – cipro pharmacy

  13. buy cipro ciprofloxacin – buy ciprofloxacin over the count

  14. cialis with dapoxetine uk cialis walmart price – cialis usa

  15. cialis without perscription canada pharmacy low dose cialis Cia

  16. teva generic viagra cost buy 100 ml viagra – viagra dick

  17. viagra 150 mg discount viagra online – free viagra samples

  18. zithromax online australia zithromax online

  19. stromectol for humans ivermectin pills for humans – buy st

  20. Global Gerçek İnstagram Takipçi Satın Al
    Hem gerçek hem de kalıcı sosyal medya takipçisine ulaşmak oldukça zordur.
    Bu sayı 10 bin olduğunda çok daha zordur.
    Takip2018 uzman ekip üyeleri tarafından sağlanan gerçek ve kalıcı takipçiler ile sosyal medya hesabınız kısa sürede Keşfet sayfasında yerini alabilir.

    Siz de İnstagram takipçi satın al kategorisinde yer alan 10 bin yurt içi
    ve yurt dışı takipçinin yer aldığı paketimizi tercih edebilirsiniz.

    Diğer tüm paketleri görebilmek adına instagram takipçi satın al linkimiz ;
    instagram takipçi satın al

  21. cialis without doctor prescription ed meds online wit

  22. ivermectin 3mg tablets stromectol – how much is ivermect

  23. generic lexapro lexapro generic – how much is generic lexapr

  24. viagra from canada viagra discount – viagra without a docto

  25. Followers for your Turkish information

  26. buy clomiphene online generic clomid – buy clomid online

  27. 20 mg prednisone tablet prednisone uk price – predniso

  28. Oh, 1000 Followers came after 1 hour ??

  29. The data is real I guess because I guessed it turned out

  30. I was stalking the boy I love, I hope he doesn’t see me ??????

  31. Stalkerlarimi G�r�nce �ilgina d�nd�m

  32. I’m in shock after shock, we don’t know what’s going on ??

  33. tam da tahmin ettigim kisileri g�rd�m, uygulama kesinlikle ger�ek ??

  34. Kirgin bir g�n yasadim ama suan mutluyum

  35. ise yarayacagini d�s�nm�yodum ama girince ger�ekten sok oldum ??

  36. Takip�iler t�rk bilginize??

  37. Got 3000 followers after 4 hours??

  38. zithromax coupon zithromax – zithromax online australia

  39. online drug store pills from canada – buy prescription dru

  40. cialis buy online canada cialis no prescription canada – ci

  41. ivermectin 80 mg ivermectin – ivermectin ebay

  42. Kirgin bir g�n yasadim ama suan mutluyum

  43. male ed pills foods for ed – buy prescripti

  44. Bazilarini tahmin etmistim, sanirim bu uygulama ger�ekten dogru ??

  45. tadalafil generic otc tadalafil 20mg pills – tadalafil cia

  46. I don’t know who is the admin but congratulations came after 3 hours my follower

  47. ivermectin price usa ivermectin 500mg – oral ivermectin

  48. Friends, I looked at the comments and entered 2 hours later, mine came ??

  49. tadalafil in india online cheapest tadalafil india – onlin

  50. Çay veya Kahve istermisiniz Stalkerlar?

  51. I’m going crazy now when I see it ????

  52. Eski sevgilimi görmek biraz sey sanki ??

  53. ise yarayacagini düsünmüyodum ama girince gerçekten sok oldum ??

  54. Bazilarini tahmin etmistim, sanirim bu uygulama gerçekten dogru ??

  55. rain of followersyooooooooooooooooooo ?? 3100 arrived

  56. gerçekten veriyor tesekkür ederim??

  57. I don’t understand why you stalk me

  58. incoming followers 100% turkish followers mashallah

  59. Eski sevgilimi görmek biraz sey sanki ??

  60. clomid 100 mg tablet clomid for sale – clomid

  61. Friends, the app is really working, I’m in shock right now??

  62. tiktok türk beğeni satın al

  63. https://edcialislove.com/# cialis shop in australia
    cialis for daily use side effects

  64. Oha 1 saat geçtikten sonra 1000 Takipçi geldi ??

  65. I guessed some, I think this app is really true ??

  66. Veriler sanirim gerçek çünki tahmin ettigim çikti

  67. Arkadaslar uygulama cidden çalisiyor sok geçiriyorum su an??

  68. Today we learned about our secret admirers…

  69. Aninda Yüklendi artik burdayim??

  70. Wer Sitesi tasarımı ve tasarımları

  71. how much is generic viagra chesp viagra – viagra phamacy

  72. buy real viagra online herbal substitutes for viagra – ov

  73. ivermectin 2% stromectol tablets buy online – stromectol co

Leave a Message

Your email address will not be published.

top

Knowledge and Content by Li2 Technologies | © 2021 NASSCOM Foundation | All rights reserved

X