B4R Tutorials

Large strings joinstring & astream

I need to create a large string for http call. Using joinStrings if string variable is more than ~ 100 characters it crashes. I saw that an alternative is to use astream but how am i going to...
 
Last edited:

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

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: 215
  • WhatsApp Image 2023-05-10 at 09.31.55.jpeg
    WhatsApp Image 2023-05-10 at 09.31.55.jpeg
    176.2 KB · Views: 186

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:

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

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:

Check blue tooth communication of your creations

Hi everyone,

Watching tutorials on YouTube I came across this application which allows you to check blue tooth communications. I suppose it will be handy to all of you...
 

SSD1306 Animated Image

Based on SSD1306 module, we can display animated images the same as displaying animated GIF on PC. The animated image is a byte array contains (n) number of frames(bitmap images) they all...
 

Attachments

  • bt_frames.zip
    793 bytes · Views: 334

Electronic components pinouts application

Hi everybody,

I found this application on Play Store and it is very useful for prototyping using components...
 

Circuit analysis to the maximum

This is a very detailed analysis on circuit analysis comprising of two videos. They are huge videos (1,5 hours almost each) but believe me it worth it seeing them. I faced all these subjects in...
 

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

Adafruit Motor Shield - Microstepping

This is not really a tutorial, just a small piece of information regarding the microstepping.

With respect to the library from Erel...
 

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

 

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

Resistance color specs reading - Billy Brown habits

Hi everyone,

Yesterday I watched a video and I would like to share the knowledge accomplished with you. Do you know Billy Brown? Well "Billy Brown Revives On Your Gin But Values Good Whiskey...
 
Last edited:

DroneBot Workshop - A great dissection of the new Arduino IDE

 

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

TIME to Uint / Unit to TIME Converter

I using this code, Because Board has a problem for records size capacity of epprom.

Sample
B4X:
Log("17:45:36 False >>",DateTime.TimeToUint(17,45,36,False)) '>>> 1065
    Log("1065 // 17:45:36...
 
Last edited:

Stepper Motor with swing and rotate

Here is some code to demonstrate using a single stepper motor, an Uno, the Adafruit Motor Shield and a three-way switch. The middle position of the switch is OFF. One side rotates the motor until...
 

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