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

Sending dmx data with artnetwifi

Can someone help sending dmx data via artnetwifi library?got all working except sending. Serial mon response 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0%0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0% Can share code via dm....

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

STM32 with SD card hangs :(

I cant get my STM32F4 to get past initializing the SD card, ive got it hooked up to SPI1 and PA4 on a 3V breakout board. It just hangs on SD.begin(). Ive tried SD and SDFat on a 16gb sd card ```cpp #include <SPI.h> #include <SdFat.h> const int chipSelect = PA4;...
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...

Mega2560 Wifi / ESP8266 Bi-directional Comms

I struggled for hours with this and finally sussed it all out. If you are one of those who is ready to give up then msg me and I will sort you out. For example, you may want a webserver running on the ESP8266 while the ATMega is collecting sensor data for forwarding to the webserver. You may need to pass the IP address of the webserver back to the ATMega for display so that you can connect to it (or use the cloud of course).

Reversing something

Hi someone know how i can change the order of the result ?
No description

Help with TMP36 (Temperature sensor)

when temperature is higher than 40 degrees, red led n buzzer should work, and the lcd should say ThermoCheck: Hot otherwise, lower than 40 degrees, green led is on and the lcd should say ThermoCheck: Normal problem: the lcd is not working ...
No description

Cant control speed of dc motor with potentiometer

I am trying to control the speed of my dc motor with my potentiometer. But when I turn the potentiometer to max it works but when I turn it a little bit the dc motor turn off. Any idea why?

char to char* adds characters on the end

Hi, I'm using this code to pull data from a section of a char* string, and pass a single character to the U8G2 drawStr() method. The drawStr method will only accept a const char*, so I need to convert the char I get from the char* array into another char*. This, for some reason; adds the characters xV? to the end of the desired output when displaying with U8G2 drawStr. ``` char *charset = ".,!?ABCDEFGHIJKLMNOPQRSTUVWXYZ"':;()"; const char *key1Char = new char(charset[4]); const char *key2Char = new char(charset[5]);...

pls help me and my grandma thanks

could anyone help me, i am making a device with 3 ultrasonic sensors on the front, right, and left and if something is detected on either, it plays an audio file "object is on the (left/right/front)" and has vibration motors for each of them that vibrate depending on the side. I need this to play audio on Bluetooth headphones and I am new to coding Arduino. my grandma needs this soon because she is blind pls send help. thanks! (if your can do wired headphones that is fine too) could you also send the circuit diagram tahnk you...

Serial communication between ESP8266 and Nano not in sync or corrupted

I'm driving a 16x8 led matrix using the arduino nano and implemented it so that it receives display data through serial (16 bytes per frame). when sending the data through web serial everything works perfectly, but when I hook up an ESP8266 everything goes south. here's my code:

How to code a 4x4 keypad module similar to how t9 keyboard works, those old phone keypads

This is for a project and i already found a code that can output the inputs from the keypad to the lcd and i figured that i could modify it but i'm not really a coder and i'm not sure what to add but the general idea is that it works similarly to those keypads on old phones this is the code: //YouTube | Tech at Home ...

the line-following car prefers the right

When all 8 sensors are black, it always goes to the right.

sensor oximeter 30100 problem

hi, someone knows about oximeter (30100)? i have a big problem, that sensor gives me problems like: -doesn't recognize it, doesn't show me anything in the serial monitor -recognize it when i disconnect the ground from the sensor, but this doesn't make sense so, is bad code for test the sensor:...
Next