M5 Stick-C
M5StickC is a ESP32 development board for rapid prototying. Attached some examples how to use it with B4R.
@Michael1968 · 2020-12-09
rXDM - Set Analog Resolutions [Read/Write] in Seeeduino XIAO and Arduino Due, Arduino Maker
This b4xlib library is indented for use with the boards Seeeduino XIAO, Arduino Due, Arduino Maker. This is because the setting of analogReadResolution and analogWriteResolution function is available only in these boards. IT WILL NOT WORK WITH OTHER BOARDS.
@hatzisn · 2020-12-02
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
@hatzisn · 2020-12-01
Play tone in ESP8266.
Play tone in ESP8266.
@hatzisn · 2020-11-12
rESP8266Tone
Now ESP8266Tone is implemented also as a b4xlib.
@hatzisn · 2020-11-12
7 segment display [with dots]
7 segment display [with dots]
@derez · 2020-11-02
MQTT Broker scalability
MQTT Broker scalability
@hatzisn · 2020-09-27
Beginner''s PCB Design Guide Using EasyEda
Beginner''s PCB Design Guide Using EasyEda
@hatzisn · 2020-09-21
Setting the hostname of an ESP32
Setting the hostname of an ESP32
@KMatle · 2020-09-01
Random number between X and Y
Random number between X and Y
@tchart · 2020-08-26
Esp32 Bluetooth as server
Esp32 Bluetooth as server
@Humberto · 2020-08-12
Implement STM32 into B4R
If you want more FLASH memory space (say 128K flash), need more RAM (how about 20K), would like your program to run a little faster, or simply want to play around with a different micro-controller family, then have a go at this.
@Starchild · 2020-08-11
rMCP_CAN library
CAN-BUS is a common industrial bus because of its long travel distance, medium communication speed and high reliability. It is commonly found on modern machine tools and as an automotive diagnostic bus. This CAN-BUS Shield adopts MCP2515 CAN Bus controller with SPI interface and MCP2551 CAN transceiver to give your Arduino/Seeeduino CAN-BUS capability. With an OBD-II converter cable added on and the OBD-II library imported, you are ready to build an onboard diagnostic device or data logger.
@janderkan · 2020-07-31
Check the solderings of a WeMos D1 Mini
Check the solderings of a WeMos D1 Mini
@hatzisn · 2020-07-29
Adafruit Motor Shield - Microstepping
This is not really a tutorial, just a small piece of information regarding the microstepping.
@Mark Read · 2020-07-24
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.
@Mark Read · 2020-07-24
Enhanced pushbutton handling
This small sketch shows how to handle pushbutton debouncing and automatic repetition.
@tigrot · 2020-07-15
ESP32 with built in OLED display connected to WiFi - Inline C extension method for BMP images
ESP32 with built in OLED display connected to WiFi - Inline C extension method for BMP images
@NoNickName · 2020-06-23
Nixie-phile frequency counter
The Arduino generates an accurate 1 second time base for the counter by cascading timer0 and timer2. Part of the B4R code is in C for setting the timers/counters of the Atmega, this way the accuracy is determent by the 16 MHz crystal. The link between digital inputs 3 and 4 connects the output of timer2, 250 Hz, to input of timer0. The software uses the output of timer0 (1Hz) when go positive to start the count of frequency input to timer1. Timer1 is a 16 bits timer, it overflows at the count of 2 power of 16, that in turn advances over-flow register. At the end of the 1 second the 16 bit register is recorded. The Arduino sends via OTG (On The Go) cable or adaptor 1 byte as a key + 3 bytes of the measured frequency. The specs recommend up to 6 MHz, I tested it at 2 MHz. The Android app display 0 to 9 images of nixie tubes.
@moty22 · 2020-06-21
Android USB Arduino
Control inputs and output of Arduino with Android. Switch 4 Arduino outputs by the toggle switches and read 4 inputs by the 4 lights, read voltage of 2 analogue inputs and adjust analog output (PWM). Digital inputs are pulled up. Analog inputs not used can be connected to GRD. The Arduino update data every 1 second. Library felUsbSerial has to be added to the B4A code, can be downloaded from GitHub.
@moty22 · 2020-06-18
rVL53L0X library
This wraps the VL53L0X library by Pololu. The library makes it simple to configure the sensor and read range data from it via I²C.
@janderkan · 2020-06-14
Day of week calculation
Day of week calculation, based on Zeller''s algorithm
@NoNickName · 2020-06-07
Using the second core on an ESP32
Get the most out of the ESP32 by running code in Core 0 as well as the default Core 1. Arduino runs all code in Core 1 and Core 0 is left idle. Use this code to utilize Core 0. Not sure how stable this is but its hasn''t given me any trouble yet!
@Tron71 · 2020-06-03
External Serial Connector
External Serial Connector [tool]
@Erel · 2020-05-19
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). From time to time though I need to call a B4R sub from C/C++ - this post does a decent job of explaining how to do that. What I wanted to do is expand on the second concept and take it a step further and use function pointers to create a call back mechanicism from your C/C++ code into B4R.
@miker2069 · 2020-05-02
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
@Lowegaterecords · 2020-04-13
ESP32extras Library
This rESP32extras library supported functions are: Restart FlashChipSpeed CpuCycleCount FreeHeapSpace CpuFreqMHz GetMacAddress ConfigNetwork ConfigAP GetAPIP IP2str str2IP Host2IP IsBadIP GetInternetIP ConnectWPS ConnectWPS2 SSID GetLocalIP GetSubnetMask GetGatewayIP
@Starchild · 2020-04-03
Burn bootloader to ATMega328P-PU with an Arduino Uno
The file in the link contains some notes for me I devised from a lot of tutorials on how to burn a bootloader to a ATMEGA328P-PU wired on a breadboard. See also the tutorial "Shrink your Arduino project to the minimum".
@hatzisn · 2020-03-23
ModBus RTU
ModBus RTU
@OGmac · 2020-03-18
Tip: Getting rid of the excessive compiler logs - Arduino 1.8.10
There is a bug in Arduino v1.8.10 which causes debug output to be produced during compilation. You can disable it by editing: C:\Program Files (x86)\Arduino\arduino_debug.l4j.ini This requires administrative access.
@Erel · 2020-03-17