Most voted "arduino" questions
Arduino is an open-source electronic prototyping platform based on flexible and easy-to-use hardware and software. It is aimed at artists, designers, hobbyists, and anyone interested in creating interactive objects or environments. This tag should be used when the problem is specific to Arduino.
Learn more…221 questions
Sort by count of
-
0
votes2
answers408
viewsArduino serialporta with C#
I get the information passed through the serial port of my Arduino with this code: cnx.Open(); string carro = cnx.ReadLine(); textBox1.Text = carro; cnx.Close(); I was wondering if it would be…
-
0
votes2
answers329
viewsSize of a dynamic array
I’m testing with dynamic memory allocation, but when I try to get the array size I always get the same result. int main() { int *teste=malloc(sizeof(int) * 10); int len=sizeof(teste) / sizeof(int);…
-
0
votes0
answers250
viewsArduino and PHP communication via serial
Friends, forgive me for the post, but I don’t understand PHP. I’ve even read some other posts here on the site, applied some things but it’s become a mess. The idea is to have PHP send a letter that…
-
0
votes2
answers716
viewsConverts String to int Arduino in C
Good people, I will try to explain my problem. I am developing a little software in Netbeans that communicates with Arduino via Serial Port. My problem is that in Netbeans IDE I am sending String,…
-
0
votes0
answers19
viewsCom3 there is no windows form for Adian
I’m trying to create a program that sends information from windows form to Adian but an error says that com3 (the port I’m using) does not exist. We are using the mouse xy coordinates to control two…
-
0
votes0
answers39
viewsEncrypt fixed-size files in Arduino with AES
I know that on Arduin it is difficult to work with files, however, how can I encrypt a file of fixed size, in Kb or Mb on Arduin using Aes or other encryption algorithm? anyone has any idea??…
-
0
votes1
answer408
viewsPython Arduino - Serial Communication
How do I do Python serial communication with Arduino ? I have already used the pyserial library, but I was unable to do the communication
arduinoasked 6 years, 5 months ago Jefferson Sousa 3 -
0
votes0
answers85
viewsArduino - Emitting Infrared Signal
I’m trying to turn on and off a projector Sony with Arduino, already managed to capture the code sent by control. But when transmitting this signal to the projector, nothing happens. Can someone…
-
0
votes1
answer73
viewsHash function in Arduino
I’m doing a project where I need to randomly generate hash numbers. The code has to work as follows. A function random generates a random number, these numbers are concatenated with a String to…
-
0
votes2
answers71
viewsWhat’s this Arduino code doing?
I need a description of what he does. if( ! digitalRead(sensor1)) { speed1 = frente; speedv1=0; } else { speed1 = 0; speedv1 = voltar; }
-
0
votes1
answer201
viewsArduino (C++) send variable to PHP page
I have the following code in C++ on Arduino int variavelemc; variavelemc = 10; And I have the following code in PHP $variavelemphp = $_POST['variavelemc']; How do I pass the variavelemc to the…
-
0
votes1
answer108
viewsHow to make a Submit that Zera an accountant
I don’t understand javascript and I don’t know how to search to make a button that when pressed zeroes my counter that is a global variable <form id="btn" method="get"> <input type="submit"…
-
0
votes1
answer146
viewsCompare date and time
In C I have the lib time. h to manipulate date and time, already in Arduino the class Datetime that implements some methods. I’m not finding, even if it is in the fingernail, how to compare date and…
-
0
votes1
answer85
viewsCreate random character lines in Arduino
Good afternoon, I wanted to make Arduino digispark type a line with 8 random characters and jump to the other line doing the same thing, only I don’t know how to control the size for this...…
-
0
votes2
answers548
viewsHow do you get value from the serial port?
With the code below I get four values (1,2,3,4) sent by the serial port of Arduous, values are not sent together or will come out 1 or 2 or 3 or 4. serialPort1.Open(); string entrada =…
-
0
votes2
answers100
viewsArduino restarting when starting python code execution
I am new in the development part and mainly in using the Arduino. I am developing a python web application with some functions, one of them is to turn a light bulb on and off (my problem). I…
-
0
votes0
answers46
viewsUpdate information received from Arduin
I have made an application that interacts with a robotic head with Arduino and I would like to know how to automatically receive all the data from the robot without having to trigger the sending of…
-
0
votes1
answer47
viewsVariable not receiving value
I have a program, where when I click a button the program pauses, and when I click again it continues, but I realized that in that period of time when I pause the program, the variable that I want…
-
0
votes1
answer199
viewsPort not found - Arduino IDE on Linux Mint
Recently I started using Arduino and went through a migration process(windows to linux Mint), I came across a frequent error where the Arduino was not recognized, its port was inaccessible,…
-
0
votes1
answer533
viewsHow to get communication response using MQTT
I am developing an application which I use the MQTT communication protocol, where my system sends a command to a certain equipment, my equipment is receiving the command and changing the status. The…
-
0
votes1
answer84
viewsNeed pull-down resistor
I’m using the function attachInterrupt() in the Arduino Uno to recognize the end of a course of an actuator. Normally test is used with if(), but the actuator cycle is very fast and the recognition…
-
0
votes0
answers24
viewsDoubt about error Else without a previuos if, in serial communication between two arduinos
I’m making a communication, serial in tinkercad simulator, between two Inuit, my code is displayed, error: Else without a previuos if The idea of the program is to press button, in the emitter…
arduinoasked 7 years, 3 months ago Duilio Matias Gonçalves 1 -
0
votes1
answer367
viewsConcatenate strings in Arduin
How can I concatenate two or more strings using the language C with Arduino. I’m following several examples I’ve found around, but it always makes a mistake. "Conversion from 'unsigned char' to…
-
0
votes1
answer42
viewsMenu with pushbutton Arduino (esp32)
I have a question about building a menu with buttons. Initially, I have to wait for a button to be pressed. When someone leaves, I have to open the button option pressed. I tried the following, but…
-
0
votes0
answers57
viewsProgram enters unwanted looping - Arduino
The following code must, when pressing a button, execute the commands once. If the user holds the button pressed, the code should also be executed only once, as if it were just a pulse on the…
-
0
votes0
answers99
viewsArduino -> Function/variable/library conflict
I’m doing a program on Arduino. I’m using the Freematics OBDII (UART) adapter. They’ve developed a specific library. There is a problem: trying to read a PID, which returns me 2 bytes with a value…
-
0
votes0
answers83
viewsProblem with the data acquisition time function provided by Arduino
I’m doing a Plot temperature vs Time via Arduino in a graphical interface. The program is crashing. Problem is in the function of time: # -*- coding: utf-8 -*- import matplotlib import…
-
0
votes1
answer35
viewsIterate an Arduino String
I would like to perform the following operation: Read a String (come by Bluetooh). This String will have 6 positions, each refers to whether an led. If it is 0 lights up the led or lights up! How do…
arduinoasked 7 years ago Thiago Luiz Domacoski 7,310 -
0
votes1
answer235
viewsArduino serial communication
I’m trying to figure out a certain exercise my teacher gave me in class. Basically the exercise is: With two arduinos prepared to make the serial communication between TX and RX, this must transmit…
-
0
votes1
answer51
viewsError with C array - Norwegian
I’m having error signing an array: Menu m = Menu(); m.Options[4] = {"teste1","teste2","teste3","teste4"};//Erro aqui m.Show(); Menu Class: class Menu { public: String Options[]; int index = 0; int…
-
0
votes1
answer70
viewsGraphs with noise in the Adian in the plotter
Implement code that simulates the speed of a car as more noise signal, with 50 elements. The speed value increases linear mode by 0-50 km/h. The noise amplitude is 1 km/h. Values are sent to the…
-
0
votes1
answer131
viewsArduino Leonardo error when compiling a code for the tft 2.4 Shield display
When I try to compile any code for my Arduino Leonardo the following error occurs with most of the examples of libraries I have tested. (This library that I tested was the only one that I could…
-
0
votes1
answer429
viewsPyserial library problem (PYTHON)
I am trying to control Arduino by a Python script through the "pyserial" and "serial" library. But every time I run the code it misses the first few lines: import serial ser = serial.Serial('COM7',…
-
0
votes1
answer66
viewsUse C++ variable in Assembly (Arduino)
I have an interesting code in this page. const uint8_t MachineCode[44] PROGMEM = { 0x25, 0x9A, 0x2D, 0x9A, 0x40, 0xE5, 0x5F, 0xEF, 0x6F, 0xEF, 0x6A, 0x95, 0xF1, 0xF7, 0x5A, 0x95, 0xE1, 0xF7, 0x4A,…
-
0
votes1
answer71
viewsProblems with Decode and Arduino
Hello, People I have the following code on Arduino if((digitalRead(4) != 1)||(digitalRead(5) != 1)) { Serial.print("\t"); Serial.print(analogRead(A0)); Serial.print(","); Serial.print(millis());…
-
0
votes1
answer674
viewsReceive a Long String with esp 01
I have a esp 01(Wi-fi module) connected in my Arduino on port 2 and 3(TX RX), I can send a large String, but when I receive I can only receive at most 32 characters, here is the code of my Arduino:…
-
0
votes1
answer53
viewsMotion sensor value 0 only
I’m trying to detect movement using the mini PIR motion sensor but only at 0, does anyone know how to solve this problem? The code is as follows:: //Declaramos os pinos que vamos a usar int Pin = 7;…
-
0
votes0
answers96
viewsIncrease Module Speed bluetooth HC-05
Hello, I have a project with Arduino and the Bluetooth module HC-05 that gets the MACS of Bluetooth devices around (not connect, just search). It works, but I would like it to perform better by…
-
0
votes1
answer169
viewsNumeric Counter
I must create a program that commands a hardware in which I have connected on 3 different ports of the Arduino a circuit containing 3 Leds. The program must ascend these leds in binary order. I have…
-
0
votes0
answers93
viewssocket_connect() - Error 113 - PHP
I’m trying to make an Arduino receive data according to a structure PHP. Explaining quickly, when the user changes the status, between 0 e 1, the same would send a signal to the Arduino according to…
-
0
votes1
answer38
viewsMonitoring Arduino analog inputs
I am monitoring more than one analog input of one Arduous at all times, that is, at all times I am sending data via serial to other software. What would be the best way to send this data so that I…
-
0
votes0
answers83
viewsProblem with the interaction of an http server with Arduino and Axios js
I am creating an http server on Arduino, which given a request it responds to the following: client.println("HTTP/1.1 200 OK"); client.println("Content-Type: text/html"); client.println("Connection:…
-
0
votes1
answer77
views -
0
votes0
answers137
viewsWhy does my SD card corrupt in the Afghan rescue?
I have a Kingston 4GB micro SD card and a Datalogger code that deletes the successful file and creates a new one with the new values of the variables. Follow the code below: void back_var() {…
-
0
votes1
answer191
viewsArduino + SIM800L Connect to Firebase
Galley, I’m putting together a project and I need to connect my companion to firebase. For this I am using a SIM800L, however my code return the error below in the compiler, someone has already gone…
-
0
votes1
answer46
viewsFunction parameter eeprom_write_block
Hello! I was performing some tests using the library avr/eeprom.h in my Arduino. One of its functions is to eeprom_write_block(x, y, z), writing a memory block on the EEPROM. The first parameter (x)…
-
0
votes0
answers55
viewsJavascript/jQuery - setInterval stopping execution of other Javascript functions
I’m facing a problem that’s driving me crazy already. It’s like this. I am capturing json data from an external server on cross-Omain, I need this data updated every 5 seconds. I was able to loop…
-
0
votes0
answers20
viewsHow can I push Botton to turn on the display
I’m trying to make a display turn on but I need to push Botton first to start the count on the display.Can someone give a hint of how I should do? // configuração da pinos const int A = 2; const int…
-
0
votes0
answers26
viewsReceiving data from Arduino to the textbox in c#
I’m developing a design using Arduino Nano with Microsoft Visual Studio using the C#language. My goal is to turn on and erase the Arduino LED by MVS and tb read a message sent by the Arduino serial…
-
0
votes0
answers42
viewsHTML pages with read/write variables
I need support on this embedded project, using ESP32 and Arduino IDE. The difficulty would be to display and read VARIABLES on the HTML page because I only found these examples: Reference in…