element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Forget Me Not Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Forget Me Not Design Challenge
  • More
  • Cancel
Forget Me Not Design Challenge
Blog eLDERmon  EnOcean Wireless
  • Blog
  • Forum
  • Documents
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: mcb1
  • Date Created: 19 Oct 2014 1:33 AM Date Created
  • Views 1204 views
  • Likes 1 like
  • Comments 5 comments
  • forget_me_not
  • minion
  • dave
  • b+
  • design_challenge
  • openhab
  • iot_eldermon
  • tektronix
  • rpisoc
  • eclipse
  • internet_of_things
  • enocean
  • raspberrypi
  • smarthome
  • challenge
  • iot
  • tim
  • wipi
  • enocean_pi
Related
Recommended

eLDERmon  EnOcean Wireless

mcb1
mcb1
19 Oct 2014

eLDERmon  EnOcean Wireless

 

This post details the wireless connection to the RPi B+, along with some other voltage checks.

 

Link to other posts
Forget Me Not : eLDERmon Intro
Forget Me Not :  eLDERmon  Electrical
Forget Me Not :  eLDERmon  Outlets
Forget Me Not : eLDERmon Planning
Forget Me Not : eLDERmon Parts 1
Forget Me Not :  eLDERmon  Sponsor Parts
Forget Me Not : eLDERmon Hardware Hacking
Forget Me Not : eLDERmon GNUplot
Forget Me Not: eLDERmon Protocol
Forget Me Not : eLDERmon Hardware Hacking #2
Forget Me Not : eLDERmon Hardware Hacking #3
Forget Me Not : eLDERmon Tim
Forget Me Not : eLDERmon Charts
Forget Me Not : LPG Level
eLDERmon EnOcean Sensors
eLDERmon EnOcean Sensors Part 2
eLDERmon EnOcean Sensors Part 3
eLDERmon EnOcean Sensors 4

 

 

In order for the eLDERmon to be most useful, it needs to be untethered from the ethernet connection.

We've removed the wires to the sensors, so its only logical to remove all the wires at the other end  ... well the power might be an issue.

 

I decided to use a WiPi    WiPi Wireless DongleWiPi Wireless Dongle to connect the Raspberry Pi to the interweb thingy. .. as a certain British motoring show host calls it.

image

I plugged mine in and unlike the older models, the B+ didn't reboot ..image

 

 

The first step is to backup your interfaces file ...just in case

In the terminal window, type  sudo cp /etc/network/interfaces /etc/network/interfaces_original and press ENTER.

 

This copies (cp) the file 'interfaces' that lives in the '/etc/network' directory.

 

I recommend using a fixed IP address, rather than letting the router assign some number that you then have to hunt for.

You could force the router to reserve a number, but this is just as easy.

 

You'll need to know the IP number you can use, the network/lan address and the gateway used to get out from your house to the world.

 

Type ifconfig -a and press ENTER and you should get something similar to this

 

image

This tells me that the network is 192.168.0 and the gateway is 192.168.0.20

 

To add the wireless settings type sudo nano /etc/networking/interfaces and press ENTER.

(sudo gives you root privileges and nano is an editor that I prefer over some others)

 

My interfaces file for my test network looks like this, BUT you need to add a space and the name of your network after the 'wireless-essid'

ie wireless-essid minion

image

Once you're happy, press Ctrl and X, then follow the prompts to save the file.

 

You need to force the interfaces to pick up the new setting, and you can either reboot, or reset the interfaces by typing

sudo /etc/init.d/networking restart and press ENTER.

 

You should be able to confirm the wireless (wlan0) is working by typing

ifconfig -a and noting the new settings

image

          As the above shows both the Ethernet and Wireless are connected and working

 

There has been issues with getting WiFi to work, and for this test network I don't run security.

You'll find plenty of setups on the internet if you do use security, or have issues.

 

You can test it's working by pinging your gateway address (192.168.0.20 in my case)

ping -I wlan0 192.168.0.20

image

              The inclusion of the -I wlan0 forces it to use the wireless

 

having confirmed everything is working, you can pull the ethernet lead out, and reconnect using the wireless.

Just be aware the latency is slightly higher on wireless, so some things may be a bit slower.

 

So now that works correctly, another item has been ticked off my list.

 

 

 

Supply

I was keen to ensure that I had an adequate supply for my RPi, Wireless, Arduino and my mystery item, and luckily I found this supply.

