B4R Tutorials

Use Rasberry Pi Pico with the Arduino IDE and thus with B4R

 

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: 425
  • ESPNowTwoMaster.zip
    3.2 KB · Views: 471
  • ESPNowTwoWaySlave.zip
    2.5 KB · Views: 448

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

Last edited:

ESP32 NOW Example (inline C)

Serial oscilloscope

Last edited:

SSD1306 Animated Image

Based on SSD1306 module, we can display animated images the same as displaying animated GIF on PC. The animated image is a byte array contains (n) number of frames(bitmap images) they all...
 

Attachments

  • bt_frames.zip
    793 bytes · Views: 435

SSD1306 Progress Bars

Based on SSD1306 module, we can implement horizontal and vertical progress bars. These bars could be drawn at X1-Y1 to X2-Y2 like drawing rectangles, also we need to pass the full scale...
 

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:

ESP8266 FTP Client

Attachments

  • FTPClient.zip
    3.7 KB · Views: 1,920

MQTT

Dronebot workshop - Seeeduino Xiao

Here is a very interesting video by the guy in Dronebot Workshop. This board seems amazing. I suppose since it is Arduino compatible it can also work with B4R with the exception of the commands...
 

MQTT Broker scalability

Here is an interesting article for MQTT Broker scalability:

 

Beginner's PCB Design Guide Using EasyEda

 

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,333
Last edited:

Check the solderings of a WeMos D1 Mini

When you buy a WeMos it doesn't come assembled with the pins soldered. You will have to solder the pins. In the following schematic and code you will find a way to check the solderings of GPIO...
 
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...
 

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

[tool] External Serial Connector

SS-2016-04-12_15.23.57.png


This is a small B4J program that uses jSerial library to connect to an Arduino board.

To see it working start with this...
 

Attachments

  • B4R_Serial_Connector.zip
    7.2 KB · Views: 1,496
Last edited:

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:

Example of use of the joystick module

Looking in the tutorial section of B4R I noticed that there was no example of how to connect and use the joystick module. So here is an example
Wiki:
Joystick Module MH / pin

 green : GND
   Red ...
 
Top