Questions tagged [arduino]
Be sure to use the Arduino Stack Exchange for questions that are more Arduino and less electronics.
9,008
questions
0
votes
0
answers
30
views
Problems with OCR1B on Atmega328p
Trying to control 4 servos (SG90) using 4 pots on an arduino nano and the one connected to OC1B keeps having problems, with bits of jittering and it just not moving correctly (occasionally spinning), ...
0
votes
0
answers
38
views
Unusual but consistent variation in alternate sensor analog readings
I have designed some sensors that take readings of timber resistance between 2 screws with the idea to determine if the timber is getting wet from a leak. I have had a trial setup running with 6 ...
0
votes
1
answer
83
views
How to read the output of a slot-type photomicrosensor with a MCU?
I am trying to use an optocoupler as an edge sensor (to restrict motion). I am using these ones: https://www.aliexpress.com/item/1005001921249243.html
Or same diagram here: https://assets.omron.eu/...
0
votes
1
answer
83
views
Homemade ESC on BLDC
I am trying to build an ESC from scratch and am currently facing issues, as the motor won't activate.
I am using an Arduino Uno and a 30V-5A supply voltage.
When plugging the supply voltage, it ...
0
votes
1
answer
101
views
How to keep the voltage of an LED constant while using a MOSFET as a switch?
I need help with a project involving an Arduino and a high-power LED. I am using a MOSFET as a switch to control the LED, with the gate of the MOSFET connected to the output of the Arduino. The ...
0
votes
1
answer
80
views
Active buzzer PNP transistor
I'm making a project with an Arduino using an active buzzer 5v. I saw many forums with mixed comments about using an active buzzer straight to the I/O pins without any current limiting. Then I also ...
-1
votes
1
answer
65
views
How to receive frame sent from balast using rx in dali protocol in arduino
I'm using this circuit
DALI RX is linked to an arduino.
I'm able to to see the frame using the oscilloscope.
I tried some codes but they didn't work.
...
1
vote
1
answer
94
views
Audio visualizer: What can I improve in this circuit?
Being a beginner in electronics, I embarked on designing and building a sound visualizer, turning bass, mid, and high frequencies into red, green, and blue light in an RGB LED strip.
I designed the ...
1
vote
0
answers
36
views
Seeking Review and Validation: Minimalist Arduino Mega Circuit Design
I've recently developed a minimalist circuit for the Arduino Mega with the intention of uploading the bootloader via SPI pins and utilizing a USB FTDI chip for programming.
Before proceeding further ...
1
vote
1
answer
61
views
ECG Monitoring with AD8232 ECG & ESP8266 in Ubidots
I want to try this project: https://how2electronics.com/iot-ecg-monitoring-ad8232-ecg-sensor-esp8266/
so I implemented the code in Arduino:
...
0
votes
1
answer
46
views
Heart Rate Monitor, replacing pulse sensor with ECG?
I'm completely new in this area, but I would like to try this project: https://iotdesignpro.com/projects/iot-heart-rate-monitor-project-using-arduino-and-esp8266
The only mismatch is that I have an ...
1
vote
4
answers
93
views
Trying to Build Basic IEPE Circuit: Facing issue with the Op-amp
I am building a simple IEPE Circuit for this IEPE Microphone but I am facing issues with the Op-amp. I have connected the signal output from 22uF capacitor to non-inverting configurated Op- amp ...
0
votes
0
answers
30
views
Differential Equation Classes for Arduino-Python Control
I am working with Python and an Arduino. I am trying to implement a control in continuous time, thus I need to create an approximation of the next step using numerical methods. I would like to ask if ...
4
votes
3
answers
599
views
Custom Arduino MEGA crashes ONLY on a specific command when plugging UART-USB converter before main power. Phantom power leaking through UARTs pins
Disclaimer
Based on multiple attempts to find the cause of the problem, I have determined that I might be facing a hardware issue rather than a programmatic failure, hence why I am posting this here ...
0
votes
1
answer
57
views
Battery powered IoT lightning sensor shielding
I have a low-power wireless solar powered IoT sensor that has a Geiger counter (400V SBM20 tube) on board and is controlled by ATmega328P, sitting outside. This set-up has been working great for ...
0
votes
0
answers
52
views
Verify the correctness of a circuit: AC to DC conversion for Arduino Nano and relays
I need your opinion about the correctness of my circuit. As is shown in the drawing schematic, the circuit is supplied by 220 VAC which will be converted to 12 VDC. This output is used to supply the ...
1
vote
2
answers
55
views
How can I prevent a 120VAC solenoid valve from resetting my ATMEGA328?
I'm using an ATMEGA328 running Arduino code to control a relay which uses a 5V signal to switch a 120 VAC solenoid. I added a flyback diode to the relay which fixed an earlier reset problem, but I'm ...
0
votes
0
answers
42
views
AT Commands for SARA-R510M8S (SARA-R5 evaluation kit)
I am using the SARA-R5 development board, specifically the SARA-R510M8S model (LTE + GNSS), with an Arduino Nano Every. My goal is to determine the GPS position and send its location via SMS, aiming ...
0
votes
1
answer
53
views
How to conveniently generate variable programming voltages (12V, 12.75V, 14V etc.) in an Arduino context?
I'm playing with EPROM/EEPROM's and I need various voltages. For one, EEPROM I need to be able to generate 5V, 12V and 14V at around 30 mA. Question is how I do that the easiest. I'm thinking I could ...
0
votes
1
answer
43
views
0
votes
0
answers
37
views
Sensor and motion system synchronization
Disclaimer: This is well outside of my field of knowledge. So please respond accordingly.
I am working on a project to measure hydrodynamic effects of a certain type of skin roughness in an open ...
0
votes
2
answers
127
views
WHY does the LED turn on SLOWLY?
TL;DR ver:
LED light controlled with Arduino lights up during an interval of 2 frames, not one in a video footage of 30 FPS. It slowly turns on... but why?
=====
I have a (mouse) behavioral experiment ...
2
votes
1
answer
90
views
Using a MOSFET to trigger the power button of a Raspberry Pi 5
I would like to trigger the new Raspberry Pi 5 power button from an Arduino.
My understanding is that, when pressed, the button connects GPIO #20 to the ground:
...
0
votes
1
answer
24
views
Can I link two stepper controllers and motors of different types to the same step signal outputs from a control board?
I need stepper motors of different amps and weights to mirror each other to +/- 5% total precision.
Can there be problems if I use the same step-signal pins from a control board towards two different ...
0
votes
2
answers
76
views
Extended IO registers handling in AVR using Assembly language
I want to program the ADC module of arduino Mega2560 using Assembly language (for simulation and learning),
I can initialise the ADC Module using Assembly and my program converts in the first ...
0
votes
0
answers
32
views
ESP32 monitoring highpower LEDs
I’d like some help with a small project I’m working on. I want to use an ESP32 to do two things:
-control dozens of HIGH POWER LEDs of this type: XLamp® XM LEDs Archives - Cree LED so that I can turn ...
0
votes
1
answer
51
views
I2C slave not ACKing with one MCU but ACKing to arduino Nano
I am trying to communicate with a cypress MCU (at 100kHz) that has been configured as I2C slave with adress 0x48. the document says the following.
Now when I send this adress from my Sinowealth MCU, ...
0
votes
0
answers
33
views
ADC(MC3208) Interface Circuit Design
I am currently designing a Multi-ADC PCB for use different sensors, I've researched a range of different sources and would like some clarification on a few things before I finalise my design.
I am ...
0
votes
2
answers
40
views
Interfacing Dual-Channel ADC with Arduino for Wireless Projects
I want to interface a dual-channel ADC (Analog Devices AD4632-16) with an Arduino that offers integrated wireless communication capabilities, such as Bluetooth, BLE, or Wi-Fi. I'm encountering a ...
0
votes
0
answers
48
views
Arduino circuit design help
Below is my current design for an Arduino project that contains a proximity limit switch and a relay to toggle on/off a small 12volt heater. All other components are very straightforward and are ...
0
votes
0
answers
108
views
High-speed counter for Arduino
I need to count electronic pulses that last around 3 ns with an amplitude of 1 V. They arrive at random times, with usually a separation of more than 100 ns.
The counted signal should not have a high ...
0
votes
0
answers
47
views
ESP8266 NodeMCU ESP relay control problem
I'm running into a problem trying to control a relay with ESP8266. The relay works I can manually apply power and hear it click when it turns on/off. I'm taking one of the digital outputs to control ...
0
votes
1
answer
105
views
TCA9548A I2C PCB Design issue
I am designing a PCB that connects to a 40pin header (similar to RPi HAT header) on an AAEON embedded computer. The computer has a SIO chip and an API that allows I2C communication from the device.
...
0
votes
0
answers
63
views
Voltage regulating circuit for high frequency signal
I have a running circuit with an AD9833 to generate a sine wave with a desired frequency and phase, now I also want to digitally (not just a mechanical potentiometer) control the amplitude. The output ...
0
votes
0
answers
43
views
Why is pull-down resistor on low-pulse triggered relay input not working?
I have a low-pulse triggered latching relay board (datasheet for individual relays, link to board). Whenever I plug-in, or un-plug my Arduino Nano's USB cable the relay changes state (sometimes ...
2
votes
3
answers
326
views
Controlling button press on key fob using microcontroller
I have a battery-powered fob remote, and I want to convert it from being operated via a manual button press to being controlled by a microcontroller.
The fob looks like this:
After making some ...
0
votes
0
answers
16
views
ESP32 not connecting
I just connected my brand new Hiletgo ESP 32 to my computer, and installed the esp32 library from espressif systems. However, under the "select board and port" section of the Arduino IDE, it ...
0
votes
1
answer
74
views
Arduino Bi-stable solenoid valve
I'm making a bi-stable solenoid valve with the help of an Arduino and a motor controller module (MX1508/MX1616). I saw many instructions about motor controller with PWM speed etc, but didn't see any ...
-1
votes
2
answers
118
views
Why I am getting wrong mA on Tinkercad?
I am trying out TinkerCAD and I am using an Arduino.
When I light up my led it says, "Current trough led is 26.1 mA while recommended is 20 mA."
But according to Ohm's law it should be ...
0
votes
1
answer
37
views
Remapping PD1 to be a GPIO STM32Duino
I would like to remap the PD1 PD1-OSC_OUT pin on the STM32F103C8 running arduino framework.
Originally on bluepill these pins ...
0
votes
0
answers
64
views
Switching 12V 50A with Arduino
I'm in the middle of building a DIY Powerstation with a 500W modified sine wave inverter. The battery is of type LiFePo4 and rated at 12.8 50Ah. The datasheet of the battery states that they recommend ...
0
votes
1
answer
58
views
OLED Libraries interfere with PD6 port manipulation in Atmega328PB
I stumble across an issue which I can't solve in multiple attempts.
I'm trying to turn on and turn off an OLED SSD1306 display attached to the hardware I2C on Atmega328PB. The device has button on PD3 ...
1
vote
1
answer
39
views
Cannot communicate with MPU-6050 module
I have a custom PCBA (nano shield) with the MPU-6050 accelerometer. The schematic is shown below.
I am able to see the device on I2C, but am not able to communicate with the device whatever library I ...
1
vote
1
answer
53
views
Manipulating EEPROM in AVR using assembly programming
In the following video(at 10min):
https://www.youtube.com/watch?v=YELGX5XDCiY&list=PLgwJf8NK-2e55CdbY_WnY6pejPHoojCkJ&index=18
The microcontroller used in the video series is ATmega32.
Let's ...
0
votes
1
answer
72
views
OV7670 QQVGA RGB565 config
Does anybody has register configuration for OV7670 QQVGA RGB565?
I found this but I'm not sure that it gives QQVGA resoltuion.
...
0
votes
0
answers
33
views
Powering BLDC motor with 20V 2.5A battery
I have a Pichler Boost 20 motor. Max power load is at 25A/30s, recommended batteries are LiPo 7V or 11V. However, I'm generally against using LiPo batteries. I have however multiple batteries ...
1
vote
0
answers
95
views
Can I use a handheld spectrophotometer to calibrate my TCS3200-based fluid color assessment system?
I'm trying to build a system that measures color and turbidity within the tube that exits a patient's brain. Using a TCS3200 sensor and an Arduino micro, and a custom-made housing to ensure a dark ...
0
votes
1
answer
94
views
Is there an RTC with alarms I can use without an Arduino/microcontroller?
I have a simple project planned for which the electronics component boils down to a clock unit triggering a 555 timer twice a day. The DS3231 seems perfect for this but seemingly requires including a ...
2
votes
2
answers
562
views
Can I cascade two different shift register?
I would like to drive multiple nixie tubes using shift register. I wonder that can I cascade two different shift registers to control them using arduino or another MCU? My plan is to connect DATA OUT ...
0
votes
2
answers
54
views
ADC interrupt flag in ATmega2560
If we look to datasheet of ATmega2560
https://ww1.microchip.com/downloads/en/devicedoc/atmel-2549-8-bit-avr-microcontroller-atmega640-1280-1281-2560-2561_datasheet.pdf
In the ADC Section, page 285, it ...