Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Next »

Control an LED

As explained in https://github.com/dustcloud/smartmeshsdk/tree/develop/app/JsonServer, to blink the LED, you need to issue:


  • create the following Node-RED flow:

  • What is the configuration of the "LED on" and "LED off" nodes?

Answer 1:

  • What is the code you wrote in the function node?

Answer 2:

  • What is the configuration of the "http request" node:

Answer 3:

  • verify that you can switch the LED of your mote on/off

Control a Buzzer

Your SmartMesh IP mote has several pins you can control over OAP, exactly as the blue LED.

For example, “digital_out/D4” corresponds to the pin called I_MISO on the DC9003 board.

  • Connect a buzzer to the board

    • buzzer pin labeled ‘+' to pin I_MISOon your mote

    • buzzer pin labeled '-' to pin GND on your mote

  • adapt the Node-RED flow above, replacing digital_out/INDICATOR_0 by digital_out/D4

  • make sure you can switch the buzzer on/off

  • No labels