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 Cache

I keep getting results from my Arduino code for Xplane that indicates commands are being held in cache then delivered after XP being paused. There are very few other causes than cache that we can figure. Anybody ever have that issue?

How to upload the code

Hey everyone ๐Ÿ‘‹ Iโ€™m trying to upload code from my phone using the ArduinoDroid app, but I keep getting this error: Error: Can't open connection to MCU. Consider switching to Avrdude uploader (โ‹ฎ / Settings / App settings / Uploader) or follow troubleshooting (โ‹ฎ / Help / Troubleshooting) ...

micropython 4x4 matrix input

```python rows = [ Pin(20, Pin.OUT), Pin(21, Pin.OUT), Pin(22, Pin.OUT), Pin(23, Pin.OUT), ] columns = [...

RBD Dimmer lib

Hi, i try to use rbddimmer lib on my esp8266, when i setup anything its all ok but i dont know why when i do dimmer.begin the watchdog loop restart ? Anyone can help me plz ? ```C const int zeroCrossPin = 4; // D2...

trying to get adafruit motor shield v1 to work on an esp32 arduino board

so i have this hat and esp32 board and whenever i try the code for esp32 it wont upload due to the AFMotor library and was wondering how i can convert the code for other boards like for the esp32 or uno wifi r4
No description

ESP32-c3 built in usb cdc loses bytes?

I have a project that uses an esp32-c3 supermini as its microcontroller board, and has a way to upload a text file to it. Because the file is usually small, I'm sending it one byte at a time, and expecting an echo of the same byte from the esp. However, sometimes the echo just gets lost, thus my upload script hangs as it relies on the echo for sending the next byte. (edit: it's not the echo that gets lost, but the byte sent by the python script) I found an arduino forum post from 2023 (I think) with this same issue, but I have no idea if it's my code's or the esp's or maybe the arduino core's fault For testing the issue, I'm using a 1 000 000 byte text file, but it also happens with smaller ones...

Error message is incomprehensible

Users/henderikusvanderwerff/Library/Caches/arduino/sketches/390F9161CE4F93A2778BEBCCC04B59D7/libraries/FastLED/fx/2d/bilinear_expansion.cpp.o (symbol from plugin): In function fl::bilinearInterpolate(unsigned char, unsigned char, unsigned char, unsigned char, unsigned int, unsigned int)': (.text+0x0): multiple definition of fl::bilinearInterpolate(unsigned char, unsigned char, unsigned char, unsigned char, unsigned int, unsigned int)' /Users/henderikusvanderwerff/Library/Caches/arduino/sketches/390F9161CE4F93A2778BEBCCC04B59D7/libraries/FastLED/fl/upscale.cpp.o (symbol from plugin):(.text+0x0): first defined here /Users/henderikusvanderwerff/Library/Caches/arduino/sketches/390F9161CE4F93A2778BEBCCC04B59D7/libraries/FastLED/fx/2d/bilinear_expansion.cpp.o (symbol from plugin): In function fl::bilinearInterpolate(unsigned char, unsigned char, unsigned char, unsigned char, unsigned int, unsigned int)': (.text+0x0): multiple definition of fl::bilinearInterpolatePowerOf2(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'...

Problem with a Eeprom on my tinker cad circuit

https://www.tinkercad.com/things/khJDCfJ300O-epic-kup-densor?sharecode=mGPwyqTXUkVewiCTuWfLpeHLe5NvWcz0n3KqZiwD56c The problem was when i look at history usually was by pressing both decrement button and reset button it loops on all the saved tokens and just kinda goes ham...

ATtiny85 hardware watchdog

Hi, I have a Arduino MKR 1500 and a ATtiny85 that has to function as a watchdog for my arduino. There is a relais module attached to the Tiny. The tiny will send a HIGH signal to the relais when there is no heartbeat from the arduino. I tested with a voltmeter and the arduino sends 3.7V when its alive and 0.0V when its not connected to the cloud. However, the Tiny wont switch the relais when the arduino goes offline. I tested the tiny and relais with a simple sketch and that worked, so the hardware works. Anyone an idea why the Tiny doesnโ€™t react on the signal from the arduino? ...

4x MPU6050 not working

I have a project to finish soon and im using acceleration sensors ( MPU6050 ), I know that one of these sensors has 2 addresses and im using 2 busses ( bus 0: SDA0 21, SCL0 22 and bus 1: SDA1 19 SCL1 18 ) and still somehow it doesnt work and I cant figure out how to fix the issue not even with AI. I want them to all work at the same time....

Need help using Teensy 4.0 microcontroller on IDE

Not sure if this applies to coding help necessarily but, I am attempting to use arduino ide to code on my teensy microcontroller and I cant find the extension to do so. How can I get the necessary add-ons?

DIY Halloween Project Help Needed

Hello, all this is my first post in discord, although a long time arduino tinkerer. I am absolutely stumped why my project is not working correctly. Hardware: - HC-Sr501 PIR Sensor - 5v Relay - DFPlayerMini & Speaker...
No description

DC Motor not Reversing Directions

I have followed multiple coding examples, and the motor is physically capable of rotating both directions; however, it seems that my code is not doing what I believe it says it should.
No description

trouble with RD-03D sensor library

im having trouble with an library for the RD-03D sensor. From the example https://www.instructables.com/Radar-Based-Home-Security-System-Using-RD-03D-and-/ its supposed to run on an esp32-2432s028(CYD), but the library uses softwareserial. Even though its supposed to be editet to work with an esp32, which it does on the website, i still get the error: documents\Arduino\libraries\SoftwareSerial\SoftwareSerial.cpp:41:10: fatal error: avr/interrupt.h: No such file or directory 41 | #include <avr/interrupt.h> Im just using the example to get the radar to work for my own project so all the web stuff can be ignored. I tried the full sketch from the site for the CLD, esp32-wroom32 and esp32c6 but it still didnt work....
No description

Rust

Does anyone have a new rust arduino work around??

MPU6050 + Arduino for CPR

I need vertical upโ€“down depth (5 cm target), no rotation. How to do gravity removal + ZUPT and ignore tilt? Any code/tips? ๐Ÿ™...

Whats this thing?

So if I understand correctly when the code is in print(measureVal), it executes the void print loop and inside that loop float result is the same as measureVal, because of : print(measureVal); But the thing I don't understand is what is the float readTemp(int pin) {... } Like it's not a loop, it looks like a variable. How can it not be inside a loop. And what the actual freaking donut does this thing do? thanks...

Need help optimizing 74hc595 updates

Hi i need a way to make my 595 update faster currently it takes about 750 to 850 ms for 8bytes (8bits per iteration) to transfer using shiftout neeh help with to either make shiftout faster or update 595 over spi...