Difference between revisions of "Open Kontrol Gateway"

From OpenEnergyMonitor Wiki
Jump to: navigation, search
(Using the OKG with OpenEnergyMonitor Hardware)
Line 5: Line 5:
 
The OKG PCB supports multiple wireless options such as RFM12B, XBEE, XRF, RN-XV Wifi. There is also PCB footprints for expansions like a RTC, SD card and SRAM. The OKG supports both the ENC28J60 or Wiznet Ethernet chips. See our blog post [LINK] on the OGK for background info and a brief comparison of the two different Ethernet chips.
 
The OKG PCB supports multiple wireless options such as RFM12B, XBEE, XRF, RN-XV Wifi. There is also PCB footprints for expansions like a RTC, SD card and SRAM. The OKG supports both the ENC28J60 or Wiznet Ethernet chips. See our blog post [LINK] on the OGK for background info and a brief comparison of the two different Ethernet chips.
  
==Using the OKG with OpenEnergyMonitor Hardware==
+
==Using the OKG as an OpenEnergyMonitor emonBase==
  
===RFM12B===
+
With RFM12B wireless to receive data from emonTx, emonGLCD and post to emoncms
 +
 
 +
==Using OKG with ENC28J60==
 +
 
 +
# Assemble the OKG base board following the Ciseco instructions on the [http://openmicros.org/index.php/articles/92-ciseco-product-documentation/openkontrol-gateway/161-openkontrol-gateway-start-here OpenMicros - assembling the OKG]. For emonBase operation the position of the jumpers don't matter. When your done the board should look like this:
 +
# Assemble the ENC28J60 Ethernet board following the Ciseco instructions on the OpenMicro website [http://openmicros.org/index.php/articles/92-ciseco-product-documentation/openkontrol-gateway/182-openkontrol-gateway-enc-boarde OpenMicros - assembling the OKG ENC28J60 board]
 +
# To the the [https://github.com/openenergymonitor/NanodeRF NanodeRF emonBase examples] with the OKG the line <br/> <code> if (ether.begin(sizeof Ethernet::buffer, mymac) == 0) </code> <br/> needs to be changed to <br/> <code> if (ether.begin(sizeof Ethernet::buffer, mymac ,10) == 0)</code><br/> this is because on the OKG the ENC28J60 SPI SS connection is connected to Dig10 on the ATmega 328 as opposed to Dig8 which is used on the NanodeRF (library default)
 +
# A change is also required to get the RFM12B on the OKG to work <br/> <code> The OKrf12_set_cs(2); </code>

Revision as of 13:17, 7 August 2012

Open Kontrol Gateway

The Open Kontrol Gateway (OKG) is a very flexible web-connected base station based on the ATmega328 which is totally Arduino IDE compatible (Arduino UNO bootloader). The OKG has been designed and manufactured by our friend Miles who runs Ciseco Plc .

The OKG PCB supports multiple wireless options such as RFM12B, XBEE, XRF, RN-XV Wifi. There is also PCB footprints for expansions like a RTC, SD card and SRAM. The OKG supports both the ENC28J60 or Wiznet Ethernet chips. See our blog post [LINK] on the OGK for background info and a brief comparison of the two different Ethernet chips.

Using the OKG as an OpenEnergyMonitor emonBase

With RFM12B wireless to receive data from emonTx, emonGLCD and post to emoncms

Using OKG with ENC28J60

  1. Assemble the OKG base board following the Ciseco instructions on the OpenMicros - assembling the OKG. For emonBase operation the position of the jumpers don't matter. When your done the board should look like this:
  2. Assemble the ENC28J60 Ethernet board following the Ciseco instructions on the OpenMicro website OpenMicros - assembling the OKG ENC28J60 board
  3. To the the NanodeRF emonBase examples with the OKG the line
    if (ether.begin(sizeof Ethernet::buffer, mymac) == 0)
    needs to be changed to
    if (ether.begin(sizeof Ethernet::buffer, mymac ,10) == 0)
    this is because on the OKG the ENC28J60 SPI SS connection is connected to Dig10 on the ATmega 328 as opposed to Dig8 which is used on the NanodeRF (library default)
  4. A change is also required to get the RFM12B on the OKG to work
    The OKrf12_set_cs(2);