B4R Tutorials

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: 497
  • B4RWebServer.zip
    2.8 KB · Views: 510
Last edited:

SSD1306 Module

I've been working with SSD1306 OLED for long time, in some projects I was in need to add some special fonts and add some graphics or icons like blue tooth symbols. I thought to put all these...
 

Attachments

  • SSD_module.zip
    24.5 KB · Views: 571
Last edited:

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: 598

ESP32 Mesh example

ESP32 - Fix uploading sketch error problem

Temporary solution:
After you start compiling and compiling log reachs uploading sketch stage, you should continuously press BOOT button on ESP32 board until uploading complete...
 

Check car's lights status and report

Hey everyone,

here is an implementation of a car lights checker which reports if all 4 car's lights are working properly. To find out if there is a problem with the lights (head and rear) we use...
 
Last edited:

tone() function

Here is a tone function that does Arduino's tone()
The buzzer is connected between pin 6 and ground :
B4X:
Private Sub AppStart
    Serial1.Initialize(115200)
    Log("AppStart")
    Delay( 1000)...
 
Last edited:

[Electronics] "Wake-up on sensor trigger" and auto power-off

Hi guys,

So B4R is so much more than simply code and breakout boards assembled/connecter by jump-wires and breadboards...
I know for a fact that most of us are not electronics pronned and thus...
 

Arduino RP2040 is in the block

 

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

Updated B4R-AES256 example (compatible with B4x, php and all other platforms)

This is an updated example how to en-/decrypt data with AES256.

Libs needed: jRandomAccessFile only

Notes:

- As far as I know, the ESP32 doesn't support padding like PKCS5/7, so I had to do it...
 

Attachments

  • ESP32AES256.zip
    2.3 KB · Views: 398

Erels B4R Oveview from Walt's B4xGoodies - created with B4xgoodies Explorer using BVAD3

BLE Xiaomi Temperature Sensor Project (ESP32 with BLE+WIFI)

1619127624585.png


My office gets cold overnight in winter. I have a heater which has a basic thermostat but its very inaccurate (its just a min/max dial not temperature based). If I leave it on...
 

Attachments

  • ESPXiaomi.zip
    2.3 KB · Views: 645
Last edited:

u-blox ThingStream - Nina W106 - blog

Controlling DSTV decoder from Android device via Nano and HC-05 bluetooth module

Just for the fun of it. Can now control my Digital Satellite TV decoder from anywhere in my house....
Nano connected to the HC-05 module
B4A app connects to the HC-05 and sends the B4A "button...
 

Attachments

  • b4aHC-05.zip
    31.2 KB · Views: 400
  • b4rHC05.zip
    2.9 KB · Views: 387

LCD Clock example

Arduino Uno with LCD shield:

SS-2016-04-12_15.47.51.jpg


Working with a LCD monitor:
1. Initialize the LiquidCrystal object and set the connected...
 

Attachments

  • B4J_SerialConnector.zip
    4.1 KB · Views: 847
  • B4R_LCD.zip
    987 bytes · Views: 1,026

Use Rasberry Pi Pico with the Arduino IDE and thus with B4R

 

ESP32 Now with encryption, master and automatically added slaves

Here's an advanced ESP32 Now example. The Inlince C code is from several sources (see the inline remarks).

Note: Sometimes there are issues with the Wifi channel (WiFi and ESP Now must use the...
 

Attachments

  • B4JReceiver.zip
    4 KB · Views: 299
  • ESPNowTwoMaster.zip
    3.2 KB · Views: 356
  • ESPNowTwoWaySlave.zip
    2.5 KB · Views: 330

Reading remote sensor data with B4J, Python and Node.js

Last edited:

ESP32 NOW Example (inline C)

Top