B4R Tutorials

Provisioning: Start Access point, display it's Wifi credentials as a Wifi-QRCode (can be scanned by any phone)

As the title says, a standard WiFi-QRCode ist displayed on a tft screen. This can be scanned by any modern phone to automatically and it connects to the ESP, so you don't need to type any...
 

Attachments

  • QRConnect.zip
    3.6 KB · Views: 25

TFT displays: TFT_ESPI (inline C) example

Update:

1. Init Display as a separate sub
2. TFT_ESPI as "global"
3. Drawtext as a sub with parms
4. Updated example


Although there is a library and I appreciate the good work, I like to...
 

Attachments

  • TFT_B4R.zip
    1.4 KB · Views: 38
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: 47
  • 20240109_175211.jpg
    20240109_175211.jpg
    232.7 KB · Views: 47
  • Casa_Control PCB.zip
    87.4 KB · Views: 29

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: 52
  • PCB.JPG
    PCB.JPG
    294.4 KB · Views: 45
  • CONTROLE DE VENTILADOR_PCB.zip
    35 KB · Views: 31
  • Backup ESP_Config 2023-09-04 08.55.zip
    7.6 KB · Views: 32
  • Backup Casa_Controle_8 2023-07-04 16.26.zip
    70.6 KB · Views: 33

Writing & Reading Serial EEPROM 24C512 With Arduino Uno Using rWire

SERIAL EEPROM 24C512 Reading & Writing:
Sub Process_Globals
    Public Serial1 As Serial
    Private Wire As WireMaster
    Dim bc As ByteConverter
End Sub

Private Sub AppStart
    Serial1.Initialize(115200)
    Log("AppStart")...
 

How to write a Tutorial/Snippets/ShareYourCreations

Hi guys,

I know I am not the most prolific B4R user, but I'm proud to have been the first to post on the "Share Your Creations" of this sub-Forum.
The mentioned sub-Forums have become more and...
 
Last edited:

ChatGPT can help designing circuits

There is also an other quite useful capability of ChatGPT. It can help designing circuits by proposing components. The component it proposes is real and I have searched for it in...
 

P-MOSFETs

Today I was impressed. While being at the university, some 20 years ago I 've had a hard time understanding the principles of Transistors and MOSFETs. That was partly because I was starting...
 
Last edited:

MCUs comparison 2023

One popular MCU programmer made an YouTube stream with online testing and comparing the MCUs.
1. pin out high
2. make a test operation: a + b, a - b, a * b, a / b, sin(a), power(a, b), power(b...
 
Last edited:

compilation language: arduino-cli config

Last edited:

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: 153
  • test_rsMQTTBroker.zip
    4.7 KB · Views: 164

ESP32: detailed OTA/Update via WebServer from SPIFFS file system

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: 140
Last edited:

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: 237
  • B4J-HomeControl.zip
    4.4 KB · Views: 205
  • B4R-Home-Control.zip
    2 KB · Views: 223

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

ESP32 WITH LCD (16*2) WITH 4 LINE INTERFACE (WITHOUT I2C)

ESP32 WITH LCD (16X2) 4 LINES INTERFACE:
Sub Process_Globals
    Public Serial1 As Serial
    Private wifi As ESP8266WiFi
    Public mylcd As LiquidCrystal
End Sub

Private Sub AppStart
    Serial1.Initialize(115200)...
 

Attachments

  • WhatsApp Image 2023-05-10 at 09.28.39.jpeg
    WhatsApp Image 2023-05-10 at 09.28.39.jpeg
    125.7 KB · Views: 187
  • WhatsApp Image 2023-05-10 at 09.31.55.jpeg
    WhatsApp Image 2023-05-10 at 09.31.55.jpeg
    176.2 KB · Views: 166

Tips to use an M5Stamp-C3U

It's a very small and quite powerful ESP32-board with WIFI/BLE and B4R support!

Use following board library in the Arduino-IDE in 'Settings'...
 

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

RSA Encryption: Create keys, en-/decrypt, hash, sign/verify signature (clean code)

This example replaces my previous examples with cleaner inline C coding (I'm getting better :))using almost all variables from Globals. You can define the keysizes (eg. 2048 or 4096). It's fully...
 

Attachments

  • RSAOnly.zip
    3.4 KB · Views: 175

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

  • B4R-Provisioning.zip
    3 KB · Views: 179
  • B4a-Provisioning.zip
    14.9 KB · Views: 193
Top