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

Playing .wav Files through Teensly

Hello guys, I recently bought a Teensly 4.1, Hailege PAM8403 (amplifier) and corresponding speakers, I wired the speakers to the amplifier, and the amplifier to the teensly, and I was able to play some simple beep sounds, but for more complex sounds, like complete songs or even .wav files, I would probably need a DAC module, since the amplifier I bought doesnt have one, do you guys have any recommendations on what to do now? I am not an expert when it comes to amplifiers / DAC modules

What is the best pack to start robotics with arduino ?

hello i wanted to start the robotics with a 50€ I would like a pack with a programmable card, motors, detectors of different types (and a camera if is possible) but i don't know where order or if the product are good or not. If you have pack(even if is bigger to 50€),tips ,recommended product, or anything can help me, i take, thanks in advance...

Help with a build

So I just recently got an Arduino and have been playing around with the builds included in the kit, one of them has a water pump but no matter what I try to do it just won’t work, I attached a pic of my build and the build on the website.
No description

Regarding microcontrollers

Heya! Hopefully this is the right form for my question. I've been pretty interested in learning about less beginner-friendly microcontrollers lately on a lower level and have come across "serial registers" for the first time. My understanding is that these are components which essentially allow you to funnel multiple data streams into one digital port. If these components exist, then why are available data ports seen as a limitation or factor in choosing a microcontroller?

Stepper Motor Randomly Changing Directions

I am using an ESP32, ULN2003, and a 28BYJ-48 Stepper Motor. I have it set up so if the left button is pressed then it will go reverse, if the right one pressed it will go forward (also if any of the two previous cases, the blue led turns on) and if neither are/aren't pressed it stays still. For some reason it just changes directions whenever it likes. This is my code: ```#include <Stepper.h> const int STEPS = 2048; ...

Soldering method

What’s the best way to solder this kind of pin?
No description

Adruino / Teensy 4.1 - normalize voltage

I'm very new to the hardware world — I'm much more comfortable with pure software development. For this project, I need your help to guide me in the right direction. I need to use four vibration or impact sensors connected to a Teensy 4.0 board provided by my school (I can change the microcontroller if needed, but based on my research, the Teensy 4.0 seems to be the best fit for my use case). My goal is to use simple piezoelectric sensors to detect strong vibration peaks. When a peak is detected, I want the sensor to send a simple pulse to the Teensy. The Teensy will then timestamp the event and record the origin (i.e., which sensor triggered it). ...

How to connect 5v digital signal to ESP32 GPIO (3.3v) pin

Complete beginner here. I have an ESP32 dev board, powered by a MicroUSB cable, connected to a breadboard. I also have a YF-S201 Hall Effect Flow sensor, powered by 5v and outputs digital pulses that correspond to flow, also at 5v. I understand that the ESP32 needs 3.3v inputs. How do I go about doing this? I am currently powering the sensor using the VIN/GND pins off the ESP32 board. Google badly wants me to use a logic-level shifter, which I purchased. However, when I wired it up as Google suggests, it clearly messes something up with the board. I am feeling overwhelmed and frustrated and just need someone to point me in the right direction! Thank you! It is possible I fried either the logic level shifter or the YF-S201. When I started, I could get variable voltage off the signal wire by blowing through the valve. Not so much anymore... Or was I seeing ghost voltage? Can I read digital pulses with a multimeter? I have so many questions 😭...
No description

SH1122 SPI display wont go over 180khz spi frequency aswell as updating "line by line"

hi, im working on a dashboard display, but im not sure why the spi frequency for updating the display is so low ive set it to 800khz, in the u8g2 library itself, aswell as configuring the display to acommodate for that frequency, but the transmit speed just doesnt want to go over 180khz im also seeing this update effect, where it looks like the display is updating from top to bottom line by line, ive tried getting rid of that by changing the oscillator/clock divider but i just cant get rid of them, you can kind of see these lines in the video does anyone here know how one might get rid of these "limitations"?...

Where should i put the capacitor ?

I wanna make a nrf24 wireless communication but idk where to put the capacitor. I have nrf24 adapter.
No description

Cant Upload anything to my Pro trinket 5V/16Mhz

