- Old royaltek gps data loger serial#
- Old royaltek gps data loger upgrade#
- Old royaltek gps data loger plus#
- Old royaltek gps data loger series#
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#
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).