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 sensors + dfplayer code

sensors are working, they do play audio once they detect something, but theyre playing the wrong audio assigned to them. i think theres something wrong with my if else statements, like some try to go in a different condition rather than the one theyre supposed to go to? what im trying to do: *ir2 active should always stop any audio *pir2 should override pir1...

Fixing Timing Drift in Non-Blocking Arduino LED Blink Code

This code, as you can see, allows two LEDs to flash with different delays. This code works correctly unless the initial values ​​of timePrevious1 and 2 are different, for example, 0 and 500, the LED, with 0, remains lit all the time. I tried to see where the problem is by displaying the value of timeNow and timePrevious of the lit LED. I found that the timePrevious value is normally incremented by the wait value of this LED. Therefore, the variables work correctly, but the digitalWrite instruction responsible for lighting the LED does not work! CODE: ...

Nano BLE Sense Rev2 - Why no proper documentation regarding use of Wire1 instead of Wire.

I struggled a lot, regarding no documentation of wire1 usage for onboard sensors, connected to Nano Ble Sense Rev2 board. Any sources for such documentation, I wasn't able to find the same here https://docs.arduino.cc/language-reference/en/functions/communication/wire/....

Help me pls

I've installed all library but it does not work
No description

help with ir, pir motion, and dfplayer logic

im a 4th year student with no prior knowledge on robotics/arduino programming, however i do have basic knowledge on c++ im trying to make a system: 2 pir sensors (pir1 and pir2) 2 ir sensors (ir1 and ir2)...

IDE is failing to connect to COM port

I have no idea why this is happening. I have a custom rp2040 device that was working just fine yesterday until something happened and now I get the message below from the serial monitor. Uploading sketches doesn't work either. The device shows up just fine in device manager as COM6 and says it working correctly but it seems like the IDE just can't connect to it. Thanks for the help.
No description

Two devices with I2C and an Arduino Uno...

I'm trying to make a clock with a DS3231 (I2C) and an OLED 1.3" IIC (also I2C) I am using the U8glib library and the DS3231 library. Now to my problem... I have hooked up both devices to the SDA and SCL pins on my Arduino Uno with separate 5V and GND pins. I have set up this code:...
No description

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