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

Code help with ESP32 tft display

Recently, ive been trying to display my spotify api on my tft display. im using the ESP32 dev module with a st7735 display. everything has been working so far except for my scrolling text feature. After the text scrolls to the left side of the screen, it goes back to the right side to scroll again. However, when it hits the left side, it spams the scrolling text a couple pixels belos (at around setCursor (0,108)) i have no clue why.

pls help me

i wanted to build something with 433mhz but the thing is i know nothing im pretty new and i got an error when i try to upload my code to the adruino i will show some pictures
No description

Esp32 Memory question

Hello, if you read this please answer kinda desperate and if you answer thanks a lot but Okay so I've been tryna do ota flashing but I got myself a esp32 an usb otg cable a phoenix and termux mmy phone is new and can't be rooted so I was wondering if it's still possible to flash and also what happends if you flash 55o the wrong memory partition on it an esp32 I heard you can eithe4 soft lock it or hard lock it aka bricking the esp32 what memory partitions should I avoid.

How do I make a button press stay on?

I have a button to pause ongoing music form my DIY MP3 player, however to make it pause I have to hold it. I would like to just press once and it stays off, then again and it's on. So like a switch.
No description

RPLIDAR C1 Not Detected on Arduino Mega

I am trying to use RPLIDAR C1 directly to Arduino Mega via UART communication (Serial2). ```#include <RPLidar.h> RPLidar lidar; ...
No description

I guess I hate coding.

So this potentio meter reading is jumping all over the place. the One on the left is the Raw Potentiometer value ```ino ...

Im getting annyoed nothing works anymore.

This code is supposed to control the direction of the dc motor. When I write "right" it spins right, but when I write "left" it keeps spinning right. And when I but the "left" if statement on, then the left one spins but right doesnt. the code:...

Stepper motor wont do anything?

This is my code and it just doesnt work, the stepper motor driver wont even turn the lights on. #include <Stepper.h> int SPR=2048;...

Uploading problem

Hello, i've recently had a problem with uploading a program to my arduino uno (RexQualis) in the arduino ide. What happens is it uploads for like 4 minutes, then spits out a ton of errors. Here are the errors: avrdude: Version 6.3-20190619 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch...

hmmm. Did Paul McWhorter lie to me?

So this code is supposed to stop the butUpVal to got above 255 and stop the butDownVal go below 0. if(butDownVal<0){ butDownVal=0;...

I2C bit bang functions

I just finished this i2c bit banging the protocol and wanted to get suggestions and maybe things I may have missed. Thanks https://pastebin.com/FGYNJX0t...

Can you masterWizards give me homework.

So I was just doing the toggle switch code again and kinda realized my logical thinking isn't very good, so could You guys give me a few hard logical coding problems involving buttons and digital/analog outputs. thanks CodeWizards...

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;...