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

arduino array[]

Is it possible to make array values like this: int array[3] { 1, 2, 3&4 };...

Help

Hi! I'm making a 2-level elevator with Arduino and having trouble with the code. Can you help me?

Countless errors

I've been trying to fix my file for a few days now, each time only getting this error: C:\Users\user\Downloads\trolol_RAUDONAS\trolol_RAUDONAS.ino:286: error: unterminated #ifndef 286 | #ifndef IMAGE_DATA_H exit status 1 Compilation error: unterminated #ifndef...

I need help verifying code

A friend of mine works with a lot of different devices and stuff, but he is not a programmer, he asked me this: "create arduino code for 3 thyristor regulators (each in a different phase) that need to be controlled with one common control signal? I have a link where there is code for one phase but I need 3 phases at the same time. I drew a circuit - it should work. Control could be either from an analog input with a potentiometer, or from a digital one with an encoder. " I'm a programmer, but I know nothing about electronics, circuits or anything of that sort, and I know very little C++, never worked with arduino before either. I read a bit on this topic but I am unsure about how much I picked up as it's a quite difficult and vast topic it seems like. Using AI I managed to get this, the code is pretty much all AI written, the question is, does this seem right? I have no real way of verifying this quickly either, as we are in different countries at the moment, so it would take a lot of time to know what results this gives. ...

WiFi API Help - Status Code -2

Im trying to make a get request using an Arduino Nano 33 IoT, here is my code: ```cpp #include <WiFiNINA.h> #include <ArduinoHttpClient.h>...

Serial vs printf?

Hello! I'm new to Arduino and working with an ESP32-S3-Matrix board. I'm confused about how Serial output works on this board. Problem: When I use this code: `...

Arduino project 07 LIED TO ME!!

First thing in the code, It says to write what is in the photo. but I get this error message: "exit status 1...
No description

help with distance gauging proximity meter thingamabob

so I'm making this thing that displays the distance of an object away from an HCSRO4 using 9 leds working as essentially a proximity counter. the closer the object is, the more LEDs light up (1 LED lights up at distance of 9cm, 2 at a distance of 8cm, 3 at 7cm..), but I'm having some problems. basically, either the LEDs flicker on and off randomly at random brightnesses, or just don't turn on at all, and i can't seem to figure out what's wrong. here's the code: #define TRIG_PIN 13...
No description

Need programmer with background in X-Plane flight sim

I have a sketch I developed that is getting too complicated for my abilities. Can somebody review and fix?

help in coding

Hi guys, i got an assignment in tinkercad and it concerns arduino, can someone help me make a basic circuit?
No description

Arduino Serial buffer overflowing/overwriten

Hi all, I'm new to arduino's technical stuff. I want to make a c++ program(app) that can take in files, then convert it into smaller chunks os bytes and send it to an arduino nano over the serial com ports and stuff over a cable. The arduino nano will then send it over nrf2l01 to another arduino that will be connected to another computer running another c++ program that will reconstruct all the byte chunks into the file. currently, my question is, how do I make sure that my arduino nano's serial buffer will not overflow and lose data? Also how do I make a windows explorer "select file thing" simply (for the c++ app)? Thank you for your time!...

Writing C++ code without arduino IDE.

A few questions. Does everything work the same? Do I need void setups() and loops()? ...

Quadruped Spider robot ( IK )

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.

What is the best way to improve at coding?

So right now I lack the ability to do pretty basic logical coding stuff with leds and stuff. What is the best way to get the basics of coding down? Should I get a book or something?...

Darn millis()

So I'm trying to make a code using millis(). When a button is pressed and held, a led stars blinking, when released the led stops. Im having a problem where the code isn't reading the button instantly, so there is the same delay, as the led blinking delay in my button reading....

AI with Arduino and Python

I have a project with Arduino, its main idea is a fire extinguishing system, It could to use a camera to aim to the fire when its detected. There is a reference to how integrate AI with Python to analyze the camera image to detect the fire?

SPI device tree setup nRF54L15

Could anyone help me out with this issue? I can't seem to get SPI_DT_SPEC_GET arguments correct. when I hover over the macro it says identifier "__device_dts_ord_DT_N_S_soc_S_peripheral_40000000_S_spi_4a000_BUS_ORD" is undefined but i check the compiled devicetree and the overlay is applied correctly. using nRF54L15 if that helps main: ```c #include <stdio.h>...

[ ] meaning in code?

So it seems like this can be used to write down a pattern or something. Also how come is this made an unsigned long even though its not that big of a number? const unsigned long blinkPattern[ ] = {100, 500, 700, 2000};...

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.