By jbm417
#7845
I have looked at the board layout & schematic, but cannot figure out if it is possible to use Arduino D4 to control Relay 1. Will someone help me with a simple answer?

TIA, Joe
By Leff
#7848
Hi Joe,

Welcome!

It's easy to make it just by removing the pin-map on the board and then connect the pin to the any Digital pin, e.g. D4.

For example:

I removed the map on D2/IO3, and connect it by a wire to D3;
(596.02 KiB) Downloaded 1142 times


If I upload the sketch:
Code: Select all
void setup() {
  // initialize digital pin 13 as an output.
  pinMode(3, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(3, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(3, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
}


It goes like this:

(635.98 KiB) Downloaded 3592 times
By Leff
#7861
jbm417 wrote:Leff, thank you for the info. This is just what I needed.


Very happy that could help you! :)