Hi All, can someone help me get my pro trinket to work? In my eyes i do everything correct but it looks like arduino is not uploading anything to it. 1. Trinket is listet in system manager, 2. Driver is installed on it. 3. Pro trinket 5V/16Mhz is selected in arduino 4.USBtinyISP is used as programmer....
No description

Help with Arduino Nano 33 Sense Rev2 connection

Hello Everyone, I am new to the world of TinyML and micro-controllers. I have bought a Arduino Nano BLE Sense 33 Rev2 board. Installed the Arduino IDE 2.3.6 (latest) software. Then I installed the Arduino Mbed OS Nano Boards drivers through the IDE. Restarted the IDE and connected my board using the USB-C cable to my Windows 11 laptop. When I go to Tools -> Port in the IDE, I see only COM4 and COM3 but no boards shown. The "yellow" LED on board is blinking so it seems the board is ready but Windows is not able to detect it. ...
No description

Arduino nano esp32 not getting detected

When I'm connecting the board to my laptop it connects for a brief second and then immediately disconnects. I have a project to complete but the esp32 get conencted to my laptop via usb. My Laptop even makes the usb connecting sound for a second and then makes the disconnecting sound almost immediately.😥

Help connecting a FS-N18 dual digital fiber optic amplifier

Trying to connect a fiber optic amplifier to my arduino uno, and I wanted it to read the digital input of the sensor and notify when something is in front. The sensor detects when something is in front correctly (indicated by the led on the sensor) but the arduino is having difficulties detecting this. Anyone have any guesses on how I can proceed? Also since the power supply for the sensor is 12v, I put a voltage divider in the circuit. Does that look correct (forgive me I am fairly new at this)?...

Finding Suitable Encoder for my DC Motor

Hi everyone, I'm working on a project where I'll have a DC motor spinning a flywheel at high RPM. To accurately control its speed, I want to attach an encoder to the motor. Here's information on the motor I'll be using: https://www.nbleisonmotor.com/RS-365-Dc-Micro-Motor-pd6003204.html. Initially I planned on using the AS5600 absolute magnetic encoder. Because the shaft of the motor is exposed on its back, I thought of designing a 3D-printed part that would mount the AS5600 so that the sensor is placed right below the spinning shaft. However, the encoder did not seem to pick up any readings, probably because the shaft of the motor is too weak of a magnet, or too small....
No description

3.5" TFT Screen ILI9488 shows only white

Hello! I am a rather beginner Arduino tinkerer and I recently bought a 3'5" TFT Screen ILI9488 4-wire SPI to play with bigger screens, I previously experimented successfully with SSD1306 screens. Upon wiring the TFT screen to a ATMEGA2560 (Elegoo Mega) board, the screen fills with white. When I upload a basic .ino example using the TFT built-in library from the Arduino IDE, the screen remains white and nothing seems to change....
No description

Inconsistent LED brightness

I have three LEDs which are each operated by an individual button and two sets of code, one that keeps LEDs on after being pressed and another that keeps LEDs on only if the button is held. Set up is the same in both pictures but the 2nd and 3rd LEDs are much dimmer in the "left on" version. I've been searching all over and haven't found anything on this issue. Anyone have any ideas on how to resolve this?
No description

Why does my stepper motor driver heat up to 90+°C?

I am building a rubic's cube algorithm teacher robot. For the rotational movement, I use Nema 17 stepper motors (17HE15-1504S) with DRV8825 drivers. These drivers tend to heat up to 90+°C, even with proper voltage reference set up. I am looking for help to find out if I messed up something with the wiring/ used mismatching parts or if I should just upgrade the heat sinks. I asked my original questin in #hardware-help but there were way too many replies, so I decided to tidy it up here in one place. Original question: https://discord.com/channels/420594746990526466/863150139206926347/1384146923132551369...

CNC Drawing Machine

Hey I followed DIY Machine’s CNC DRAWING MACHINE tutorial … However, I think it’s setup right but it doesn’t fully move like it should. I dunno if it’s the way I personally set it up or the hardware/plugins. I did the dupoint connectors myself and they are a bit wiggly but it still moves the X axis but I got no idea why it doen’t move the Z axis or Y axis. ...
No description