• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 Multisensor – Relay Module

Q&A Forum › ESP32 Multisensor – Relay Module
0 Vote Up Vote Down
Joel Jacob asked 6 years ago

If we give external power supply(a 5V adaptor) to the relay should we connect gnd of relay to gnd of esp32

3 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

Yes, I think the GND in the circuit should be shared.

0 Vote Up Vote Down
Joel Jacob answered 6 years ago

How to connect external power supply to 4 channel relay. 
I have jd vcc and vcc. 

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

Hello, I recommend reading my relay module guide for Arduino (it’s the same for the ESP32, but just connect it to the right GPIO): https://randomnerdtutorials.com/guide-for-relay-module-with-arduino/

I don’t have the schematics for that exact circuit.

Here’s some information about the JD-VCC pin:

Note: notice that the module has a jumper cap connecting the VCC and JD-VCC pins; the one shown here is blue, but yours may be a different color. The jumper cap allows you to choose whether the circuit is physically connected to the Arduino circuit or not, and you can choose to have it on or not.

With the jumper cap on, the VCC and JD-VCC pins are connected. That means the relay electromagnet is directly powered from the Arduino’s power pin, so the relay module and the Arduino circuits are not physically isolated from each other (this is the configuration we’ll use).

Without the jumper cap, you need to provide an independent power source to power up the relay’s electromagnet through the JD-VCC pin. That configuration physically isolates the relays from the Arduino with the module’s built-in optocoupler.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.