All Questions

0
votes
0answers
2 views

How to make an audio player using arduino uno?

I was trying to play .wav file using an arduino uno. Although I tried with TMRpcm library, the audio didn't play. It was showing a warning: ISO C++ forbids converting a string constant to 'char*' [-...
0
votes
1answer
300 views

BASCOM-AVR stk500_2_ReceiveMessage(): timeout: -1

Arduino Uno R3 Windows 10 Bascom AVR The ON is alright. The LED flickers now and then. The RX and TX flickers when I press the program button on Bascom but then disappears almost immediately. ...
0
votes
1answer
15 views

WifiClient and aREST on esp32 - loop until new instructions recieved?

I've created a simple sketch for an esp32 that hosts a REST API that can be accessed via HTTP. Based on the instructions received from the client, the esp32 controls some neopixels with some various ...
0
votes
0answers
18 views

ESP8266 WiFiClient Slow Over LocalHost

Appears to be something to with Apache configuration, swapping to Nginx solved my issue. I'm getting slow responses when using localhost with a NODEMCU 1.0 and esp8266 WiFi library. If I GET a PHP ...
0
votes
1answer
15 views

Verifiy NTP server update - at start

I have function to start an NTP service, right after obtaining wifi connection ( using ESP8266 board ). from time to time, I get an error saying date and time is01-01-1970... which I assume is due to ...
1
vote
1answer
3k views

Motor shield power from Arduino pro mini 5v RAW Pin 150mAh cannot run servo

linked to my old question, Pro Mini 5v with Adafruit motor shield v1 power sharing problems I figured out and use one 7.2v battery (6 AA cells), and link it with RAW pin to Pro mini and join its 5v ...
0
votes
0answers
12 views

Reaction timer with interrupts

I've written this code for a reaction timer game. The LED is supposed to come on and blink when the game starts before going off and then lighting up again after a certain time. The user must then ...
0
votes
0answers
11 views

Mqtt not subscribe on topic that's converted from String to char array

I am still not sure what should be the exact Title for this question, because I don't know where the problem is. I am using #include <MQTTClient.h> mqtt library to subscribe on a topic. This ...
1
vote
1answer
52 views

Why does a delay make my stepper stop? And why does the break command raise an error?

I am using a stepper motor for a project that I want it to stop. I tried for loops, while, and an if statement. All of these were placed inside the void loop, because it raised an error. My code ...
0
votes
0answers
3 views

Opencv Gtk2 Gtk3 Compability Problem [migrated]

I am using opencv-3.4.2. I want to use opencv for image processing and gtk3 for displying controls. I finished the ui using gtk3. But after I put in the gtk code inside my main function. Every time I ...
0
votes
0answers
9 views

HD44780 display incorrectly black-on-blue instead of white-on-blue

I have a generic HD44780 compatible 16x2 LCD display, with an already soldered on PCF8574 module. Its backlight is blue, and the characters are supposed to be white (on blue). It is connected to a ...
-1
votes
0answers
14 views

Have a few questions regarding BNO055 [on hold]

To reuse a calibration profile, do I need to read the calibrated offset values, store them and then hardcode the registers to those values on bootup? Do I need to check the calibration status register ...
0
votes
0answers
8 views

Read SNMP OID values with Arduino

I wish to read SNMP predefined OID values from other devices, can it be done with Arduino? I searched all over the internet for the past 2 weeks about Arduino with SNMP and found a lot of great ...
0
votes
1answer
15 views

Compare incoming message from ESP8266

If there's one thing I never managed to do: it's comparing strings. So I have the incoming message saved here String Message2 = IClient[i].readStringUntil('\n'); And every time I try to compare it ...
0
votes
1answer
18 views

Correct Pins for Nodemcu 8266

I am building a small electronic project, and I am incorporating module nodeMcU 8266 in a box. I would like to know which pins are for "flash" and for "reset" I know there are 2 buttons on the module ...
0
votes
0answers
12 views

Closed Loop Stepper Motor Control with ACE128 Absolute Rotary Encoder

I am using a 1.8 Resolution Stepper Motor controlled by a L298N driver and Arduino Mega. I have attached the ACE 128 Absolute encoder to the motor to use it as a closed loop system. The idea is for ...
0
votes
0answers
38 views

Is there a module for Arduino that can be used to read movment? [on hold]

