Time for some reverse engineering.
Pin 12 is latch
Pin 13 is clock
Pin 14 is data
Pin 5 is OE (Needs to be pulled low to enable the relays)
A simple sketch to randomly turn the relays on and off
Code: Select all
int latchPin = 12;
int clockPin = 13;
int dataPin = 14;
int oePin = 5;
long randNumber;
void setup()
{
pinMode(latchPin, OUTPUT);
pinMode(clockPin, OUTPUT);
pinMode(dataPin, OUTPUT);
pinMode(oePin,OUTPUT);
randomSeed(analogRead(A0));
}
void loop()
{
digitalWrite(oePin, LOW);
randNumber = random(1, 255);
digitalWrite(latchPin, LOW);
shiftOut(dataPin, clockPin, MSBFIRST, randNumber);
digitalWrite(latchPin, HIGH);
delay(500);
}
ESP12F_Relay_X24_V1.2
24 Channel Relay Board
ESP8266 ESP12F ESP-12F
74HC595