B4R Tutorials

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:

Resistance color specs reading - Billy Brown habits

Hi everyone,

Yesterday I watched a video and I would like to share the knowledge accomplished with you. Do you know Billy Brown? Well "Billy Brown Revives On Your Gin But Values Good Whiskey...
 
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:

Reed Switch Monitor Example

B4R & B4J experiment to monitor the state of a Reed switch connected to an ESP8266 - a NodeMCU is used. If the Reed switch state changes (triggered by a magnetic contact), data is send to a B4J...
 
Last edited by a moderator:

Reading remote sensor data with B4J, Python and Node.js

Last edited:

Reading Date, Time, and Temperature from a DS3231 RTC module (I2C) using any 2 digital configured pins from an Arduino

Cracked it - can connect the DS3231 to any 2 digital pins of my Nano and read the date, time, and temperature by making use of the B4A core library only. All control of the SDA (data) and SCL...
 

Attachments

  • b4rReadDS3231manually.zip
    3.2 KB · Views: 506
  • datasheet.pdf
    297.8 KB · Views: 536
Last edited:

Reading & Writing Time of DS1307 With ESP32 Using rWire

Reading Time of DS1307 With ESP32:
#Region Project Attributes
    #AutoFlushLogs: True
    #CheckArrayBounds: True
    #StackBufferSize: 600
#End Region
'Ctrl+Click to open the C code folder...
 

Attachments

  • ds1307.JPG
    ds1307.JPG
    23.7 KB · Views: 161
Last edited:

Random Numbers from 0 to 255 (byte)

Attachments

  • b4rRandomNumber.zip
    1.3 KB · Views: 416

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:

PS4 F1 2020 Interfacing using ESP8266

1 - INTRODUCTION

Hi Guys,

My wife's eldest son is addicted to PS4 F1 2020 game, even bought himself a Rig for a Steering Wheel and Pedals.
He works alongside with me and on one of...
 
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

Programming an ESP8266 (ESP-12x) via a USB to Serial adaptor

Programming an ESP-12x module directly is not too difficult. If you purchase an ESP8266 with a built-in USB port like a WeMos D1 Mini or a NodeMCU etc, then you do not need to do this as the...
 
Last edited:

P-MOSFETs

Today I was impressed. While being at the university, some 20 years ago I 've had a hard time understanding the principles of Transistors and MOSFETs. That was partly because I was starting...
 
Last edited:

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:

Node-Red MQTT controlling 8+8 digital Inp-Out and I2C ADC on ESP32

Hi
Here a sample program to control/monitor 8+8 digital Out-Inp, plus an I2C ADC.
The program use the MQTT protocol.
This program is an evolution of the previous one I posted.

This version add...
 

Attachments

  • NodeRed_Analog_Digital_Ex.rar
    68.3 KB · Views: 454

Node-Red MQTT controlling 8 relays ESP32

Hi
Here a sample program to control 8 outputs on arduino ESP32. The program use the MQTT protocol to exchange the data (really a single byte). By Node-red web interface the user set or reset the...
 

Attachments

  • 8_relay_ESP.Nodered_example.zip
    154.2 KB · Views: 599

my second project with you

Hey guys, how are you?
I want to share my second project with you
Fan control with timer
I just got the same control back via Alexa and it couldn't work so that you have the best interest. I'm...
 

Attachments

  • 20240119_160906.jpg
    20240119_160906.jpg
    93.4 KB · Views: 79
  • PCB.JPG
    PCB.JPG
    294.4 KB · Views: 71
  • CONTROLE DE VENTILADOR_PCB.zip
    35 KB · Views: 49
  • Backup ESP_Config 2023-09-04 08.55.zip
    7.6 KB · Views: 51
  • Backup Casa_Controle_8 2023-07-04 16.26.zip
    70.6 KB · Views: 53

MQTT controlling 8 relays, WeMos D1 mini WiFi, Android 4G

Here is a short tutorial on how to control an 8 channel relay module via MQTT. Below you will find both the WeMos and Android source codes needed to get started. The relay module is connected to a...
 
Last edited:

MQTT Broker scalability

Here is an interesting article for MQTT Broker scalability:

 

MQTT

Top