B4R Tutorials

[Tool]LCD Display Designer

Tool to design LCD Display Layouts for 20x4 or 16x2 displays connected to Arduino, Raspberry Pi or other.

1613395535658.png

Screenshot application with generated B4R code and an Arduino UNO with...
 

Attachments

  • rLiquidCrystal_I2C-110.zip
    23.3 KB · Views: 487
  • lcddisplaydesigner.zip
    6.6 KB · Views: 486
Last edited:

[Tool]LCD Char maker

Hi,

LCD Char Maker Tool.

1583839289413.png


Functionality
  • Create custom LCD character with 5 pixel horizontal (cols), 8 pixel vertical (rows).
    Each row is represented by a byte with 5...
 
Last edited:

[tool] External Serial Connector

SS-2016-04-12_15.23.57.png


This is a small B4J program that uses jSerial library to connect to an Arduino board.

To see it working start with this...
 

Attachments

  • B4R_Serial_Connector.zip
    7.2 KB · Views: 1,300
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...
 

[Hint] 10 methods to easily destroy your Arduino

[ESP8266] Requesting time from a server

Hi guys...

The equipment's I install all get the "current clock" from the server on first connection...
I wonder if this is possible to implement with such boards... like requesting the correct...
 
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...
 

[B4x]: Exchange AES-256 encrypted messages between ESP32 and B4x

This is about how to exchange AES256 encrypted messages incl. generated IV (initialization vector) between a ESP32 and B4x.

Notes:

- the ESP uses AES/CBC/NoPadding. The data must be padded (must...
 

Attachments

  • B4J_ESP32_AES.zip
    4.5 KB · Views: 483

[B4X] B4RSerializator - Send and receive objects instead of bytes

B4R v1.50 includes a new type named B4RSerializator (in rRandomAccessFile library).
B4RSerializator solves a difficult and common task. Sending messages with multiple fields to other platforms...
 

Attachments

  • B4RSerializator.bas
    4.9 KB · Views: 3,103
  • B4R_Server.zip
    1.1 KB · Views: 3,088
  • B4A_Client.zip
    10 KB · Views: 3,145
Last edited:

[B4R & B4J] DHT11 Data via RF24 to display as Google Chart

Hi,

please find a B4R & B4J HowTo Project: DHT11 Sensor Data send via RF24 Client to RF24 Gateway which routes to a Webserver displaying the Data in Google Chart

B4R RF24 Client
  • ...
 

Attachments

  • B4RHowToDHT11RF24GoogleChart.zip
    98.8 KB · Views: 595

XOR operation for Boolean

Do you have more good solitions; Please share it on my article.
thanks sharings.

B4X:
'    ----XOR-------
'    A B Output
'    -----------
'    0 0    0
'    0 1    1
'    1 0    1
'    1 1    0...
 

Writing and reading from the EEPROM

The EEPROM is in most cases the only persistent storage available. As a persistent storage we can use it to store data that will not be lost when the board is turned off.

The rEEPROM library...
 

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

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:

Weather Station using MQTT, UDP and Thingspeak

This is my humble effort to produce a weather station (based on this project). You will need:

1 x Wemos D1 Mini
1 x BME280 Sensor
1 x TP4056 Li-Ion Charging board
1 x 3.7V Li-Ion Battery
1...
 
Last edited:

Visualizing MPU6050 Accelerometer and Gyroscope - Pitch, Roll and Yaw with inline C and Processing

It is based on this tutorial. Nano programmed via B4R and visualizing the data from the MPU6050 with Processing -
See this posting for basic setup

B4R code:...
 

Attachments

  • mpu6050.zip
    983 bytes · Views: 513
  • b4rMPU6050InlineC.b4r.zip
    2.8 KB · Views: 501

Visualizing ADXL345 3-axis Accelerometer Pitch and Roll with inline C and Processing

The attached project is based on this posting:

Have downloaded and installed...
 

Attachments

  • b4rADXL345InlineC.zip
    1.8 KB · Views: 470
  • sketch_200215a.zip
    970 bytes · Views: 473
Last edited:

Using RSA on a ESP32 via Inline C

Using PROGMEM to save memory

The smaller Arduinos like the Arduino Uno have 2k of RAM. The subs stack and the global variables use this memory.

If your program includes constant data then you can use PROGMEM to store the...
 

Using Inline C Function Pointers to call back to B4R subs

I use inline C in my B4R projects quite a bit in my projects. Mostly I have some C/C++ code I want to call from B4R subs - that's well documented on the forum (the Inline C intro here)...
 
Last edited:
Top