Ozeki Relay Module

The Ozeki Relay Module is a modified Arduino Nano, that has a controllable on-board relay. This is an open source board, with all the files needed for manufacturing. You may also freely modify the design.

ozeki relay module build
Figure 1 - Ozeki Relay Module is basicly an Arduino Nano with a relay soldered onto it

The Ozeki Relay Module contains an ATmega328P microcontroller so you can program it just like an Arduino Nano using the Arduino IDE environment. It has a micro USB port, which is compatible with mobile phone USB cables. In additional to the Arduino Nano, it has a built in relay (D4 pin). The relay supports 1 pole changeover contactor. The output connector consists of 3 wire sockets from left to right: normally open, common, normally closed. It is strongly recommended to use ferrules for wiring. It also has standard mounting holes for M2 screws.

Figure 2 - Ozeki Relay Module photos

Download files for manufacturing

Datasheets

Specifications:

  • IC: ATmega328P
    • Clock Speed: 16 MHz
    • Flash Memory: 32 KB
    • SRAM: 2 KB
    • EEPROM: 1 KB
  • USB support provided by a CH340G USB to serial chip:
  • Power supply from USB (5V, 100mA)
  • 500mA resettable fuse
  • Status LEDs: power, TX, RX, D13, D4
  • Can be screwed on an Ozeki Matrix Board
  • Product dimensions:
    2.40in.[60.96mm]×0.80in.[20.32mm]
  • Relay:
    • 1 pole changeover contactor
    • maximum switching voltages: AC 50V/10A, DC 30V/10A
    • relay controller pin: D4

Pinout of the Ozeki Relay Module:

pinout of the ozeki relay module
Figure 3 - Pinout of the Ozeki Relay Module

The relay is good for controlling electronic devices:

  • Motors
  • Lights
  • Fans
  • Doors
  • Smart homes
  • etc.


Program code

  • Turns the relay on and off and waits 1 sec between the turns

    This is the simplest Ozeki Relay Module example code. It turns on and off the relay waiting 1 sec between the turns. It repeats the sequence in an infinite loop and starts with the on state. The relay is connected to pin 4. The relay LED is also connected to pin 4, so it shows the status of the relay.

    Downloadable code:
    Simple Example code (.zip)

    void setup() {
      pinMode(4, OUTPUT); //D4 is the relay PIN
    }
    
    void loop() {
      digitalWrite(4, HIGH);
      delay(1000);
      digitalWrite(4, LOW);
      delay(1000);
    }
    
    Source Code 1 - Arduino example code for relay switching


    Video 1 - This video shows how to upload the code above to Ozeki Relay Module
    start the video
  • Controls the relay with serial commands

    You can control your relay with serial commands. Character 'o' opens it and 'c' closes it. The LED on pin 4 indicates the relay status. If the relay is opened the LED glows in every other case the relay is closed and the LED is turned off. This parallelity between the relay and the LED is natural, since the relay and LED are on the same pin.

    Downloadable code:
    Example code (.zip)

    int RELAY_pin = 4; //D4 is the relay PIN
    char inChar;
     
    void setup() {
      Serial.begin(115200);
      pinMode(RELAY_pin, OUTPUT);
      Serial.println("Send 'o' to open or 'c' to close relay.");
    }
     
    void loop() {
      if(Serial.available()) {
        char inChar = (char)Serial.read();
          if (inChar == 'o'){
              Serial.println("opened");
              digitalWrite(RELAY_pin, LOW);
          }
          else if (inChar == 'c'){
              Serial.println("closed");
              digitalWrite(RELAY_pin, HIGH);
              }
      }
    }
    
    Source Code 2 - Arduino example for opening and closing relay with serial commands


    Video 2 - This video shows how to control relay with serial commands by using the code above

    start the video

Other modules

All of the Ozeki Processing Modules have ATmega328P or ATmega2560 microcontrollers integrated. Ozeki Modules can be connected to eachother like pieces of blocks. The connection is provided through USB to each module. They have M2 screw holes to give you an option to screw them on an Ozeki Matrix Board.

AutoConnect Link

If Ozeki 10 is running on your computer (such as on a Raspberry Pi) and you have plugged a microcontroller to it than Ozeki can be set to find serial devices on windows/linux and place them into a connection list so you can interact and control them through the software GUI.

See all Ozeki Processing Modules

More information