B4R Tutorials

2 basic projects on esp : one with MQTT client and one with MQTT broker

it is just 2 basic projects to do some tests with MQTT
we have no personal data in projects, full provisioning is done by a Web server interface

one basic project is with Wifi and MQTT client...
 

Attachments

  • ESP_ConfigWifiMQTT_V1.4.zip
    5.6 KB · Views: 177
  • test_rsMQTTBroker.zip
    4.7 KB · Views: 186

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

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

Adafruit MPR121 capacitive Keypad

Hi All,

The attached zip files have the Arduino libraries and the B4R libraries together with a small B4R app showing how to use the Adafruit MPR121 capacitive touch 12 key keypad.

Big thanks to...
 

Attachments

  • rMPR121.zip
    1.2 KB · Views: 450
  • rMPR121-Libraries.zip
    4.6 KB · Views: 390
  • MPR121keypad.jpg
    MPR121keypad.jpg
    71.1 KB · Views: 601

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:

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: 212
  • B4R-Provisioning.zip
    3 KB · Views: 198

Analog Read Example

Hi,

a simple analog read example which reads the temperature from sensor TMP36 and logs the result.
B4X:
Sub Process_Globals
    Public Serial1 As Serial
    Private TempSensorPin As Pin...
 

Analog Read Example using Ethernet

Hi,

based on previous Analog Read Example extended the solution by using the Arduino Ethernet Shield to send temperature data to B4J server and receive confirmation.
Full project (with...
 

Attachments

  • B4RHowToTMP36Ethernet.zip
    4.6 KB · Views: 531

Analog Read Example using LCD

Attachments

  • B4RHowToTMP36LCD.zip
    1.8 KB · Views: 612

Analog Read Example using MQTT

Attachments

  • B4RHowToTMP36MQTT.zip
    4.5 KB · Views: 597
Last edited:

Analog Read Example using XBee Mesh Network

Attachments

  • B4RHowToTMP36XBee.zip
    4 KB · Views: 495

Arduino + Raspberry Pi

SS-2016-04-14_14.54.06.jpg


In this tutorial we will create a currency converter solution that shows the conversion from USD to other currencies on...
 

Attachments

  • B4J_CurrencyConverter.zip
    1.5 KB · Views: 896
Last edited:

Arduino - PC File Transfer

In this example the Arduino board acts as a server. Clients can list the available files and can download files stored on the SD card, which is part of the Ethernet shield...
 

Attachments

  • B4J_FileTransfer.zip
    3.2 KB · Views: 1,108
  • B4R_FileTransfer.zip
    1.6 KB · Views: 1,183
Last edited:

Arduino MicroPython is coming

 

Arduino RP2040 is in the block

 

Arduino Simulator

Hey everybody,

Just found this and looks very impressive...

 

Arduino to WeMos pin mapping

Hello,
Not exactly a tutorial, but informative nevertheless.

This is how to map your Arduino projects to your WeMos. So for example in the blink demo, you just choose pin 2 for a WeMos instead of...
 
Last edited:

AsyncStreams Prefix Mode

rRandomAccessFile v1.80 adds support for AsyncStreams in prefix mode.
All B4X development tools use AsyncStreams for network communication and now all of them support prefix mode...
 

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

B4R & B4J MQTT display DHT11 sensor data Google Line Chart

Hi,

as an example build a B4R & B4J solution to display DHT11 sensor data (Temperature & Humidity) in a google line chart created and refreshed by a B4J webserver.

Update 2016.05.24
There...
 

Attachments

  • B4RHowToDHT11MQTTGoogleChart.zip
    29.2 KB · Views: 761
Last edited:
Top