The error is : : "Compilation error: expected initializer at end of input" The code: int ENA = 5; // Pin 5 de la placa de Arduino-1 controla velocidad de motor 1 int IN1 = 4; // Pin 4 de la placa de Arduino-1 controla dirección de motor 1 int...
i want to flash a Atmel ATSAME70Q20 Cortex-M7 is this only possible with J-Link hardware? thanks What I have tried: i have tried nothing because of no hardware and no good information
There is, apparently an issue with the latest iOS updates where it blocks non iOS drivers. I got a replacement board which worked initially but after the update does noting the port. A web search indicates this is a known issue with various...
I was not able to test the following other than parts to check the logic of compiling and uncompiling the programs and whether the logic to turn a pin on or off works. My tests indicate that logic is working however I'm not sure of the file...
Well, either the board is not supported by the IDE you're using, the correct board hasn't been selected in the IDE, the board is not on the port you're telling the IDE it's on, the USB cable is bad, or the board has insufficient power, or the...
A new Arduino Mega (clone) when attempting to load a sketch produces this error message. I have checked the board type, baud speed (115200)confirmed the correct port and loaded the sketch on another board with no issue. Can any throw any light...
I have just published an article exactly answered this question. I know my post it's a little late to the party, but anyway, here's my article. cheers AES Encrypted Data Transmission between Arduino (ESP32) and C# (ASP.NET)[^]
@Andre Oosthuizen Thank you for your help, I have made a little changes, but you gave me the base to start with. So I paste the whole sketch below, I use 30 programsteps and 5 outputs, so every output has 6 programsteps, I only have used 4 to...
Hello, I am stuck to shorten a function in Arduino, can anyone help me with this? I have not been working in Arduino for very long. I currently have 5 outputs controlled by 6 program steps = 30 program steps This is the code I am using now: if...
1. You should breakdown the code in smaller functions, so the two "prog" comparison can refactored in a function with some parameters. 2. Comparing String is a bad idea because of CPU performance, so try to compare the values as integers or cast...
Concentrating on your 1st block of code, you can create a function that takes the 'prog' string, the index 'i', and the 'onOff' values as parameters - #include #include //Function based on your input parameters... void...
Hi. I am currently trying to do something that involves the integration of components from a DVD writer, specifically the Optical Pickup Unit (OPU). My objective is to utilize its elements (laser, photodiode, etc.) as an imaging system. I want to...
I'm doing a project using Arduino Uno, LM35 temperature sensor, and a pulse sensor to read the temperature and the BPM and display them on the LCD and serial monitor. First, I wrote the code for each sensor separately and there was no error and...
You have defined int myBPM in two places, and are printing the two different values. You print the locally defined value in the pulse function, and then the global value in the loop function.
I'm building an Arduino doorbell and have individual arrays for each song that contain song notes to play on a speaker. Once the song is selected and downloaded to Arduino, I want the doorbell interrupt to play the song. What I can't figure out...
You better understand this pointer issue becaue it is a central pillar of C. Visit some tutorial and try out the example. For instance Learn C++ pointers.
You haven't closed the opening braces either one of your if statements, or the loop function. For every opening curly brace, '{', you MUST have a closing brace, '}'. int ENA = 5; // Pin 5 de la placa de Arduino-1 controla velocidad de motor 1 int...
Just a wild guess: it looks there is a type mismatch between song1 (as well song2) and tuneToPlay. Namely, the former is a pointer to a function, while the latter is a pointer to int. You should provide more code (e.g. song1 declaration) in order...
Assuming song1 is defined as int song1[8]; The try removing the addressOf operator from the array name: tuneToPlay = song1; But that is a bit of a guess since you have not included song1 in your code sample. [edit] It also may be due to...
I am looking for a relatively simple to use web server like the AsyncWebServer available in Arduino. I need it to run on Windows Visual Studio C++. Any ideas? What I have tried: I have investigated using the standard Microsoft webserver but it...
I think the easiest / quickest way to spin up a HTTP server on your local machine is: https://www.npmjs.com/package/http-server[^] It's an npm package -- so you'll need to have node.js and npm (which comes with node.js installation). So the...
I want to show time and date by using DS1302 RTC module in Arduino. I installed all required libraries while running the code in the first line it shows currect date and time but after some time it shows 0. Any one please tell me how to solve my...
The following works for me #include using namespace std; #define DEVICE_LABEL "foo" int main() { char topic[0x100]; sprintf(topic, "%s%s", "/v1.6/devices/", DEVICE_LABEL); } The possible culprit is (your) DEVICE_LABEL. How is it...
I have repo code that I am working on as part of an internship that they have me trying to get to work with a sensor. When I load the code and upload it it doesn't seem to want to update the shadow onto AWS. The timestamp appears but the sensor...
i've been trying to figure out what's wrong with it and I can't wrap my head around there, any guidance would be much appreciated! I'm pretty much a noob when it comes to coding. i tried to do an ultrasound sensor that changes the led rgb light...
Try taking out some of the curly brackets:const int dist[] = {100}, {200}, {300}; const String colors[] = {"blau"}, {"vermell"}, {"verd"}; Should be like this:const int dist[] = {100, 200, 300}; const String colors[] = {"blau", "vermell",...
How do I modify this coding if I don't wanna use temperature sensor. What I have tried: I don't know how to modify.I tried to edit but there were errors here and there,I don't understand most of the codes as I'm still new in programming.I'm not...
As a rough approach, start commenting out the whole 'temperature' loop //while(usTempExit == 0) //{ // ... //} as well the single line checking usTempExit: //while(usTempExit == 1) Then fix any (possible) errors.
If you don't understand a chunk of code - or you can't work it out - then the best advice is: "don't use it". And in this case, the solution looks simple: just take out the temperature related stuff at the beginning of the loop in the function...
You have just dumped some 800+ lines of code and expect us to figure out what needs to be changed for a very vague question. If you don't understand the code yourself then I suggest you throw it away and start your application from scratch. ...
Hello everyone! I am currently having a big issue with an RFID Reader. I'm trying to read data from this reader from Amazon right here, which only supports Wiegand 26 an 34 transmissions, using an ESP32 device and utilizing this library from...
Found the statement that the library usually passes the order of the bytes as they come in over the data lines. There should be readers that can invert the read data, otherwise you can write a function that inverts the bytes (BIG- LITTLE ENDIAN...
w26 generally uses 2 site digits and 4 ID digits with the site sent first, then the ID, BUT each part is sent in reverse order. So if the code is p1 Site1 Site2 ID1 ID2 ID3 ID4 p2 it gets encoded as p2 ID1 ID2 ID3 ID4 Site1 Site2 p1 with p1...
Look at your code: void loop(); ^ | { if (digitalRead(switchPin)) { rollTheDice(); } delay(100); } What is the semicolon doing there? The line void loop(); is a forward declaration, and can't be followed by a...
The challenge is: Quote: Which button was pressed first? – Program in Assembly Two players, A and B have a push button in front of them. After a signal from the referee, both players try to push their button first. The system should record the...
hi all How can i increase in my fingerprint sensor ? my fingerprint sensor type GT-511 connected to arduino UNO it is available only 20 fingerprints in its internal database please any idea ? this is what i was worked in Playing wi(FPS) on...
I have a cable, an arduino board and a resistive touch. I want to use these to have a screen bigger than the phone's screen. I wanted the code to send the image of the phone to the resistive touch and display it, please, I really need it,The only...
Hello, I am starting a MQTT project using esp32 and humidity sensor, I want to be able to send data from my sensor to my Ubidots dashboard, however it is really confusing for me as im a beginner. I would appreciate any form of help to help...
Hi friends, can you please advise me? I compiled the datalogger according to the instructions. Temperature Sensor for Arduino Applied for COVID 19 : 12 Steps (with Pictures) - Instructables[^] It reports these errors to me during compilation. I...
This was an old question but this might be the solution to that Maybe ...... int DataTime[7]; DS1307 rtc; //this should be declare like here char times[32]; //the array containing the string of time should also be...
#include int PulseSensorPurplePin = A0; //not =0 since you are reading Analog Value the value 0 for input pin is at Digital pin 0 "A0" is used instead int Signal; int Threshold = 550; //variable should be initialize this way i...
i compiled a LITTLEFS file system code for esp32. But the compilation was not successful. It generate the following error error: no matching function for call to 'LITTLEFSImpl::open(const char*&, const char [2])' File f = open(path, "r"); ...
The open function does not take a string as the second parameter, it takes a bit mask of the OpenMode constants. See _open, _wopen | Microsoft Docs[^] for the values defined in Microsoft's stdio.h.
If you look at the GitHub source: Arduino/LittleFS.cpp at master · esp8266/Arduino · GitHub[^] You will see that there are only one signature declared for LITTLEFSImpl::open FileImplPtr LittleFSImpl::open(const char* path, OpenMode openMode,...