Does anyone know if there is a module for Arduino that can be used to read movment? How far has it gone and in which direction? I want to make a thing that the person will catch and walk, and i want ...
0
votes
1answer
22 views

Program Upload Loading problem

Please help me about this program uploading problem. Arduino: 1.6.13 (Windows 10), Board: "Arduino Nano, ATmega328P" Sketch uses 930 bytes (3%) of program storage space. Maximum is 30,720 bytes. ...
0
votes
1answer
39 views

How to use one button with interrupt to enable and disable sleep mode?

I have written a program for a kitchen timer. The timer uses just one single rotary encoder with a push button on its axis. It has modes for counting up and for counting down. After counting down it ...
0
votes
0answers
10 views

Ultrasonic,pir,gas mq2 sensor using Arduino in one code? [duplicate]

I have a three sensors codes but its are separately. I don't have knowledge of these code merg in single one code
0
votes
1answer
21 views

Control Air Pump Depending on Pressure Sensor

I am working with an Arduino Mega, a 12V micro air pump, and a MP3V5050 air pressure sensor. The sensor outputs an analog voltage depending on the pressure reading in an inflatable member. I'd like to ...
13
votes
5answers
37k views

Is there a way to play sounds from an Arduino without using a sound shield?

I would like to play a wav file (spoken words) from my Arduino. I do not want to add a sound shield. Is there a way to play a sound through an output pin? The quality does not have to be great.
0
votes
0answers
13 views

How to trigger a link using esp8266 in GET method?

I am trying to send a sms using a api called fast2sms . Notifications will be sent by triggering that link .I am new to this wifi module and I am not understanding how to trigger that link.
0
votes
0answers
13 views

Did not found fingerprint sensor even if the sensor light is on [on hold]

I'm using Arduino Uno, the wirings are Black - GND Red - 5V White (RX) - TX Yellow (TX) - RX The wires are in bundle so the white one and yellow one is on RX and TX respectively. Red wire is on ...
0
votes
0answers
9 views

Question about write-speed to a micro-SD Card on Adafruit Feather M0

I am working on a project and am having difficulty maximizing how fast we are able to write data to our micro-SD card. Our current setup is an Adafruit Feather M0 with a Class 10 Sandisk Ultra. We are ...
0
votes
0answers
20 views

Webserver on Arduino Mega with Ethernet Shield

I am working with an official Arduino Mega. I have mounted an officiel Ethernet Shield rev 2. Everything works great, i have wrote a very basic webserver. I wanted to host a bootstrap css file on my ...
1
vote
4answers
19k views

Number of elements in an array char

What kind of function can I use to know how many elements are in an array char? sizeof() gives the number of 'spaces' available so it doesn't work for me.
0
votes
0answers
40 views

Need help with DAC to show more than one output with SPI (stuck and need help please)

