Arduino

A

Arduino

Official Arduino Discord - Discuss all things Arduino!

Join

hardware-help

coding-help

official-product-help

project-showcase

general-help

pcb-help

adafruit-help

official-product-help

robotics-help

sensors-help

coding-help

hardware-help

esp-help

pi-help

i2c-serial-help

Help with IRremote library | sending:

Hello. Firstly I apologise I am extremely new to arduino IDE. I am not sure if this is the right place to post my support request hopefully its okay. My intention: I wish to send just a single command over my IR diode, the sample code I find that comes with the library seems to just send on repeat which I am not sure how to stop firstly, I have managed to stop the sample code from interating by commenting that code out. ...

Calibrating a sensor;

I cant wrap my head around how this freaking thing works, so this is a calibration code for photo resistor. sensorHigh=0; sensorLow=1023; ...

Should I use the tone or digitalWrite for the passive buzzer?

So I was watchin paul mcWhorter and he used digitalWrite in the passibe buzzer ep, but should I just use tone? What do you guys think. thanks...

Self balancing robot : PID issue

Hello everyone, I'mm trying to build a self balancing robot by myself. For the electronics I took the schematic of this video :https://www.youtube.com/watch?v=WHdJEUPJojo&t=315s ...

How to use millis() like delays.

So i know how to make something blink with millis(), but I dont know how to make something where I need different delay values, for example: digitalwrite(pin, HIGH); delay(200); digitalwrite(pin, LOW);...

Just a quick helping thing.

So I wanna multiply multiple variables with a variable, but is there a way I can do It easier than: var1multipltyVar; var2multiplyVar; vari3*multiplyVar;...

Wow whats this error ting? Im scared.

So I have never had this error code. My code is this: float C1 =32.703;...

does anybody know how to build arduino with cmake?

The reason I want to do this is I want to build arduino with raylib So I can use the arduino as an interface for a game controller If anybody knows how to build raylib in the arduino IDE that's fine too but the first solution would be better for me...

Int not kinda working?

So i have these two integers: iint staccQuart= 214.2857143; int staccQuart= 60 / 140 / 2; maybe they should be float, but it didnt make any difference here, anyway. ...

I'm very bad at coding and would appreciate any help🙏

hi I'm working on an esp8266 project. I want to build a sound button that can play two different sounds. the first 19 presses of the button it plays 01.mp3, then on the 20th press it plays 02.mp3, and the counter resets. additionally, I want to attach led lights that are always on, but turn off when I press the button (and then turn back on). I've never had experience with arduino coding so it'd mean a lot if someone helped me. I'm using a df player for the audio files in case it's important

omg what??

i've never experienced this before i need help
No description

Arduino toggle button

So this is the code I made A toggle button with. So when I press the button, the counter stays on 1 and when i press again it goes to 0. But Im actually not sure how this works exactly, I cant bring my self to understand, could somebody smart kinda explain the process here?...

Alternative for WiFiUDP ?

Hello, i am developing an RC plane powered by esp32 boards with peripherals. It involves an esp32-cam sending 240x240 images over to another esp32 and displaying them on a 240x280 display. Im currently using WiFiUDP for wireless communication, which comes with a couple of problems: high latency, low throughput and low reliability/packet loss, mostly due to small packet size i assume. I would be very glad if you would inspect my repo and suggest any improvements regarding the wireless protocol!! I might think about switching to RPI with a camera and some kind of FPV module, but again, suggestions and product links would be appreciated Here is my repo: https://github.com/dababyduck/esp32-RC-plane...

Arduino Steering Wheel

Hi, I recently started the realization of a steering wheel with 10 keys and pedal using Arduino Pro Micro but are totally inexperienced with Arduino's programming. Can anyone kindly help me?

Give me a mini coding problem involving while loops.

Im a beginner and wanna learn while loops better. thanks

Why do I need this?

why do I need to use the "int" again on counterLED below void loop, if I had already used it in void setup? It says that counterLED wasnt enabled in this scope, but I thought the int counterLED inside the for loop at void setup would have done the job. I fattened the code that Im trying to understand. The code:...

WiFiUDP Packet Loss

Hello, I am having issues with WiFiUDP silently abandoning my packets. Summary of the system - Board: ESP32s3 (Fake freenove style one with camera support)...

Optimize re-drawing the ili9341 screen in my code

What i'm trying to achieve. I'm trying to achieve a basic "terminal". Basically - I want to draw a buffer (which is 1024 in size) and add to it when i press a button. What's my issue? My issue is, that the way i "clear" the screen is not really well optimized. It's heavy on my poor esp8266 - this is what I'm doing....
No description