All Questions
23,437
questions
-2
votes
0
answers
14
views
How to make a led turn off after a certain point?
To keep it simple, I have three leds, red, yellow and green. All I want is for the yellow led to turn off when the green led turns on and for the yellow led to turn on when green is off.
I have ...
0
votes
0
answers
11
views
Oled Menu with rotary encoder and push button
Please i need help to finish some Logic in my Code.
Thanks in advance for some help.
I am trying to create a Oled Menu using a rotary encoder with button to navigate and change values.
I am using the ...
0
votes
0
answers
6
views
ArduinoOTA using PlatformIO
My last goal, in order to move on to PlatformIO, is the ability to OTA, preferably ArduinoOTA.
Googling around - got this tutorial, which was copied, compiled and uploaded to ESP8266 successfully.
But,...
-1
votes
0
answers
4
views
Arduino Mega power supply to control multiple relay
I have 8 Relays and 4 AC voltage sensor.
What is recommended voltage and amps for Arduino Mega power supply to controll relays and read sensor without any problem?
0
votes
0
answers
13
views
results of FFT performed on an audio signal
The peak frequency resulting from the FFT on Arduino is linearly related to the ambiant dominant sound frequency(using regression of course). However, i can't see why the program doesn't show excatly ...
0
votes
0
answers
25
views
How to turn led lights off and on in order when below a certain photovalue?
I'm making a traffic light simulation with a photoresistor but it's not working properly.
When the photovalue drops below a certain point ( a car comes by) a peeping sound should play for a second and ...
-2
votes
0
answers
19
views
NodeMCU pin usage rx, tx, or sdd
I am working on a project using a NodeMCU. Since I use 4 hc-sr04 and one LED, all D-pins (D0, D1, D2, D3, ... D8) are in use.
Can I light the LED using the sdd (sdd2, sdd3), rx, and tx pins on the ...
0
votes
0
answers
33
views
Code for an 88 key capacitive touch keyboard, to control an Arduino synth [closed]
I'm building a touch sensitive keyboard as a school project, to control a digital synth library on an Arduino. I am a total novice when it come to programming and have only just started to read into ...
0
votes
0
answers
21
views
Double Click for Analog Sensor with Threshold
I am trying to build a keyboard for MD patients. I have only five force sensors, each sensor encodes 4 letters (20 in total), which means I am missing 6 letters.
I thoght of using double-cick, for ...
0
votes
1
answer
28
views
SIM800L not responding to AT commands
I am using SIM800L module the module. I am new to GSM modules, so I've searched for the basic to use the GSM with the Arduino. this is my code.
#include <SoftwareSerial.h>
SoftwareSerial ...
0
votes
0
answers
49
views
Counting the number of RISING edges using Interrupt is not accurate at all
I'm trying to find The RPM of a fan, so I removed one blade from the fan and put an IR sensor in front of it, so when the fan complete a spin the sensor will return a pulse, Here is the code I'm using:...
0
votes
0
answers
19
views
Bosch sensor PST-F 1 analog read always 0
I am using this sensor Bosch Pressure Sensor Combined PST-F 1 in combination with a arduino uno.
The data sheet for the sensor : Data Sheet
I have it connected like this
The code i am using is the
...
-1
votes
1
answer
33
views
My nRF24L01s are not successfully transmitting
I am trying to send a simple array from the transmitter to the receiver but the receiver is not picking up the right info. The transmitter is storing the array correctly so I am not sure what is wrong....
0
votes
1
answer
30
views
CH340G based USB to UART adapter - Pinouts - Can't find schematics
This is the board I will be referring to.
There are different variations of it (with built in buttons etc.) but they all seem to be based on the CH340 chip.
My problem is, that I do not know what the ...
-1
votes
0
answers
18
views
NFC PN532 RC522 Ntag
Hello I am making a product using NFC.
I have to select NFC reader chip, but I don't know what I select. I know that RC522 and PN532. I am going to use NTAG 213 which uses ISO 14443 A type and NFC ...
-1
votes
0
answers
29
views
Creating a Current sense amplifier MAX40080 library for Arduino not working
I was working on to create a library to MAX40080 sensor from Maxim Integrated. The library should work as per the datasheet and the code example that I have created.
As per my best knowledge just two ...
-2
votes
0
answers
21
views
connecting arduino hm-10 shield [closed]
HM-10 shield to work or rather to be able to put it in master state but so far nothing has worked. A normal HM-10 is easier but due to negligent I bought the shield version instead. I would appreciate ...
2
votes
1
answer
22
views
error: 'MonoOutput' has not been declared (Mozzi library, Arduino Nano)
I know this error is specific to this particular family of sketches, but please bear with me; when I try to compile this against an Arduino Nano/Uno (with Arduino IDE 1.8.15) the compiler complains ...
-2
votes
1
answer
31
views
My Atlas Scientific sensors measurement give zero values at first reading
I am still continuing my hydroponic nutrient monitoring project. In short, I made a hydroponic nutrient monitoring system with I2C connection, and decided to do serial communication with Raspberry Pi ...
-2
votes
0
answers
43
views
16x2 LCD display showing a line down centre of screen and nothing else
I picked up my Arduino for the first time in a while and decided to mess around for a bit. However, when I try to make a simple 'hello world!' program, the LCD screen either doesn't display anything, ...
-1
votes
1
answer
46
views
What are these 18 extra ports on the adafruit-gfx 2.8"
I recently got the Adafruit gfx 2.8" display, which works fine.
It's quite obvious that it requires almost all of the pins on the UNO. However, I don't understand what are the 18 avaliable "...
3
votes
1
answer
58
views
How to toggle a pin (LED) simply
I am not a programmer but rather a hardware guy. In the good old machine code days, you could 'read' the status of the port and flip it.. admittedly a much simpler processor. Is it not possible to do ...
3
votes
1
answer
56
views
How to perform multitask using arduino such as update data as well as check condition?
Here data is updated after every 2 seconds. But when the condition is true then the valve and motor process starts and data is updated only after completion of that part (i.e., data is updated after ...
1
vote
3
answers
137
views
How to do multiple serial.read()
first of all im new here and im really sorry if there's some mistakes when im making this question. So im trying to make a program to calculate using serial read, and im going to input a lot of values....
-1
votes
0
answers
21
views
Can't use Bluetooth or WiFi on ESP32
I'm looking for a solution to a problem with my ESP32.
I used the Arduino IDE's BluetoothSerial sample code and uploaded it to my ESP32. However, it seems that the code does not run, and the ESP32 ...
1
vote
1
answer
40
views
What is the build-in LED pin for the ESP32-WROOM-32D dev board?
I've tried just about every pin with this sketch:
#define LED 2
void setup()
{
pinMode(LED,OUTPUT);
}
void loop()
{
delay(500);
digitalWrite(LED,HIGH);
delay(500);
digitalWrite(LED,LOW);
}
...
-3
votes
0
answers
45
views
Why do I get those warnings?
'void setup()':
C:\Users\\Documents\Arduino\libraries\DHT_sensor_library/DHT.h:44:1: error: expected initializer before 'static'
static const uint8_t DHT11{11}; /**< DHT TYPE 11 */
^~~~~~
...
0
votes
0
answers
27
views
relay issue at boot in wemos d1 r1
Hi I have a wemos d1 r1 and I want to activate a relay with rc522 RFID module. the problem is that when I connect the board to power or when I reset it, or when I'm uploading the code, the led on the ...
1
vote
1
answer
33
views
Apparently the photoresistors don't pass the input at the leds
I am making a school project where i need to create a parking loot in tinkercad. Me and my mate tried to use a bunch of photoresistor that worked as a sensor. No light = car = red led; light = no car =...
0
votes
1
answer
24
views
Help with Arduino sleep and watchdog timer interrupt
I want to use Arduino's sleep and wakeup functionality but have hit a roadblock and can't seem to get past it. As I am just prototyping for a final system, I cannot use the LowPower library to ...
-1
votes
1
answer
26
views
ESP32 Potentiometer issue: Resolution mismatch of the potentiometer with unlimited resolution and reading the values with Wire.h
I have the problem, that the potentiometer goes from the range of 0 Volts to 3,3 volts. But within this range the measured value goes from about 0 to 65535 multiple times (over 10 cycles).
When I ...
0
votes
1
answer
26
views
Adjusting Threshold for Digital Pins
I am working on a project using Force Sensors to build a keyboard for MD patients.
I have connected the sensors (each with 4 input pins) to digital pins to Arduino Due.
I want to adjust the threshold ...
0
votes
1
answer
41
views
How to append to array of Strings in arduino?
Here is my code:
char *StrAB[] = {"29 EC C7 C1", "69 5B C9 C2", "22 3B 83 34", "12 BF BF 34", "C6 78 8E 2C" };
void setup() {
Serial.begin(9600)...
0
votes
1
answer
24
views
Cannot make attachInterrupt work
I have an accel+gyro sensor connected to an arduino zero. It's configured to output an interrupt signal on pin 2 when tapped. I can do a digitalRead on the pin, and it does go high, so the interrupt ...
0
votes
0
answers
29
views
Pro micro not recognized when connected to USB
I have bought 3 pro micro and when I connect them with an USB cable (tried several cables), my PC doesn't recognize them and the port menu in the Arduino IDE is disabled.
After some researches, I have ...
-1
votes
0
answers
12
views
How can I reference non-standard pins for my air sensor? [duplicate]
I have a project that requires a number of sensors. One of them is the Air Quality Sensor (SEN-CCS811). The 'standard' A4 and A5 pins are taken up with something another sensor.
I can get data fine ...
-1
votes
1
answer
27
views
ESP32 flash memory
I'm a newbie ESP32. I am going to make a system which stores files from the Internet. While it is easy to use SD card or storage stick (like an USB drive) to store data, but I want to use flash on ...
-2
votes
0
answers
21
views
Arduino PCB order [closed]
I want to order PCB with Arduino chip. What I want to know is how I can order the PCB with programmed Arduino chip. Should I manually and repeatedly upload my code to Arduino chip on PCB? Or Can I ...
-1
votes
0
answers
19
views
Validate data entry in arduino
I have the following code:
#include <Servo.h>
Servo myservo;
char x;
void setup(){
Serial.begin(9600);
myservo.attach(7);
Serial.println("enter a letter: ");
Serial.println(&...
0
votes
1
answer
37
views
How often does a mpu6050 gyro sonsor need calibration?
I want to use it in my real car for daily use to measure yaw angle when needed.
Is is ok to only calibrate it once at first then use it every day when driving without any problem? if not, how often ...
1
vote
1
answer
65
views
Generalize webserver routing
I'm following the examples for ESP32:
AsyncWebServer _server(80);
_server.on("/", HTTP_GET, [](AsyncWebServerRequest *request)
{
request->send(SPIFFS, "/index.html", ...
-1
votes
0
answers
26
views
How to reset a main loop, by clicking on specific button on keypad?
How I can reset loop, and couple of variables by clicking some button on keypad? What I want to do is: whenever user click on 'C' button, the loop should be reseted, just like we hit the red button on ...
0
votes
0
answers
16
views
RA-02 LoRa transfer problem
i've connected 2 RA-02 modules to my ESP8266 s.
Both are capable of transmitting and receiving data between each other.
and also esp8266 s are represented as access points to whatever client that ...
-3
votes
1
answer
38
views
i download a file that has ino but when i extract it is gone [closed]
so when I download a file for my ESP8266 the the file to open it in Arduino. file is not there for it is there a fix
and this the github: https://github.com/SpacehuhnTech/esp8266_deauther/tree/v3
0
votes
0
answers
23
views
5v circuits protection [closed]
For my project, I'm using this solar shield in order to use some solar panels and a battery to power my Arduino: https://wiki.seeedstudio.com/Solar_Charger_Shield_V2.2/
In order to protect the solar ...
-2
votes
0
answers
29
views
My 1 digit segment display shows half of what it should display [closed]
As you can see, the square part is the lit part, the other side of the digit is not lit.
I checked that the pins were correct, resistors, etc.
The code should be right, it's from a tutorial part of ...
-2
votes
0
answers
22
views
Connect MAX30100 directly with ATmega328p without using Arduino [closed]
Can we use MAX30100, a pulse oximeter sensor to connect directly with ATmega328p without using Arduino?
0
votes
1
answer
31
views
Round to first significant digit
I want to round a decimal number (x), but I need to do it differently depending on how it is. If it has integer significant digits, we round to the nearest integer, and if not, we round to the first ...
1
vote
0
answers
33
views
FastLED changing colour at holding state
Basically make a code to guide users through a box breathing exercise (breath in for 4 seconds, hold for 4, release for 4, hold again for 4, repeat) to help relax them.
Right now my code is running ...
1
vote
1
answer
78
views
Arduino create Json Array with double values and 2 decimal point
How i can create a Json Array with double values and 2 decimal point using the ArduinoJson Library?
https://arduinojson.org/v6/how-to/configure-the-serialization-of-floats/
In the folowing small ...