B4R Tutorials

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

Electronic components pinouts application

Hi everybody,

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

MAX7219 7-Segment Driver

this is a very simple example shows how to drive 4-digits 7-segment display with MAX7219 and rLedControl library, this code example displays 'HoLA' word, you can add more digits and MAX7219...
 

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:

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

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

SevSeg with inline C

This B4R project uses the SevSeg library via inline C to display characters on a 4 digit x 7 segment LED display (I am using a SMA420364L) - hard wired.

The inline C code via the...
 

Attachments

  • SevSeg.zip
    5.5 KB · Views: 406
  • b4rSevSegInline.zip
    2.5 KB · Views: 382
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: 364
Last edited:

Big/Large Alphanumeric Characters(LCD1602)

The attached project comes from here. Used Inline C to create and display the big/large alphanumeric characters.

I am sure you will figure out how to make use of it (i.e calling and...
 

Attachments

  • b4rLargeAlphaNumeric.zip
    2 KB · Views: 383
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: 413

Digital Clock and Alarm without using a RTC

A digital clock and alarm without making use of a RTC. It uses:
Uno R3
LCD 1602 (to display the clock and the alarm)
Piezo Buzzer (to sound the preset alarm)
10K Pot (adjust the contrast of the...
 

Attachments

  • JHS_CLOCK.zip
    2.2 KB · Views: 765
Last edited:

8x8 LED Matrix with 788BS

It is based on this Arduino project with the following wiring diagram:

matrix_connections_s9OJ43nrTc.png


It uses the 788BS 8x8 LED matrix (red) to display numbers/characters/other stuff (without making...
 

Attachments

  • b4rMakeSenseOf8x8LEDmatrix.zip
    1.9 KB · Views: 514
Last edited:

Using RSA on a ESP32 via Inline C

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

ESP32: AES-256 with IV (CBC, PKCSNoPadding) example via Inline C

Finally I got it working. Maybe the Inline C code is not that elegant :) I was too lazy to add a Salt (which I will update later). Hardest part (for me as I don't like C since the 90ies) was to...
 
Last edited:

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

GPS data parsing from raw NMEA format

Hello All,
Here I will show, how to parse the Latitude and Longitude from raw nmea data.
I am using gps module, Arduino Uno and additional softwareSerial.
B4X:
Sub Process_Globals
    Public Serial1...
 

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:

UDP Communication

rEthernet library v1.10 (included in v1.00 beta 9) includes a new type named EthernetUDP. It allows sending and receiving UDP packets.

UDP is simple to work with as it is a connection-less...
 

Attachments

  • B4A_UDP.zip
    8.1 KB · Views: 1,427

HX711 code module

Hello;
this code module is for using HX711 load cell amplifier board with Arduino, I used it with UNO and MEGA without any problems, only 4 pins are required for voltage supply and communication...
 

Attachments

  • HX711.bas
    2.2 KB · Views: 574
Last edited:
Top