riterew.blogg.se

Old royaltek gps data loger
Old royaltek gps data loger













  1. Old royaltek gps data loger serial#
  2. Old royaltek gps data loger upgrade#
  3. Old royaltek gps data loger plus#
  4. Old royaltek gps data loger series#

  • Replace the calculated constant in the following line:Įmon1.voltage(pinTension, 234.26, 1.7) // Voltage: input pin, calibration, phase_shift.
  • Voltage calibration constant = Vac main / Vac ADC.
  • Making the long story short, follow the next steps:

    Old royaltek gps data loger serial#

    Then, that parameters are formatted in a human readable form, a time-stamp is added and are transmitted over serial port.Įvery certain period of time, the formatted info is stored in an SD card, in a.CVS file, in a new line each set of measures.Īll these operations are separated into functions for a better understand and maintenance of the software. In the loop section, periodically the electrical parameters are read, these measures are based in features of Open Energy Monitor's Arduino library EmonLib. The RTC is initialized and a function for setting the time (over the serial monitor) is called. An instance of emonlib is created and a current an voltage measures are set. In the setup section, all pins are initialized, also the SD card. Some pins were reserved for future upgrade: "ErrorSD" LED - On when an error in SD card occurs (not connected or read/write error)."Heartbeat" LED - Blink while the program is running.Two LEDs (with a 470 ohm resistor to GND):

    Old royaltek gps data loger series#

    Here we can view the complete explanation.īoth in the voltage and current circuits, a series resistor and a TVS diode have been added to the analogs inputs for protection purposes.įinally, we add a few components for feedback: Then we need to interface the "CT" with our Arduino, that only allow 0-5 Vdc in its analog inputs. And later calculate all the others parameters.įor current measurement we use a current transformer (we use the YHDC SCT 013-000), it allows us to get a relatively low voltage, proportional to the current we want to measure without cutting the mains cables. Now we know that we have to measure two parameters: voltage and current. And here the explanation about the maths involved. This is very well explained here in Open Energy Monitor web. In order to measure high-level electrical parameters, we need to "transform" that signals into an Arduino compatible voltage level (0 - 5Vdc).įirst, we need to understand how AC power works, and how appliances interact with the electrical system. The SD card module interface with Arduino over SPI connection (MOSI -> D11 MISO -> D12 CLK -> D13 CS (SS) -> D10).

    Old royaltek gps data loger plus#

  • The DS3231 is connected to the processor via I2C bus (SDA -> A4 and SCL -> A5 pins in Arduino, plus power).
  • The principals peripherals are a DS3231 RTC module and an SD card reader. The circuit is based in an Arduino Nano, but, it could be constructed arround an Arduino Uno or any compatible board, even with and Atmega328 and few components. Additionally, implement a configuration menu (instead of a serial connection for configuration).

    Old royaltek gps data loger upgrade#

    This recorded data allow us a later analysis in a computer.Ī possible upgrade of this project is to add an LCD display to show all electrical parameters in real time. five minutes save these parameters to SD card (in a.CVS format), with a timestamp. The general idea is a device that connected to an installation can measure every -let's say- ten seconds, voltage and current, and calculate active power, power factor, energy, etc. a whole house (current transformer and ac/ac transformer). An easy way to sense electrical parameters of a relatively big installation, i.e.Store all collected data in a non-volatile way (SD card).Keep the time even in a lack of power (battery back up RTC).There were some features of the device that could not be missed. My project is principally based on Open Energy Monitor's Arduino library EmonLib. Of course that idea is not new, in fact, there are various projects about that, in particular, one very well developed and documented is Open Energy Monitor. of a house) during a certain period of time. The principal idea of this project is made a device that registers the energy consumption (i.e. This is my very first project uploaded here, also it's my very first article originally written in English (I'm a Spanish spoken).















    Old royaltek gps data loger