Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

GUI-O Datalogger

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here
View previous topic :: View next topic  
Author Message
matjazs

Bascom Member



Joined: 08 Nov 2016
Posts: 86

PostPosted: Sun Apr 11, 2021 3:40 pm    Post subject: GUI-O Datalogger Reply with quote

Hello.
There is an example Bascom GUI-O Datalogger made on Arduino Nano/ Bluetooth HC06 and GUI-O android application for measurement temperature and humidity using AM2301 senzor.

AM2301 sensor
https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=13759&highlight=dht11
Thank's Mike_Putnam.

GUI-O application
https://play.google.com/store/apps/details?id=com.guio.guioapp
or
www.gui-o.com

Application store data in the smartphone, directory
Code:
\Phone\Android\data\com.guio.guioapp\files\

SD card and big processor not required on electronic site.

For changing or add paramters, just change this piece of code.
Code:
Print "@extf1 FAC:1 FP:" ; Chr(34) ; Datum ; "," ; Ura ; "," ; Temperature ; "," ; Humidity ; Chr(34)


Sharing and opening file is also possible direct from application. On phone screen type on filename and opening external application to open stored file.
Typing on text »Datalogger« performed Init procedure again.
Type on label www.gui-o.com to visit this for more details.
In case that temperature is less then 0 C a warning appears - Vibra and tone from smart phone
In attach is source code, schematic, Prenos.gif picture, which is needed to copy in directory to Android smart phone in the directory:
Code:
\ Phone \ Android \ data \ com.guio.guioapp \ files \ Pictures \


When the button “Start Logging” is pushed, GIF animation start.
NOTE. When you program Arduino via USB (bootloader) it is recommended that disconnect Rx and Tx pin to HC06.

There is also Youtube video.
https://www.youtube.com/watch?v=PfkWM3pAFNw
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5917
Location: Holland

blank.gif
PostPosted: Wed Apr 14, 2021 8:11 pm    Post subject: Reply with quote

Thank you for sharing this. Very Happy
It is a great idea to use a phone for this. This GUI-O looks super. It is very versatile.
Thanks for posting the YT video.

_________________
Mark
Back to top
View user's profile Visit poster's website
matjazs

Bascom Member



Joined: 08 Nov 2016
Posts: 86

PostPosted: Thu May 20, 2021 3:48 pm    Post subject: Reply with quote

I updated the Dataloger - connection to WiFi. It's very simple. Just replace the Bluetooth module with the ESP8266. It works the same, but I can control this remotely over the internet.
How did I do that?

1. I used the ESP8266 Wemos D1 module. It's easy to use because it has a USB (micro USB) connection and doesn't need an additional programmer.
https://www.google.com/search?q=arduino+wemosd1&rlz=1C1CHBD_enSI893SI893&sxsrf=ALeKk015tTTx4eYx_RbwAf05CFR4DmoBCw:1621498403782&source=lnms&tbm=isch&sa=X&ved=2ahUKEwiMvvGi6NfwAhUMrqQKHV1qB-oQ_AUoAXoECAEQAw&biw=2048&bih=962&dpr=1.25#imgrc=oCcla_-ar1LUhM
or
https://www.google.com/search?q=arduino+wemosd1&rlz=1C1CHBD_enSI893SI893&sxsrf=ALeKk015tTTx4eYx_RbwAf05CFR4DmoBCw:1621498403782&source=lnms&tbm=isch&sa=X&ved=2ahUKEwiMvvGi6NfwAhUMrqQKHV1qB-oQ_AUoAXoECAEQAw&biw=2048&bih=962&dpr=1.25#imgrc=kvlF4WygDCS2nM

2. Download and install the Arduino
https://www.arduino.cc/en/software
3. Open the file:
https://gitlab.com/gui-o-team-public/guio_esp8266/-/tree/master/guio_esp8266
4. Install libraries for ESP8266, compile, configure COM port, and program ESP8266 Wemos D1 (if all is well, blue LED flashes) NOTE The default setting is 115200.8, N, 1

5. Open the GUI-O application. In the menu Connection> Default connection uses IoT,
6. Disconnect the data on your phone and start the pairing process
https://www.gui-o.com/examples#h.ypz2mbx78c55

https://www.gui-o.com/
To check that everything is OK, check the operation with the terminal emulator. Arduino > Tools > Serial monitor
7. Open the Bascom file "Datalogger-M328_02BT.bas", change only $baud = 115200
8. Replace the Bluetooth HC06 module with ESP8266 Wemos D1 and connect the wire to the TX and RX pins.

That's all.
All things are the same.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum