Last active
May 21, 2019 00:05
-
-
Save monteslu/defea3ef0adf90fab8a3a9c2b9d892c3 to your computer and use it in GitHub Desktop.
chirpers basic examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"ecRgcC-r-Uw","type":"inject","z":"mDRMOWxAyVw","name":"","topic":"","payload":"hello chirpers!","payloadType":"str","repeat":"","crontab":"","once":false,"allowDebugInput":false,"x":137,"y":38,"wires":[["SyhBmgL-B6k"]]},{"id":"SyhBmgL-B6k","type":"debug","z":"mDRMOWxAyVw","name":"","active":true,"console":"false","complete":"true","x":336,"y":86,"wires":[]}] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"ZjHMG3PRD14","type":"inject","z":"mDRMOWxAyVw","name":"","topic":"","payload":"hello","payloadType":"str","repeat":"","crontab":"","once":false,"allowDebugInput":true,"x":117,"y":41,"wires":[["RXAicmhd3p8"]]},{"id":"RXAicmhd3p8","type":"bluetooth out","z":"mDRMOWxAyVw","name":"","deviceName":"","characteristicId":"6e400002b5a3f393e0a9e50e24dcca9e","bleServiceId":"6e400001b5a3f393e0a9e50e24dcca9e","x":336,"y":54,"wires":[]},{"id":"s-felLVG1GY","type":"bluetooth in","z":"mDRMOWxAyVw","name":"","deviceName":"","characteristicId":"6e400003b5a3f393e0a9e50e24dcca9e","bleServiceId":"6e400001b5a3f393e0a9e50e24dcca9e","x":81,"y":114,"wires":[["oPXOzplq34M"]]},{"id":"5glRWnrgki0","type":"debug","z":"mDRMOWxAyVw","name":"","active":true,"console":"false","complete":"false","x":410,"y":154,"wires":[]},{"id":"oPXOzplq34M","type":"buffer","z":"mDRMOWxAyVw","name":"","payload":"payload","result":"payload","payloadType":"msg","resultType":"msg","encoding":"utf8","x":245,"y":119,"wires":[["5glRWnrgki0"]]}] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"type":"http in","z":"mDRMOWxAyVw","name":"","x":126,"y":59,"wires":[["95nZv04WS3A"]]},{"id":"95nZv04WS3A","type":"camera","z":"mDRMOWxAyVw","name":"","animated":false,"result":"payload","resultType":"msg","x":278,"y":86,"wires":[["ff1hhmeuNyo"]]},{"id":"qtcxSUC4g2g","type":"http reply","z":"mDRMOWxAyVw","name":"","x":604,"y":68,"wires":[]},{"id":"ff1hhmeuNyo","type":"change","z":"mDRMOWxAyVw","name":"","rules":[{"t":"set","p":"dataUrl","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":415,"y":154,"wires":[["qtcxSUC4g2g"]]}] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"eLRUU5pWHcs","type":"oscillator","z":"4cDfTnOOUyA","name":"","duration":500,"frequency":440,"shape":"triangle","active":true,"x":938,"y":703,"wires":[]},{"id":"csxsR5jw3aY","type":"math","z":"4cDfTnOOUyA","name":"note - 60","operator":"-","operand":"60","operandType":"num","payload":"payload","result":"payload","payloadType":"msg","resultType":"msg","x":444,"y":598,"wires":[["imrLkgH3vuc"]]},{"id":"imrLkgH3vuc","type":"math","z":"4cDfTnOOUyA","name":"","operator":"^","operand":"payload","operandType":"msg","payload":"1.0594630943592953","result":"payload","payloadType":"num","resultType":"msg","x":567,"y":692,"wires":[["nvZ7CnnMo2A"]]},{"id":"nvZ7CnnMo2A","type":"math","z":"4cDfTnOOUyA","name":"","operator":"*","operand":"440","operandType":"num","payload":"payload","result":"frequency","payloadType":"msg","resultType":"msg","x":751,"y":633,"wires":[["0mwNVxYQzfI"]]},{"id":"BRnJOYsLToM","type":"iot buttons","z":"4cDfTnOOUyA","x":234,"y":788,"wires":[["Eid60OWLD3c"]]},{"id":"Eid60OWLD3c","type":"math","z":"4cDfTnOOUyA","name":"note - 9","operator":"-","operand":"9","operandType":"num","payload":"payload","result":"payload","payloadType":"msg","resultType":"msg","x":454,"y":790,"wires":[["imrLkgH3vuc"]]},{"id":"0mwNVxYQzfI","type":"change","z":"4cDfTnOOUyA","name":"organ waveform","rules":[{"t":"set","p":"realTable","pt":"msg","to":"[ 0, 0, -0.042008, 0.010474, -0.138038, 0.002641, -0.001673, 0.001039, -0.021054, 0.000651, -0.000422, 0.000334, -0.000236, 0.000191, -0.000161, 0.000145, -0.018478, 0.000071, -0.000066, 0.000047, -0.000044, 0.000041, -0.000034, 0.000031, -0.000030, 0.000028, -0.000025, 0.000024, -0.000022, 0.000020, -0.000015, 0.000013, -0.011570, 0.000004, -0.000003, 0.000003, -0.000003, 0.000003, -0.000003, 0.000002, -0.000002, 0.000002, -0.000002, 0.000002, -0.000002, 0.000002, -0.000002, 0.000002, -0.000001, 0.000001, -0.000001, 0.000001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -0.000898, 0.000001, -0.000001, 0.000001, -0.000001, 0.000001, -0.000001, 0.000001, -0.000001, 0.000001, -0.000001, 0.000001, -0.000001, 0.000001, -0.000001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -0.000245, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -0.000001, 0]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":767,"y":798,"wires":[["eLRUU5pWHcs"]]},{"id":"CATvl_UWNrc","type":"midi in","z":"4cDfTnOOUyA","name":"","deviceId":"","x":102,"y":522,"wires":[["V7K1CKhReDY"]]},{"id":"V7K1CKhReDY","type":"switch","z":"4cDfTnOOUyA","name":"","property":"payload[0]","propertyType":"msg","rules":[{"t":"eq","v":"144","vt":"num"},{"t":"eq","v":"128","vt":"num"}],"checkall":"false","outputs":2,"x":133,"y":622,"wires":[["YGW5wQGr0xU"],["xxQM7eTCluM"]]},{"id":"YGW5wQGr0xU","type":"change","z":"4cDfTnOOUyA","name":"key on","rules":[{"t":"set","p":"duration","pt":"msg","to":"10000","tot":"num"},{"t":"set","p":"payload","pt":"msg","to":"payload[1]","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":318,"y":515,"wires":[["csxsR5jw3aY"]]},{"id":"xxQM7eTCluM","type":"change","z":"4cDfTnOOUyA","name":"key off","rules":[{"t":"set","p":"duration","pt":"msg","to":"0","tot":"num"},{"t":"set","p":"payload","pt":"msg","to":"payload[1]","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":292,"y":683,"wires":[["csxsR5jw3aY"]]}] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"bmXK31kezzo","type":"bluetooth out","z":"UFiUzfL0xVA","name":"digital","characteristicId":"2a56","bleServiceId":"bada5555-e91f-1337-a49b-8675309fb099","x":1009.5,"y":196,"wires":[]},{"id":"UWxGoFlFJjo","type":"bluetooth out","z":"UFiUzfL0xVA","name":"analog","characteristicId":"2a58","bleServiceId":"bada5555-e91f-1337-a49b-8675309fb099","x":1024.5,"y":444,"wires":[]},{"id":"rsdyNgL6cpM","type":"iot buttons","z":"UFiUzfL0xVA","x":313,"y":95,"wires":[["3QwSwgUUgsA"]]},{"id":"3QwSwgUUgsA","type":"switch","z":"UFiUzfL0xVA","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"10","vt":"num"},{"t":"eq","v":"5","vt":"num"},{"t":"eq","v":"7","vt":"num"},{"t":"eq","v":"6","vt":"num"},{"t":"eq","v":"4","vt":"num"},{"t":"eq","v":"8","vt":"num"},{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"9","vt":"num"},{"t":"eq","v":"11","vt":"num"},{"t":"eq","v":"12","vt":"num"}],"checkall":"true","outputs":11,"x":460.5,"y":223,"wires":[["wu__VIMW4rk"],["Cy8qijXrX0s"],["TscFSQWMdsA"],["ygPswZ-mJr8"],["OB5N5vyptyg"],["3RNNJjDjHeo"],["2M2ejtDtcgA"],[],[],[],[]]},{"id":"OB5N5vyptyg","type":"change","z":"UFiUzfL0xVA","name":"stop","rules":[{"t":"set","p":"payload","pt":"msg","to":"[19,0,0,4,0,0]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":749.5,"y":388,"wires":[["UWxGoFlFJjo"]]},{"id":"3RNNJjDjHeo","type":"change","z":"UFiUzfL0xVA","name":"medium","rules":[{"t":"set","p":"payload","pt":"msg","to":"[19,200,0,4,200,0]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":757.5,"y":438,"wires":[["UWxGoFlFJjo"]]},{"id":"2M2ejtDtcgA","type":"change","z":"UFiUzfL0xVA","name":"fast","rules":[{"t":"set","p":"payload","pt":"msg","to":"[19,255,255,4,255,255]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":758.5,"y":497,"wires":[["UWxGoFlFJjo"]]},{"id":"wu__VIMW4rk","type":"change","z":"UFiUzfL0xVA","name":"forward","rules":[{"t":"set","p":"payload","pt":"msg","to":"[18,1,5,0,17,1,16,0]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":781.5,"y":109,"wires":[["bmXK31kezzo"]]},{"id":"Cy8qijXrX0s","type":"change","z":"UFiUzfL0xVA","name":"reverse","rules":[{"t":"set","p":"payload","pt":"msg","to":"[18,0,5,1,17,0,16,1]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":781.5,"y":175,"wires":[["bmXK31kezzo"]]},{"id":"TscFSQWMdsA","type":"change","z":"UFiUzfL0xVA","name":"left","rules":[{"t":"set","p":"payload","pt":"msg","to":"[18,1,5,0,17,0,16,1]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":782.5,"y":236,"wires":[["bmXK31kezzo"]]},{"id":"ygPswZ-mJr8","type":"change","z":"UFiUzfL0xVA","name":"right","rules":[{"t":"set","p":"payload","pt":"msg","to":"[17,1,16,0,18,0,5,1]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":781.5,"y":302,"wires":[["bmXK31kezzo"]]}] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"G9ihNm2CSyU","type":"bluetooth out","z":"Punipf5yV3E","name":"digital / direction","deviceName":"","characteristicId":"2a56","bleServiceId":"bada5555-e91f-1337-a49b-8675309fb099","x":705.5,"y":1005.7999897003174,"wires":[]},{"id":"OYC-sdySLAw","type":"bluetooth out","z":"Punipf5yV3E","name":"analog / speed","deviceName":"","characteristicId":"2a58","bleServiceId":"bada5555-e91f-1337-a49b-8675309fb099","x":717.5,"y":1269.7999897003174,"wires":[]},{"id":"1nu8lbyIEnA","type":"iot buttons","z":"Punipf5yV3E","x":149,"y":886.7999897003174,"wires":[["QDDvGIHyq-c"]]},{"id":"QDDvGIHyq-c","type":"switch","z":"Punipf5yV3E","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"10","vt":"num"},{"t":"eq","v":"5","vt":"num"},{"t":"eq","v":"7","vt":"num"},{"t":"eq","v":"6","vt":"num"},{"t":"eq","v":"4","vt":"num"},{"t":"eq","v":"8","vt":"num"},{"t":"eq","v":"12","vt":"str"}],"checkall":"true","outputs":8,"x":226.5,"y":1118.7999897003174,"wires":[["hZXVQYxLZt4"],["sN2hlGG-vLw"],["KZ3nNFvuqVs"],["7biqbIx0zkI"],["XFyAcAXWf8Q","c0z18ZM4j5c"],["vNVt9kMLmyk"],["0ler7QlFLjI"],["BKUpzsHsuoY"]]},{"id":"XFyAcAXWf8Q","type":"change","z":"Punipf5yV3E","name":"stop","rules":[{"t":"set","p":"payload","pt":"msg","to":"[0,0,0, 15,0,0]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":476.5000114440918,"y":1226.7999200820923,"wires":[["OYC-sdySLAw"]]},{"id":"0ler7QlFLjI","type":"change","z":"Punipf5yV3E","name":"medium","rules":[{"t":"set","p":"payload","pt":"msg","to":"[0,220,0, 15,220,0]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":478.5000114440918,"y":1303.7999210357666,"wires":[["OYC-sdySLAw"]]},{"id":"BKUpzsHsuoY","type":"change","z":"Punipf5yV3E","name":"fast","rules":[{"t":"set","p":"payload","pt":"msg","to":"[0,255,255, 15,255,255]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":480.50001525878906,"y":1343.7999229431152,"wires":[["OYC-sdySLAw"]]},{"id":"hZXVQYxLZt4","type":"change","z":"Punipf5yV3E","name":"forward","rules":[{"t":"set","p":"payload","pt":"msg","to":"[2, 1, 14, 0, 12, 1, 13, 0]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":477.5,"y":918.7999897003174,"wires":[["G9ihNm2CSyU"]]},{"id":"sN2hlGG-vLw","type":"change","z":"Punipf5yV3E","name":"reverse","rules":[{"t":"set","p":"payload","pt":"msg","to":"[2, 0, 14, 1, 12, 0, 13, 1]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":477.5000114440918,"y":958.8000164031982,"wires":[["G9ihNm2CSyU"]]},{"id":"KZ3nNFvuqVs","type":"change","z":"Punipf5yV3E","name":"left","rules":[{"t":"set","p":"payload","pt":"msg","to":"[2, 1, 14, 0, 12, 0, 13, 1]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":482.50001525878906,"y":1070.7999181747437,"wires":[["G9ihNm2CSyU"]]},{"id":"7biqbIx0zkI","type":"change","z":"Punipf5yV3E","name":"right","rules":[{"t":"set","p":"payload","pt":"msg","to":"[2,0, 14, 1, 12,1, 13, 0]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":488.5000114440918,"y":1115.799919128418,"wires":[["G9ihNm2CSyU"]]},{"id":"c0z18ZM4j5c","type":"change","z":"Punipf5yV3E","name":"stop","rules":[{"t":"set","p":"payload","pt":"msg","to":"[2, 0, 14, 0, 12, 0, 13, 0]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":478.60001373291016,"y":1016.0000171661377,"wires":[["G9ihNm2CSyU"]]},{"id":"vNVt9kMLmyk","type":"change","z":"Punipf5yV3E","name":"slow","rules":[{"t":"set","p":"payload","pt":"msg","to":"[0,190,0, 15,190,0]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":475.60001373291016,"y":1266.000018119812,"wires":[["OYC-sdySLAw"]]}] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"w7289B2H_X4","type":"bluetooth out","z":"UFiUzfL0xVA","name":"digital","characteristicId":"2a56","bleServiceId":"bada5555-e91f-1337-a49b-8675309fb099","x":636,"y":157,"wires":[]},{"id":"IMIdfb8ZRDc","type":"bluetooth out","z":"UFiUzfL0xVA","name":"analog","characteristicId":"2a58","bleServiceId":"bada5555-e91f-1337-a49b-8675309fb099","x":648,"y":421,"wires":[]},{"id":"XLiyeeZNfHg","type":"iot buttons","z":"UFiUzfL0xVA","x":79.5,"y":38,"wires":[["ZpGYRy-6SjU"]]},{"id":"ZpGYRy-6SjU","type":"switch","z":"UFiUzfL0xVA","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"10","vt":"num"},{"t":"eq","v":"5","vt":"num"},{"t":"eq","v":"7","vt":"num"},{"t":"eq","v":"6","vt":"num"},{"t":"eq","v":"4","vt":"num"},{"t":"eq","v":"8","vt":"num"},{"t":"eq","v":"1","vt":"str"}],"checkall":"true","outputs":8,"x":157,"y":270,"wires":[["3G19J9pm8kg"],["Vy_DQgVO6Tg"],["ABJ-PXjp8L8"],["s1Vjl8NOHVM"],["in0eScdUR_o"],["m3dKjykASr8"],["tVJtHjltcWw"],[]]},{"id":"in0eScdUR_o","type":"change","z":"UFiUzfL0xVA","name":"stop","rules":[{"t":"set","p":"payload","pt":"msg","to":"[19,0,0,4,0,0]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":415,"y":366,"wires":[["IMIdfb8ZRDc"]]},{"id":"m3dKjykASr8","type":"change","z":"UFiUzfL0xVA","name":"medium","rules":[{"t":"set","p":"payload","pt":"msg","to":"[19,200,0,4,200,0]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":417,"y":426,"wires":[["IMIdfb8ZRDc"]]},{"id":"tVJtHjltcWw","type":"change","z":"UFiUzfL0xVA","name":"fast","rules":[{"t":"set","p":"payload","pt":"msg","to":"[19,255,255,4,255,255]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":417,"y":488,"wires":[["IMIdfb8ZRDc"]]},{"id":"3G19J9pm8kg","type":"change","z":"UFiUzfL0xVA","name":"forward","rules":[{"t":"set","p":"payload","pt":"msg","to":"[23,1,18,0,17,1,16,0]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":408,"y":70,"wires":[["w7289B2H_X4"]]},{"id":"Vy_DQgVO6Tg","type":"change","z":"UFiUzfL0xVA","name":"reverse","rules":[{"t":"set","p":"payload","pt":"msg","to":"[23,0,18,1,17,0,16,1]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":408,"y":136,"wires":[["w7289B2H_X4"]]},{"id":"ABJ-PXjp8L8","type":"change","z":"UFiUzfL0xVA","name":"left","rules":[{"t":"set","p":"payload","pt":"msg","to":"[23,1,18,0,17,0,16,1]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":409,"y":197,"wires":[["w7289B2H_X4"]]},{"id":"s1Vjl8NOHVM","type":"change","z":"UFiUzfL0xVA","name":"right","rules":[{"t":"set","p":"payload","pt":"msg","to":"[17,1,16,0,23,0,18,1]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":408,"y":263,"wires":[["w7289B2H_X4"]]}] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"iN3aLr7FPZk","type":"nodebot","z":"UFiUzfL0xVA","name":"joystick","username":"","password":"","boardType":"firmata","serialportName":"","connectionType":"webusb-serial","mqttServer":"","socketServer":"","pubTopic":"","subTopic":"","tcpHost":"","tcpPort":"","sparkId":"","sparkToken":"","beanId":"","impId":"","uuid":"","token":"","sendUuid":""},{"id":"d56GNJGclj4","type":"johnny5","z":"UFiUzfL0xVA","name":"","func":"var joystick = new five.Joystick({\n // [ x, y ]\n pins: [\"A0\", \"A1\"]\n});\n\njoystick.on(\"change\", function() {\n console.log(\"Joystick\");\n console.log(\" x : \", this.x);\n console.log(\" y : \", this.y);\n console.log(\"--------------------------------------\");\n if(this.x === 0 && this.y === 0){node.send({command:\"stop\"})}\n if(this.x === 0 && this.y < 0){node.send({command:\"forward\"})}\n if(this.x < 0 && this.y === 0){node.send({command:\"left\"})}\n if(this.x > 0 && this.y === 0){node.send({command:\"right\"})}\n if(this.x === 0 && this.y > 0){node.send({command:\"reverse\"})}\n \n});","board":"iN3aLr7FPZk","noerr":0,"x":364,"y":693,"wires":[["5QdEk8eo328"]]},{"id":"5QdEk8eo328","type":"switch","z":"UFiUzfL0xVA","name":"","property":"command","propertyType":"msg","rules":[{"t":"eq","v":"forward","vt":"str"},{"t":"eq","v":"reverse","vt":"str"},{"t":"eq","v":"left","vt":"str"},{"t":"eq","v":"right","vt":"str"},{"t":"eq","v":"stop","vt":"str"}],"checkall":"true","outputs":5,"x":533.5,"y":607.25,"wires":[[],[],[],[],[]]},{"id":"CWvKbtK4IuM","type":"pixel","z":"UFiUzfL0xVA","name":"","pin":"6","length":"4","controller":"FIRMATA","board":"iN3aLr7FPZk","x":850,"y":694,"wires":[]},{"id":"YTWloCjehJ0","type":"change","z":"UFiUzfL0xVA","name":"red","rules":[{"t":"set","p":"payload","pt":"msg","to":"#FF0000","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":745,"y":816,"wires":[["CWvKbtK4IuM"]]},{"id":"FD-ntloh7eI","type":"change","z":"UFiUzfL0xVA","name":"green","rules":[{"t":"set","p":"payload","pt":"msg","to":"#FF0000","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":694,"y":736,"wires":[["CWvKbtK4IuM"]]},{"id":"mSAH3xVB5KM","type":"inject","z":"UFiUzfL0xVA","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"allowDebugInput":false,"x":535,"y":737,"wires":[["FD-ntloh7eI"]]},{"id":"fSRVYxdlbgA","type":"inject","z":"UFiUzfL0xVA","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"allowDebugInput":false,"x":597,"y":820,"wires":[["YTWloCjehJ0"]]}] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"JungdBlUdQk","type":"change","z":"4cDfTnOOUyA","name":"stop","rules":[{"t":"set","p":"payload","pt":"msg","to":"[16,0,0,5,0,0]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":353,"wires":[["T_-uCPxIO3Q"]]},{"id":"H4RghZ1cPcc","type":"bluetooth out","z":"4cDfTnOOUyA","name":"digital","characteristicId":"2a56","bleServiceId":"bada5555-e91f-1337-a49b-8675309fb099","x":760,"y":161,"wires":[]},{"id":"T_-uCPxIO3Q","type":"bluetooth out","z":"4cDfTnOOUyA","name":"analog","characteristicId":"2a58","bleServiceId":"bada5555-e91f-1337-a49b-8675309fb099","x":775,"y":409,"wires":[]},{"id":"7Qu8-jfWrgA","type":"iot buttons","z":"4cDfTnOOUyA","x":63.5,"y":60,"wires":[["DyPeemztutA"]]},{"id":"DyPeemztutA","type":"switch","z":"4cDfTnOOUyA","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"10","vt":"num"},{"t":"eq","v":"5","vt":"num"},{"t":"eq","v":"7","vt":"num"},{"t":"eq","v":"6","vt":"num"},{"t":"eq","v":"4","vt":"num"},{"t":"eq","v":"8","vt":"num"},{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"9","vt":"num"},{"t":"eq","v":"11","vt":"num"},{"t":"eq","v":"12","vt":"num"}],"checkall":"true","outputs":11,"x":211,"y":188,"wires":[["0v5HV4n24CI"],["aoBdLyBjRjs"],["oz5WxcGpU00"],["E2p0SnMovMM"],["JungdBlUdQk"],["qMZN8w4oSf4"],["LeKlqR8znZU"],[],[],[],[]]},{"id":"qMZN8w4oSf4","type":"change","z":"4cDfTnOOUyA","name":"medium","rules":[{"t":"set","p":"payload","pt":"msg","to":"[16,200,0,5,200,0]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":508,"y":403,"wires":[["T_-uCPxIO3Q"]]},{"id":"LeKlqR8znZU","type":"change","z":"4cDfTnOOUyA","name":"fast","rules":[{"t":"set","p":"payload","pt":"msg","to":"[16,255,255,5,255,255]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":509,"y":462,"wires":[["T_-uCPxIO3Q"]]},{"id":"0v5HV4n24CI","type":"change","z":"4cDfTnOOUyA","name":"forward","rules":[{"t":"set","p":"payload","pt":"msg","to":"[17,1,4,0,2,1,15,0]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":532,"y":74,"wires":[["H4RghZ1cPcc"]]},{"id":"aoBdLyBjRjs","type":"change","z":"4cDfTnOOUyA","name":"reverse","rules":[{"t":"set","p":"payload","pt":"msg","to":"[17,0,4,1,2,0,15,1]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":532,"y":140,"wires":[["H4RghZ1cPcc"]]},{"id":"oz5WxcGpU00","type":"change","z":"4cDfTnOOUyA","name":"left","rules":[{"t":"set","p":"payload","pt":"msg","to":"[17,1,4,0,2,0,15,1]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":533,"y":201,"wires":[["H4RghZ1cPcc"]]},{"id":"E2p0SnMovMM","type":"change","z":"4cDfTnOOUyA","name":"right","rules":[{"t":"set","p":"payload","pt":"msg","to":"[2,1,15,0,17,0,4,1]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":532,"y":267,"wires":[["H4RghZ1cPcc"]]}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment