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
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs Internet of Things made simple – Sensor monitoring
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: benmatrix
  • Date Created: 24 Oct 2014 1:03 PM Date Created
  • Views 711 views
  • Likes 0 likes
  • Comments 1 comment
  • wifi
  • flowcode
  • lipo
  • iot
  • automation
  • sensor
Related
Recommended

Internet of Things made simple – Sensor monitoring

benmatrix
benmatrix
24 Oct 2014

Continuing our theme of the Internet of Things (IoT) we will this week demonstrate the simplicity of using Flowcode to implement an internet connected Temperature and Humidity sensor.

 

LCD.png

 

Pictured above is the WiFi based receiving and display station. This is implemented using a simple Flowcode web server component, so could just as easily be replaced by any internet connected server and data logging application.

 

 

But first, let’s take a look at the sending device that has the Temperature and Humidity sensor. This could be used for remote monitoring, such as in a greenhouse.

 

sender.png

 

The sensor board project includes ESP8266 WiFi and Matrix TSL EBM016 Temperature and Humidity sensor modules. Both of these are well supported by Flowcode components which greatly simplify the software coding of the project. Simply drop both of these components from the tools menu onto the Flowcode IDE system panel, as shown below.

 

sensor_panel.png

 

Once the component properties have been set, a Flowcode flowchart program can then be quickly constructed. This simply needs to initialise the WLAN via calls to the Initialise macro, then connect to a WiFi access point via a call to the ConnectToSSID macro.

 

The program should then enter a loop and at periodic intervals send the temperature and humidity information to a server. This is simply done by firstly calling the ClientConnect macro to connect to the server, reading the sensor values, constructing a request string and then sending it to the server via the SendClientRequest function.

 

request1.png

 

Here we have constructed the get request string, for example:

 

     GET /sensor.php?T0=23&H1=49 HTTP/1.0


Where T0 and H1 are our temperature and humidity parameters with values 23 and 49. These could be processed with the sensor.php server page, such as recording them to a database.

 

But for our demonstration example we are going to create a display centre based on Matrix TSL E-blocks and simple to use Flowcode software components.

 

display.png

 

Here are the Flowcode software components that are used:

 

server2.png

 

The flowchart program simply needs to intialise the web server component and then setup an access point with the CreateAccessPoint macro. Then enter a program loop testing for requests and processing them and displaying the results on the LCD display. Here is the flowchart to do that:

 

loop.png

 

And that is project done!

 

Our IoT theme continues next week.

  • Sign in to reply

Top Comments

  • DAB
    DAB over 11 years ago +1
    I am impressed with the simplicity of the Flowcode. Hopefully it will encourage more people to try their hand at making computer controlled devices. DAB
  • DAB
    DAB over 11 years ago

    I am impressed with the simplicity of the Flowcode.

     

    Hopefully it will encourage more people to try their hand at making computer controlled devices.

     

    DAB

    • 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