Basic Interaction

    This tutorial will show you how to make use of the Device Control Panel on your WearON mobile phone app to create a device that detects changes in light intensity.

    Hardware Required

  • 3x 220 ohm resistors
  • 1 x Blend Micro board / BLE mini + arduino uno
  • 1 x LDR sensor
  • 2 x LEDs
  • 1 x mobile phone with WearON mobile phone app installed

  • Circuit

    The Light Dependent Resistor(LDR) is connected to analog pin A5. The two LEDs are connected to digital pins 9 and 10.

    Code
    After you have built the circuit, plug your Blend Micro or Arduino UNO into your computer, start the Arduino Software (IDE) and load the WearON-arduino code onto your controller board. Note for Ble Mini user: when uploading the code, make sure that you disconnect the wires that connects BLE Mini to arduino pin 0 and 1. After you have uploaded the code onto the controller board, reconnect back the wires, restart the board and you are good to go.

    Instructions

    • Step 1: Open your WearON mobile phone app and pair your app to your board.
    • Step 2: Obtain a User Configuration Key using this link and input the key into your app.
    • Step 3: Open up Device Control Panel . It is always advised to make sure that all your circuit connections are properly connected:
      • Check that your LEDs are working by using Enable Pin in D9 and D10 boxes to turn the LEDS on and off
      • Check that your LDR is receiving information by using Enable Pin in A5 box to check whether your LDR is responding to changes in light intensity.

    • For this example, we want to create a device that respond to the indoor light intensity of the space that the user is in.
      • Interaction 1: When it is daytime or when there are direct artificial lights closeby, no LEDs will lit up
      • Interaction 2: When it is evening time or when there are artificial lights turned on further away, 1 LEDs will lit up
      • Interaction 3: When it is night time or when there are no artificial lights turned on, two LEDs will lit up
      This can be easily achieved by setting the logic to how the LDR reacts to the 2 LEDs connected.
    • Step 4: Find the reading range on your LDR. For example, for my LDR, I am reading:
      • on A5: 40 at night time to 300 at evening time to 600 at daytime
    • Step 5: map these values and set logics on my D9 and D10 pins
      • If A5 < 350, turn D9 ON (track evening time)
      • If A5 < 100, turn D10 ON (track night time)
    • Now your light intensity detection device is ready to go!

