element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino Projects
  • Products
  • Arduino
  • Arduino Projects
  • More
  • Cancel
Arduino Projects
Blog 2. AardEnergy – Set Up Uno and Due
  • Blog
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino Projects to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: peterjcs23
  • Date Created: 26 Nov 2015 11:57 AM Date Created
  • Views 3199 views
  • Likes 4 likes
  • Comments 20 comments
  • debug
  • setup
  • meter
  • due
  • uno
  • energy
  • arduino
Related
Recommended

2. AardEnergy – Set Up Uno and Due

peterjcs23
peterjcs23
26 Nov 2015

In this Blog

Download the Arduino software and power up the Uno and Due. Look at debug, does it exist from the Arduino GUI?

See previous Blog…

http://www.element14.com/community/groups/arduino/blog/2015/11/23/1-aardenergy-kick-off--a-new-project

IDE Download

IDE Down load from Uno board page, version 1.6.6 (I had already installed 1.6.5, so an upgrade). 1.6.5 uninstalled first, 1.6.6 now in place.

image

However, under Tools>Board…Due is not listed.

Get Started with Uno

Use the IDE, Help>Getting Started.

  • Plug USB into socket on Uno
  • Power LED is on (and port  LED is blinking)
  • In Windows Device manager select Ports and find Arduino Uno (COM3) (note Windows 8.1)
  • Right click and update driver from C:\Program Files (x86)\Arduino\drivers
  • Open Blink in IDE File > Examples >01.Basics > Blink
  • Select board as Uno
  • Select Serial Port (COM3 as determined above)
  • Upload, TX, RX LEDs flash happily.
  • And LED on pin 13 is flashing, so all good.

That went well but the Due was not listed so let’s try that from the link above.

Get Started with Due

Due board needs a micro B USB cable. Order this one:

http://www.amazon.co.uk/dp/B00FAAGNLU/ref=pe_385721_37986871_TE_item

The cable has arrived and fits the board programmer port (and it fits the Native USB port). The Due powers up, Green LED is on and the yellow LED blinks.

There are some special factors to keep in mind with the Due, read the guide:

https://www.arduino.cc/en/Guide/ArduinoDue

Follow the guidance on the drivers:

(Note that is says “tested on Windows XP and, but we are using 8.1)

From Device Manager>Ports, Arduino Due Programming Port is COM4. Right Click and Update Driver Software. Browse to C:\Program Files (x86)\Arduino\drivers. Hit Next and drivers are up to date.

Also load the core software to support the Due:

From Tools>Board>Boards Manager

image

Install the SAM board ARM Cortex-M3

The Due can now be selected from the list of boards.

image

Test the set up by loading the Blink programme:

  • Open Blink in IDE File > Examples >01.Basics > Blink
  • Select board as Due
  • Select Serial Port (COM4 as determined above)
  • Upload, TX, RX LEDs flash happily.
  • And yellow LED is flashing, so all good.

Software Debug

I am curious about how to debug the software, is there a Debug Mode or JTAG port? There is nothing on the GUI as far as I can tell at the moment. A Search for Arduino Uno Debug threw up a discussion on element14:

http://www.element14.com/community/thread/17697/l/debugging-atmega328?displayFullThread=true

Looks like print on the serial port is the Arduino “debug” unless you add some other utility. In essence a Uno Sketch needs to be simple to get away with no debug tool. This also might help:

http://www.element14.com/community/groups/arduino/blog/2012/09/30/the-first-practical-arduino-debugger

On the Due there is a Debug connector marked up but is not described in the top level Arduino document. A search throws up comments about the port as JTAG but used with third party tools:

http://forum.arduino.cc/index.php?topic=134907.0

So as a challenge I’ll attempt to use Arduino GUI and see how far I get with a fairly ambitious project to do real time calculations using Due board!

Other Blogs:

1. AardEnergy – Kick Off - a new project

3. AardEnergy – Current and Voltage Transformers

 

Next Steps

After a bit more shopping I have a Current Transformer and a Voltage Transformer to evaluate. In the next blog there will be some analysis of the signals from these sensors as well as some measurements to assess performance. That should lead on to a design for the Uno and the Due interface. The plan is to use a metering chip with the Uno and to a use direct analog input to the Due.

 

These are the sensors:

image

And, here is the ARDUINO MEGA, REV 3 Farnell 2285197 prototype board, which appears to be compatible with the Due.

image

  • Sign in to reply

Top Comments

  • peterjcs23
    peterjcs23 over 10 years ago in reply to mcb1 +2
    I am limiting the scope of my blog to this set up: All other connections, that in any way access live cabling, are out of scope for an essentially home hobby style project. The content of your blog goes…
  • mcb1
    mcb1 over 10 years ago in reply to peterjcs23 +1
    That is the insulated and armoured service cable into the house If that were true you wouldn't be able to get the clamp around it, and secondly you wouldn't get any current reading. I used to deal with…
  • peterjcs23
    peterjcs23 over 10 years ago in reply to peterjcs23 +1
    The service feed into the house is an armoured cable and the live and neutral tails are terminated in the meter. The CT is on the live tail, the insulation on the live wire is reinforced so meets the same…
