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
  • 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
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Designing and building an environmental monitoring system.
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 9 replies
  • Answers 2 answers
  • Subscribers 681 subscribers
  • Views 1108 views
  • Users 0 members are here
  • environmental
  • i2c
  • monitoring
  • frontpage
  • raspberry_pi
  • raspberrypi
  • linux
Related

Designing and building an environmental monitoring system.

Former Member
Former Member over 11 years ago

Hi there,

 

I have been approached to build an "cloud based" environmental monitoring system for a small architecture firm which uploads measurements to a web server. I don't have a huge amount (read basic secondary school) of experience with electronics, I have a much stronger background with programming and higher level software applications.

 

The people that I'm going to be working for have picked out a number of sensor boards from sparkfun that monitor some of the things they want to measure, most of which either output a DC voltage or via an I2C bus. I have looked around and decided to base the design off of a Raspberry Pi based off the fact it runs Linux and that the GPIO header has analogue pins and an I2C bus. I start in 2 weeks when hardware is delivered and I was wondering if anyone could offer any words of advice that I should stick to when developing the board and system.

 

I have a rough plan of how to approach the project and I will be trying to keep a blog of how development goes.

 

Thanks in advance,

 

// Skutov

  • Sign in to reply
  • Cancel
Parents
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago

    You are aware the PI does not have an analogue input to read your DC voltage sensor, you will have to implement your own.

     

    Fortunately this is not difficult, this is a great article from Adafruit  https://learn.adafruit.com/reading-a-analog-in-and-controlling-audio-volume-with-the-raspberry-pi/overview

     

    this one deals with using the I2C interface https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c

     

    have fun and come back for more help if needed

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago

    You are aware the PI does not have an analogue input to read your DC voltage sensor, you will have to implement your own.

     

    Fortunately this is not difficult, this is a great article from Adafruit  https://learn.adafruit.com/reading-a-analog-in-and-controlling-audio-volume-with-the-raspberry-pi/overview

     

    this one deals with using the I2C interface https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c

     

    have fun and come back for more help if needed

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • Former Member
    0 Former Member over 11 years ago in reply to Robert Peter Oakes

    Thanks for the pointers. I must have been mistaken when I thought the Pi had analogue inputs, ah well. There's only going to be a couple of analogue inputs so do you think something like this would suffice? The aim is to get a proof of concept/prototype board made using a Pi and the pre-made modules to get the software implemented and working and then to refine the hardware design.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago in reply to Former Member

    For analog that would work nicely, do remember though it is not isolated from the PI or any other connected devices. You have not specified what your monitoring in the environment. Lightning image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • kas.lewis
    0 kas.lewis over 11 years ago in reply to Former Member

    You could try the beaglebone black, that has LOTS (read: to many) analog inputs. It also will run linux I believe. I'm wondering how you are planning on uploading the info to a server as that is a project I am working on now for temperature and pressure, but I am using the freescale xtrinsic sensor board with a Tiva C Launchpad and CC3000 Boosterpack.

     

    I would have preferred to use a CC3100 Boosterpack with a launchpad or a CC3200 Lanchpad, I will hopefully try those soon. As for the the data you can upload that to either Plotly or Xively the second one is more powerful but I think more complex to use, and that will give you real time graphs.

     

    Good luck on your project and hopefully it all goes well for you, keep us updated on your progress

    Kas

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Robert Peter Oakes

    It's mainly going to be used for internal monitoring of buildings, and the guys said, and I quote, "If we can get a sensor for it then stick it on there."

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to kas.lewis

    I've given the Beaglebone black a look but as far as I can find it doesn't support I2C connections, which slightly scuppers the idea of using that.

     

    As for the transmission of data, the server to store the data will be running MySQL and I'm thinking to get round network issues I will set up OpenVPN to act as a bridge between the software running on whatever system it is implemented on and the server, this was the main draw to the pi, the fact that I know it runs Linux well and can do these things. Really the network can be LAN, WLAN or a 3G connection as long as it can get an OpenVPN connection, then SQL commands can be tunneled through that. The guys have said they want the data to be accessible to export to specialist software they use so doing it in this format makes it fairly easy to do that with. I might give those services a go for the prototyping stage but I reckon that it will end up being MySQL in the end.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • kas.lewis
    0 kas.lewis over 11 years ago in reply to Former Member

    The BBB definitely has I2C support (Page 72, 85, 89 ) I don't recall the pin numbers (P9-17,18. P9-19,20) but I know its there because I have used them before. As for the linux issue I'm pretty sure you can run linux on the BBB.

     

    Either way good luck

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • terrydark
    0 terrydark over 11 years ago in reply to Former Member

    http://derekmolloy.ie/beaglebone/beaglebone-an-i2c-tutorial-interfacing-to-a-bma180-accelerometer/

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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