B4R Tutorials

AES256 encrypted BLE (ESP32 & B4A) example

I took Erel's BLE example and added (as on the ESP32 side) AES256 encryption. For some reasons I wasn't able to use SPIFFS and/or WiFi parallel to BLE on the ESP32 side. Maybe you find a...
 

Attachments

  • B4a-Provisioning.zip
    14.9 KB · Views: 212
  • B4R-Provisioning.zip
    3 KB · Views: 198

Arduino MicroPython is coming

 

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

Node-Red MQTT controlling 8 relays ESP32

Hi
Here a sample program to control 8 outputs on arduino ESP32. The program use the MQTT protocol to exchange the data (really a single byte). By Node-red web interface the user set or reset the...
 

Attachments

  • 8_relay_ESP.Nodered_example.zip
    154.2 KB · Views: 596

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

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

E-Paper (probably suitable for battery powered projects)

Here is a nice tutorial by the guy in DronebotWorkshop. What surprised me (and I did not know that) is that with e-paper you only have power consumption while writing to it and no more. Even if...
 
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

  • ExchangeKeysB4J.zip
    5 KB · Views: 403
  • ExchangeKeysB4R.zip
    4.4 KB · Views: 407

DroneBot Workshop - A great dissection of the new Arduino IDE

 

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: 510
  • B4RWebServer.zip
    2.8 KB · Views: 532
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: 615

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:

[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: 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: 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: 416

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: 669
Last edited:
Top