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

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.