B4R Tutorials

LCD Bar Graph

The attached project mimics this posting. Have added the basic functionality with inline C. It uses the rCore and rLiquidCrystal libraries.

Wiring diagram:
lcdbargraph_bb.png


Result...
 

Attachments

  • b4rLiquidCrystalDisplay.zip
    1.5 KB · Views: 412

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

HX711 code module

Hello;
this code module is for using HX711 load cell amplifier board with Arduino, I used it with UNO and MEGA without any problems, only 4 pins are required for voltage supply and communication...
 

Attachments

  • HX711.bas
    2.2 KB · Views: 574
Last edited:

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:

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:

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

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:

B4RHelp program

I've hacked my already hacky B4AHelp program to give tidier results when looking at B4R Xml files.

EDIT: Updated to v1.1 to overcome a change in the Xml format that I just noticed.
 

Attachments

  • B4RHelp1.1.zip
    75.8 KB · Views: 511
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:

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

Car parking position detector

Hi everyone,

This project is a parking detector. It is not my idea and it exists already in Stavros Niarchos Foundation Parking already materialized but it has been a great pleasure analyzing it...
 

Attachments

  • upload_2019-8-17_12-36-45.png
    upload_2019-8-17_12-36-45.png
    187.6 KB · Views: 356
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:

MAX7219 7-Segment Driver

this is a very simple example shows how to drive 4-digits 7-segment display with MAX7219 and rLedControl library, this code example displays 'HoLA' word, you can add more digits and MAX7219...
 

Controlling an RGB Led from the PC

Attachments

  • B4J_ColorPicker.zip
    4 KB · Views: 687

sub for Date Time adding

Hello;
I needed date time functions; And some write codes.
it is first sharing with B4R

use this variables for date &time
Public Time_HH As Int
Public Time_MM As Int
...
 
Last edited:

Beginner's PCB Design Guide Using EasyEda

 

BLE Xiaomi Temperature Sensor Project (ESP32 with BLE+WIFI)

1619127624585.png


My office gets cold overnight in winter. I have a heater which has a basic thermostat but its very inaccurate (its just a min/max dial not temperature based). If I leave it on...
 

Attachments

  • ESPXiaomi.zip
    2.3 KB · Views: 664
Last edited:

Writing & Reading Serial EEPROM 24C512 With Arduino Uno Using rWire

SERIAL EEPROM 24C512 Reading & Writing:
Sub Process_Globals
    Public Serial1 As Serial
    Private Wire As WireMaster
    Dim bc As ByteConverter
End Sub

Private Sub AppStart
    Serial1.Initialize(115200)
    Log("AppStart")...
 

[Electronics] "Wake-up on sensor trigger" and auto power-off

Hi guys,

So B4R is so much more than simply code and breakout boards assembled/connecter by jump-wires and breadboards...
I know for a fact that most of us are not electronics pronned and thus...
 

RSA Encryption: Create keys, en-/decrypt, hash, sign/verify signature (clean code)

This example replaces my previous examples with cleaner inline C coding (I'm getting better :))using almost all variables from Globals. You can define the keysizes (eg. 2048 or 4096). It's fully...
 

Attachments

  • RSAOnly.zip
    3.4 KB · Views: 189
Top