B4R Tutorials

Reading Date, Time, and Temperature from a DS3231 RTC module (I2C) using any 2 digital configured pins from an Arduino

Cracked it - can connect the DS3231 to any 2 digital pins of my Nano and read the date, time, and temperature by making use of the B4A core library only. All control of the SDA (data) and SCL...
 

Attachments

  • b4rReadDS3231manually.zip
    3.2 KB · Views: 505
  • datasheet.pdf
    297.8 KB · Views: 534
Last edited:

ESP32 WITH LCD (20x4) Interface Using I2C

ESP32 WITH 20X4 LCD USING I2C:
#Region Project Attributes
    #AutoFlushLogs: True
    #CheckArrayBounds: True
    #StackBufferSize: 600
#End Region
'Ctrl+Click to open the C code folder...
 

Attachments

  • WhatsApp Image 2023-05-15 at 18.44.23.jpeg
    WhatsApp Image 2023-05-15 at 18.44.23.jpeg
    174.3 KB · Views: 259

Arduino + Raspberry Pi

SS-2016-04-14_14.54.06.jpg


In this tutorial we will create a currency converter solution that shows the conversion from USD to other currencies on...
 

Attachments

  • B4J_CurrencyConverter.zip
    1.5 KB · Views: 896
Last edited:

Reading & Writing Time of DS1307 With ESP32 Using rWire

Reading Time of DS1307 With ESP32:
#Region Project Attributes
    #AutoFlushLogs: True
    #CheckArrayBounds: True
    #StackBufferSize: 600
#End Region
'Ctrl+Click to open the C code folder...
 

Attachments

  • ds1307.JPG
    ds1307.JPG
    23.7 KB · Views: 160
Last edited:

Simple example of how to have a TCP Server and make HTTP Client calls in same project

I thought I'd share this super simple example of creating a TCP Server and making very simple HTTP Client calls in same project. Typically most projects do one or the other and not both. Here...
 

my second project with you

Hey guys, how are you?
I want to share my second project with you
Fan control with timer
I just got the same control back via Alexa and it couldn't work so that you have the best interest. I'm...
 

Attachments

  • 20240119_160906.jpg
    20240119_160906.jpg
    93.4 KB · Views: 78
  • PCB.JPG
    PCB.JPG
    294.4 KB · Views: 69
  • CONTROLE DE VENTILADOR_PCB.zip
    35 KB · Views: 49
  • Backup ESP_Config 2023-09-04 08.55.zip
    7.6 KB · Views: 50
  • Backup Casa_Controle_8 2023-07-04 16.26.zip
    70.6 KB · Views: 52

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: 77
  • 20240109_175211.jpg
    20240109_175211.jpg
    232.7 KB · Views: 74
  • Casa_Control PCB.zip
    87.4 KB · Views: 51

Cables AWG - Surface (mm^2) - Diameter(mm)

Good morning everyone,

I have put together this Excel file which shows the "translations" bettween AWG value of cable (american wire gauge) and european metric value of surface and diameter. I...
 

Attachments

  • Cables-AWG-Surface-Diameter.xlsx
    12.1 KB · Views: 615

ESP32: AES256 encrypted & Base64 encoded post message to and from PHP

Example:

- AES256 encrypt a message with IV and Salt
- Base64 encode it
- send a http post request to a php script
- decrypt in php
- send back a AES256 encrypted and Base64 encoded message to...
 

Attachments

  • httpaes256.zip
    3.2 KB · Views: 205

Circuit analysis to the maximum

This is a very detailed analysis on circuit analysis comprising of two videos. They are huge videos (1,5 hours almost each) but believe me it worth it seeing them. I faced all these subjects in...
 

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 ...
 

ESP8266 OTA updates


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

Intel Arduino 101

ABX00005_featured_grande.jpg


The Arduino 101 is an Arduino board developed by Intel. It is mostly compatible with standard...
 

Attachments

  • boards.zip
    2.5 KB · Views: 646
  • B4R_Serial_Connector_Arduino101.zip
    4.9 KB · Views: 613
Last edited:

Analog Read Example using XBee Mesh Network

Attachments

  • B4RHowToTMP36XBee.zip
    4 KB · Views: 495

2 basic projects on esp : one with MQTT client and one with MQTT broker

it is just 2 basic projects to do some tests with MQTT
we have no personal data in projects, full provisioning is done by a Web server interface

one basic project is with Wifi and MQTT client...
 

Attachments

  • ESP_ConfigWifiMQTT_V1.4.zip
    5.6 KB · Views: 177
  • test_rsMQTTBroker.zip
    4.7 KB · Views: 187

Node-Red MQTT controlling 8+8 digital Inp-Out and I2C ADC on ESP32

Hi
Here a sample program to control/monitor 8+8 digital Out-Inp, plus an I2C ADC.
The program use the MQTT protocol.
This program is an evolution of the previous one I posted.

This version add...
 

Attachments

  • NodeRed_Analog_Digital_Ex.rar
    68.3 KB · Views: 452

Big/Large Alphanumeric Characters(LCD1602)

The attached project comes from here. Used Inline C to create and display the big/large alphanumeric characters.

I am sure you will figure out how to make use of it (i.e calling and...
 

Attachments

  • b4rLargeAlphaNumeric.zip
    2 KB · Views: 386
Last edited:

Updated RSA Encryption between B4x and ESP32's (any other plattform will do, too)

Here's an updated example how to

- generate an RSA keypair (Public and Private key) on a ESP32 and on B4x
- export these keys in PEM format (compatible with any other plattform like B4x, .net...
 

Attachments

  • ExchangeKeysB4R.zip
    4.4 KB · Views: 408
  • ExchangeKeysB4J.zip
    5 KB · Views: 404

Resistance color specs reading - Billy Brown habits

Hi everyone,

Yesterday I watched a video and I would like to share the knowledge accomplished with you. Do you know Billy Brown? Well "Billy Brown Revives On Your Gin But Values Good Whiskey...
 
Last edited:

Some code to write into and read from EEPROM on ESP8266

Hi,

My first tutorial.

I've been playing with code to do what the title says and I have come up with this.

It should be self explanatory.

It relies on the use of B4Rserializator.

B4X:
...
 
Top