Questions tagged [arduino]
Be sure to use the Arduino Stack Exchange for questions that are more Arduino and less electronics.
8,475
questions
0
votes
1
answer
22
views
ILI9341 TFT display in XIAO ESP32 Seeeduino MISO issue
I am using a XIAO ESP32 Seeeduino with an ILI9341 TFT display that is working great. The touch screen is also working well.
The problem is that I have to disconnect the MISO connection every time I ...
1
vote
1
answer
64
views
LED still on when transistor is closed with Arduino
When simulating the following circuit, there is no problem. However, when I do it in real life, with a BC558 transistor, the LED stays on even when the Arduino is not sending any voltage.
The resistor ...
0
votes
0
answers
40
views
Factory 32U4 burning bootloader problem
I have a design utilizing the 32U4 and when I burn the bootloader on a factory fresh chip, it reports success but a problem occurs when I try to connect via a USB cable. My Win10 machine reports ...
2
votes
2
answers
254
views
Help with MOSFETs to switch sensor on and off
I have a question, I have noticed similar solution for voltage divider to measure voltage on battery with ESP32 using one pin to enable the divider and have it otherwise off the voltage to save power. ...
6
votes
9
answers
2k
views
How can I connect multiple potentiometers (~20) to my Arduino without having to have 20 analogue pins?
I'm trying to build a MIDI controller and I'm looking for a clever way of using 20 potentiometers without having to have 20 analogue ports on the Arduino. So far all the functionality I need is for ...
0
votes
1
answer
20
views
How can I switch from PWM output on an STM32 to logic 1 output?
I am generating PWM on the TIM1C3 channel of an STM32 Bluepill board. A switch is connected to the system and when the switch is in the set position, I want the PWM production of TIM1C3 to stop and ...
0
votes
0
answers
34
views
Measuring AC motor load with CT clamp
I am trying to measure the load in an AC induction motor with a current clamp and ADC. When using a clamp multimeter I get a value of 3.6 A when the 5.5 kW three-phase motor is running without load.
...
1
vote
2
answers
135
views
How to improve ADC reading accuracy from 1mV to 0.1mV or better
I want to read a DC voltage from a battery with 0.1mV resolution or better and send the value to a PLC based in Arduino Mega. I selected an ADS1115 (datasheet here) which has enough resolution to do ...
2
votes
1
answer
192
views
Is reading multiple buttons presses with ATtiny analog input a reliable method?
I need to read the input from 8 different push buttons on an ATtiny microcontroller.
After researching how to do this with the least number of pins, I found out about using a voltage divider with ...
10
votes
4
answers
1k
views
How to design a schematic and PCB for an ADC using separated grounds
I want to measure a DC voltage with very high resolution (uV) and send the value to a PLC (based on an Arduino Mega.)
Initially I selected an ADS1115, but I got some power noise due to loop currents (...
1
vote
2
answers
34
views
How to put MCP3008 into sleep mode
I am using an MCP3008 ADC connected to a Seeed Studio Xiao nRF52840.
I am using the adafruit library #include <Adafruit_MCP3008.h>
It operates as expected, ...
0
votes
0
answers
13
views
Getting error while compiling LUFA bootloader
I am building the LUFA bootloader (lufa-LUFA-210130.zip file downloaded from here). I am getting the following error when I use make all:
...
1
vote
1
answer
35
views
MPU6050 ESP32 No Acknowledge
I am struggling to get an acknowledge from the MPU6050 using ESP32 with arduino framework. I am unable to derive if the problem is hardware or firmware.
I have copied the sparkfun's breakout board ...
0
votes
0
answers
39
views
The interaction between the encoder and the servo Arduino Uno
Why when the turn occurs in the + direction, it is also read -. Assignment: reading of the encoder occurs with a period of 100 mc, when the encoder rotation is detected the servo also rotates by 2 ...
0
votes
1
answer
61
views
Newly purchased DS1302 IC not working
I want to add a RTC in my own custom PCB using a DS1302 IC. I am using the Arduino IDE and an ESP32 controller.
I made a PCB and tried to run it but it failed to read data from the RTC. Just to make ...
1
vote
1
answer
56
views
Split supply virtual ground questions
I'm trying to make a simple op-amp inverting amplifier. If I assume I have a split-supply, everything works fine, but I'm very confused about how split supply designs can actually work in the real ...
1
vote
0
answers
46
views
Controlling several gear motors with encoders from one Arduino
I am working on a project making a robotic hand that uses several (around 20) gear motors with encoders. I'm using this dual motor driver to drive the motors. The motors are paired into ten sets of ...
0
votes
0
answers
62
views
Inaccurate measurement double load cell circuit
I’m building a circuit with two load cells and I have some issues getting accurate measurements. At first I just soldered the load cells onto the load cell amplifier but as the connections seemed bad ...
0
votes
2
answers
56
views
Potentiometer smoothing 1µF capacitor placement
I am working between an Arduino and an external machine. I am using b10k potentiometers.
What's the correct placement? A, B, C or does it really matter?
There will be a ground plane in place so I am ...
0
votes
1
answer
80
views
Arduino freezing when I2C device loses power
I'm looking for a way to prevent my Arduino Nano from freezing when my I2C device (TBP-H08) loses power.
I have error handling built into the program and if the SDA or SCL lines are disconnected the ...
1
vote
2
answers
110
views
Powering a negative resistance converter with an Arduino power pin
I want to build a negative resistance converter and the only voltage source I have is a 5 V Arduino power pin.
I am afraid the reverse current (Is) flowing through the power pin will destroy my ...
0
votes
0
answers
82
views
How to make an ESP32 S2 not lose USB connection after uploading?
I am using an ESP32 S2 Mini, and I'm running into this problem:
I put the unit into the "flash" state, by pressing the "0" and "RST" buttons. Doing this establishes the ...
1
vote
0
answers
59
views
How to generate 3 pulses of varying lengths with an FPGA and Verilog?
I am trying to generate 3 pulses of 2 different lengths at specific times using an Arduino MKR Vidor 4000 which has an Intel Cyclone 10 on board.
I need to generate one pulse with 5 µs length followed ...
0
votes
1
answer
42
views
Reading potentiometer value in high voltage circuit externally
I want to be able to read the value of a potentiometer in an existing high-voltage circuit externally with a microcontroller, but am concerned how the existing circuit would affect the Arduino and ...
1
vote
3
answers
143
views
MOSFET died when not using a common ground for gate and source
I made the following circuit to drive a 12 VDC motor with an IRFI540G MOSFET.
My first plan was to use a cheap Chinese DC/DC buck converter to power my Arduino from 12 V, but after a couple of minutes ...
0
votes
1
answer
30
views
Using an ESP32 with a load cell with 5 V recommended excitation voltage
I am making an IoT device using an ESP32 that powers a load cell with 5 V recommended excitation voltage. I know the ESP32 output is 3.3 V, but I need it to be 5 V. Is there a way to do this with a ...
2
votes
2
answers
58
views
0-2 A current control from Arduino using MOSFET
I have to control an electromagnet with a current from 0-2 A and I'm stuck in figuring out the right way to do it. I want to use the output of an Arduino (0-5 V). The coils of the magnet have a ...
0
votes
1
answer
55
views
AC dimmer / ESP32-Wroom32d
I am making Leading Edge AC dimmer with ESP32-Wroom32d. I have problem with esp timer intterupts.
So I want to create a delay after zero-crossing(z.c.) (7ms) and then turn on Ac Pump and leave it on ...
1
vote
3
answers
1k
views
How do PCB trace width calculators work? Why is it asking me to input the width of it?
I need to calculate the minimum trace width on my PCB for around 25 amperes (a few steppers.) When I go to a calculator, it asks me for its thickness. Here's one from Digikey, and another from 4pcb. ...
0
votes
0
answers
28
views
ACS712 connected to MCP3008 ADC
I try to measure my ACS712(5A) with an MCP3008 with very limited success to wrong fluctuating values.
Both ACS and ADC are powered with the same 5v power (MP1584 breadboard) and output of the ACS is ...
0
votes
0
answers
29
views
Pico's I2C blocking 1ms
I am using Raspberry pi pico on Arduino ide. I am using Earle's I2C library here . I want to collect microphone data in analog and adxl345 data. I want to write these datas on sd card. So I wrote a ...
0
votes
1
answer
38
views
Measure 12 VDC motor safely with an IC and a voltage divider
I have a project with 16 DC linear actuators. They are all 12 V and use up to 5 A when in collision with each other or when they just reach their course limit (either up or down), and just about 1 to ...
0
votes
1
answer
86
views
Can I use solder terminals on a PCB to power multiple AC devices?
What's the most practical way to merge multiple AC Devices into one single cable?
I thought aboit it, and what if I solder multiple screw terminals on a PCB, fix them tight, attach a 50A AC fuse for ...
0
votes
2
answers
53
views
Programming an 8051 MCU (Topro TP2808)
I have this 8051:
I have acquired an it from an old device and I want to program it. I have experience with AVR, ESP, and STM microcontrollers, but not with 8051's. Googling info about this DIP IC, I'...
0
votes
1
answer
79
views
12V battery through a transistor then pump not working
I connected 12V to pump and to a transistor then connnected all of them to an Arduino:
It did not turn on.
I used this program:
...
0
votes
1
answer
54
views
Convert Arduino Code to STM32 cubeide, [closed]
I giving paramter setting of LoRa module which is e32 433t20d over the Arduino Nano with ebyte RF setting software. With this code Arduino work as middleman. I want to use same code with stm32. How to ...
3
votes
1
answer
347
views
Is this the correct way of making a non-inverting optocoupler?
Requires to read 24 V input signal, and output to an Arduino as 1, at the same time it lights up the LED indicator. Is this circuit viable?
0
votes
1
answer
57
views
Can I use a large capacitor to boost the current of a circuit for a short period?
I'm working on an RPi-Pico (Adafruit Feather RP2040) project that runs off of computer USB power (5V/500mA-1A).
I need to simultaneously move 3 motors that run at 6V-8V/250mA, but only for ...
0
votes
0
answers
49
views
Modifying code for 61-key to 49-key keybed matrix
I'm currently working on a DIY music keyboard project and I have a newbie question as I've gotten stuck in the process and my electronics knowledge doesn't extend past some basic Arduino blink ...
0
votes
1
answer
102
views
Custom RP2040 board detection and uploading issues
I have designed and tested a custom RP2040 board for simple GPIO ON/OFF functioning and everything worked just fine.
Now, we have ordered 30 more of the same circuits (with same design and components)....
0
votes
0
answers
47
views
Two microcontrollers outputs signal into single input pin (of a motor controller)
I built a system where a motor controller takes input from seeduino Xiao. It opens/close gate. I want to upgrade the system and preserve what is already working.
I have second microcontroller with ...
1
vote
0
answers
53
views
Arduino 3.5mm jack output
I am trying to connect general speaker as an output to an Arduino Nano and play some tone.
My vision is:
will connect:
Arduino D8 (digital) output pin to left and right channel
GND to GND
in code, ...
0
votes
0
answers
47
views
Trigger 555 with Arduino
I need to use a 555 timer to generate a delayed pulse when Arduino triggers the timer itself. Anyway I am not sure if this can be done this way: I would connect the 555 timer’s pin 2 to an Arduino’s ...
1
vote
1
answer
43
views
Arduino Uno Wifi rev 2 connected to DC 5V led strip (5V analog drops to sub 3V on LED connection)
I have an Arduino Uno Wifi rev 2 board that is powered through the Vin and ground with a 9V supply.
Then I have a 5V USB LED strip (that uses a positive and negative pole) that is connected directly ...
0
votes
0
answers
65
views
NodeMCU / ESP8266 died
I created the attached circuit. It's about as simple as it gets, 4 buttons (2 low since GPIO pins are pulled up, and 2 high or low depending on whether they're pressed), a stepper motor controller, ...
1
vote
2
answers
97
views
Using two lithium-ion batteries to power three separate components with buck converters [closed]
I'm trying to use two 7.4 V two lihtium-ion bateries connected in series to power an Arduino Due, a Buslinker, and two L298N motor drivers.
In series, the total voltage would be 14.8 V.
The 14.8 V ...
0
votes
0
answers
30
views
Implementing a digital controller in the time domain
I have simulated a digital control system in the Z domain using MATLAB and I have got satisfactory results. However, when I converted the plant and the digital controller to difference equations and ...
0
votes
0
answers
44
views
SD card initialize after some minute it fails
I am using raspberry pi pico with Arduino-IDE. I need to record analog microphone datas and accelerometer data. Raspberry pi pico has 2 core so I decided to use core 1 with microphone and core 2 with ...
1
vote
0
answers
48
views
Custom Arduino with CH340 not showing up as USB device
I just had some custom Arduinos manufactured, and it's the first time I've included a USB controller, CH340. I'm able to flash the bootloader to the Atmega2560 over ICSP, so the AVR is fine. However ...
0
votes
1
answer
59
views
Powering long LED strip
I am currently working on an Arduino project and I want the Arduino to control a 5-meter long LED strip, which (as the producer said) needs 18 A and 5 V.
My chosen cable is this one.
I heard a lot of ...