B4R Tutorials

How I2C communications works - Video...

Not exactly a tutorial, but still education for those not in the know...

 

Home Control 4

Hi guys
I want to share my project on this great community (source code free no donation)
I think it may be useful to someone
in the source code I commented out the functions
it should be simple...
 

Attachments

  • B4A-HomeControl.zip
    13.4 KB · Views: 255
  • B4J-HomeControl.zip
    4.4 KB · Views: 223
  • B4R-Home-Control.zip
    2 KB · Views: 243

HC 05 Classic Bluetooth

SS-2016-05-08_17.39.25.jpg


SS-2016-05-08_17.39.57.png


In this example we will connect an Android...
 

Attachments

  • Adruino_Bluetooth_B4A.zip
    9.7 KB · Views: 2,641
Last edited:

GSM / GPRS - Control the Arduino with SMS messages

SS-2016-05-11_13.27.00.jpg


The GSM shield allows the Arduino to connect to cellular networks. This opens the door for many interesting outdoor...
 

Attachments

  • GSM_Example.zip
    2.3 KB · Views: 1,470
Last edited:

GPS data parsing from raw NMEA format

Hello All,
Here I will show, how to parse the Latitude and Longitude from raw nmea data.
I am using gps module, Arduino Uno and additional softwareSerial.
B4X:
Sub Process_Globals
    Public Serial1...
 

Glossary for Arduino Development

This is not a tutorial for B4R. I think a glossary of terms might be useful for beginners to electronics and B4R. So I created my own list in GitHub to record the terms that I find need...
 

Getting local date & time (easy and free)

I saw a post or two about how to get the local date & time with no easy answers. I need this myself for my first Arduino project so I had a look around and found a free API that does just this...
 

Full responsive ESP8266 settings WebApp with websockets

Merry Christmass everyone in the Christian community of this forum,

Yesterday I 've had a great crazy idea which turned out to be a working one too.

Normally one would answer to the question if...
 

Attachments

  • B4RWebApp.zip
    5 KB · Views: 509
  • B4RWebServer.zip
    2.8 KB · Views: 529
Last edited:

For those who like handmade signs

For those who enjoy making their own 8 Relays, DS18b20, Buzzer, Display, LDR Sensor,
 

Attachments

  • Imagem do WhatsApp de 2024-01-20 à(s) 13.40.35_1218f8de.jpg
    Imagem do WhatsApp de 2024-01-20 à(s) 13.40.35_1218f8de.jpg
    156.9 KB · Views: 72
  • 20240109_175211.jpg
    20240109_175211.jpg
    232.7 KB · Views: 73
  • Casa_Control PCB.zip
    87.4 KB · Views: 50

Example of use of the joystick module

Looking in the tutorial section of B4R I noticed that there was no example of how to connect and use the joystick module. So here is an example
Wiki:
Joystick Module MH / pin

 green : GND
   Red ...
 

Ethernet / Network Tutorial

This example uses an Ethernet shield to connect to a server. In this case the server is implemented with B4J, though you can easily implement a similar server with B4A or B4i.

Whenever the user...
 

Attachments

  • EthernetExample.zip
    1.2 KB · Views: 1,187
Last edited:

ESP8266 OTA updates


Maybe useful for somebody. It's not my tutorial!
 

ESP8266 FTP Client

Attachments

  • FTPClient.zip
    3.7 KB · Views: 1,767

ESP8266 - WiFi Remote Configuration

Attachments

  • ESP8266WiFiRemote.zip
    2.6 KB · Views: 5,113
Last edited:

ESP8266 - Getting Started

B4R v1.20 added support for ESP8266 modules. ESP8266 is a great module for IoT solutions. For a few dollars you get a powerful microcontroller with built-in support for wifi.

I recommend to...
 

Attachments

  • B4J_ConnectToESP8266.zip
    3.7 KB · Views: 2,544
Last edited:

ESP8266 + UDP + BMP180 = Simple weather station

This is an example of how UDP can be used to broadcast the current temperature and pressure to one or more clients.

The nice thing about it is that there is no server involved. The ESP8266 just...
 

Attachments

  • B4R_Weather.zip
    1.1 KB · Views: 1,999
  • B4J_Weather.zip
    981 bytes · Views: 1,307
  • B4A_Weather.zip
    7.8 KB · Views: 1,949
  • B4i_Weather.zip
    2.3 KB · Views: 1,053

ESP8266 + Relay = Let there be light

Relays are electronic switches that allow low power (voltage) devices to control high power circuits.

In this example the ESP8266 board controls a regular 220v light bulb.

*** High power...
 

Attachments

  • B4A_Relay.zip
    7.8 KB · Views: 1,340
Last edited:

ESP32: Simple OTA/Update via WebServer

This example (adapted from the Arduino examples under Arduino->File->Examples)

- downloads a file from a server (exactly: the update file)
- store this file to the filesystem (SPIFFS)
- starts an...
 

ESP32: OTP/2FA example

This example generates a OTP/2FA ("One Time Password") as you know it when you login to a website and you get a 6 digit code via sms. It changes every 30 seconds.

How it works:

- as it is time...
 

ESP32: Download huge file from a server and save it

This example downloads a file from a server folder (here I use a folder in htdocs on my apache server) and saves it to a file on the file system. Tested with 700KB files. Set headers (browse the...
 
Top