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

RC Car help

I was trying to program an RC car, but the HC-05 will not connect. It shows up on my bluetooth connection list, but will never actually connect. Could someone look at my code and see if it is wrong? Otherwise, would it be hardware problems? I will paste the code here (too large to paste as image) #include <AFMotor.h> #include <SoftwareSerial.h> ...

hi i need help

"equalizer" code to lcd 16x2 python

ESP32-S3 Linux partition table

The existent partition table is made for 8MB flash, and I am trying to add a new R/W partition that will make use of the remaining 8MB, but I have no idea how to edit the partition table or the fstab file. this post has some information but it is not clear enough for me https://github.com/jcmvbkbc/esp32-linux-build/issues/16#issuecomment-2364978673 these are the original contents of the files in question fstab...

[Fail to connect Azure IoT] esp32 connect to Azure via mqtt using X509

I cant connect to Azure IoT hub . Can anyone else help me to check my coding logic is correct or not?

Group project? Pixy Cam 2 block for Scratch?

Pixy Cam 2 is a neat sensor and they have made it possible to use LabView and Python for the LEGO EV3 Mindstorm. Our 4H robotics club is trying to learn Scratch, but unfortunately the Pixy Cam 2 cannot be used in Scratch. I'm reading and searching online to try to find a way to make a Scratch block to utilize the Pixy Cam 2 sensor. I don't know what it will take, though it looks like there is some experience needed in javascript for Scratch and maybe C++ for Pixy Cam 2. Is anyone experienced...

Arduino nano esp32 error code avr/ pgmspace no such file or directory

Hi I'm trying to upload a sketch code from Arduino ide to my Arduino nano esp32 but I get the error code

Rookie Mistake

so im trying to code on arduino droid using a push button to trigger led, why isnt this code working for turning on the led but the button is working as usual checking the monitor
No description

Can you guys give me some basic challenges.

Using while,do.. while, for loops, potenrio meters, fading leds, and stuff like that? thanks!

Boundaries for a rotary encoder, and how to increment in only one direction

How do I set a minimum and maximum number that a rotary enconder can go to: Example volume control. How do I also increment only when I rotate right, and decrment when I rotate left.
No description

Anyone have experiance in making oled animations?

I have 25 .c files which i want to turn into a animaton, i included one .c file so it might help to understand. Ive been trying to get the animation to work but it always seems to fail...

BMduino: Soil moisture sensor conflicts with HC-05 Bluetooth, causing write-only behavior

I’m working on a small project using a BMduino board, and I ran into an issue after integrating a BME34M101 soil moisture sensor. Once the soil moisture sensor is connected, my HC-05 Bluetooth module can still send data (write) but can no longer receive any data . Both the HC-05 and BME34M101 use UART for communication, but they are connected to different serial ports, so theoretically they shouldn’t interfere with each other. Could there be any hidden conflict in BMduino’s UART handling? Has anyone experienced a similar issue, and how did you solve it?...

Do people use Port Register Control?

So I just discovered this and it seems it is just all around better way to control the arduino pins, faster, less total characters to write and it teaches some binary too. Is there any disadvantages to using port register control? I'm a beginner will it hinder my learning any way? thanks...

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