B4R Tutorials

Connecting ESP8266 and Arduino with rSoftwareSerial library

An example of connecting an ESP8266 (NodeMCU used for this experiment) and an Arduino MEGA.
The Arduino runs B4R and the ESP8266 runs ESP8266 Basic.
Note 1: Using ESP8266 Basic is for the...
 
Last edited:

B4R sending DHT11 data to B4J server which displays a Google Line Chart

An example of a DHT11 sensor connected to an Arduino interacting with B4J server application.
  • A B4R program gathers every 10s sensor data and sends the data in JSON format via UDP to a B4J...
 

Attachments

  • B4RHowToDHT11UDPGoogleChart.zip
    14.3 KB · Views: 672

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:

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

[B4R & B4J] DHT11 Data via RF24 to display as Google Chart

Hi,

please find a B4R & B4J HowTo Project: DHT11 Sensor Data send via RF24 Client to RF24 Gateway which routes to a Webserver displaying the Data in Google Chart

B4R RF24 Client
  • ...
 

Attachments

  • B4RHowToDHT11RF24GoogleChart.zip
    98.8 KB · Views: 611

RTC DS1302 Example

Hi,

this is an example of using the Real Time Clock DS1302 (from sunfounder).
There are two versions:
1. Manual: Set the time manual befor uploading. After uploading the time is...
 

Attachments

  • B4RHowToRTCDS1302.zip
    347.2 KB · Views: 1,145
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,112
  • B4R_FileTransfer.zip
    1.6 KB · Views: 1,185
Last edited:

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:

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

Servo Motor controlled via IR Remote Control

Hi,

an experiment to move a Little Crane arm (used some Lego parts) up and down via IR Remote Control (Key1=UP,Key2=DOWN). When the arm moves, the Red LED lights else the Green LED is...
 

Attachments

  • B4RHowToServoMotorCrane.zip
    245 KB · Views: 959
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...
 

How to Implement STM32 into B4R

If you want more FLASH memory space (say 128K flash), need more RAM (how about 20K), would like your program to run a little faster, or simply want to play around with a different micro-controller...
 

Attachments

  • How to Implement STM32 to B4R.pdf
    207.7 KB · Views: 502
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: 649
Last edited:

Touch switch

Hello all
This is the same as Erel's "Button Example" modified by Klaus. All what I did is replacing the mechanical switch with a touch switch module. So simple that the images speak for...
 
Last edited:

ESP8266 - WiFi Remote Configuration

Attachments

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

B4R Beginner's Guide

This guide is obsolete ! It is no more updated.
Please use the B4X Booklets.

Here you find the B4R Beginner's Guide in pdf format.

The source code for the example programs is...
 
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:

[Hint] HC-05,06 Power supply

Hello all, I read a few posts asking about the power supply requirements of the Bluetooth module. I thought I can put this hint so people can use the right voltage or power supply.
The HC-x comes...
 

[Hint] 10 methods to easily destroy your Arduino

ESP8266 - Getting Started

B4R v1.20 added support for ESP8266 modules. ESP8266 is a great module for IoT solutions. For a few dollars you get a powerful microcontroller with built-in support for wifi.

I recommend to...
 

Attachments

  • B4J_ConnectToESP8266.zip
    3.7 KB · Views: 2,552
Last edited:
Top