All Questions

-1
votes
0answers
8 views

save time (millis) when a button is pushed

how do you write a code for a stopwatch? I have two pushbuttons, one to start and one to stop. So the equation is StartTime (which is the time the first button is pushed) - StopTime (when the 2nd ...
0
votes
0answers
6 views

ESP8266 crashes when trying to copy a string into a big char

I'm trying to parse with tinyxml2 a modest XML (3.4kb) to retrieve some data. My ESP8266 crashes every time I try to use the toCharArray method. here's my code // here I'm getting an http request ...
0
votes
1answer
8 views

nodeMCU - 2 loops at a time - one continuously and second every 10 seconds

i have nodeMCU v3(esp8266) so i need to make 2 checks 1 check is the pin D1 which needs to be done continuously and another check is web link check every 10 seconds, problem is coz when i put delay ...
0
votes
0answers
8 views

Accelerometer/gyro MPU6050 is freezing after random time

I'm using an MPU6050 accelerometer/gyro that controls a servo through a Mega. QSTN: The sensor simply stops reading after an arbitrary time, usually between 2-4 minutes. I have to reinitialize the ...
0
votes
0answers
13 views

nodeMCU - when DC is active on pin the do this

i have a nodeMCU v3(esp8266) and what i want is: when i send DC 5v or 3v to a pin=D1 (idk if its possible to send 5v directly to pin) then to activate the D0 for 20Seconds like this: if (D1==Sends ...
0
votes
0answers
19 views

Unable to upload code to my STM32 blue pill with FTDI tool

I am unable to upload code to my STM32 blue pill. I am using a Mac and it was running very well, all of a sudden, after doing something in terminal, I am unable to use it since then. I tried uploading ...
0
votes
0answers
10 views

Need help with buttonstate

I'm creating a program that works like a piano. I have four button, a piezo buzz and an LCD screen. I'm having a little trouble with the buttonstate. Here is my program, when I run it the piezo buzz ...
0
votes
0answers
9 views

Can't POST data with Arduino and ESP8266

I'm having problems with my Arduino UNO and the ESP8266 module. I need to send values from Arduino to my PHP web page in this way: http://www.server.com/km/db.php?id=53 the ESP8266 module is working ...
0
votes
2answers
78 views

How to run Arduino codes in Java netbeans?

Having a hard time searching the net on how to run arduino codes on java. Can somebody please help me. Thank you.
0
votes
0answers
15 views

Is it possible to send data at 100Hz using Wifi bee ESP V1.0 to Mobile (Xamarin)?

Im currently using WifiBee ESP V1.0 and Lilypad Arduino as well as AD8232 for ECG. We are trying to send the data to mobile phone by connecting to PubNub.` if(Serial.available()>0){ str = Serial....
1
vote
1answer
24 views

Programfault when dereferencing a 64bit int on due

I am running into a strange behaviour with my code. The following works without problems on an Arduino Nano but it seems to crash on a DUE void putData64(byte* packet, int pos, uint64_t data) { ...
0
votes
0answers
17 views

Take sensor reading at specify timing [on hold]

I want Ultrasonic sensor to sense presence of object at specify timing and trigger buzzer when object is still present at that point of time. Any idea how to do this project. Kindly advise. Thank you
0
votes
0answers
9 views

Installing Arduino IDE in the new Ubuntu Disco Dingo

I tried installing the Arduino IDE in the newly released Ubuntu 19.04 Disco Dingo. I downloaded the file from the official downloads page. I chmod +x ed the file and ran the install script. Then, it ...
0
votes
1answer
33 views

Connecting (SD or HD) TV screen to Arduino

I had a thought about making myself an arcade cabinet. I found a nice cheap and sturdy 8 directional arcade joystick online, and now I'm thinking about the possible ways of displaying graphics. I ...
0
votes
1answer
17 views

Arduino Uno - Variables randomly changing

So I have a circuit for a timer (I don't think it is the problem) Sorry for it being a little messy. And I have this code (probably the problem): // LiquidCrystal - Version: Latest #include <...
-1
votes
2answers
25 views

How to power Arduino nano and LED strip?

I am making a project that uses an Arduino nano and a sound detector module to power a 1m LED strip. I got the idea from this video and I am not sure how to power it. My LED strip flashes for a split ...
0
votes
0answers
11 views

How to send message to multiple number using arduino and SIM900A mini v3.8.2?

I am using this code to send message using Arduino Uno & SIM900A mini v3.8.2 module. But I need to send same message on multiple numbers. #include <SoftwareSerial.h> SoftwareSerial SIM900A(...
0
votes
0answers
21 views

Turn LED 13 On or Off From Java

I am new to Arduino development. using Arduino IDE I can easily blink LED 13. I am a java developer so I want to try this example using java. I have gone through to Arduino And Java and found the ...
0
votes
0answers
13 views

How to extract numbers from a string and multiply it [on hold]

I am trying to multiply numbers from a string but i can't! I have made a code but it dose not works :: def multiply(st): m = re.findall('\d+', st) return eval(m) print(multiply('multiply 4 by 2')) ...
0
votes
1answer
26 views

A1-A5 pins not declared in this scope error

When I set my board to 'Generic ESP8266 module' then only A0 pin of arduino is working while all other analog pins are coming out of scope , when I set the board to 'arduino /genuino uno' , then "...
0
votes
0answers
15 views

ArduinoJSON v6- Add value to array

I have a JSON file stored in ESP8266, which I read need to add a value and save it back to file on ESP8266. I have an array at when saved at the first time as: JsonArray data = doc....
0
votes
0answers
8 views

RS256 JWT with Arduino

I am working on a project where I am implementing JSON web tokens to validate devices on a server. I have been unable to find many resources related to RS256 JWT with Arduino or similar devices. ...
0
votes
1answer
16 views

Using an Android bluetooth terminal to change preset states on 8x8 LED matrixes

I'm trying to create eyes for a project, and while I have been able to properly program the different expressions, and have them triggered by commands from the COM3 terminal, I have not been able to ...
0
votes
0answers
19 views

Arduino uno and Nano as master and slave

please help me!! I'm using two arduino (uno and Nano) as master and slave. I wants to control 3 servo which are connected on Nano (slave) by uno (master). Uno have 3 push buttons on it to control ...
0
votes
0answers
12 views

Come creare un orologio utilizzando arduino mega, un DS3231 e uno schermo Nextion! [on hold]

For my project I need a program with clock to turn on a lamp, I tried some that I found on the internet, unfortunately I can load them but they don't work because the latter don't work.enter code here
0
votes
0answers
12 views

GPS / GSM hardware for Custom Android App [on hold]

I want to develop a custom Android GPS app using GPS/GSM hardware like this one, wondering where I should look for to get started, is there an API for hardware like this? Other option I found is to ...
0
votes
0answers
25 views

Problem interfacing both esp8266 and EM18 with Arduino Uno

I have connected esp8266 with Arduino Uno and programmed 8266 with Arduino IDE to send data to firebase over WiFi. Now I also want to interface EM18 RFID Reader with Arduino in order to read the RFID ...
-1
votes
1answer
33 views

How to upload and store settings/variables from computer on the arduino?

I'm literally as green of a noob as I can be at this moment. Been watching a ton of tuts as I plan my project, but can't seem to find anything about settings being uploaded from an external source, ...
1
vote
1answer
410 views

'Var' does not name a type!

I don't have much experience in C++ programming. I'm getting this error 'z' does not name a type!!! which I have't seen in MATLAB or python... What's wrong??? It is so simple!!! float x=10; float ...
-2
votes
0answers
40 views

Interfacing LCD display with ATtiny13A using I2C communication

I am working with an ATtiny13A. Now I want to interface a 16x2 LCD with it, using I2C. How can I do it? In file included from C:\Users\ASUS\Documents\Arduino\lcdi2c\lcdi2c.ino:2:0: C:\Users\ASUS\...
0
votes
0answers
17 views

How can I hack “Flysky FS CT6B” using Arduino [on hold]

I have a flysky fs ct6b, which is 6 channels. As it is broadly used, well-tested transmitter, I want to make it more complex. I want to hack it. I want to control flysky fs ct6b using an Arduino-UNO, ...
0
votes
0answers
24 views

How to programme 'D1 mini ESP32 ESP-32 WiFi + Bluetooth'

I'm trying to properly program a "D1 mini ESP32 ESP-32 WiFi + Bluetooth" I don't exactly what board I need to pick and all the settings I have a Wemos D1 Mini, and the code isn't compatible with this ...
0
votes
0answers
12 views

Arduino clients suddenly not able to connect (or publish) to MQTT

we are struggling with a project that has things (arduinos as clients) communicating to our MQTT broker (mosquitto) running on a DigitalOcean droplet (inside a docker). We have about 200 things at ...
-2
votes
1answer
29 views

I want to combine two codes [on hold]

code 1 int sensorValue; int digitalValue; void setup() { Serial.begin(9600); // sets the serial port to 9600 pinMode(A0, OUTPUT); pinMode( A0, INPUT); } void loop() { sensorValue = analogRead(0);...
0
votes
0answers
19 views

invalid use of non-static member function [duplicate]

I'm learning ardino programming. I have make a multi tab program for printing machine. But I have an error in the RPM counter: RPM_COUNTER.h:11:33: error: invalid use of non-static member function ...
1
vote
1answer
17 views

fail to pass a value in constructor

I'm making a JSON lib dedicated for my own needs, based on ArduinoJSON v6. I try to define StaticJsonDocument<_docSize> doc in a parametric way but I get this error and I cant find the reason ...
-1
votes
0answers
34 views

i just made change my code from regular void loop to freertos

why no output display on serial monitor? xTaskCreate( TaskAnalogRead, /* Task function. */ (const portCHAR *)"AnalogRead", /* ...
0
votes
1answer
37 views

How do I start a task and have it run for a set amount of time?

I have a project where I need to turn a 24V solenoid on for a set amount of time, then have it turn off. I am rather new to Arduino and not certain how to do this or really where to start. Ideally the ...
1
vote
1answer
48 views

Parsing Integers from Serial data stream

I'm trying to send sensor data from my Remote Control to my Bot via Bluetooth. It's 6 numbers that I would like to have read as integers on the other side. I'm printing them to Serial on the Remote ...
0
votes
1answer
32 views

Reading contents of ESP8266 Flash from inside sketch

I am aware that there is a way to create a dump of the flash via esptool, but is there a way to read the contents of the sketch (just the sketch, not the full flash or SPIFFS) memory via the sketch ...
0
votes
1answer
12 views

I have a problem with my nano arduino and the nrf24l01 as receiver

Hello I have a problem with my nano arduino and the nrf24l01 as receiver . I'm trying to upload my code to my board, but it say that my code have this mistake: Receiver:45:10: error: void value not ...
0
votes
1answer
9 views

avrdude: stk500_getsync(): not in sync: resp=0xyy … where to find the response values?

Last week I retried some of my Arduinos and one Mega was working without a problem, but two Uno's didn't work anymore. The error I got was something like: avrdude: stk500_getsync(): not in sync: resp=...
0
votes
0answers
21 views

Help Connecting Lidar sensor over SPI to arduino Due?

I'm very new to Arduino and have never used the SPI protocol before. I've tried following tutorials online, but my SPI.transfer always returns a value of 255 whether the sensor is connected or not. ...
0
votes
1answer
18 views

ESP-12F responds only to a few basic AT commands

I previously read a few guides and tutorials about the ESP8266 and i just started using the ESP-12F module as i think that it is a terrific replacement for Arduino with the added benefit of Wi-Fi. I ...
0
votes
1answer
8 views

HX711 Soft WDT Reset

I am using the following code to check if the value is 0 e.g there is no weights placed and if so, it will ignore this value and do nothing with it. The code runs correctly but keeps outputting the ...
0
votes
0answers
18 views

RPM_COUNTER.h:11:33: error: invalid use of non-static member function attachInterrupt(0,count,RISING); [duplicate]

class RPM_COUNTER { private: volatile int counter = 0; public: void RPMSetup() { lcd.begin(16,2); attachInterrupt(0,count,RISING); } void RPMLoop() { delay(999); // ...
1
vote
1answer
32 views

Using 18650 batteries with a 3.7v to 5v boost converter [on hold]

I'm looking to set up a 1-meter strip of WS2812B LEDs (60 LEDs) with an off-the-shelf RF LED controller with a remote. The LEDs want a 5V supply - I've tried running them off 3.7v but the colour ...
0
votes
0answers
27 views

SPI Interceptor

Is it possible to use Arduino (or any other MCU) to intercept SPI communication between Raspberry Pi and external SD card ? I would like to intercept CMD24 and CMD25 of SD card SPI protocol to fail if ...
0
votes
0answers
12 views

Firmware updation of Multiple Arduino UNO boards using Bluetooth Devices [on hold]

I am having three Arduino UNO boards with three Bluetooth modules HC-05 connected. i.e Each Arduino board has one Bluetooth device HC-05 fixed in it. Now i need to update the firmware (Eg.Blinking ...
0
votes
1answer
33 views

Getting gibberish serial port until button is pressed, plus the button is turning the leds off instead of on

I'm connecting a button to ESP8266. Connection goes like this: 3v to one side of button, other side connected with GND and pin number 2 (no resistor). Every time I connect the ESP both built in LED's ...

15 30 50 per page