Newest Questions
25,033 questions
1
vote
3
answers
3k
views
Arduino recognize specific sound?
I'm wondering if Arduino is able to not just measure sound and work based on hearing a sound that is "loud enough", but if it is able to identify a specific sound (say the first few seconds of a song)....
2
votes
1
answer
510
views
OLED display hectic behavior - interference with other parts of the code?
Disclaimer: I'm a total novice to Arduino so please forgive me if the question may seem trivial, I'm trying my best to learn :)
I'm working on a small project where I have a fingerprint sensor, a ...
0
votes
1
answer
412
views
How to modify this code to simulate a binary encoder?
I have come across the following SPI slave code at this site:
#include <SPI.h>
char buf [100];
volatile byte pos;
volatile bool process_it;
void setup (void)
{
Serial.begin (115200); // ...
0
votes
1
answer
2k
views
expected primary-expression before ',' token
EDIT: have solved the problem. It was missing the quotation marks around each letter. Thanks for your help, st2000!
I am very new to Arduino and C++ (coding in general!). Have copied an example code, ...
1
vote
0
answers
434
views
Menu on Serial Monitor
I'm trying to make a menu through serial monitor, but it always on a infinite loop... My question is where i call this function? On Setup or on Loop?
The menu:
int controle_opera = 0;
void menu(...
0
votes
1
answer
4k
views
find out the pin numbers for the Arduino IDE for a certain board - the esp 32
I followed the tutorial I found here https://techtutorialsx.com/2019/03/29/esp32-arduino-controlling-a-dc-motor/
On the very interesting topic controlling a DC motor with the esp32 and Arduino I have ...
1
vote
2
answers
1k
views
Why are my thermistor readings backward?
I'm trying to build a thermistor that will flash an LED when the temperature is above 30 C. My set-up appeared to be reporting the room temperature correctly to the Serial Monitor, but then I noticed ...
1
vote
0
answers
1k
views
WS2812B not fully working with NodeMCUv2 [ESP8266]
I have a problem with my NodeMCU v2 board and my WS2812B led matrix with 256 (32x8) LEDs.
The Board cannot be able to turn on the 191th led and stops working after the 190th without changing the ...
0
votes
1
answer
137
views
Need a component to connect a 9v water pump
I have a 9v water pump that i want to turn on\off from the arduino,
What module should i use to turn it on and off?
I am using now a mosfet for my 5v pump, can a mosfet be used for 9v as well? Or is ...
1
vote
1
answer
714
views
How to dynamically set pinMode and dynamically write value to pins in Arduino using arrays?
I am trying to create a library called "LED" for LED Sequencer in Arduino IDE,where the user has to configure the LED pins using an array and pass it to LED constructor in program and then will be ...
1
vote
0
answers
491
views
Error while receiving large amount bytes on loop using esp32 ( 541 bytes )
I am using an ESP32 (without arduino board and using arduino IDE ) with bluetooth and communicating with other hardware via serial communication.
Serial communication speed is high (1382400) but it ...
2
votes
2
answers
917
views
ignoring potentiometer value variations
I've got a 50k potentiometer connected to an Arduino Uno. The user should adjust the hue of an Adafruit NeoPixelStrip.
I've got the following code inside the loop function:
int hue = analogRead(...
1
vote
0
answers
62
views
Why is my LCD I/F PIN ADAPTER won't work
I bought this on the store near us. Here is the PDF for it.
https://www.e-gizmo.net/oc/kits%20documents/new%20LCD%20with%20converter/LCD%20IF%20pin%20adapter.pdf
I followed the instructions below ...
-1
votes
1
answer
85
views
Control 4 digital outputs with one switch
I want to control 4 digital outputs (d0, d1, d2, d3) with one switch. When the Arduino starts, they should all be in state LOW.
Now, after pressing the button once, d0 should get HIGH. Another push ...
1
vote
2
answers
4k
views
Matching baud rate on serial monitor
I am using different codes which set different values of baud rate through the Serial.begin() function. Do I need to change the baud rate of the serial monitor to match the initialized value on the ...