B4R Tutorials

Arduino Simulator

Hey everybody,

Just found this and looks very impressive...

 

Internal Thermometer and Hall Effect Sensor of ESP32

Here I share some examples of how to use the thermometer and the Hall effect sensor in an ESP32. I hope and it will be useful
 

Attachments

  • ESP32internalHall.zip
    868 bytes · Views: 511
  • Temperature.zip
    977 bytes · Views: 503

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

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

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:

GPS data parsing from raw NMEA format

Hello All,
Here I will show, how to parse the Latitude and Longitude from raw nmea data.
I am using gps module, Arduino Uno and additional softwareSerial.
B4X:
Sub Process_Globals
    Public Serial1...
 

Using Inline C Function Pointers to call back to B4R subs

I use inline C in my B4R projects quite a bit in my projects. Mostly I have some C/C++ code I want to call from B4R subs - that's well documented on the forum (the Inline C intro here)...
 
Last edited:

Charlieplexing - controlling N*(N-1) LED's with N GPIO pins

It is based on this posting. I am using an Arduino Nano to control the 12 LEDs using pins 8, 9, 10, and 11 of the Nano. Just thought it would be interesting to give...
 

Attachments

  • b4rCharliePlexing.zip
    1.1 KB · Views: 369

EasyEDA - PCB Design CAD

Hi everybody,

looking for free PCB design software I came accross the EasyEDA. It is one of the best I have seen since you get to design multilayered PCBs and see the designed PCB in 3d view...
 
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:

EEPROM Utility

Excuse my English, it's not my native language
I am not an arduino expert, I want to contribute with this code.

one of the main problems is to save information, one of this is in the EEPROM...
 

Attachments

  • uEEPROM_v1.2.zip
    3.5 KB · Views: 519
Last edited:

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

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

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:

Analog Read Example using XBee Mesh Network

Attachments

  • B4RHowToTMP36XBee.zip
    4 KB · Views: 495

How to get and parse Json from an Http server, inline C code

Hello,

Since a while i searched to do the same thing i did on an ESP01, but with B4R.
I did it 1st time in Arduino IDE o_O, see the video at bottom, that works well :)

I searched long time to...
 

Attachments

  • parseJson_InlineC_Domoticz.zip
    4.8 KB · Views: 424

Analog Read Example using MQTT

Attachments

  • B4RHowToTMP36MQTT.zip
    4.5 KB · Views: 597
Last edited:

[Hint] 10 methods to easily destroy your Arduino

SSD1306 Module

I've been working with SSD1306 OLED for long time, in some projects I was in need to add some special fonts and add some graphics or icons like blue tooth symbols. I thought to put all these...
 

Attachments

  • SSD_module.zip
    24.5 KB · Views: 588
Last edited:

[Tool]LCD Display Designer

Tool to design LCD Display Layouts for 20x4 or 16x2 displays connected to Arduino, Raspberry Pi or other.

1613395535658.png

Screenshot application with generated B4R code and an Arduino UNO with...
 

Attachments

  • rLiquidCrystal_I2C-110.zip
    23.3 KB · Views: 503
  • lcddisplaydesigner.zip
    6.6 KB · Views: 500
Last edited:
Top