Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Access to physical sensors & appliances control in real time

Questions related to using nuBuilder Forte.
Post Reply
Janusz
nuBuilder Team
Posts: 506
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 8 times
Been thanked: 18 times

Access to physical sensors & appliances control in real time

Unread post by Janusz »

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/1LYJVWX ... sp=sharing
If anyone would be interested to get some more details - I can provide.
If you like nuBuilder, please leave a review on SourceForge
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Access to physical sensors & appliances control in real

Unread post by kev1n »

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)
Janusz
nuBuilder Team
Posts: 506
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 8 times
Been thanked: 18 times

Re: Access to physical sensors & appliances control in real

Unread post by Janusz »

Yes - charts are from:
https://apexcharts.com/
If you like nuBuilder, please leave a review on SourceForge
ernesttan1976
Posts: 51
Joined: Sat May 16, 2020 10:08 am

Re: Access to physical sensors & appliances control in real

Unread post by ernesttan1976 »

Very cool guys!
steven
Posts: 370
Joined: Mon Jun 15, 2009 10:03 am
Has thanked: 53 times
Been thanked: 52 times

Re: Access to physical sensors & appliances control in real

Unread post by steven »

Janusz,

That is really interesting.

It opens up so many new worlds.


Steven
A short post is a good post.
Janusz
nuBuilder Team
Posts: 506
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 8 times
Been thanked: 18 times

Re: Access to physical sensors & appliances control in real

Unread post by Janusz »

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
treed
Posts: 205
Joined: Mon May 18, 2020 12:02 am
Been thanked: 2 times
Contact:

Re: Access to physical sensors & appliances control in real

Unread post by treed »

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!
Janusz
nuBuilder Team
Posts: 506
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 8 times
Been thanked: 18 times

Re: Access to physical sensors & appliances control in real

Unread post by Janusz »

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: 506
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 8 times
Been thanked: 18 times

Re: Access to physical sensors & appliances control in real

Unread post by Janusz »

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
Post Reply