Click here to Skip to main content
15,893,381 members
Everything / Internet of Things / Arduino

Arduino

Arduino

Great Reads

by honey the codewitch
GFX is a fast and full featured replacement for standard IoT drawing libraries that is optimized to reduce bus I/O
by Miguel Diaz Kusztrich
Be notified in your mobile phone of intruders in your home, and take photos of them
by DaveAuld
Building for and consuming the Blitzortung Lightning Detection Network
by raddevus
Chapter 4 - Resistors and Resistance

Latest Articles

by honey the codewitch
Do you need to be able to perform a firmware update without using WiFi? This project is for you.
by honey the codewitch
Just a clock with snazzy digits that syncs using NTP and gets your timezone from your IP.
by deangi
A Bluetooth LE scanner gathers data on a schedule from one or more BLE servers and forwards it to WiFi.
by honey the codewitch
Display automated (optionally controllable) Tetris on an LCD or Neopixel panel

All Articles

Sort by Updated

Arduino 

U 1 May 2024 by Rodrigo Rodríguez García
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...
24 Mar 2024 by honey the codewitch
Do you need to be able to perform a firmware update without using WiFi? This project is for you.
19 Mar 2024 by honey the codewitch
Just a clock with snazzy digits that syncs using NTP and gets your timezone from your IP.
4 Mar 2024 by deangi
A Bluetooth LE scanner gathers data on a schedule from one or more BLE servers and forwards it to WiFi.
4 Mar 2024 by honey the codewitch
Display automated (optionally controllable) Tetris on an LCD or Neopixel panel
26 Feb 2024 by deangi
An ESP32 with a temperature/humidity sensor are configured as a bluetooth low energy server to provide remote monitoring
30 Jan 2024 by José Cintra
IoT architecture proposal for sensor data acquisition modules using the REDIS database and the GO language
28 Jan 2024 by deangi
Monitoring AC loads with CT sensors
19 Jan 2024 by Mike Hankey
Thr https://www.microchip.com/en-us/development-tool/atatmel-ice[^] shold be able to program this device.
19 Jan 2024 by Richard MacCutchan
Most questions here are software related. you will probably get a quicker answer at https://www.microchip.com/en-us/product/atsame70q20[^].
19 Jan 2024 by ok61
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
16 Jan 2024 by deangi
An ESP32 is used to track water usage and serve web pages with water use data
18 Dec 2023 by Nigel Badley
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...
7 Dec 2023 by Richard Chambers
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...
21 Nov 2023 by deangi
DIY GPS Location Tracker
30 Sep 2023 by honey the codewitch
Run and develop Arduino code, including a display, on PC using this Windows PC shim and emulator.
25 Aug 2023 by Dave Kreskowiak
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...
25 Aug 2023 by Nigel Badley
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...
19 Aug 2023 by adriancs
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)[^]
19 Aug 2023 by adriancs
Communication between Arduino and C# (ASP.NET) by using AES encrypted HTTP GET request
30 Jul 2023 by Member 14175816
@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...
30 Jul 2023 by Member 14175816
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...
29 Jul 2023 by KarstenK
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...
28 Jul 2023 by Andre Oosthuizen
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...
28 Jul 2023 by CPallini
Use arrays and integer variables.
11 Jul 2023 by honey the codewitch
Monitor your PC's CPU and GPU with an ESP32
6 Jun 2023 by nisanriver
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...
25 May 2023 by Muntadher
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...
25 May 2023 by Richard MacCutchan
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.
30 Apr 2023 by Robert Herzog 2023
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...
30 Apr 2023 by KarstenK
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.
28 Apr 2023 by Dave Kreskowiak
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...
26 Apr 2023 by CPallini
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...
26 Apr 2023 by Richard MacCutchan
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...
9 Apr 2023 by honey the codewitch
Mix wavs and waveforms with this simple to use library
5 Apr 2023 by Member 10844344
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...
5 Apr 2023 by Mircea Neacsu
Take a look at this one: Windows Sockets Streams Part III - HTTP Server[^]. It doesn’t have any external dependencies.
3 Apr 2023 by raddevus
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...
20 Mar 2023 by honey the codewitch
Combine some great technologies for rich, responsive IoT user interfaces on the ESP32
16 Mar 2023 by honey the codewitch
Debug your circuits with this handy device
13 Mar 2023 by honey the codewitch
Easily determine active devices on an I2C bus with this simple device
11 Mar 2023 by honey the codewitch
Initializing the ESP LCD Panel API is a chore. Here's some boilerplate code to make it easier.
28 Feb 2023 by Member 15916612
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...
25 Feb 2023 by CPallini
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...
25 Feb 2023 by 751-Atharva Vanjole
Compilation error: missing terminating" character? Whats wrong in this What I have tried: Remove " this added " this but doesn't happen anything
8 Feb 2023 by Corey 5
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...
10 Jan 2023 by honey the codewitch
A far more functional fan controller than before, and some powerful programming techniques
9 Jan 2023 by honey the codewitch
A project that allows you to use a knob to control a fan's RPM with feedback
6 Jan 2023 by honey the codewitch
Control 3 or 4 pin PWM fans using this library
4 Jan 2023 by jan 2023
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...
4 Jan 2023 by OriginalGriff
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",...
17 Dec 2022 by User 15794774
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...
13 Dec 2022 by honey the codewitch
Control the sound from your Sonos system in each room of your house
9 Dec 2022 by honey the codewitch
Building a button library seems simple until it isn't.
15 Nov 2022 by CPallini
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.
15 Nov 2022 by OriginalGriff
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...
15 Nov 2022 by Richard MacCutchan
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. ...
5 Nov 2022 by Majestic Frog
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...
5 Nov 2022 by merano99
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...
4 Nov 2022 by Member 15820716
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...
17 Oct 2022 by hemanthk119
This article describes modification of Arduino NINA firmware to wirelessly transmit I2S microphone data.
6 Oct 2022 by Lucia Gilene
int ledPins[7]={2,3,4,5,6,7,8}; int dicePatterns[7][7]= { {0,0,0,0,0,0,1}, //1 {0,0,1,1,0,0,0}, //2 {0,0,1,1,0,0,1}, //3 {1,0,1,1,0,1,0}, //4 {1,0,1,1,0,1,1}, //5 {1,1,1,1,1,1,0}, //6 {0,0,0,0,0,0,0}, // En blanco }; int...
6 Oct 2022 by OriginalGriff
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...
3 Oct 2022 by honey the codewitch
Monitor your CPU and GPU activity with this little project
18 Sep 2022 by Richard MacCutchan
All labels in assembler must be terminated with a colon. You have two incorrect lines: last ldi r16, (1
18 Sep 2022 by User-15002776
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...
14 Sep 2022 by sam9787
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...
30 Aug 2022 by Member 15752637
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...
25 Aug 2022 by honey the codewitch
Dusting off an old MIDI toy project and making it less of a toy.
31 Jul 2022 by yoii
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...
25 Jul 2022 by honey the codewitch
Make your little devices sing
21 Jul 2022 by honey the codewitch
Easily blank the screen after a timeout period
14 Jul 2022 by honey the codewitch
Unlock the potential of this neat little IoT widget
13 Jul 2022 by mira mira
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...
13 Jul 2022 by bonezegei
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...
13 Jul 2022 by bonezegei
#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...
12 Jul 2022 by Shieka Alshehhi
#include int PulseSensorPurplePin-0; int Signal; int Threshold - 550; int S; Softwareserial mySerial(10, 11); void setup() ( pinMode (LED13, OUTPUT); Serial.begin(9600); mySerial.begin(9600); ) void loop() ( Signal =...
16 Jun 2022 by Member 4206974
A work for exploring the Asynchronous WEB Server, the SPIFFS File system and the exploitation of the dual core
16 Jun 2022 by honey the codewitch
Create a clock that uses multiple Internet services to detect your weather, date and time
11 Jun 2022 by honey the codewitch
Create a simple synchronized analog clock using GFX, and a bit of code
15 May 2022 by honey the codewitch
Trigger tracks from Type 2 MIDI files to add to your recording or performance
15 May 2022 by honey the codewitch
Detect when your SD card gets removed and recover gracefully, even without a card change pin.
13 May 2022 by V_Jviji
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"); ...
13 May 2022 by Richard MacCutchan
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.
13 May 2022 by OriginalGriff
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,...
9 May 2022 by honey the codewitch
Explore some streaming techniques while getting your shiny new ESP32S3 to do some USB and MIDI tricks
25 Apr 2022 by honey the codewitch
Use batching to increase performance during complex rendering operations.
22 Apr 2022 by honey the codewitch
How to use GFX to drive multiple screens at the same time on an ESP32
21 Apr 2022 by honey the codewitch
Take advantage of the PlatformIO repository to easily add GFX to your projects