Hot answers tagged

3

My ArduinoOTA library, which is based on Arduino's WiFi101OTA library, was created for upload from IDE. But in some scenarios as for example deployed sleeping battery powered devices it is better to have the update available for download by the device. In advanced section of examples of the ArduinoOTA library you can find examples of sketch update over ...


2

The ARM gcc libraries offer a simple way to redirect standard outputs. It is enough to implement function _write(int fd, char *ptr, int len) and it will replace the default implementation used in library to direct the standard outputs to debugger semihosting. The function must be compiled as C to match. #include <Arduino.h> #undef max #undef min #...


2

while (buttonState != LOW){ // turn LED on: digitalWrite(ledPin, HIGH); WiFiDrv::digitalWrite(25, 255); // for full brightness Serial.println(buttonState); } You never update the value of buttonState in this while loop. If buttonState is not LOW to get into the while loop, nothing inside the while loop will ever change it so every time ...


2

So I don't quite know why, but I started from scratch and it works now. I've put the new code below in case it helps someone in my situation. // Arduino Low Power - Version: Latest //#include <ArduinoLowPower.h> //#include <ArduinoIoTCloud.h> #include "thingProperties.h" #include <Arduino_MKRENV.h> /* Repeating Wifi Web Client ...


1

Yes, the Arduino SAMD boards are supported by the Arduino Keyboard and Mouse library. Nano 33 IoT is a smaler alternative to MKR 1010. But the MKR1010 or the Nano33 IoT with original NINA firmware doesn't yet support classic Bluetooth like the HC-05 module. The ArduinoBLE library and the NINA firmware support only BLE which is different. But there is a ...


1

What is the correct pin for supplying external power, and VIN What is the correct voltage to apply The bq24195 can accept between 3.9V and 17V according to the datasheet. However the power LED on the board may blow if you apply more than about 12v since it only has a 330Ω resistor with it. The polyfuse on 5V is there to protect the USB's power connection ...


1

The following code is an example. As I don't know the Arduino Cloud Thing configuration, and I don't have access to the cloud and the Hardware, the programm is just a guess making some commented assumptions. There are many assuptions I made, and I can not rely on the schematics you showed me. Eventually you have to redesign the circuit/hardware setup. A ...


1

The sensor was indeed broken, and I had no problems after ordering a new one.


1

Most websocket libraries work over a Client. Client is base class for all EthernetClient and WiFiClient classes. But why do you want to use a Websocket for communication of two MCU in the same LAN? Websockets are intended for communication over HTTP infrastructure (firewalls, proxies) to a web server in Internet or from browser to a web server. Use a ...


1

The TIP120 is a poor choice because of the approximate 10% - 14% voltage drop across it. Try the circuit with a logic level, low Rds MOSFET. For a more in-depth answer, please see this answer: https://electronics.stackexchange.com/a/388468/165322


1

It seems that the problem with the GPS was caused by my usage of the arduino delay(...) method in my loop. I'm assuming that by using delay, the connection to the GPS module was being severed, and in effect, every loop was forcing a reconnect and a new download of satellite details. In summary, when needing high sample frequency interaction with the GPS, ...


1

In case this thread turns up in a search, the ArduinoBLE library now includes central and peripheral support.


Only top voted, non community-wiki answers of a minimum length are eligible