B4R Tutorials

Simple example of how to have a TCP Server and make HTTP Client calls in same project

I thought I'd share this super simple example of creating a TCP Server and making very simple HTTP Client calls in same project. Typically most projects do one or the other and not both. Here...
 

ESP8266 OTA updates


Maybe useful for somebody. It's not my tutorial!
 

Control servo and relays using Nextion lcd display

I'm new in b4r but thanks to the help of the forum i made some progress.
So i decided to share my project with all, especialy the newbies like me.
My project is a simple example on how to control...
 

Attachments

  • Nextion.zip
    417 KB · Views: 967

Some code to write into and read from EEPROM on ESP8266

Hi,

My first tutorial.

I've been playing with code to do what the title says and I have come up with this.

It should be self explanatory.

It relies on the use of B4Rserializator.

B4X:
...
 

OLED displaying data from a USB to Serial com port using AsyncStreams - B4R, B4J and VB.Net

Here is a really simple tutorial with source code on how to send data through a computer com port or laptop USB to Serial com port to receive data on your Arduino based microcontroller board. I...
 
Last edited:

Show-Off your IoT boards ( uControler/shields )!!

There seem to be quite a few variants of the Arduino's Boards, So I thought, let's Show-Off our Boards and create a Listing, similar to the B4A devices Listing, so that when problems arises, we...
 

ESP8266 - WiFi Remote Configuration

Attachments

  • ESP8266WiFiRemote.zip
    2.6 KB · Views: 5,123
Last edited:

Big-endian and Little-endian

I didn't know what was the difference was between Big-endian and Little-endian, so I just looked up about it on the internet as I needed to know the difference for a sketch I was converting. I...
 
Last edited:

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:

Connecting an actual building\house alarm PIR sensor

This is a tutorial on how to connect an actual building\house alarm PIR sensor to an Arduino and how to interpret 5 alert states (the resistance results). The advantages of using the PIR sensor in...
 
Last edited:

How I2C communications works - Video...

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

 

DHT11 & DHT22 temperature and humidity sensors ARDUINO UNO Code

This B4R example/library works with DHT11 and DHT22 temperature and humidity sensors:

This inexpensive device (DHT11) allows for measure temperature and humidity:
  • Very Low cost
  • 3...
 

Attachments

  • upload_2016-4-22_12-12-25.png
    upload_2016-4-22_12-12-25.png
    11.7 KB · Views: 1,309
  • DHTlib.zip
    10.1 KB · Views: 1,304
  • rDHTv2.zip
    1.2 KB · Views: 1,113
Last edited:

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

How to connect an Arduino Pro Mini to a PC via a USB to Serial module

So you are interested in using an Arduino Pro Mini or compatible board instead of one of the other larger boards to interact with your hardware devices. The Pro Mini does have some advantages over...
 
Last edited:

Relays, don't get caught out

Not really a tutorial as I'm no good at writing tutorials, but important to know nevertheless.

WARNING: Relays can be used to switch very high voltages. Here in the UK 240VAC can easily...
 
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:

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

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:

Pull up resistors and buttons

Understanding why you might need a pull up resistor...

Not exactly a tutorial from directly within this forum, but nevertheless I'm more than sure that this will help a few new B4R users...
 
Last edited:

Creating libraries for B4R

Libraries are written in C++.
Libraries are made of a single h file and one or more cpp files. Libraries can also include other h files which will not be exposed.

All the files should be in the...
 

Attachments

  • B4Rh2xml.jar
    98 KB · Views: 1,381
Last edited:
Top