B4R Tutorial Connecting to Arduino with BLE (Bluetooth Low Energy) - Erel    Jan 17, 2018   (7 reactions)   tags: BT, LE, Ble, Example data to the Arduino board. The phone controls the intensity of the two leds: https://www.b4x.com... SetNotify to be notified whenever the Arduino writes to the BLE. 5. Call WriteData to send data to the Arduino. The B4R code: Sub Process_Globals Public Serial1 As Serial Private astream... B4R Tutorial Arduino - PC File Transfer - Erel    Aug 14, 2018   (10 reactions) In this example the Arduino board acts as a server. Clients can list the available files and can download files stored on the SD card, which is part of the Ethernet shield. https://www.b4x.com/basic4android/images/SS-2016-06-08_11.24.37.png To make the solution more reliable, the communication is stateless, similar to HTTP requests. The client sends a request, the server (Arduino) sends... such as the Arduino Mega. During the tests I've found a bug in SD.ListFiles which can cause some of the files to... B4R Tutorial Arduino + Raspberry Pi - Erel    Feb 12, 2018   (8 reactions) . This is a nice example as it shows how B4X tools can be used to program both the Arduino side and the Raspberry Pi side. Arduino and Raspberry Pi complete each other nicely. The Arduino is easier to connect to... with a USB cable using the Arduino built-in usb to serial converter. During development it is convenient to run the RPi side on the PC. Otherwise you need to disconnect the Arduino each time... B4R Question ESP32 first try: works with Arduino, but not in B4R - peacemaker    Feb 24, 2021 HI, All Strange, my ESP8266 project works OK in B4R, but now i'm trying to start with ESP32 ... with no success. Arduino IDE connects, starts the board OK, logging is OK, the reset button makes the reset OK. In B4R the flashing of the min template app is OK, but no log output. 108658 Sub Process_Globals Public Serial1 As Serial Private wifi As ESP8266WiFi End Sub Private Sub...") End If End Sub p.s. Arduino can log the output of B4R sketch ! ets Jun 8 2016 00:22:57... B4R Tutorial GSM / GPRS - Control the Arduino with SMS messages - Erel    Oct 8, 2017   (11 reactions) https://www.b4x.com/basic4android/images/SS-2016-05-11_13.27.00.jpg The GSM shield allows the Arduino to connect to cellular networks. This opens the door for many interesting outdoor solutions. There are all kinds of shields available. Make sure that the shield you are using is configured to work with pins other than 0 and 1 (which are used for programming the Arduino). We will use SoftwareSerial with AsyncStreams to communicate with the GSM module. The GSM shield is controlled... B4R Tutorial Connecting two Arduinos with rSoftwareSerial library - Erel    Apr 13, 2016   (7 reactions) https://www.b4x.com/basic4android/images/SS-2016-04-13_15.50.49.png With the rSoftwareSerial library you can turn regular pins to serial ports. This is useful as the hardware serial is used by the IDE during development. There are some limitations to the supported pins: https://www.arduino.cc/en/Reference/softwareSerial As an example, the following program should run on two boards. When you press on the connected button, the on-board led on the other board will turn on. Sub Process_Globals... B4R Library rDebug.b4xlib - Debug arduino code adding break points in all microprocessors' code (even the older ones) - hatzisn    Jan 12, 2023   (4 reactions) Merry Christmass to all Christian community of the forum. I have tried adding debugging in my B4R code and it worked. Tested in Arduino Nano (with old bootloader) and ESP8266. Add the b4xlib in additional libraries folder. Add the library in the project and use the code that follows. Then compile and when the app starts press disconnect in the logs tab and load the modified code of @Erel 's B4R_Serial_Connector in B4J. Run the application connect to the port and press continue as many... B4R Tutorial Intel Arduino 101 - Erel    Sep 5, 2016   (8 reactions) The Arduino 101 is an Arduino board developed by Intel. It is mostly compatible with standard Ardunios. https://www.arduino.cc/en/Main/ArduinoBoard101 One of its advantages is built in BLE peripheral... rCurieBLE library). Configuration instructions: 1. Open Arduino IDE - Tools - Boards - Boards Manager and... versions of B4R. 3. Select Arduino/Genuino 101 in B4R boards selector. https://www.b4x.com/basic4android/images/SS-2016-09-05_10.04.30.png 4. The Arduino 101 serial port behaves a bit differently... B4R Library rArduinoNvs NVS library for esp32 - candide    Jul 30, 2023   (5 reactions) it is a wrapper for NVS library from : https://github.com/rpolitex/ArduinoNvs NVS is a port for a non-volatile storage (NVS, flash) library for ESP32 to the Arduino Platform and B4R now. The ESP32 NVS stored data in the form of key-value. Keys are ASCII strings, up to 15 characters. Values can have one of the following types: integer types in B4R: byte, uint, int, ulong, long, ArrayByte, String read of String can be made by return or in a buffer variable length binary data (blob) are used... B4R Tutorial compilation language: arduino-cli config - peacemaker    Aug 21, 2023   (1 reaction) arduino-cli interface for the new B4R version can be adjusted by a configuration file, where i could setup at least the EN language - create the file "C:\Program Files\Arduino CLI\arduino-cli.yaml" (in the folder where CLI was installed) with undocumented setting: locale: en Also this config file may be at "C:\Users\%USERNAME%\.arduinoIDE\arduino-cli.yaml" ... Page: 1   2   3   4   5   6   7   |