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

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

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