B4R Tutorials

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: 405
  • ExchangeKeysB4R.zip
    4.4 KB · Views: 408

Check the solderings of a WeMos D1 Mini

When you buy a WeMos it doesn't come assembled with the pins soldered. You will have to solder the pins. In the following schematic and code you will find a way to check the solderings of GPIO...
 
Last edited:

IR Control for DSTV Explora Model 2A

This is a sample project for the IR control of the DSTV Explora Model 2A decoder (Digital Satellite TV). The hex codes comes from the B4A project that I have posted here. The B4A...
 

Attachments

  • b4rDSTVexplora.zip
    1.9 KB · Views: 367
Last edited:

LCD Bar Graph

The attached project mimics this posting. Have added the basic functionality with inline C. It uses the rCore and rLiquidCrystal libraries.

Wiring diagram:
lcdbargraph_bb.png


Result...
 

Attachments

  • b4rLiquidCrystalDisplay.zip
    1.5 KB · Views: 414

What is SPIFFS (SPI Flash File System)?

I didn't really know what SPIFFS stood for. I knew the basics of what it was but still I should have known more about it, so here is some information about SPIFFS.

Please note: I didn't...
 
Last edited:

How I2C communications works - Video...

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

 

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

Last edited:

B4R Vibration Sensor (shake switch)

So long that I haven't played with B4R ! Today I want to test a vibration sensor (it's on a closed case yet)
The sensor signals when a sensor shake happens. It's a simple sensor (detected/not...
 

Attachments

  • upload_2019-10-25_11-37-52.png
    upload_2019-10-25_11-37-52.png
    162.9 KB · Views: 346
  • upload_2019-10-25_11-38-27.png
    upload_2019-10-25_11-38-27.png
    162.9 KB · Views: 328

Touch switch

Hello all
This is the same as Erel's "Button Example" modified by Klaus. All what I did is replacing the mechanical switch with a touch switch module. So simple that the images speak for...
 
Last edited:

Shift Registers (Serial In Parallel Out - Parallel In Serial Out)

This is a very useful tutorial by the guy in dronebotworkshop which opened new horizons for me since I didn't know there were two kinds of shift registers (actually four). Enjoy:

 
Last edited:

[Hint] HC-05,06 Power supply

Hello all, I read a few posts asking about the power supply requirements of the Bluetooth module. I thought I can put this hint so people can use the right voltage or power supply.
The HC-x comes...
 

Burn bootloader to ATMega328P-PU with an Arduino Uno

This is by 99% a tutorial and by 1% a question. The file in the link contains some notes for me I devised from a lot of tutorials on how to burn a bootloader to a ATMEGA328P-PU wired on a...
 
Last edited:

Car parking position detector

Hi everyone,

This project is a parking detector. It is not my idea and it exists already in Stavros Niarchos Foundation Parking already materialized but it has been a great pleasure analyzing it...
 

Attachments

  • upload_2019-8-17_12-36-45.png
    upload_2019-8-17_12-36-45.png
    187.6 KB · Views: 362
Last edited:

Big-endian and Little-endian

I didn't know what was the difference was between Big-endian and Little-endian, so I just looked up about it on the internet as I needed to know the difference for a sketch I was converting. I...
 
Last edited:

Random Numbers from 0 to 255 (byte)

Attachments

  • b4rRandomNumber.zip
    1.3 KB · Views: 414

B4RHelp program

I've hacked my already hacky B4AHelp program to give tidier results when looking at B4R Xml files.

EDIT: Updated to v1.1 to overcome a change in the Xml format that I just noticed.
 

Attachments

  • B4RHelp1.1.zip
    75.8 KB · Views: 513
Last edited:

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

ESP32 NOW Example (inline C)

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

Shrink your arduino project to the minimum

Hi everyone,

Last night I found this guy who explains everything simply and very detailed. Here he explains how to load our Arduino sketch directly (or indirectly) in an ATMega328P-PU...
 
Last edited:
Top