B4R Tutorials

SevSeg with inline C

This B4R project uses the SevSeg library via inline C to display characters on a 4 digit x 7 segment LED display (I am using a SMA420364L) - hard wired.

The inline C code via the...
 

Attachments

  • SevSeg.zip
    5.5 KB · Views: 408
  • b4rSevSegInline.zip
    2.5 KB · Views: 383
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: 767
Last edited:

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

MQTT Broker scalability

Here is an interesting article for MQTT Broker scalability:

 

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

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

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:

Stepper Motor with swing and rotate

Here is some code to demonstrate using a single stepper motor, an Uno, the Adafruit Motor Shield and a three-way switch. The middle position of the switch is OFF. One side rotates the motor until...
 

compilation language: arduino-cli config

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:

Arduino MicroPython is coming

 

ESP32 Now with encryption, master and automatically added slaves

Here's an advanced ESP32 Now example. The Inlince C code is from several sources (see the inline remarks).

Note: Sometimes there are issues with the Wifi channel (WiFi and ESP Now must use the...
 

Attachments

  • B4JReceiver.zip
    4 KB · Views: 315
  • ESPNowTwoMaster.zip
    3.2 KB · Views: 374
  • ESPNowTwoWaySlave.zip
    2.5 KB · Views: 347

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:

ESP32 NOW Example (inline C)

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:

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:

Shrink your arduino project to the minimum

Hi everyone,

Last night I found this guy who explains everything simply and very detailed. Here he explains how to load our Arduino sketch directly (or indirectly) in an ATMega328P-PU...
 
Last edited:

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

Check blue tooth communication of your creations

Hi everyone,

Watching tutorials on YouTube I came across this application which allows you to check blue tooth communications. I suppose it will be handy to all of you...
 

ESP32: OTP/2FA example

This example generates a OTP/2FA ("One Time Password") as you know it when you login to a website and you get a 6 digit code via sms. It changes every 30 seconds.

How it works:

- as it is time...
 
Top