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
Vertical Farming
  • Challenges & Projects
  • Design Challenges
  • Vertical Farming
  • More
  • Cancel
Vertical Farming
Blog RTOS for embedded processors
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: sftwrngnr
  • Date Created: 1 Aug 2015 8:06 AM Date Created
  • Views 1179 views
  • Likes 3 likes
  • Comments 8 comments
  • vertical
  • rtos
  • ambient_growth
  • farming
Related
Recommended

RTOS for embedded processors

sftwrngnr
sftwrngnr
1 Aug 2015

While doing my due diligence for this project, I've looked into several different real-time o/s' for the embedded devices.  Plausibly, one might say that an entire O/S is overkill for this solution, but the fact is, I don't have a great amount of time to devote to debugging all of the software components required for an entire software ecosystem to handle interrupts, radio control, tcp/ip stack, etc.  I suppose I could go for a total minimalist approach and roll my own vis-a-vis utilizing a collection of libraries and a small state machine, but I'd like to avoid re-inventing the wheel if at all possible.  Doing a little bit of digging, and I found Free RTOS(http://www.freertos.org), which seems to be perfectly suited for the application at hand, especially since its already ported for the ARM Cortex processor.  I'll be downloading it in the coming weeks (had planned on doing it this weekend, but my "day job" takes precedence) to have a look at the code to see what I'm dealing with.  It appears that they have a free tcp/ip stack available, so this may be a workable solution. uCLinux is way too heavyweight in my opinion, for this project.

 

I definitely like the idea of having a true RTOS running on the device, so that time sensitive activities such as checking the nutrient Ph/TDS, temperature and humidity monitoring, etc. can be easily accomplished with a small amount of code that ultimately hooks into a very simple REST API.

  • Sign in to reply

Top Comments

  • RWReynolds
    RWReynolds over 10 years ago +1
    Good info John. I checked out the FreeRTOS site for reference to the Silicon Labs devices included in the challenge. I see some reference to the EFM32 MCU but none for the EZ32. Keep in mind that the terms…
  • DAB
    DAB over 10 years ago +1
    Using an off the shelf RTOS is good if it has good documentation and is easy to learn. I have developed a number of real time implementations without a full RTOS and they worked just fine. It all depends…
  • sftwrngnr
    sftwrngnr over 10 years ago in reply to RWReynolds +1
    Rick and DAB, Thank you both for your feedback. I too have developed embedded systems without a full RTOS, and honestly it probably really is overkill for this situation. I mean think about it: all we…
  • RWReynolds
    RWReynolds over 10 years ago in reply to DAB

    Agreed DAB. I have intentions of eventually working on an RTOS project. Even if it's just getting one installed and running on some embedded plarform.

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

    True,

     

    If you have never worked with an RTOS, then you should use it on a project just to get familiar with the terminology and to explore its functionality.

     

    DAB

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

    Hey John,

     

    I hope some of the info i posted proves of some use.

     

    Sounds like you have it under control. Using an Arduino as a hardware test bed sounds like a smart move. It'll be a major pain if we brick one of the EV32s.

     

    Let us know how the RTOS works out.

     

    Rick

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

    OK, I gotta know... what in the name of corn on the cob are ya using a RPI AND the SiLabs ArmCortex based system for? I'll admit... I'm curious... I've got embedded processor foo envy goin'  on here (LOL). Seriously though, I can't wait to see your project!

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

    Rick and DAB,

    Thank you both for your feedback.  I too have developed embedded systems without a full RTOS, and honestly it probably really is overkill for this situation.  I mean think about it: all we are really doing here, is checking a few levels, making sure that plants get water, light and nutrients, measuring temperature, light and humidity and logging the data... and lots of sleeping. A full blown RTOS is overkill.  My thought was more along the lines of  "hey, an existing RTOS that largely supports ~this~ ecosystem may go a long way in getting the bulk of the system done without spending tons of time on it.  I'm going to look at FreeRTOS and some of the other solutions that were mentioned.  I'm particularly interested in ensuring that the embedded device will actually be able to be put into its deep sleep mode so that the actual power consumption is as minimal as possible.  The way I look at it, is if things are done right, the bulk of the measurements should be done periodically en masse, stored and then periodically transmitted up stream via the radio.  If none of the solutions are going to support the kind of deep sleep that I really want, I'll just write code directly for the device and call it a day.

     

    Again, right now I'm just kind of  exploring options and thinking out loud.  Getting feedback from the community is definitely much appreciated!  I am planning on only using the embedded device that comes in the kit.  I will say that I'm planning on using an Arduino to test some of my home brew sensors just to make sure I don't burn up the more expensive hardware, but other than that, my current plan is to just go with what I'm given in the kit.

    • 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 © 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