I want to take 2 different outputs from my DAC from void setDacOutput function (and it should be switching with/like the timer for both outputs. One output of 2.9375V for 0.9ms from ISR if statement ...
0
votes
0answers
8 views

my problem is when configuring the XBee with the arduino

I tried configuring the xBee using arduino but it always fails, I downloaded the X-CTU to configure it but it doesn't recognize my XBee. Knowing I am using XBee pro S2B it shows me the following: ...
6
votes
2answers
1k views

Run code once after programming

I'm using EEPROM to store project settings non-volatile. After reuploading the sketch to my board (over SPI via ArduinoISP), the EEPROM is reset to full 0xFFs and I have to manually do a "software ...
0
votes
0answers
14 views

Arduino based Bluetooth-USB pass through device

I new to this particular StackExchange. I am looking for guidance on whether it would be possible to create a device using an Arduino Uno to replace a USB serial cable currently being used to pass ...
0
votes
0answers
22 views

Smart shopping system project [on hold]

I am doing smart shopping system project. I can added and remove product using RFID in ARDUINO. I need ur help to show all added products in lcd by pressing a push button
0
votes
0answers
12 views

difference between v2 and v3 in terms of connecting with firebase [on hold]

v2 is perfectly working when sending data on firebase but it doesnot work when sending a data through v3. can anyone suggest me the valid difference between v2 and v3 which is responsible for sending ...
-1
votes
0answers
27 views

TRRS breakout board connection to Arduino Nano

Is there any way to connect a TRRS breakout board to an Arduino Nano? The audio signal is going to be coming from my laptop which is an analog signal
3
votes
1answer
1k views

Difference between these two NodeMCU boards?

I recently received a NodeMCU (identical to the one shown in the first picture below) and originally, I was unable to connect it to my computer which eventually turned out to be driver issues; however,...
-1
votes
1answer
27 views

Simple code to define pins used for Shift Register control - Error: a function-definition is not allowed here before '{' token

I'm simply trying to light up some pins on a customized circuit board via Arduino. My code below has the seemingly common error "a function-definition is not allowed here before '{' token". I've ...
0
votes
1answer
38 views

Any idea why my LED fails to operate with the if statement

I have tried several workarounds without success. #include <LiquidCrystal.h> float tempC; int tempPin = 0;// BS E D4 D5 D6 D7 int buzzer = 4; int LED =2; LiquidCrystal lcd(7, 8, 9, 10, 11, 12);...
0
votes
1answer
43 views

Keep motor moving

I have a problem on how to keep my stepper motor moving when button is released. It should only stop moving if I press the button again. For now, stepper motor is only moving IF the button is ...
-1
votes
1answer
38 views

Parsing data in arduino?

I just started working with Arduino and in my project I am trying to achieve the COMM between two Arduino using HC-05 in master and slave mode respectively, I configured it all successfully. Now I ...
0
votes
0answers
26 views

How to measure multiple voltages (Thermocoupes)

How would one measure many (20-100) small voltages in the 0-80mV range with an Arduino? I will need to amplify them and put them into the ADC. But i also need to switch between them. I want to ...
-1
votes
1answer
361 views

ATMEL SAMD11 SPI (Slave) With Arduino (Master)

I am trying to get my Atmel SAMD11 XPLAINED PRO and arduino to talk to each other using SPI. I have set up the arduino as the master, with the SAMD11 as the slave. On the ATMEL, I have the following ...
0
votes
1answer
24 views

How to use 2 serial port when WifiEsp library uses one of both

I try without success to receive datas from DataPort and transmit them to my computer via WifiPort, using ESP8266 wifi module. Each second, serial datas income on DataPort from another device. ...
0
votes
0answers
13 views

Arduino - State of Charge (SOC) Measurement [on hold]

I am doing a University Project which requires determining the State of Charge (SOC) of a battery. The usage of battery voltage for approximate determination would reduce the accuracy. So I am ...
0
votes
1answer
39 views

my LM35 temperature sensor gives weird measurements,

Board: esp32 I know my wiring is correct because I get data from the sensor, but the data is a bit weird. At 22 celcius I get 140, even though if I do the voltage calculation (* 0.473372) it still ...
1
vote
1answer
30 views

Force TCNT to stay below OCRxA on ATmega328P

I'm using a timer and the TIMERx_COMPA ISR to generate a signal in "the background". This ISR is triggered when the timer reaches a certain value (OCRxA), which in turn can be changed by the user. ...
0
votes
1answer
19 views

Reading NFC card (PN532) with Arduino Uno

I am trying to detect a RFID card using the NFC-PN532 module and Adafruit_PN532 library. Initialization code:- #include <Adafruit_PN532.h> #include <Wire.h> #define SCK (13) #define ...
0
votes
1answer
32 views

Reading a monochromatic bitmap with Arduino for plotting

Complete newbie here. I am following this thread: How to read bitmap image on Arduino Specifically the third reply from : frarugi87 in my attempt to plot a monochromatic bitmap image with a plotter ...
0
votes
0answers
15 views

Nrf24l01 interfacing with arduino [on hold]

Can we calculate the distance between 2 nrf24l01 modules and work accordingly..? I have tried the testcarrier function but it didn't give me any values
0
votes
1answer
40 views

Motor driver not working properly in case we connect motor to it

We are making a Bluetooth controlled RC car. when we connect our motor (moderate power) to motor driver then Bluetooth module is automatically disconnected after taking initial command from Arduino ...
87
votes
19answers
105k views

“avrdude: stk500_getsync(): not in sync: resp=0x00,” aka Some Dude Named Avr Won't Let Me Upload My Program

I made an awesome program the other day, and I wanted to upload it to my Arduino. After clicking the upload button, some mean dude named avr came along and stopped me, saying: avrdude: ...

15 30 50 per page