Remote Communication

    This tutorial will show you how to make use of the Device Control Panel and Connectivity Control Panel on your WearON mobile phone app to create 2 connected devices (A and B) that sends notification to each other remotely in the form of light pulses.

    Hardware Required

  • 6x 220 ohm resistors
  • 2 x Blend Micro board / BLE mini + arduino uno
  • 2 x LDR sensor
  • 4 x LEDs
  • 2 x mobile phone with WearON mobile phone app installed

  • Circuit

    For each device (A and B), the Light Dependent Resistor(LDR) is connected to analog pin A5. The two LEDs are connected to digital pins 9 and 10.

    Code
    After you have built the circuit, plug your Blend Micro or Arduino UNO into your computer, start the Arduino Software (IDE) and load the WearON-arduino code onto your controller board. Note for Ble Mini user: when uploading the code, make sure that you disconnect the wires that connects BLE Mini to arduino pin 0 and 1. After you have uploaded the code onto the controller board, reconnect back the wires, restart the board and you are good to go.

    Instructions
    For each device:

    • Step 1: Open your WearON mobile phone app and pair your app to your board.
    • Step 2: Obtain a User Configuration Key using this link and input the key into your app. If you own both devices, make sure that you are using two separate thingspeak channels or fields.
    • Step 3: It is always advised to make sure that all your circuit connections are properly connected. Open up Device Control Panel ,
      • Check that your LEDs are working by using Enable Pin in D9 and D10 boxes to turn the LEDS on and off
      • Check that your LDR is receiving information by using Enable Pin in A5 box to check whether your LDR is responding to changes in light intensity.
    • For this example, we are going to make use of LDR’s ability to detect changes in light intensity to create 2 devices that speak to one another by converting finger tapping to light pulses. This can be achieved by:
      • uploading the devices’ data online
      • Sharing the data between device A and B by exchanging cross communication configuration keys
      • setting the logic to how the LDR reacts to the 2 LEDs connected. For example
        • one of the LEDs will react immediately to my finger tap so that I know that I am sending signal to my device.
        • the other LED will receive data from the other device’s LDR.
    • Step 4: Find the reading range on your LDR, For example
      • on device A, the LDR is reading 40(covered) - 600(not covered)
      • on device B, the LDR is reading 920(not covered) - 999(covered)
    • Step 5: Upload the LDR readings to your Thingspeak channel.
      • Press Connect to Thingspeak Go to your Thingspeak channel to check that data is received. The Number of readings sent to Thingspeak indicates the number of times data has been sent to your Thingspeak channel.
    • Step 6: Separately obtain a User Cross Communication Configuration Key for both devices using this link.
    • Step 7: Open Cross Connectivity Control Panel . Press Retrieve and input the key separately into the WearON mobile phone apps (key made for device A to be used on device B and vice versa) You will see the reading on the app if data is obtained successfully.
    • Step 8: map the LDR value on your device and set logic on D9
      • If A5 < 300, turn D9 ON(LED lit up every time the LDR is covered)
    • Step 9: map the LDR value on the other device and set logic on D10
      • If Val > 970, turn D10 ON (LED lit up every time the other LDR is covered)
    • Now your remote communication device is ready to go! Play around with it by tapping on the LDR at different time intervals. Each Thingspeak channel field only allow data to be sent and received every 15s. Meaning the time interval to which you tap on your LDR will have to be 15s apart minimum in order for information to be sent and received by the other user properly.

Global Communication

    This tutorial will show you how to make use of the Device Control Panel and Global Connectivity Control Panel on your WearON mobile phone app to create a device that sends you alert when the air quality around you has worsen.

    Hardware Required

  • 1x 220 ohm resistors
  • 1 x Blend Micro board / BLE mini + arduino uno
  • 1 x LED
  • 1 x mobile phone with WearON mobile phone app installed

  • Circuit

    The Light Dependent Resistor(LDR) is connected to analog pin A5. The two LEDs are connected to digital pins 9 and 10.

    Code
    After you have built the circuit, plug your Blend Micro or Arduino UNO into your computer, start the Arduino Software (IDE) and load the WearON-arduino code onto your controller board. Note for Ble Mini user: when uploading the code, make sure that you disconnect the wires that connects BLE Mini to arduino pin 0 and 1. After you have uploaded the code onto the controller board, reconnect back the wires, restart the board and you are good to go.

    Instructions

    • Step 1: Open your WearON mobile phone app and pair your app to your board.
    • Step 2: Obtain a User Configuration Key using this link and input the key into your app.
    • Step 3: Open up Device Control Panel . It is always advised to make sure that all your circuit connections are properly connected:
      • Check that your LED is working by using Enable Pin in D9 box to turn the LED on and off

    • For this tutorial, we want to create a device that monitor changes in the data of a global IoT device indexed by Thingful. For this example, we will pick a AQICN device located in central Singapore that listens to the Air Quality Index every few days. This can be achieved by:
      • Obtaining the data reading from the identified IoT device
      • setting the logic to how the LED reacts to incoming readings. For example
        • LED will lit up with the AQI goes above 101 (for sensitive groups)
    • Step 4: Obtain a User Global Communication Configuration Key based on the IoT device that is chosen on Thingful using this link.
    • Step 5: Open Global Connectivity Control Panel . Press Retrieve and input the key into the WearON mobile phone app. You will see the reading on the app if data is obtained successfully.
    • Step 6: map the device value and set logic on D9
      • If Val > 101, turn D9 ON (LED lit up every time the air quality index rises above 101)
    • Now your air quality notification device is ready to go! The WearON mobile phone app sends a query to Thingful to obtain new data every 2.5s. This should ensure that you get the latest data if there is any changes.