Login

Interface LDR sensor module and RGB LED module with NodeMCU

Objectives

  • Interface LDR sensor module and RGB LED module with NodeMCU

Things

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

Let’s begin!

 

Interfacing LDR sensor module and 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
SEE ALL Add a note
YOU
Add your Comment

We would love to see what you build out of these learnings!

Click here to submit your projects, share it with the world and stand a chance to be rewarded.

top

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

X