Newest Questions
25,033 questions
0
votes
1
answer
58
views
Is if statement correct?
if(temperature < baselineTemp)else{
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
}else if(temperature >= baselineTemp+2 && temperature < baselineTemp+4){
...
1
vote
0
answers
169
views
Multiple Interrupt Pins Generates Wrong Pulses
On MKR WAN 1300 board I added pulldown resistors to 0,1,4,5,6,7,8 pins to count pulses.I can catch interrupts, but sometimes pulses occur on other pins even though they are not touched. For example, ...
1
vote
0
answers
121
views
Arduino input to Visual Studio
I am completely new to programming, and I need some pointers where to look for a possible solution.
Currently I have been trying to get input from my Arduino buttons to Visual Studio to then do ...
1
vote
0
answers
122
views
Cannot connect with online arduino editor but I can with Arduino IDE to an Arduino Nano
As the title says I have a Nano with CH340G and 168 that connects properly to Arduino IDE but not to Arduino online editor, it does not detect the board "Error uploading, check if the board is ...
1
vote
1
answer
2k
views
Making a timer accurate to 1 millisecond possible? Using MAX7219 LED
I'm using the Max7219 (8 digits, 7bits) led display to try and make a timer. I have downloaded an example code from the following site to set the led digits:
https://www.brainy-bits.com/arduino-...
0
votes
3
answers
19k
views
Incompatible types in assignment of 'uint8_t {aka unsigned char}' to 'uint8_t [1] {aka unsigned char [1]}'
I'm trying to send custom data. But it doesn't seem to work. I can't find a way to parse my string to a unit8_t. I tried to follow other people's solutions but they don't seem to work for me.
// ...
0
votes
1
answer
205
views
Calling functions from an array of pointers in a library causes 'undefined reference to' error
I am trying to create a library, where I have an array of pointers to functions in it. This array is used by other functions in the library. This is the code of the header file:
class Lib {
public:
...
1
vote
0
answers
81
views
Byte not written to the memory
In the following code I'm computing crc and setting it as last (11th) byte in the array. The problem is it's sent on I2C just when I print it on the serial terminal.
static constexpr uint8_t ...
1
vote
0
answers
499
views
Arduino-Controlled LED Matrix issues
I am making a 20 x 15 LED matrix, and am having some super annoying problems. I was hoping you all could help me find some answers.
It is very important to note that I am following BitLuni's video ...
2
votes
2
answers
1k
views
EEPROM.get returns bad data
I am using the attached code.
What I am trying to do is:
Test if there is a personalized "board serial number" written in the EEPROM (by previous code run)
If data found was not 7 characters (e.g SN-...
4
votes
2
answers
1k
views
Noise on piezo analog read due to Arduino power supply
I am making a device that measures temperature and vibrations and records the values onto an SD card. It will be a standalone device.
The hardware used:
- Arduino Uno
- PCF8523 RTC clock
- MAX3186 + ...
1
vote
1
answer
68
views
Improvised Keyboard? [closed]
I want to make a keyboard type panel, which will only have 7 buttons and two knobs, and connect it arduino to program it with functions, he heard that he needed the Keyboard library. but it is not ...
1
vote
0
answers
184
views
uint8_t to Text
I am trying to use a Protocentral_MAX30102 Pulse Ox sensor to get SpO2 and serial write it to an SD logger. However, my serial write is a mess and I need is in a text form not what it is in now. I ...
-1
votes
1
answer
400
views
Using the MIDI library in my own library
Error message :
"error: invalid declarator before 'MIDI'
MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI);
^
Plusieurs bibliothèque ...
1
vote
1
answer
336
views
Sending the data for temperature and soil using esp8266-01 through software serial
The code I used was from online and I tried using it to send data to firebase through web server. But the ouput I get from serial monitor was just "ATE0" which means there's something wrong. Hence, I ...