Jump to content

Search the Community

Showing results for tags 'nextdfm'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Electronics Design
    • Electronic Projects
    • Electronics Theory
    • Power Electronics
    • Electronic Components
    • Spice Simulation
    • Datasheets
    • General Electronic Discussion
  • Digital Electronics & Microcontrollers
    • Microcontroller Projects / Programming
    • Arduino
  • PCB Design - Hardware
    • PCB Design Software / Questions
    • Mechanical Constructions
  • Others
    • Announcements
    • Feedback / Comments
    • Sell / Buy Electronics
    • Job Offer / Requests

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 3 results

  1. Interface Arduino with Node-RED to monitor the Temperature and Humidity on a Webpage Node-RED is a visual tool for non-programmers to work with the Internet of Things, it can be used to build application fasters and reduce the “go to market” time for IoT products. Node-RED can be used to easily interface hardware devices, APIs, and other online services together in new and interesting ways. Node-RED is an open source IoT tool and has been implemented by the IBM Emerging Technology organization. It is written in JavaScript and works on the NodeJS platform. Node-RED operates on module based approach where predefined modules are connected graphically to perform the sequence of operations on Node-RED or in other words it directly accesses data from microcontroller boards like Arduino, Raspberry Pi using the predefined port no. or pin number. In this tutorial, we are going to send DHT11 sensor readings to Node-RED dashboard using Arduino. Similarly, we have also connected Arduino with ThingSpeak to design a weather station. For this tutorial we will focus only on Arduino and Node-RED. Throughout this tutorial, we will cover how to install and set-up Node-RED on windows. Then we will also design a dashboard on Node-RED and use different input, output and functions nodes to create a flow Components Required Hardware components Arduino Uno DHT11 Sensor Jumper Wires Software apps and online services Arduino IDE Node.js Node-RED Circuit Diagram The circuit diagram to interface DHT11 sensor with Arduino is shown below, the schematic was drawn using Fritzing software. The DHT11 is a popular 3-pin sensor that can measure temperature and humidity. The sensor works with one-wire protocol and is easy to use with development boards like Arduino. The Vcc pin of DHT11 is connected with Arduino’s 3.3v pin, and GND pin is connected with Arduino’s GND pin. While the data pin is connected with 2nd pin of Arduino. Once the connections are done my hardware looked like this As you can see I have used simple female to male connecting wires to make the connections. The complete set-up is powered by the USB port connected to my computer. We previously connected DHT11 with Arduino to build IOT weather Station. Code Explanation Complete program for Arduino Node-RED can be found at the end of this tutorial. Programming Arduino UNO for this project don’t require much effort as it only uses one library for DHT sensor. The Arduino board has to measure the temperature and humidity value from DHT11 sensor and send it out serially using COM port. This serial information will then be processed by the Node-RED. So start the programming by initializing the required libraries, Arduino pins and variables. #include <DHT.h> #define DHTPIN 2 // what pin we're connected to #define DHTTYPE DHT11 // DHT 11 (AM2302) DHT dht(DHTPIN, DHTTYPE); //Variables int chk; float hum; //Stores humidity value float temp; //Stores temp String function is used to convert the float variables into string. Here the variable temperature and humidity is converted into string. String hum1; String temp1; In void loop() dht11 sensor calculates the temperature and humidity values and store them into temp and hum variable respectively. Serial print is used to print the temperature and humidity values on serial monitor. void loop() { //Read data and store it to variables hum and temp hum = dht.readHumidity(); temp= dht.readTemperature(); hum1 = String(hum); temp1 = String(temp); //Print temp and humidity values to serial monitor // Serial.print("Humidity: "); Serial.print(hum1); Serial.print(","); Serial.print(temp1); // Serial.println(" Celsius"); delay(2000); //Delay 2 sec. } Connect the Arduino with the laptop and choose the board and port correctly and then click the Upload button. After uploading the code, open the serial monitor. Make the baud rate of serial monitor as 9600. Setting up Node-RED 1. Install Node.js Download the latest version of Node.js from the official Node.js home page. At the time of writing this tutorial the available version was 10.16.0. After downloading run the downloaded MSI file and install Node.js in the default path. Once installed, open a command prompt and run the following command to ensure Node.js and npm are installed correctly. node --version npm --version You should receive back output with the version number of our package. Mine looked something like this. 2. Install Node-RED To install Node-RED on your system, run the following command on Command Prompt: npm install -g --unsafe-perm node-red Node-RED doesn’t have preinstalled nodes for Arduino, Serial Port, and Dashboard. So use the following commands to install these nodes: To install the Arduino nodes npm install node-red -node-arduino To install the serial port node npm install node-red -node-serialport To install the Dashboard nodes npm install node-red -dashboard 3. Run Node-RED Once installed, Run the node red using the following command in the command prompt: node-red Copy the local-server link to your browser: http://localhost:1880 to access Node-RED. You should see a window like the one below showing node red launch on the desktop. Node Library is the list of nodes which are representative of hardware, protocols and software features associated with devices Current Flow or flow is where the nodes are joined together to create a program Debug console works just like the Arduino Serial monitor and can provide the values The deploy button is used to upload the flow to target hardware The info console provides information on highlighted/selected objects Creating a Flow in Node-RED To Begin, drag the input Serial node into flow section Now to edit double click on the node, a pop window will open. In this window enter the serial port at which Arduino is connected and select 9600 in baud rate section. After this scroll down the node palette and drag the two Function node into flow section, one for temperature and other for humidity. Double click on the first function to enter its name and program. Java code for this function is given below: var temp1= msg.payload[6]-48; var temp2= msg.payload[7]-48; var temp3= msg.payload[9]-48; var temp4= msg.payload[10]-48; var result = (temp1*1000)+ (temp2*100) + (temp3*10) + temp4; result = result/100; var result1 = {payload:result}; return[result1]; Node-RED receives Humidity and Temperature values in ASCII code format from serial monitor. To display these values on Node-RED Dashboard, we need to convert ASCII code into real values. So to do this above java program is used. In this program every ASCII code is subtracted by 48 except the decimal point and comma. After Temp function now double click on the second function: Java code for this function is as follows: var hum1= msg.payload[0]-48; var hum2= msg.payload[1]-48; var hum3= msg.payload[3]-48; var hum4= msg.payload[4]-48; var result = (hum1*1000)+ (hum2*100) + (hum3*10) + hum4; result = result/100; var result1 = {payload:result}; return[result1]; As explained above this program is used to change the Humidity values from ASCII code format to real values. After completing the temperature and humidity function, scroll down and drag two Debug nodes to flow section. To design the Dashboard, scroll down the node palette to Dashboard and drag two Gauge to flow section for Temperature and humidity. The final flow will look like this You can directly create this flow on your Node-RED server by importing the following code to your Node-RED server. To do this, click on the menu button then Import -> Clipboard. In clipboard, window paste the below-given code. Node-RED Code [{"id":"74e0880a.c777f8","type":"tab","label":"Flow 3","disabled":false,"info":""},{"id":"e26c53af.cca2b","type":"serial in","z":"74e0880a.c777f8","name":"","serial":"58430f06.f23e4","x":137.5173568725586,"y":193.7500286102295,"wires":[["e45d22bf.57606","e06252b0.156d2"]]},{"id":"e45d22bf.57606","type":"function","z":"74e0880a.c777f8","name":"Temp","func":"\nvar temp1= msg.payload[6]-48;\nvar temp2= msg.payload[7]-48;\nvar temp3= msg.payload[9]-48;\nvar temp4= msg.payload[10]-48;\n\nvar result = (temp1*1000)+ (temp2*100) + (temp3*10) + temp4; \nresult = result/100;\n\nvar result1 = {payload:result};\n\nreturn[result1];","outputs":1,"noerr":0,"x":307.07645416259766,"y":92.56599521636963,"wires":[["d914ac8d.cd404","9f2a37c9.0d8f88"]]},{"id":"d914ac8d.cd404","type":"debug","z":"74e0880a.c777f8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false, "complete":"false","x":581.3498992919922,"y":37.79081916809082,"wires":[]},{"id":"e06252b0.156d2","type":"function","z":"74e0880a.c777f8","name":"Humidity","func":"var hum1= msg.payload[0]-48;\nvar hum2= msg.payload[1]-48;\nvar hum3= msg.payload[3]-48;\nvar hum4= msg.payload[4]-48;\n\nvar result = (hum1*1000)+ (hum2*100) + (hum3*10) + hum4; \nresult = result/100;\n\nvar result1 = {payload:result};\n\nreturn[result1];","outputs":1,"noerr":0,"x":315.0911521911621,"y":286.6883945465088,"wires":[["f35a3030.d7841","f7b0f890.f22e18"]]},{"id":"f35a3030.d7841","type":"debug","z":"74e0880a.c777f8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false, "complete":"false","x":582.6041069030762,"y":361.12417221069336,"wires":[]},{"id":"9f2a37c9.0d8f88","type":"ui_gauge","z":"74e0880a.c777f8","name":"Temp","group":"d5da3e9b.46abf","order":0,"width":0, "height":0,"gtype":"gage","title":"temp","label":"units","format":"{{value}} °C","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":570.0998001098633,"y":99.71789360046387,"wires":[]},{"id":"f7b0f890.f22e18","type":"ui_gauge","z":"74e0880a.c777f8","name":"Humidity","group":"d5da3e9b.46abf","order":1,"width":0, "height":0,"gtype":"gage","title":"Humidity","label":"units","format":"{{value}}%","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":583.8411865234375,"y":288.4635429382324,"wires":[]},{"id":"58430f06.f23e4","type":"serial-port","z":"","serialport":"COM4","serialbaud":"9600","databits":"8","parity":"none","stopbits":"1","waitfor":"","newline":"0","bin":"bin", "out":"time","addchar":"false","responsetimeout":""},{"id":"d5da3e9b.46abf","type":"ui_group","z":"","name":"DHT11","tab":"784aac14.5c2404","order":2,"disp":true,"width":"6", "collapse":false},{"id":"784aac14.5c2404","type":"ui_tab","z":"","name":"Station","icon":"dashboard","order":1,"disabled":false,"hidden":false}] Now flow is ready to deploy. We can deploy a flow on Node-RED using the deploy button. To access the Node-RED Dashboard, copy the link: http://localhost:1880/ui in your browser. Node-RED Dashboard will look like this: By forwarding the port in your router, this webpage can be accessed from anywhere over the internet. So this is how Node-RED can be used to do graphical programming and used to build IoT based application. PCB Design Analysis Software. NextDFM Nextdfm Software NextDFM is a PCB problem detector and engineering tool by NextPCB, one of the most professional PCB manufacturers in the world based in China. NextDFM is a simple software which can be learnt easily by a non regular PCB designer also. The UI created by them is very simple and PCB design analysis can be done in just a few clicks. Download Software Help you quickly familiarize DFM design specifications and production needs to determine whether there are any manufacturing constraints Schematics Circuit Code Code Arduino #include <DHT.h> //Constants #define DHTPIN 2 // what pin we're connected to #define DHTTYPE DHT11 // DHT 11 (AM2302) // Initialize DHT sensor for normal 16mhz Arduino DHT dht(DHTPIN, DHTTYPE); //Variables int chk; float hum; //Stores humidity value float temp; //Stores temperature value void setup() { Serial.begin(9600); dht.begin(); } String hum1; String temp1; void loop() { //Read data and store it to variables hum and temp hum = dht.readHumidity(); temp= dht.readTemperature(); hum1 = String(hum); temp1 = String(temp); //Print temp and humidity values to serial monitor // Serial.print("Humidity: "); Serial.print(hum1); Serial.print(","); Serial.print(temp1); // Serial.println(" Celsius"); delay(2000); //Delay 2 sec. }
  2. Sometimes there are some problems with your PCB designs, after you have a prototype, some of them go wrong, then you are upset that where the mistake has happened, for this problem you need a software that makes those mistakes. Show us NextDFM is a PCB problem detector and engineering tool by NextPCB, one of the most professional PCB manufacturers in the world based in China. This article is for the review of the NextDFM software installation, features and benefits of this software. NextDFM is a simple software which can be learnt easily by a non regular PCB designer also. The UI created by them is very simple and PCB design analysis can be done in just a few clicks. Installation of NextDFM software Click on the below link to move to the homepage of the NextDFM website of NextPCB and you can find the home page similar to the below figure. Link for software download Now to start downloading just signup if you are a new user of the website then click on the Free Download button and then just run it on your computer(Only windows OS version is available). Features of the software Helps in making PCB design more standard. Identify the hazards of the design. Visual simulation of the PCB files. Instant quote and billing options. Interface of the NEXT DFM Software http://www.diyprojectslab.com/wp-content/uploads/2021/01/Capture-1024x475.jpg Click on Free download http://www.diyprojectslab.com/wp-content/uploads/2021/01/5.jpg Select Destination File location for all Data http://www.diyprojectslab.com/wp-content/uploads/2021/01/6.jpg select Start menu folder http://www.diyprojectslab.com/wp-content/uploads/2021/01/7.jpg http://www.diyprojectslab.com/wp-content/uploads/2021/01/8-2.jpg Click on install and Install it http://www.diyprojectslab.com/wp-content/uploads/2021/01/9.jpg Installing http://www.diyprojectslab.com/wp-content/uploads/2021/01/10.jpg It is quite easy to install it. Like all other software. After installing it, after opening it, you will get a view as shown below. http://www.diyprojectslab.com/wp-content/uploads/2021/01/g-2.jpg First you have to login before using it http://www.diyprojectslab.com/wp-content/uploads/2021/01/zip.jpg http://www.diyprojectslab.com/wp-content/uploads/2021/01/gerb.jpg Extract PCB Gerber zip file http://www.diyprojectslab.com/wp-content/uploads/2021/01/next-1024x547.jpg http://www.diyprojectslab.com/wp-content/uploads/2021/01/hg-1-1024x547.jpg Now you upload your gerber file। http://www.diyprojectslab.com/wp-content/uploads/2021/01/pcb-1024x546.jpg Here you can see that my design The above image is the starting window of the NEXT DFM Software then click on the file and then open the gerber file of your PCB design by selecting and uploading all the layer files. I have uploaded a gerber file of IR Sensor for the demo. Then you can select and deselect any layer of your design by simply clicking on the layers present on the left most window. http://www.diyprojectslab.com/wp-content/uploads/2021/01/tf-1024x640.jpg Now you can also choose the colours as per your wish we have choice of green, blue, black, red, yellow and white colours and also choice of the surface finish and silkscreen options as a reviewer I can say that this is a great option to customize your PCB colour and other physical properties along with the visuals on the middle window screen. http://www.diyprojectslab.com/wp-content/uploads/2021/01/IMG_20210109_175630.jpg The special thing about this software is that you can order your PCB from this. This is how it looks after changing the colour of the PCB to blue. This tool helps you to visualize your PCB in the best way. On the Right top you will be having details about the number of layers in the PCB and its dimensions. On the right bottom you find the estimated price and the delivery time you can order directly by clicking on the Order now button. On clicking on the DFM Analysis button on the left window the software will analyze the design of the PCB automatically with the 21 parameter error check and suggest to you if any errors are present it is the most important and striking feature of this software. So download this software and tell us the features liked by you in this software and share this article..
  3. Sometimes there are some problems with your PCB designs, after you have a prototype, some of them go wrong, then you are upset that where the mistake has happened, for this problem you need a software that makes those mistakes. Show us NextDFM is a PCB problem detector and engineering tool by NextPCB, one of the most professional PCB manufacturers in the world based in China. This article is for the review of the NextDFM software installation, features and benefits of this software. NextDFM is a simple software which can be learnt easily by a non regular PCB designer also. The UI created by them is very simple and PCB design analysis can be done in just a few clicks. Installation of NextDFM software Click on the below link to move to the homepage of the NextDFM website of NextPCB and you can find the home page similar to the below figure. Link for software download Now to start downloading just signup if you are a new user of the website then click on the Free Download button and then just run it on your computer(Only windows OS version is available). Features of the software Helps in making PCB design more standard. Identify the hazards of the design. Visual simulation of the PCB files. Instant quote and billing options. Interface of the NEXT DFM Software http://www.diyprojectslab.com/wp-content/uploads/2021/01/Capture-1024x475.jpg Click on Free download http://www.diyprojectslab.com/wp-content/uploads/2021/01/5.jpg Select Destination File location for all Data http://www.diyprojectslab.com/wp-content/uploads/2021/01/6.jpg select Start menu folder http://www.diyprojectslab.com/wp-content/uploads/2021/01/7.jpg http://www.diyprojectslab.com/wp-content/uploads/2021/01/8-2.jpg Click on install and Install it http://www.diyprojectslab.com/wp-content/uploads/2021/01/9.jpg Installing http://www.diyprojectslab.com/wp-content/uploads/2021/01/10.jpg It is quite easy to install it. Like all other software. After installing it, after opening it, you will get a view as shown below. http://www.diyprojectslab.com/wp-content/uploads/2021/01/g-2.jpg First you have to login before using it http://www.diyprojectslab.com/wp-content/uploads/2021/01/zip.jpg http://www.diyprojectslab.com/wp-content/uploads/2021/01/gerb.jpg Extract PCB Gerber zip file http://www.diyprojectslab.com/wp-content/uploads/2021/01/next-1024x547.jpg http://www.diyprojectslab.com/wp-content/uploads/2021/01/hg-1-1024x547.jpg Now you upload your gerber file। http://www.diyprojectslab.com/wp-content/uploads/2021/01/pcb-1024x546.jpg Here you can see that my design The above image is the starting window of the NEXT DFM Software then click on the file and then open the gerber file of your PCB design by selecting and uploading all the layer files. I have uploaded a gerber file of IR Sensor for the demo. Then you can select and deselect any layer of your design by simply clicking on the layers present on the left most window. http://www.diyprojectslab.com/wp-content/uploads/2021/01/tf-1024x640.jpg Now you can also choose the colours as per your wish we have choice of green, blue, black, red, yellow and white colours and also choice of the surface finish and silkscreen options as a reviewer I can say that this is a great option to customize your PCB colour and other physical properties along with the visuals on the middle window screen. http://www.diyprojectslab.com/wp-content/uploads/2021/01/IMG_20210109_175630.jpg The special thing about this software is that you can order your PCB from this. This is how it looks after changing the colour of the PCB to blue. This tool helps you to visualize your PCB in the best way. On the Right top you will be having details about the number of layers in the PCB and its dimensions. On the right bottom you find the estimated price and the delivery time you can order directly by clicking on the Order now button. On clicking on the DFM Analysis button on the left window the software will analyze the design of the PCB automatically with the 21 parameter error check and suggest to you if any errors are present it is the most important and striking feature of this software. So download this software and tell us the features liked by you in this software and share this article..
×
×
  • Create New...