Arduino pulse counting with multiple Energy Meters and logging to Emoncms

This project measures multiple energy meters to check its consumption rate. Its key features are to

  • monitor power consumption using multiple counters
  • store the collected data through a net connection to an Open Energy Monitor instance

 

Parts:

-Energymeter (One or more)

– IBOARD W5100 Ethernet Module for Arduino Development Board with POE / Xbee and SD Card Slot Expansion Free Shipping

 

URL & Code : http://blog.mrossi.com/?view=classic

Display the power consumption of the day – Arduino power meter

This project is a power consumption monitoring application using ethernet shield and XivelyPachube ※ 2 to the upload + accumulate the data in anywhere and at any time.

Using the accumulated data “Today’s power consumption” or “highest and lowest power of today” are displayed.

IMGP8552

 

IMGP8553

 

– Prototype

It makes a part that measures the voltage and current required for the power calculations.

Power meter /w Arduino Power meter /w Arduino

 

– Circuit

Power meter /w Arduino 回路図 rev3

 

– 100V Transformer

The power transformer of 100V side of the wire, parallel connect the varistor in, put a fuse in series.

IMGP0930

 

– Using Ethernet shield

Data measured by the Arduino power meter to Pachube (patch bay).

Pachube’s a web service that can be shared, such as environmental data and sensor data via the Internet.

IMGP0980

 

– Product.

P1020691 IMGP2907 IMGP2908

 

Source and detail tutorial description can be found from below link.

Original link = http://arms22.blog91.fc2.com/?no=517

W5500-EVB Development Configuration

W5500-EVB is based on W5500 (WIZnet Ethernet Controller chip) and NXP ARM Cortex M0 MCU. It is usually used for evaluating W5500 and starting the IoT device development project.

To start the IoT development, we will set up the development configuration of W5500-EVB

  1. LPCXpresso Installation

LPC Xpress is development tool provided by NXP. It is based on Eclipse and using ARM-GCC compiler. If you go to http://www.lpcware.com/lpcxpresso/download, you can get the program. (It supports Windows, Linux, MAC OS)

 

  1. Flash Magic Installation

Flash Magic is the flash programming tool for NXP MCU. If you go to below link, you can get the program.

http://www.flashmagictool.com/

Get the installation file according to your PC operation system. (In here, we will explain with windows version)

flash

If you execute the download file, you can see below windows. Just by clicking the “Next” button, install the program.

flashmagic1

flashmagic2

flashmagic3

flashmagic4

flashmagic5

Click the “Install” button.

flashmagic6

Click the “Finish” button

flashmagic7

 

Run the Flash Magic program. If you can see the below window, the installation is correctly done.

flashmagic8

 

  1. How to create the new project

We will explain how to create the new project by using open library that provided by NXP. LPC11E36 MCU is used for the W5500-EVB. As NXP does not provide the open library of LPC11E35, we will modify the “LPCOpen for KPC11E68” library. You can download the modified library from below link.

Download

You can get the LPC Open library from below link.

http://www.lpcware.com/lpcopen

Run the LPCXpress and go to File -> New -> Project. You can see below window. Select “LPCExpresso C Project” and click “Next” button.

project11

Select “LPC11/LPC12 -> LPC11Exx -> LPCOpen – C Project” and click “Next”.

project21

Input the project name.

project31

Select the target MCU (LPC11E36)

project41

Import the LPC Open library. For the open library, use the librarythat modified for W5500-EVB (File Name : W5500_EVB_lib.zip). Click import button.

project51

project61

 

Select Chip/Board Library and click the Finish button.

Chip/Board Library

  • lpc_chip_11exx : Chip Library
  • wiznet_evb_w5500evb_board : Board Library

project8

Click “Next” button

project9

project10

project111

 

If you click the Finish button, a new project is created.project13

 

As shown in below , you can see the project has been created.

project14

WIZnet Technology Online Store (www.shopwiznet.com)

In order to purchase WIZnet produts, please visit the following links.

Compact Size Network Module: WIZ850io

wiz850io

WIZ850io is an compact-sized network module that includes W5500(TCP/IP & Ethernet MAC & PHY) & MAG-JACK (RJ45 with X’FMR) with other glue logics. As it is hardware compatible with WIZ820io, you can easily replace the WIZ820io with WIZ850io just by updating the firmwware.

For more information, please refer to the following link; http://wizwiki.net/wiki/doku.php?id=products:wiz850io:start.

Network Watch with 7 Segment

This posting explains how to make the network watch with 7 segment. The watch will acquire the network time information using SNTP (Simple Network Time Protocol) and displays the current time on the 7 segment using RTC (Real Time Clock)

7 segment display is a form of electronic display device for displaying decimal numerals that is an alternative to the more complex dot matrix display. If you want to know more about 7 Segment, Click below link.

About 7 Segment (Wikipedia)

SNTP (Simple Network Time protocol) is the network protocol to synchronize the time on Internet. RTC provides the current time information. It counts the date, time, minute and second by operating independently from the MCU or CPU

