B4R Tutorials

Http requests with GSM shield

This example shows how to send http requests with a GSM shield. I've tested it on a shield with SIM900 module. This can be very interesting for outdoor IoT solutions where there is no local...
 

Attachments

  • GSMPushMessages.zip
    3.3 KB · Views: 1,227
Last edited:

LCD Clock example

Arduino Uno with LCD shield:

SS-2016-04-12_15.47.51.jpg


Working with a LCD monitor:
1. Initialize the LiquidCrystal object and set the connected...
 

Attachments

  • B4J_SerialConnector.zip
    4.1 KB · Views: 863
  • B4R_LCD.zip
    987 bytes · Views: 1,044

SD cards

The rSD library allows reading and writing to SD cards. The Ethernet shield as well as other shields include a SD slot.

The steps required to work with files:
1. Initialize a SD object. You need...
 

Attachments

  • B4J_PrepareCurrencyFile.zip
    2.8 KB · Views: 940
  • SD_Example.zip
    1.1 KB · Views: 1,163

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,107
  • B4R_FileTransfer.zip
    1.6 KB · Views: 1,182
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...
 

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:

Connecting two ESP8266 boards

In this example one of the boards acts as an access point and a server and the other board connects to the server wifi network and to the server socket.

Note that for the client to be able to...
 

Ultrasonic Ranging module HC-SR04

Testing the HC-SR04 to measuring distances

ultrasonic_sensor_schema.jpg

physics info.png

The accuraccy of the sensor depends greatly on...
 
Last edited by a moderator:

Solder ESP8266 ESP-12F to an adapter plate

So you have an ESP-12F and want to use it in a project, well I find that the best way for my home projects is to use an 12x adaptor plate. I have a number of ESP-12F projects running throughout my...
 

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

Downloading a Web page with ESP8266

Last edited:

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:

How to connect a 7 pin OLED display, (NOT 4 pin)...

Here is how to connect a 7 pin OLED display to an Arduino.

If you are anything like me, you previously owned a Raspberry Pi and did absolutely nothing with it. Well before I ever owned any...
 
Last edited:

RGB Leds

RGB Leds are equivalent to three leds (red, green and blue) combined. This allows mixing the three colors which results in many different colors.

There are two types of RGB leds: common cathode...
 
Last edited:

Visualizing MPU6050 Accelerometer and Gyroscope - Pitch, Roll and Yaw with inline C and Processing

It is based on this tutorial. Nano programmed via B4R and visualizing the data from the MPU6050 with Processing -
See this posting for basic setup

B4R code:...
 

Attachments

  • mpu6050.zip
    983 bytes · Views: 534
  • b4rMPU6050InlineC.b4r.zip
    2.8 KB · Views: 519

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:

Traffic Light Example

Example of implementing a "traffic light" with 3 leds. There are four states: red, red + yellow, green and yellow.

It uses CallSubPlus to switch to the next state after the current state...
 

Connecting two Arduinos with rWire library

SS-2016-04-12_16.46.55.png


The rWire supports communication with other I2C/TWI devices.

One device acts as the master and the other devices act as...
 

Intel Arduino 101

ABX00005_featured_grande.jpg


The Arduino 101 is an Arduino board developed by Intel. It is mostly compatible with standard...
 

Attachments

  • boards.zip
    2.5 KB · Views: 646
  • B4R_Serial_Connector_Arduino101.zip
    4.9 KB · Views: 613
Last edited:
Top