image

 

I'm not sure of its history, and one of the problems with older supplies is that the capacitors in them expire by drying up.

This means they either don't work, have poor regulation or even worse overheat and melt or catch fire.

 

We tend to ignore power supplies, and expect that they just keep on going, no matter how poor the ventilation, or how old they are.

 

This is rated at 4 Amps and I need about 2.5 Amps, so it should work .... but will it?

I could pull it apart, and check the capacitors by measuring their value and the ESR to see if they have worn. (ie dried out/changed)

 

However the best way to find out is to test it using a resistive load that simulates the expected load you will apply when its in service.

 

 

Load Resistors

Many years ago I rescued some very large resistors to make an audio load.

These are 2 ohms and 100W rated, and are perfect for this test. (or are they? ... see further down)

 

I = E/R so 5/2 = 2.5 Amps.

 

The supply has a 2.1mm DC plug, so I attached some wires attached to a socket and wired the resistor across the socket.

You could measure the voltage with a voltmeter, but this only gives you part of the story, so an oscilloscope is your best tool.

 

Connect the Tektronix Scope Tektronix TBS1052 EDUTektronix TBS1052 EDU

Note the earth is connected to the negative side.

image

 

 

First test is to check the voltage

image

For this test I set Channel 1 to 1.0v/ division with DC coupling, and then plugged the socket onto the DC lead (hence the little stumble)

As you can see it's steady at 5v with a 2.5 A load.

It's also gratifying to note that the voltage went straight to 5v with no overshoot due to suddenly dumping the load onto it.

 

 

Next check is to measure the ripple.

Ripple is the variation from the nominal voltage, due to losses in wiring, worn parts, switching spikes, or even poor design.

In an ideal world that would be zero, but in reality needs to be appropriate to the task at hand.

image

This requires a higher resolution (or is that lower) setting of 20mV/div, and AC coupling.

 

Again I started the trace and then plugged the socket onto the DC lead.

The spike is the capacitor inside the scope stabilising after the voltage change.

 

One thing I haven't got used to with this scope is that it stores the captured data, and you can then add things later, or even change some of the range settings.

Rather than guess the ripple, I plugged the USB stick in and selected the cursors to measure it.

image

This measurement is of the ripple across the load with no volts supplied.

It includes some noise spikes, but is 8.8mV.

image

This measurement is with the voltage applied, and again includes some switching noise.

The cursor difference shows it to be 15.2mV.

 

This means that 15.2 - 8.8 = 6.4mV of ripple at 5v is only 0.128%

 

 

 

 

Heat

Obviously one of the other things to watch for is heat.

We have had supplies at work melt their cases, while the screen is still working.

Its not ideal and often results in the cases becoming brittle.

If they are moved they can open and expose potentially lethal voltages to unsuspecting persons.

A couple of large cable ties around the case is added insurance if you are in any doubt, since it may not be you that touches it.

 

 

For this test I left it running for an hour or so and while the resistor was extremely uncomfortable to touch (only 12.5 w) , the supply was barely above ambient temperature.

 

With theses tests completed, I have no concerns leaving it at 'Grannies' house.

 

 

So another part ticked off the list.

 

 

Mark

  • Sign in to reply

Top Comments

  • mcb1
    mcb1 over 10 years ago in reply to ipv1 +1
    IP Thanks for the links. Not sure the last one fits the B+ but certainly fits the older versions. Mark
  • shabaz
    shabaz over 10 years ago

    Hi Mark,


    Good post!! Great reminder to check power supplies.

    It's always tempting to do the finger test when one sees such resistors to see how hot things are : ) Like moths to a flame.

    Looking forward to seeing the mystery item post : )

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

    Sorry you'll have to wait to see it.

     

    it will be before the 24th as I have something else on and won't get a chance to post.

     

    Mark

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

    IP

    Thanks for the links.

     

    Not sure the last one fits the B+ but certainly fits the older versions.

     

    Mark

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ipv1
    ipv1 over 10 years ago

    Nice. I don't know if it qualifies but you can go through these for something useful.

    The geek getting started guide to the Raspberry Pi | The Embedded Code

    RPi Wi-FI Auto Connect and static IP | The Embedded Code

    Adding a Shutdown Button to the Raspberry Pi | The Embedded Code

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

    Oooh, mystery item ? image

    • Cancel
    • Vote Up 0 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 © 2025 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