Questions tagged [arduino]
Be sure to use the Arduino Stack Exchange for questions that are more Arduino and less electronics.
9,008
questions
1
vote
1
answer
268
views
Sensing NES controller plugged in with Arduino
The NES controller is a simple parallel-in-serial-out chip with clock, latch and data pins exposed, as well as 5 V and GND through its connector.
The thing is (and I already researched but I haven't ...
1
vote
1
answer
463
views
How do I prevent my WS2812 (NeoPixel) LEDs from drawing power parasitically through data line of Arduino?
I plan to power some WS2812 NeoPixel LEDs via an external 5 V wall adapter and use an Arduino Nano for data only, but Adafruit (NeoPixel vendor) mentions:
If powering the pixels with a separate ...
1
vote
3
answers
112
views
Necessary components for a basic I2C circuit
I am trying to build a simple circuit to read from a pressure sensor using an Arduino Micro.
I looked at the datasheet and have a breadboard circuit which can be schematised as:
I know this isn't the ...
-1
votes
1
answer
222
views
Flash memory corruption possible reasons?
I am working with an external Serial Flash memory (Winbond 25Q80). I could read-erase-write the flash memory using SerialFlash library in arduino environment. But it seems data of flash memory gets ...
0
votes
0
answers
27
views
ATTiny85 has 8kB memory, Arduino compiler says sketch space is 2kB. Why? [migrated]
I am using an ATTiny85 with 8kB memory and trying to get my code onto the chip using the Arduino IDE with Arduino Uno.
I am getting the following error:
Sketch uses 2444 bytes (119%) of program ...
0
votes
1
answer
75
views
How do I produce an analog output from an Arduino Mega and connect it to a PLC's analog input card? PWM and LM6211 Op-amp or arduino module? [closed]
I want to produce a linear output from an Arduino Mega that will be read by a PLC.
Here’s the setup: I use the Arduino to control a 24V sensor through the MAX31915 evaluation kit, which translates the ...
0
votes
2
answers
140
views
Duplicating fuel and oil sender resistances
I have a generator I would like to add remote fuel level and oil pressure displays to. The senders feed into a DGC-2000.
My original idea was to plug the existing oil and fuel signals into an Arduino, ...
1
vote
1
answer
208
views
ESD protection and MOS driver concerns for H-bridge
I have been working on a H-bridge design that controls a 12V motor to rotate forwards or backwards at an adjustable speed using PWM from an Arduino. The motion starts slow and increases to max speed ...
1
vote
1
answer
211
views
Change operational mode of CAN transceiver
I have two MCP2515 stand-alone CAN controllers with an SPI interface, two TJA1042 CAN transceivers, and two Arduino Uno boards. As you may know, TJA1042 has two operational modes:
sleep mode
normal ...
0
votes
3
answers
190
views
Issues with MOSFET module
This first MOSFET switch burn out if I run the pump more than 10 seconds.
The output of MOSFET connected to 1100gph bilge pump. The power source of MOSFET connected to battery 7 Ah. Anyone who has ...
1
vote
1
answer
4k
views
Proteus failing to load .elf file for arduino simulation?
I've been writing code for an alarm clock based on the Arduino Uno, and then uploading it to a simulation in Proteus to test it out. Everything was working perfectly until I decided to try changing ...
1
vote
1
answer
490
views
USB data and power cable with switch to power Arduino. Is it a safe design?
I have some projects with Arduino and a separate battery power source and I'm tired of plugging and un-plugging my usb cable when to program the arduino using my laptop USB. Sometimes it even broke ...
1
vote
2
answers
144
views
Nema34 stepper motor heating
We are using a Nema 34 stepper motor driving it using Leadshine M542 driver and arduino UNO.
24 V voltage and 4.2 A peak current being given.
Our motor lifts a metal frame for about a minute (it has ...
0
votes
2
answers
696
views
Trying to measure individual voltages of two battery cells connected in series using voltage sensors and Arduino
I am trying to use two voltage sensors connected to an Arduino Uno to measure the individual voltages of two battery cells connected in series.
When I connect a sensor with only one cell, it gives the ...
5
votes
3
answers
392
views
Why do some WS2813 LED strips shift/randomize colors?
The Problem
I have a project using multiple WS2813 LED strips, one variant which uses a white PCB and one that uses a black PCB. When setting the colors of these LED strips multiple times, I noticed ...
58
votes
7
answers
98k
views
How can I get my atmega328 to run for a year on batteries?
Scenario
I have created a nice electronic door lock for my dorm room. It is currently an Arduino Diecimila with a servo [un]locking the door. It has a numerical keypad with 3x4 buttons and 5 LED's (2 ...
0
votes
1
answer
209
views
Control of External Power Source with Arduino
Please pardon my ignorance, I'm still trying to wrap my head around this problem. I have built a circuit that will allow me to control distribution of voltage from a single external power supply to ...
1
vote
1
answer
53
views
Getting 0 output at ADC: Arduino Nano with MPX pressure sensor circuit
I have made a circuit for a pressure sensor, wherein I have connected an MPX5700 pressure sensor output to the A0 pin of an ADS1115 ADC, which is connected through an I2C interface to an Arduino Nano.
...
2
votes
1
answer
147
views
Voltage shifter 0-30VDC
I am required to generate and measure squared signal (PWM like). I should cover a 0-30VDC amplitude. High level of the signal is 30 VDC, low level is 0VDC. The bandwith to be covered is 0-20kHz. I ...
1
vote
1
answer
248
views
Interface self-powered sensor with Particle Photon using 4-20 mA current receiver
Is it possible to use 4-20 mA self-powered sensors using current receivers? If not, then what will be the best way to use these sensors and interface with Particle Photon to monitor the readings?
Note:...
0
votes
2
answers
744
views
XGZP6847A Pressure Sensor Modul
hey guys I'm trying to measure the pressure of a vacuum pump using the XGZP6847A pressure sensor I need the pressure to be around -95kpa 1: https://www.micros.com.pl/mediaserver/...
0
votes
1
answer
116
views
Why won’t this circuit work when powered via a DC adapter?
This circuit uses an Arduino Nano and a DFRobot DFPlayer Mini to read from two load cells and then play some audio and turn on some LEDs when the weights match a specific criteria.
This works well ...
0
votes
1
answer
227
views
Using pressure transducers and air pumps with arduino
I am trying to create an pneumatic system where the Arduino board can both pump air and work as a vacuum. I am confused as to what exactly an pressure transducer can do. As far as I know, a transducer ...
0
votes
1
answer
141
views
Common anode RGB LED lights going out one color at a time
I have a project involving 4 reed switches and an RGB LED. They are all connected to an Arduino and the code basically says each time a magnet touches a reed switch it lights up with a specific color. ...
2
votes
3
answers
9k
views
ESP32 classic Bluetooth set password
I am using the ESP32 classic Bluetooth feature for data transfer.
I am using the SerialToSerialBT example.
I am able to scan and discover the Bluetooth device from my smartphone, but the pairing is ...
0
votes
2
answers
97
views
How do I make my circuit diagram look better? Or is it wrong?
This is my first time making a circuit diagram with this many components. Any advice on how I can make it more organized or look better? The wiring looks wire to me but I'm not sure if it looks wrong.
...
0
votes
1
answer
36
views
Which Arduino pin is giving gnd to the bus rail on a PCB?
I'm using a protoshield v2 for my Arduino Uno R3 project and I'm a little confused on how the bus rails works.
So I understand that the 5V pin from the Arduino is giving 5V to the 5V bus rail on the ...
-2
votes
4
answers
144
views
How to reduce the current of a battery with an unknown maximum amperage
I'm currently trying to heat a wire to a certain temperature and tests showed that the amperage needed is in the range of 3-4 A.
However, I'm having a problem with how to supply such current to the ...
2
votes
2
answers
103
views
Simple UPS for Microcontroller
Without regard to protection from draining the battery, for example if power outages were only a few seconds, can anyone see any problems with this simple design for supplying a low demand ...
0
votes
1
answer
57
views
ST7735 1.44" SPI TFT GreenTab: white lines/ghosting (no hardware fault!)
I have been using SPI-TFTs for a while now, usually the 1.8 inch 160x128 also with ST7735 controller. No problems.
I bought multiple 1.44" ST7735 square 128x128 TFTs over the last year. Today I ...
3
votes
4
answers
13k
views
Is it good to wire WS2813 LED strip DI and BI together?
I have so far only worked with WS2812 strips and understood, that the WS2813 have a backup data line. But how do I connect the first LED to my Arduino (acts as a controller)?
Many tutorials said I ...
0
votes
0
answers
34
views
Load cell And Pressure sensor relaxing issue
I have a question about load cell and pressure sensors. I have modified a brake pedal from AliExpress, the Sim Jack Pro pedals to be exact. The issue is when I press and hold the pedal the analog ...
0
votes
1
answer
142
views
Issues with I2C from MCP23017on Arduino
I am trying to use the MCP23017 expander chip with a Metro Mini by Adafruit (pinout below) and I can't get the microcontroller to connect reliably via I2C.
update
I connected the RESET pin to 5V and ...
1
vote
1
answer
45
views
Problem with an Arduino DC motor controllable circuit
I am a material science student currently working on a project to build a simple circuit for controlling the speed of a DC motor. My goal is to avoid using motor driver modules by utilizing a MOSFET, ...
0
votes
0
answers
50
views
Load cell value becomes negative when above certain force
I have a 100 gram load cell with the hx711 amplifier board. I have it wired up to an arduino nano with an NRF24L01 module to send the raw value to another arduino nano.
The problem is that when I aply ...
2
votes
2
answers
94
views
Information needed about Atmega8 development board
This is the image of the dev board consisting of an Atmega8-16PI chip and an L293D motor driver chips .It was was given to me by a friend and I am really curious on how to use it but I didn't find any ...
0
votes
1
answer
141
views
Arduino transistor switch
I'm building an Arduino switch for two different signals and I'd be very grateful if you can revise the schematic and tell me if there's something wrong or if something can be improved.
In the ...
1
vote
2
answers
494
views
Combining interrupts and debouncing on a keypad
I would like to interrupt a program when a key is pressed on a keypad, and figure out which key has been pressed. I do not care much for ghosting effects, this is supposed to be operated with one ...
9
votes
6
answers
2k
views
One IO to control two LEDs. When one is lit, the other is not
I am currentlly running out of IO ports on my Arduino board. Yes, I also have several IO extendor boards. The constraint isn't the number of IO ports, it's the wiring to the remote 'Station' via ...
1
vote
1
answer
416
views
Input matrix with reed switches
I'm about to buy components for my first Arduino project: Reed contacts for my model railroad (H0 scale) to detect track usage. I don't want to use special shields, but use as few components as ...
1
vote
3
answers
3k
views
Nixie Tube driver ICs keep dying
I really need a hand here. I am trying to control an IN-19B nixie tube with an Arduino UNO. I am using a 170v power supply with a 20K resistor on the anode and the k155id1 driver IC. I have got things ...
0
votes
0
answers
9
views
SD Card Writer Attached to ATmega328P Not Working Despite Success Using Arduino Uno [migrated]
I've designed a custom circuit board using an ATmega328P, which I intend to use for writing data to an SD card via a reader/writer module. When I initially tested the SD card reader/writer with an ...
-1
votes
1
answer
136
views
Arduino Lipo Battery Voltage Reading
I would like to read the voltage of a Lipo 4s battery with an arduino.
The arduino can only support 5V in input, so I made a shematic of my voltage divide.
Can you tell me if it is correct ?
...
0
votes
2
answers
253
views
ATmega328p TQFP basic PCB
Is there an error in the basic schematic and PCB drawing of the Arduino?
1
vote
1
answer
362
views
Li-ion battery solar powered circuit
I am currently working on a solar-powered project but I am having a hard time making it work.
I have a PCB with an Arduino and a sensor, this circuit consumes 250 mA for around 2 seconds every 10 ...
0
votes
1
answer
57
views
Understanding pinout of of motorised potentiometer (PRM 50KB-4)
I have a motorized potentiometer, labeled Z PRM 50KB-4
I believe I have found a datasheet for the component which contains the following diagram:
If I want to use the component as a voltage divider (...
0
votes
2
answers
1k
views
Arduino solar panel watt meter values reading 0's
I've been building a Arduino Watt meter for the past few weeks for a solar panel, and have successfully measured voltage and current separately. However I need to know both to calculate watts but can'...
0
votes
1
answer
67
views
Music player via ESP32
I have a music player via an ESP32 and an SD card module
Structure:
SD card module (with the .wav files) -> ESP32
ESP32 pin 26 to Audio amplifier module LM386 IN (with 10µF capacitor between IN and ...
8
votes
4
answers
5k
views
28C64 EEPROM Programming Using Arduino
I am working on a Z80 computer and needed to write data to an EEPROM. I am using the Xicor 28C64AP-25 chip (datasheet). I wrote a program for the Arduino Uno that writes data to the first 4 addresses ...
1
vote
2
answers
607
views
HC-SR04 distance sensor trigger signal on 2.5 V voltage level gives no reading
I am using an Arduino on a breadboard setup with an ATMEGA328p MCU. The whole circuit is designed to work in a low-power state and is powered using a 3 V (nominal) Coin Cell.
The HC-SR04 is getting a ...