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

Esp32 wroom dev board scketch upload giving fatal error message on arduino ide

Hey guys, Im trying to use an esp32 dev board but when I upload a blank sketch to test it gives me an error message like this: A fatal error occurred: Unable to verify flash chip connection (Invalid head of packet (0xE0): Possible serial noise or corruption.). Failed uploading: uploading error: exit status 2 ...

Quadruped Spider Robot ( Inverse Kinematics help )

Making the code for my spider has been an extreme hassle. Inverse kinematics has proved to be quite difficult if anyone has experience in IK I would love some help.

Help my project for school

Hi i really need help for this cuz i cant figure it out. I got a HC-SR501 motion sensor and a motor dc. The thing is when the sensor detected the objects, it sends the info and let the motor spins for 2second and stop...
No description

New to arduino, my bluetooth code keeps breaking after a bit, also would like to improve efficiency

Hi! I have never intensely worked with arduino, but I'm currently working on a project to turn on a vinyl player remotely via a servo and an iphone app + bluetooth, as the person I'm working on it for has MS. I followed a youtube tutorial to get code that works, but after a second it tends to break, though the amount of time and actions that cause it to break are not reliable. Additionally, since it's a battery powered device (2x 14500 in series stepped down to 5v) I'd love pointers on how to a...

flashing arduinos to make them readable as usb devices

i need to reflash the ATmega16U2 chip with a USB-to-serial firmware for both arduino uno and mega , i want to use them to make plug and play button boxes for both sim racing and flight simming.

Triggering 5VDC Relay Using an "if...else" Command

I am currently trying to trigger a 5 VDC relay and LED using an "if...else" command. I have attatched the code that I have written thus far. Also pictured is me testing the relay with the 5VDC Power source from the UNO R4, and then the relay connected to digital Pin 4, with the output value above 200. Am I missing something in my code or could it be that the output voltage of the digital Pin is not enough to trigger the relay on my board?
No description

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