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
      •  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
Sensors
  • Technologies
  • More
Sensors
Sensor Forum Doable?!
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Sensors to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 13 replies
  • Subscribers 346 subscribers
  • Views 1436 views
  • Users 0 members are here
Related

Doable?!

Former Member
Former Member over 10 years ago

I am just getting into the Raspberry Pi scene so forgive my ignorance - how difficult would it be to write code that could take a distance measure (maxSonar) in mm and convert it to volume (ounces remaining). I have this hairbrained idea to try and monitor fluid levels in my beer keg or hot liquor tank. Yes I am aware of flow meters - just have the sonar on hand from a friend that I can use. Any suggestions would be greatly appreciated.

-Tad

  • Sign in to reply
  • Cancel

Top Replies

  • xever
    xever over 10 years ago +1
    It appears your range finder has a 4-20mA output, in which case you will require an ADC input to measure the distance and then eventually resolve that into volumetric measurement. The rPi does not have…
  • dougw
    dougw over 10 years ago +1
    RaspberryPi may be a bit of overkill for this application - perhaps an arduino would be simpler... Using a MaxSonar With an Arduino Arduino Playground - MaxSonar
Parents
  • xever
    xever over 10 years ago

    It appears your range finder has a 4-20mA output, in which case you will require an ADC input to measure the distance and then eventually resolve that into volumetric measurement.  The rPi does not have ADC by default, and so you would require an expansion module, or you could use a BeagleBoneBlack as an alternative as it has a few 12-bit ADC.  Also, if your application only does is a simple measurement then conversion, you may just be ok using an Arduino or a TI Launchpad.  The CC3200 would be a great platform for this particular monitoring application.


    Christever

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to xever

    Maybe the WiPy could be a good solution for you. The WiPy is a new CC3200 IoT development board which is python programmable and as they say super low power.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Thanks for the info Theo Ams. I picked up an Arduino and a neoPixel strip. instead of getting all crazy with formulas and math I decided for now that I wanted to keep it simple. I've got the distance reading correctly and setting up if/then for ranges to correlate with the 8 pixel like a gas tank meter. Eventually I would like to have that info tracked online...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Thanks for the info Theo Ams. I picked up an Arduino and a neoPixel strip. instead of getting all crazy with formulas and math I decided for now that I wanted to keep it simple. I've got the distance reading correctly and setting up if/then for ranges to correlate with the 8 pixel like a gas tank meter. Eventually I would like to have that info tracked online...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Your welcome, have fun with your project.image

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