Hardware

  • WIZwiki-W7500 : 1EA (Cortex-M0 Platform board)
  • Common-Anode Type, Array 7 Segment : 2EA
  • BC547 : 8EA
  • Tact Switch : 1EA
  • 220Ohm Resistor : 16EA
  • 1kOhm Resistor : 8EA
  • 10kOhm Resistor : 1EA
  • 1uF : 1EA
  • Jumper Wires
  • Bread Board

Hardware Circuit

seven_seg_1

 

As you see above circuit image, the A~G pins from 7 segment are connected to WIZwiki-W7500 in parallel. Common pins can be optionally connected 3.3V using npn transistor.

seven_seg_2

Demonstration

As you see the demonstration movie, when the WIZwiki-W7500 is reset, it acquires the time information from NTP server. If the RED LED is on, it means the time information is successfully acquired from NTP server. The time information is registered to RTC. The current time of RTC is displayed on the 7 segment.

Whenever you press the switch, the time and data information is alternately displayed on the 7 segment.


Firmware Code

The firmware is programmed on the mbed on-line compiler. If you click below link, you can get the source code.

https://developer.mbed.org/users/nanjsk/code/SNTP_7SEG_WIZwiki_W7500/

WIZnet Technology Online Store (www.shopwiznet.com)

In order to purchase WIZnet produts, please visit the following links.

WIZKon

Have you ever heard about PiKon 3D Printed Telescope? It is the Raspberry Pi based telescope made by a physicist in England, and got £5,850 funding at the crowd funding site Indiegogo.

For more detail, refer to below

Pikon 3D Printed Telescope

One day, a WIZnet engineer decided to make the similar one, WIZKon – an Internet Telescope that its platform is WIZwiki-W7500. Let’s see how he made it. It is very simple and easy to follow.

Hardware

The following board and electronic parts are required.

3d_telescope_1

  • 3D CAD File : The main body of the telescope will be made by 3D printer. You download the CAD file from the link.
  • WIZwiki-W7500 : This is the mbed-enabled ARM cortex-M0 platform board. For more detail, click Here
  • Serial Camera : LJ-DSC02
  • LENS : SSG-B51
  • ETC : Rubber bands, 2mm x 10, 20 screw bolt, wire, black thick paper, plastic support, pin header socket and etc

3D Printed Bodies

If you use above CAD file, you could get the below bodies that printed by the 3D printer.

3d_telescope_2

Serial Camera Wiring

As shown below images, connect the wires to the main board of the serial camera. We are going to use this board to compress the image data from telescope into JPEG format and transmit it to the main platform board, WIZwiki-W7500.

  • Prepare the serial camera, Wires and Pin headers.
  •  serial_wire_1
  • Take off the screws from the back panel of the camera PCB
  • serial_wire_2serial_wire_3
  • Connect the wires by soldering to the PCB as below.
  • solder_wire_4
  • solder_wire_5
  • Connect the pin headers to the end of the wires as below.
  • solder_wire_6

Mounting the Camera Module

Mount the above camera module in the middle of the telescope.

camera_bodycamera_body-1

Assembling the bodies

As shown in below images, we assemble the bodies of the telescope and lenses. For the exterior body of the telescope, we used the black paper to save the cost.

camer_ass_1

camer_ass_2camera_ass_3

Assembling Everything

camer_ass_4

WIZwiki-W7500

Connect the camera module in the body of the telescope, to the WIZwiki-W7500 as below.

mbed

Firmware

You can download the mbed code about processing the camera image and Ethernet connectivity from below link.

Mbed source code repository

Test

telescope_test

Below is the screen capture of the PC viewer. The PC viewer has been made with C#. If you need the source code, contact to ricky@wiznet.co.kr

telescope_pc

WIZnet Technology Online Store (www.shopwiznet.com)

In order to purchase WIZnet produts, please visit the following links.

Online Data Analysis with Arduino and Plotly

plotly-arduino-data-graph

Project Description

The service, ‘plotly’ visualizes your data in graphs or charts. The author introduces how you can use this service by using Arduino board.

Introduction
It’s 2014 and the Internet-of-Things is flying along at a rapid rate with all sorts of services and devices that share data and allow control via the Internet. In the spirit of this we look a new service called plotly.
This is a “collaborative data analysis and graphing tool” which allows you to upload your own data to be analysed in many ways, and then graph the results using all sorts of plot types.
With plotly you can run your own mathematical functions over your data, run intense statistical analysis and use or edit one of the many APIs (Python, MATLAB, R, Julia, REST, Arduino, or Perl) to increase the level of customisation. Plotly works in conjunction with Google Drive to store your data, however this can be exported and imported without any issues. Futhermore plotly works best in Google Chrome.
For our review we’ll look at using plotly to quickly display and analyse data received from an Internet-connected Arduino – our EtherTen, or you can use almost any Arduino and Ethernet shield. The system isn’t completely documented however by revieiwng our example sketch and some experimenting with the interface plotly is very much usable, even in its current beta format.

Video
https://www.youtube.com/watch?v=eR3UAvsgoIE&feature=player_embedded

original post(include Arduino source) : http://tronixstuff.com/2014/01/21/online-data-analysis-arduino-plotly/

WIZnet Technology Online Store (www.shopwiznet.com)

In order to purchase WIZnet produts, please visit the following links.