B4R Tutorials

LEDStrip - different themes for different holidays

Here is this RGB Led Strip light project I have been playing around with.

I am including the Android program I use to play with colors.

NOTE when using the Android program you can select a theme...
 

Attachments

  • LEDStrip_B4A.zip
    496 KB · Views: 408
  • LEDStrip_B4R.zip
    11.3 KB · Views: 403
  • LEDStrip - Metamucil Jar.jpg
    LEDStrip - Metamucil Jar.jpg
    358.5 KB · Views: 481
  • LEDStrip - Breadboard.jpg
    LEDStrip - Breadboard.jpg
    272.8 KB · Views: 459
Last edited:

B4R/B4J Experiment - Control Servo Motor connected to Arduino via Browser

This experiment moves a Little Crane arm (used some Lego parts) up and down via browser connected to a B4J websocket server.
When the arm moves, the Red LED is turned on else the Green LED is on...
 

Attachments

  • b4rhowtoservomotorbrowser.zip
    254 KB · Views: 648
Last edited:

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

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:

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

[Hint] 10 methods to easily destroy your Arduino

Inertial Measurements (MPU 6050) and Magnetometer (HMC5883L)

With big help from Erel here are two examples of connecting two boards by the I2C/TWI (A4 and A5 pins), using the rWire library.
Inertial Measurements (mpu6050) :
B4X:
' MPU 6050 board - Inertial...
 
Last edited:

Tutorial vs Creation : Clarification

Hi Guys

EREL is a very busy guy, and sometimes he prefers to give us some freedom on some emplacements for our Posts.

Since the advent of B4R many tutorials have been posted portraying the usage...
 

Downloading a Web page with ESP8266

Last edited:

Controllino Mega PLC Examples

Attached is a B4R project (using inline C) to manipulate the ports of the Controllino Mega. In this project we do the following:
1. Toggle the OVL (over voltage) LED of the PLC between on/off...
 

Attachments

  • ControllinoPorts.zip
    1.2 KB · Views: 27

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

  • B4a-Provisioning.zip
    14.9 KB · Views: 215
  • B4R-Provisioning.zip
    3 KB · Views: 201

How I2C communications works - Video...

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

 

Charlieplexing - controlling N*(N-1) LED's with N GPIO pins

It is based on this posting. I am using an Arduino Nano to control the 12 LEDs using pins 8, 9, 10, and 11 of the Nano. Just thought it would be interesting to give...
 

Attachments

  • b4rCharliePlexing.zip
    1.1 KB · Views: 370

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:

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

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

B4A, B4i, B4J and B4r API documentation - B4X Object Browser

Mini Weather Station with LCD

Hi,

a Mini Weather Station experiment displaying on a 16x2 LCD the Temperature + Humidity (Line1) and Pressure + Altitude (Line2).
In addition, a trendindicator (=,+,-) is shown for each...
 

Attachments

  • B4RHowToLiquidCrystalWeather.zip
    114.6 KB · Views: 633
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...
 

Additional Hardware Serial Ports

Some boards like Arduino Mega and Arduino Due have several hardware serial ports. These ports are very useful if you need to interact with multiple modules. The alternative for multiple hardware...
 
Last edited:
Top