Parents
  • mcb1
    mcb1 over 10 years ago

    peterjcs23

    Peter I hope you will be looking at the dangers of mains voltages during this blog.

    We seem to have many here whom either don't understand or underestimate the issues that can occur.

     

    I did a posting here

    http://www.element14.com/community/community/design-challenges/forget-me-not/blog/2014/08/08/forget-me-not-eldermon-electrical

    With regard to double insulation in particular anything involving a mains switchboard.

     

    Basically any cable leaving a switchboard needs to be considered live, but there are ways to allow the cable to exit and retain the double insulation required.

     

    As I understand there is some great work done at http://openenergymonitor.org/

     

    Cheers

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • peterjcs23
    peterjcs23 over 10 years ago in reply to mcb1

    Thanks Mark mcb1 for your apposite comments, safety is top of the agenda. In my first Blog my opening comment was:

     

    "I want to keep the voltages low on the boards to make them safe to handle, so no 240Vac mains exposure! "

     

    I'll put a link to your post in future Blogs

     

    Peter

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mcb1
    mcb1 over 10 years ago in reply to peterjcs23

    Cheers

    I did read that line, but also this one

    The current transducer needs to be an isolated type that can be clipped around an electrical feed wire. So it could be a Hall based sensor like LEM or a current transformer CT

    hence the bit about switchboards and the link to some 'not quite right' designs.

     

     

    mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • peterjcs23
    peterjcs23 over 10 years ago in reply to mcb1

    I am limiting the scope of my blog to this set up:

     

    image

     

    All other connections, that in any way access live cabling, are out of scope for an essentially home hobby style project. The content of your blog goes well beyond anything I intend to do.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • peterjcs23
    peterjcs23 over 10 years ago in reply to mcb1

    I am limiting the scope of my blog to this set up:

     

    image

     

    All other connections, that in any way access live cabling, are out of scope for an essentially home hobby style project. The content of your blog goes well beyond anything I intend to do.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • mcb1
    mcb1 over 10 years ago in reply to peterjcs23

    peterjcs23

    Yep and that's exactly what I was talking about.

    The cable you have attached your clamp around is single insulation. (As far as I can tell)

    The wiring on the CT output is not 110/230v rated, (mind you neither is the other cable seen passing under the wires).

     

     

    The whole issue is if there is any cracks in the insulation, then it has the potential to conduct and therefore liven the far end.

    Hence the double insulation or two insulating layers between any wire and anything at the far end or that might come in contact with it.

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • peterjcs23
    peterjcs23 over 10 years ago in reply to mcb1

    That is the insulated and armoured service cable into the house, so no danger.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • peterjcs23
    peterjcs23 over 10 years ago in reply to mcb1

    And the dielectric strength of the CT is 1000VAC/min.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago in reply to peterjcs23

    Pretty sure the armour has been stripped at this point in order to allow the inner cores to be routed easily to the inputs of the meter so Mark may be correct in his assesment

     

    yes there may be little danger in this install but it is not NO danger and as Mark indicated, probably does not meet code doing this, inluding routing what looks like a phone cable under it, do you experiance interference on the phonne ??

     

    Every country and regions have there own rules to follow, some are more lenient than others, some it is illegal to go near the primary wiring to a house, double check for your region to be sure of what is allowed

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mcb1
    mcb1 over 10 years ago in reply to peterjcs23

    That is the insulated and armoured service cable into the house

    If that were true you wouldn't be able to get the clamp around it, and secondly you wouldn't get any current reading.

    I used to deal with Steel Wire Armoured cable in the Oil Industry, and most other cables have the neutral as a braid wound around the cable.

     

    And the dielectric strength of the CT is 1000VAC/min.

    That is the figure on the CT, but not the cable exiting it.

    In NZ and AUS any low voltage cable (ie not mains rated) needs to be 50mm away from mains.

    This includes in the walls which is why homeowners are not allowed to run cables, or connect to switchboards.

     

    As Robert Peter Oakes says different countries have different rules, and this is a world wide forum, so it needs to be part of the consideration when blogging.

    Given your consultancy role, I'd be expecting that you are aware of the various electrical safety requirements.

     

    You could sleeve the cable leaving the CT with a mains rated sleeving which will make it safe.

    Even better would be adding a sleeving around the incoming mains cable (not easily done now it's terminated) and sleeving the CT outlet cable.

     

     

    what looks like a phone cable under it

    I've seen similar cable used to connect ot smart meters, but over this side of the world, it's definately a no no.

    Recently we managed to catch out the designers of these who went back and ensured they used mains rated cables from then on.

     

     

     

     

    As a general comment on Mains Safety

    On this forum we occasionally see the odd unsafe practice, and we seek to have to rectified or with element14's support remove the dangerous part.

     

     

    The creator might be careful, but it might be that a small child doesn't exercise the same care because they are unaware.

    It might be that at design time it works, but what happens one or two years down the track when that carefully placed piece of tape falls off.

     

    We don't make apologies for promoting safe practices when it comes to mains voltages, since you generally only get one chance.

     

    Mark

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube