Smick_002_LED_PWM_v3

This flow builds a dashboard that contains a slider node to regulate the LED brightness. The generated commands are sent to Smick through "dasboard console" flow".

[
    {
        "id": "95bc9b60.213bc8",
        "type": "ui_slider",
        "z": "e11a21a.8f4d4e",
        "name": "",
        "label": "slider",
        "group": "5e36b7c5.bef018",
        "order": 2,
        "width": 0,
        "height": 0,
        "passthru": true,
        "topic": "",
        "min": "0",
        "max": "10",
        "step": "1",
        "x": 110,
        "y": 260,
        "wires": [
            [
                "25fe4efd.213742"
            ]
        ]
    },
    {
        "id": "d025d81e.e6dcd8",
        "type": "link out",
        "z": "e11a21a.8f4d4e",
        "name": "command",
        "links": [
            "d00f3010.4b85b"
        ],
        "x": 675,
        "y": 260,
        "wires": []
    },
    {
        "id": "c40efbbf.d8b2c8",
        "type": "function",
        "z": "e11a21a.8f4d4e",
        "name": "D8=n",
        "func": "msg.payload=\"d8=\"+msg.payload;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 550,
        "y": 260,
        "wires": [
            [
                "d025d81e.e6dcd8"
            ]
        ]
    },
    {
        "id": "25fe4efd.213742",
        "type": "range",
        "z": "e11a21a.8f4d4e",
        "minin": "0",
        "maxin": "10",
        "minout": "1023",
        "maxout": "0",
        "action": "scale",
        "round": true,
        "name": "0..1023",
        "x": 320,
        "y": 260,
        "wires": [
            [
                "c40efbbf.d8b2c8"
            ]
        ]
    },
    {
        "id": "611d37b9.54d4f8",
        "type": "comment",
        "z": "e11a21a.8f4d4e",
        "name": "analogic output (PWM)",
        "info": "",
        "x": 160,
        "y": 160,
        "wires": []
    },
    {
        "id": "c6eefcb2.8d6da",
        "type": "comment",
        "z": "e11a21a.8f4d4e",
        "name": "Description",
        "info": "Smick_002_LED_PWM\n_______________________________________________________________________________\nPackage : Smick v.1\nModule  : console\nAuthor  : Curci\nLicence : (CC) BY-NC-SA\n\nThis work is licensed under a Creative Commons \nAttribution-NonCommercial-ShareAlike \n4.0 International License.\n\nHistory\n\nDate        Author  Description\n2016.12.17  Curci   genesis\n_______________________________________________________________________________\n\nDescription\n\nQuesto flusso costruisce un cruscotto contenente un nodo slider per regolare la luminosità del LED.\nI comandi generati sono inviati a smick tramite il flusso \"dasboard console\".\n\nThis flow builds a dashboard that contains a slider node to regulate the LED brightness.\nThe generated commands are sent to Smick through \"dasboard console\" flow\".\n_______________________________________________________________________________\n\nBill Of Material\n\nHardware:\n\n    1 Human internet terminal (PC, tablet or smartphone) connected to the internet\n    1 Smick Wi-Fi connected to the internet\n    1 LED connected to smick \n\nHW Connections:\n\n    Device  pin     Smick pin\n    LED     +       3.3V\n    LED     -       D8\n\nFlow Connections:\n\n    Smick_001_console\n\nAccount:\n\n    Wi-Fi credentials\n    MQTT broker\n    FRED\n",
        "x": 120,
        "y": 60,
        "wires": []
    },
    {
        "id": "5e36b7c5.bef018",
        "type": "ui_group",
        "z": "",
        "name": "LED",
        "tab": "9f185bbc.98cc78",
        "order": 1,
        "disp": true,
        "width": "6"
    },
    {
        "id": "9f185bbc.98cc78",
        "type": "ui_tab",
        "z": "",
        "name": "LED",
        "icon": "dashboard",
        "order": 2
    }
]
infosmick

Flow Info

created 2 months, 1 week ago

Node Types

Core
  • comment (x2)
  • function (x1)
  • range (x1)
Other
  • link out (x1)
  • ui_group (x1)
  • ui_slider (x1)
  • ui_tab (x1)

Tags

  • Smick
  • iot
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option