---
title: "Open Kontrol Gateway"
url: "https://maker.wiznet.io/ssekim/projects/Open-Kontrol-Gateway/"
markdown_url: "https://maker.wiznet.io/ssekim/projects/Open-Kontrol-Gateway/md"
type: "UCC: User Created Content"
author: "Steve"
original_author: "ssekim"
original_url: "https://wiki.openenergymonitor.org/index.php/Open_Kontrol_Gateway"
published: "2021-07-05"
language: "en"
likes: 0
views: 247
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Open Kontrol Gateway

> Open Kontrol Gateway

Original author: ssekim (source: https://wiki.openenergymonitor.org/index.php/Open_Kontrol_Gateway)

## Article

The Wiznet W5200 is an advanced Ethernet chip which has an integrated TCP/IP stack. It's almost identical to the Wiznet W5100 which is used in official Arduino Ethernet boards. The Wiznet W5200 works with the standard Arduino Ethernet library with a small change. To use the OKG with the Wiznet W5200 as an emonBase to receive data from an emonTx via RFM12B and post to emoncms follow these steps:

1. Assemble the OKG base board following the Ciseco instructions on the?[OpenMicros - assembling the OKG](http://openmicros.org/index.php/articles/92-ciseco-product-documentation/openkontrol-gateway/161-openkontrol-gateway-start-here). For emonBase operation the position of the jumpers doesn't matter. When you're done, the board should look like this:

2. Assemble the Wiznet Ethernet board following the Ciseco instructions on the OpenMicro website?[OpenMicros - assembling the OKG Wiznet board](http://openmicros.org/index.php/articles/92-ciseco-product-documentation/openkontrol-gateway/183-openkontrol-gateway-wiznet-adapter-board)

3. Implement the Wiznet?[reset line fix](https://wiki.openenergymonitor.org/index.php/Open_Kontrol_Gateway#Wiznet_Reset_Fix)

4. Replace the Arduino Ethernet library (in Arduino IDE libraries folder) with an updated library that supports the Wiznet W5200 and has modifications to enable RFM12B compatibility?[download from OpenEnergyMonitor GitHub](https://github.com/openenergymonitor/Ethernet)

5. Download the?[JeeLabs JeeLib library](https://github.com/jcw/jeelib)?and install in your Arduino folder. Make sure you delete or move any other JeeLib / Ethernet library folders currently in your Arduino library folder (renaming is?**not**?sufficient).

6. Download the?[OKG Wiznet to emoncms examples](https://github.com/openenergymonitor/Open-Kontrol-Gateway). Be sure you set the RFM12B network and frequency, emoncms server and emoncms read-only API key. There are currently two examples:
  1. OKG_Wiz5200_RFM12B_emoncms: A fixed data structure example for use with one emonTx and one emonGLCD.
  2. OKG_Wiz5200_RFM12B_emoncms_multinode: flexible example for posting data to emoncms, it relays data to emoncms from as many as 30 nodes. (rfm12 library maximum).

---

Source: https://maker.wiznet.io/ssekim/projects/Open-Kontrol-Gateway/
