![]() Start by creating another Javascript function block and connect it to our arduino input node. Now we want the data we are outputting from our arduino to go to our Wampserver. This will be useful for when we need to see it on the UI. Make sure the node is set to 5 outputs (or your equivalent)Īs seen in the screenshot, we now have 5 outputs that we each link up to a debug node and a text dashboard node. In this function block I split my 5 data using the following code: ![]() This block allows us to program in Javascript, and here we write a code that can split our data for every comma. Next up we create a Javascript function block and connect it after the Arduino input node. If correctly set up, it should say that it is connected. You need to make sure it has the correct serial (Mine uses COM4) port and Baud rate (in my program I use 9600 baud rate) This is why we made sure to seperate them with commas inside the Arduino code.įirst let's start by putting down the Arduino Input node, found on the left side panel. Now that Node-red is ready to go we need to start out by splitting our data into seperate pieces. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |