Skip to main content

Unanswered Questions

91 questions with no upvoted or accepted answers
4 votes
0 answers
56 views

Multiple MuxShield 2's connected to a single Arduino Mega

I am working on a project and need alot of toggle buttons to control various things around the house. I connected 5 MuxShield 2's to my Arduino Mega. The first two will serve as inputs and the last ...
3 votes
0 answers
1k views

How to use C++20 in Arduino IDE?

I'm writing a program for esp32 using the Arduino IDE that needs to count the number of '1' bits in a byte. I found a post elsewhere that says there's a nice function in the standard library to do it: ...
3 votes
0 answers
5k views

String.format("%i",i) equivalent

How do I format an arduino String when I do not want to print it? I know that one can use printf() or other methods to print a formated string and unfortunately that's all I find with google. But that'...
3 votes
0 answers
1k views

TRIAC Pulse driver for Spot Welder (help needed with programming)

I have designed and built a transformer driver board for my spot welder. It is powered from mains electricity (230 V) and consists of the following segments: triac drive and protection, zero cross ...
2 votes
0 answers
176 views

Program crashes when calling external library code via function pointer

I've written a user library for the Pi Pico that uses the TaskScheduler library to abstract timing away from the user. The user provides a function in their sketch which the library calls periodically ...
2 votes
0 answers
452 views

Same code working on Arduino IDE but not in PlatformIO IDE

I'm running into this weird problem. My code is working just fine when I upload it to an ESP32 from Arduino IDE. That same code is not working when I upload it using PlatformIO IDE. The same libraries ...
2 votes
0 answers
1k views

Set acceleration for stepper motor with no ending

I have a problem. I am using a stepper motor with 2 buttons. In my code I am trying to rotate the stepper motor clockwise while holding button1 and counter-clockwise while holding button2. To do that, ...
2 votes
0 answers
296 views

Using pointer to a Global function

I am trying to store and use a pointer to a global function. The function global_f returns a String and takes an object as parameter: String global_f(Request r){ // ... return "This is it"; } ...
2 votes
0 answers
640 views

Reading HC05 Output

I am using an Arduino Mega connected with a motion sensor and HC05 bluetooth chip to transmit distance data to a larger computer, process it, and send a data back. Currently, I am having trouble ...
2 votes
0 answers
95 views

Communication between 2 nRF24l01s and 2 Arduino unos

I am having a logical error that I can not figure out with the communication. I am communicating fine with the two boards such that I can send and receive data. Code to my Transmitter and Receiver. ...
2 votes
0 answers
867 views

ATtiny Mapping PPM Inputs to Move Servo Issue

Short Version: Not able to get a servo to move to mapped input from RC remote control PPM signal. Detailed Verison: I am trying to take an input signal from a hobby RC radio (D4RII receiver ppm ...
2 votes
0 answers
3k views

Read string from DigiUSB

I wrote simple code for my Digispark (Attiny85 with Micronucleus bootloader) in Arduino IDE: #include <DigiUSB.h> String inst; void setup() { DigiUSB.begin(); pinMode(1, OUTPUT); } void ...
2 votes
0 answers
113 views

High rate of transmission errors (~50%) using Xbee Radio

I am using a two Arduino setup with two XBee radios. One radio is sending data and the other is receiving data. I am sending three sensor readings following a protocol which uses three bytes for each ...
2 votes
0 answers
106 views

Arduino toggles on multiplexer not working

I am currently working on an Arduino project that needs alot of on/off toggles. Because my Arduino Mega does not have enough pins I connected 5 multiplexers to it (the MuxShield 2's). The problem is ...
2 votes
0 answers
98 views

Arduino Leonardo based h keyboard

I just want to configure my laptops keyboard buttons a,s,d,f,g,h and j. I wrote this code and it works for only a but I couldn't configure other buttons. Code is: #include "Keyboard.h" const int ...

15 30 50 per page
1
2 3 4 5
7