Access to physical sensors & appliances control in real time

Questions related to using nuBuilder Forte.

Access to physical sensors & appliances control in real time

Unread postby Janusz » Sun Oct 25, 2020 7:18 am

Hi,
Just different post - not to solve some issues - but to show some opportunities :-)
It's very easy with nuBuilder to analyse, present and process all data stored already on computer disc.
But access to physical sensors, equipment or even to control appliances in real time - it's not more difficult :-)
Just recently I've bought Arduino with some sensors (in total 15USD) and was trying to connect it to nuBuilder - and it was very easy.
The big benefit is that Arduino can connect to web server therefore you can use php files to perform any tasks and communicate both ways.
It's a kind of fully mobile system - which can connect to the database from any part of the world - and the only condition is the access to the network.
If you are interested in such solution please find short movie how it works.
https://drive.google.com/file/d/1LYJVWXOrocnmmq2fpywtdRzegSkLb57e/view?usp=sharing
If anyone would be interested to get some more details - I can provide.
If you like nuBuilder, please leave a review on SourceForge
Janusz
nuBuilder Team
 
Posts: 446
Joined: Fri Dec 28, 2018 10:11 pm
Location: Krakow, Poland
nuBuilder Version: 4.5

Re: Access to physical sensors & appliances control in real

Unread postby kev1n » Sun Oct 25, 2020 8:34 am

Hi Janusz!

What a neat example! If I ever get to buy Arduino too, I'll certainly ask you for details on the implementation.

BTW: I suppose you use apaxcharts (instead of google charts)
If you like nuBuilder, please leave a review on SourceForge

nuBuilder Code Library (85)
Installation Guides
Updating nuBuilder

Join Discord to talk about nuBuilder!
kev1n
nuBuilder Team
 
Posts: 1357
Joined: Mon Oct 15, 2018 2:13 am
nuBuilder Version: 4.5

Re: Access to physical sensors & appliances control in real

Unread postby Janusz » Sun Oct 25, 2020 8:50 am

Yes - charts are from:
https://apexcharts.com/
If you like nuBuilder, please leave a review on SourceForge
Janusz
nuBuilder Team
 
Posts: 446
Joined: Fri Dec 28, 2018 10:11 pm
Location: Krakow, Poland
nuBuilder Version: 4.5

Re: Access to physical sensors & appliances control in real

Unread postby ernesttan1976 » Wed Dec 16, 2020 4:25 pm

Very cool guys!
ernesttan1976
 
Posts: 42
Joined: Sat May 16, 2020 5:38 pm

Re: Access to physical sensors & appliances control in real

Unread postby steven » Thu Dec 17, 2020 5:54 am

Janusz,

That is really interesting.

It opens up so many new worlds.


Steven
steven
 
Posts: 127
Joined: Mon Jun 15, 2009 5:33 pm

Re: Access to physical sensors & appliances control in real

Unread postby Janusz » Fri Jan 15, 2021 6:25 am

Hi,
I prepared a YouTube video for Polish Arduino users. It is not in English, but maybe some of you know Polish :)
So overall the video is not much different to the one I posted earlier - but with some improvements made to the app. and with more focus on the nuBuilder.
So if someone would be interesting to see - link is just belowe.

https://youtu.be/B8anlIeFiPo
If you like nuBuilder, please leave a review on SourceForge
Janusz
nuBuilder Team
 
Posts: 446
Joined: Fri Dec 28, 2018 10:11 pm
Location: Krakow, Poland
nuBuilder Version: 4.5

Re: Access to physical sensors & appliances control in real

Unread postby treed » Fri Jan 15, 2021 8:28 am

The only Polish I know is a bit of reverse Polish notation. Thanks for this post. I am automating our production line and just got an Arduino UNO working with sonar sensor to monitor the level in a sawdust hopper. I have made a Java HMI for Arduinos for previous projects. I'm looking forward to integrating nuBuilder into our production line. At least you code in English. Thanks!
treed
 
Posts: 90
Joined: Mon May 18, 2020 7:32 am

Re: Access to physical sensors & appliances control in real

Unread postby Janusz » Fri Jan 15, 2021 4:04 pm

Hi treed,
I'm glad that other people here are using Arduino. If you would need some more details - just let me know and I can share.
In the example here I use Arduino WeMos D1 as it has wifi module included so connection to local wifi network do not require any additional modules to install.
And if it's connected to the network then data exchange with mysql database is very easy. Just to call php procedures from Arduino code:
(some example)
Code: Select all
  //GET method - read from MySql
  http.begin(server_2arduino_url);
        http.GET();
        String data = http.getString();
  http.end();

Code: Select all
//GET method - wtite to MySql
http.begin(arduino_2server_url+"?temp="+String(temperature)+"&hum="+String(humidity)+"&temp2="+String(temperatureC));
        http.GET();
http.end();

the urls can be as following:
Code: Select all
const String arduino_2server_url =  "http://192.168.6.105/ArduinoDB/arduino1.php";
const String server_2arduino_url =  "http://192.168.6.105/ArduinoDB/arduino2.php";
const String arduino_sampling_url = "http://192.168.6.105/ArduinoDB/arduino3.php";

in the php you can place any code you want.
If you like nuBuilder, please leave a review on SourceForge
Janusz
nuBuilder Team
 
Posts: 446
Joined: Fri Dec 28, 2018 10:11 pm
Location: Krakow, Poland
nuBuilder Version: 4.5

Re: Access to physical sensors & appliances control in real

Unread postby Janusz » Mon Jan 25, 2021 12:27 am

Hi,
Please find enclosed English version of video how to connect Arduino to nuBuilder.

https://nubuilderforte.blogspot.com/202 ... ds-to.html
.
If you like nuBuilder, please leave a review on SourceForge
Janusz
nuBuilder Team
 
Posts: 446
Joined: Fri Dec 28, 2018 10:11 pm
Location: Krakow, Poland
nuBuilder Version: 4.5


Return to General

Who is online

Users browsing this forum: No registered users and 16 guests