The Project board is for sharing projects based on Silicon Labs' component with other community members. View Projects Guidelines ›

Projects

    Publish
     
      • Win a Thunderboard React Kit!

        Nari Shin | 07/208/2016 | 08:23 AM

         

        We invite Silicon Labs Community members to participate in this exciting contest that you can win a Thunderboard React kit (RD-0057-0201). The Thunderboard React kit helps you easily test and prototype your own unique IoT application. The contest consists of five questions related to the Thunderboard React and 10 lucky winners who answer the questions correctly will receive a kit for free.  

         

         

        How to participate

        • Answer the five questions below (Tip: Use ThunderBoard-React User's Guide)
        • Send a private message to me (@Nari) with your answers in the community by 8th August 2016. You will receive a confirmation message that you have entered the contest from me afterwards. 
        • 10 final winners and correct answers will be posted on this page in the week of 8th August. 

           

        Judging

        If there are more than 10 contestants who answer all the correct answers, we will decide the final 10 winners based on their open-ended question (Q5). Silicon Labs’ staff will evaluate the answers based on relevance and usefulness.

         

         

        --------------------------------------------------------------------------------------

         

        Q1. The Thunderboard React solution provides

        1. A low-cost, Wi-Fi enabled sensor platform 
        2. The ability to demo, evaluate, and develop IoT applications 
        3. A high-frequency, flexible clocking solution 
        4. Free Thunderboard app and the source code available at www.silabs.com/Thunderboard

         

        Q2. The Thunderboard React hardware platform contains 

        1. UV Index and Ambient Light Sensor IC with I2C Interface
        2. USB-to-UART smart-interface 
        3. Integrated Wi-Fi and IP stack
        4. Capacitive Sense device with GPIO

         

        Q3. Thunderboard React features BGM111 Bluetooth Smart Module. Which of the following is not related to BGM111? 

        1. Bluetooth 4.2 compliant 
        2. ARM Cortex M4 core with 32 kb RAM and 256 kB Flash 
        3. UART, SPI and I2C serial interfaces
        4. -101 dBm Receive Sensitivity

         

        Q4. Which word can be used to fill in the following blank?

         While viewing the cloud session from the same mobile client is a great way to demonstrate the cloud-connectivity of the ThunderBoardReact platform, one of the innovative features of this demo is its ability to support multiple clients from its cloud database using ________.

        1. Parse
        2. CloudKit
        3. Firebase
        4. Kinvey

         

        Q5. Give a specific example of an application that you can build with the Thunderboard React and explain why. 

         

        -------------------------------------------------------------------------------------- 

         

        By entering the contest you acknowledge that you have read and agree to the Community Contest Terms and Conditions. Please review the Contest Rules below before entering the contest.

         

      • WGM110: The Tweeting Gecko Wi-Fi Module

        tmonte | 07/195/2016 | 01:30 PM

        Introduction

         

        This project is a follow up of the IFTTT article which instructed how to setup an IFTTT recipe and add a row to a google docs spreadsheet by sending an HTTP POST request from the Wizard Gecko WGM110 Wi-Fi Module.

         

        On that example there was no additional data being sent on the HTTP request but on this project we will go one step further and add a JSON body to the request containing temperature and humidity data.

         

        The temperature and humidity data are read from the Si7021 temperature and humidity sensor on-board the WSTK through I2C. The request is sent by pushing PB0 on the WSTK.

         

         

        IFTTT Recipe

         

        Please refer to IFTTT article mentioned in the introduction to learn how to create a recipe. To run this example you have to create a recipe and select the Twitter channel for "this" (don't forget to connect Twitter to your IFTTT account first) and then select chose "Post a tweet" as the action. You are free to write any text for the tweet and that includes adding up to 3 values which can be sent in the HTTP request.

         

        For this project we created a Wizard Gecko Twitter account and using the recipe below the module is tweeting the temperature and humidity of our office in Espoo, Finland.

         

        1.png

         

         

        Adding the JSON body

         

        For adding the data in JSON format we based on the implementation from the 'sensor' example of the WGM110 SDK.

         

        # Procedure for creating the JSON data body
        export procedure build_response_data()
        	# Generate a response
        	request_data_len = 0
        
        	call api_add_json_object_start()
        	# Temperature name
        	call api_add_json_object_name(API_PARAM_JSON_TEMPERATURE_LEN, API_PARAM_JSON_TEMPERATURE(:))
        	# Temperature value
        	call api_add_json_integer(i2c_temperature)
        
        	# adding a comma between JSON object element
        	call api_add_comma()
        	# Humidity name
        	call api_add_json_object_name(API_PARAM_JSON_HUMIDITY_LEN, API_PARAM_JSON_HUMIDITY(:))
        	# Humidity value
        	call api_add_json_integer(i2c_humidity)
        	# JSON status object end
        	call api_add_json_object_end()
        	
        	call api_add_crlf()
        	call api_add_crlf()
        end

         

        The full HTTP request is bellow where 'tt' and 'hh' are the temperature and humidity values respectively.

         

        POST /trigger/YOUR_EVENT/with/key/YOUR_KEY HTTP/1.1\r\n
        Host: maker.ifttt.com
        Accept: */*
        Content-Length: 26
        Content-Type: application/json

        {"value1":tt,"value2":hh}

         

         

        Final Result

         

        Press PB0 -> LED1 goes on -> LED1 goes off -> Tweet

         

        original.gif