Questions tagged [arduino]

Be sure to use the Arduino Stack Exchange for questions that are more Arduino and less electronics.

Filter by
Sorted by
Tagged with
0 votes
1 answer
36 views

Interfacing an NRG 40C anemometer to an Arduino

This diagram illustrates interfacing an NRG 40C anemometer to an Arduino: "NRG 40C Anemometer Arduino circuit" I hope that someone has an alternative circuit or interface design to help me ...
3 votes
3 answers
607 views

Is it possible to change Arduino Nano sine wave frequency without using PWM? [closed]

I have a program that generates a sine wave (array with predefined 8 bit values) on an Arduino Nano. ...
0 votes
1 answer
32 views

Confused regarding PCA9685 registers

I'm trying to implement a minimal PCA9685 driver in C using Linux's built-in I2C API, and am reading the datasheet and the Arduino library's implementation of setting the PWM values. I have come ...
0 votes
1 answer
140 views

How to use TVS diode for Overvoltage Protection while powering Arduino on Vin Pin?

I am trying to make a protection circuit for Arduino nano to protecting overvoltage. Normally if I powering "Clone" arduino NANO with 12 Volt, Arduino nano is starting to smoke. So I've ...
  • 1,029
0 votes
0 answers
52 views

How to implement the clock-signal requirements for the MAX291EPA+ with an Arduino Nano Every?

The following text is an excerpt from the datasheet for the MAX291EPA+ an 8th-Order, Lowpass, Switched-Capacitor Filter. The MAX291/MAX292/MAX295/MAX296 maximum recommended clock frequency is 2.5MHz, ...
0 votes
1 answer
83 views

Current output capacities of Arduino Nano and STM32 Blue Pill

I am planning to try out STM32 blue pill and black pill to replace my Arduino Nano. I learnt here that Nano has a maximum current output of 800mA, I would like to know what is the maximum current ...
0 votes
3 answers
268 views

MPU 6050 reading goes erratic when it has small vibrations

Arduino code below shows how to get the angle values from MPU6050 gyroscope sensor. This works extremely well when there is no vibration. However, if there is vibration coming from dc motors, the ...
1 vote
1 answer
86 views

Is it better to have one computer do everything or have a computer and a microcontroller for servos? [closed]

I am debating whether it is a good idea to offload the 12 servos I plan on having in my project onto an Arduino rather than on the Raspberry Pi. I am planning on using the Adafruit 16-Channel 12-bit ...
  • 55
0 votes
1 answer
92 views

NPN transistors, LED strip and Arduino

I'm trying to control an LED-strip with an Arduino like an 8x8 matrix with a common anode (pic 1). I put 2 NPN-transistors in the circuit and a LED-strip between them. The first transistors in pic 2 ...
1 vote
0 answers
79 views

PID to balance a single-propeller pendulum

Dear all, I have my setup in the image which uses micro DC brushless motor instead of the 3-phase motor shown in this video, may I know what modifications should I make to the author's PID arduino ...
1 vote
0 answers
132 views

MotionKing 17H2A Stepper Motor with BigEasy Driver not working. Making noise, but not turning!

I'm trying to make the MotionKing 17H2A stepper motor to work with my BigEasy driver and Arduino Feather 32u4 LoRa. It's just making some noise, and not turning around. This is the diagram for the ...
0 votes
1 answer
65 views

Reading ACS71020 over I2C gives choppy and inaccurate data

I am programming ATtiny414 which read current, power and detect zero-crossing. For Test, I connect 220V 72W light bulb but I can't read accurate value. Also I observe zero-crossing pin and it is ...
  • 1
0 votes
1 answer
83 views

Audio processing from Arduino

The project is to design a device with multiple audio inputs and multiple audio outputs. The device should be capable to map input and output audio channels. Output almost same as the input. At what ...
  • 11
0 votes
2 answers
174 views

Why don't Arduinos have a fuse on the Vin pin?

I am designing a PCB for an Arduino Nano. I want to protect the Nano from over current and high voltage. In the schematic of the Nano, there is only one fuse at USB Vcc at Arduino Nano Rev3. No clone ...
  • 1,029
0 votes
1 answer
130 views

How to circuit IRL540N logic level MOSFET

I just want to test switching my 12V 3A pump and 12V 1A solenoid valve via IRL540, and was not sure about the circuit. Below is the circuit I am planning modification to. I read here on the forum ...
0 votes
0 answers
45 views

SparkFun BMP581 sensor is not working with an Adafruit with a TCA9548a multiplexer - Arduino

I am trying to get a SparkFun BMP581 sensor to work with an Adafruit TCA9548a multiplexer. The BMP581 works when it is not connected to the TCA. The inverse happens when the they are connected. Code w/...
0 votes
1 answer
36 views

Connecting MCP4725 Digital-Analog-Converter to "VDD" on Arduino

I have a humidity sensor that outputs humidity to my Arduino Uno. In order to send this value to my DAQ system, I am using an Adafruit MCP4725 Digital-analog converter(DAC), which turns the humidity ...
-1 votes
2 answers
103 views

Do logic-level MOSFETs achieve galvanic isolation?

I tried using transistors (TIP122) before in my Arduino circuits to run motors and solenoids, but the analog input from a sensor would shift by many ADC values. To sort that out I chose to use relay ...
2 votes
1 answer
152 views

What is the voltage output from STM32 BluePill Digital I/O pins?

I am planning to use logic level MOSFET IRL540 as a replacement for my 5V 1 channel relay module to protect my Arduino pro micro from current requirements of the relay module. I would also like to use ...
0 votes
1 answer
100 views

How I can read a 5 V input state correctly with an Arduino?

I want to read the output of a PLC with an Arduino. If the PLC sends a HIGH (5 V) on a OUTPIN, the Arduino should read this HIGH, else LOW. I am generally using this code for this: ...
  • 1,029
1 vote
1 answer
255 views

Reading 100s photodetectors

I'm trying to measure light intensity at a lot of points in a project. I have about 250 photo detectors (BPX 65). When I had just 1, I tried connecting it to an Arduino board. But I'm not sure, what ...
0 votes
0 answers
30 views

How to add power switch to Adafruit Feather32?

I have an Adafruit HUZZAH32 ESP32 board, a battery and an on/off switch. I'd like to connect them in such a way that all of the following are satisfied: Switch turns the board on/off Board is powered ...
1 vote
2 answers
359 views

MOSFET gets too hot when controlling a Peltier

I want to control a Peltier element with an Arduino. The idea is that I take the PWM of Arduino, turn this into analog with a low-pass filter (not in schematic) lower this voltage with a voltage ...
0 votes
1 answer
77 views

ADXL335 accelerometer just reads high when using breadboard [closed]

I am using an ADXL335 accelerometer connected to an Arduino Nano 5V. For some reason, the accelerometer only reads the highest possible value. As some context, I am only working with the sensor and ...
  • 147
0 votes
1 answer
119 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 ...
-1 votes
1 answer
64 views

Selecting MOSFET for specific load [closed]

I want to control a load through a processor standard IO (3.3 V/12 mA) using a MOSFET. The load is 200 W. If I understand it correctly, I don't need a optocoupler. It seems I need high Ids (at least ...
  • 1
4 votes
1 answer
743 views

ATmega 2560 is getting hot controlling MOSFETs

I'm controlling 8 N-channel MOSFETS with the following circuit diagram. I have 8 of them connected to IO pins 20 - 27 and all works fine apart from overheating the microcontroller. When I set the ...
  • 209
0 votes
0 answers
49 views

SPI with 2 ADCs (ADS1299) whilst synchronized

I am using 2 ADCs in the following manner: I am using the SPI comm pins, with only CS differing for each chip. The ADC also has an internal oscillator, and on my device 1, I have clk_sel pin tied to ...
  • 452
0 votes
2 answers
379 views

How to control a DC-DC buck converter by an MCU (ESP32) to choose between two fixed voltage outputs?

I made this post a day before about controlling a DC-DC buck converter’s output voltage with an ESP32 DAC output. Is it possible to control a Dc Dc buck converter output voltage by the DAC of an Esp32?...
  • 455
2 votes
1 answer
322 views

Is it possible to control a DC/DC buck converter's output voltage with the DAC of an ESP32?

I came across this question here: MCU 'remote control' of DC-DC converter's Vout adjustment potentiometer It is about controlling the output voltage of a DC/DC buck converter by injecting voltage into ...
  • 455
-1 votes
2 answers
70 views

Conventional current and electron flow in Arduino

On an Arduino there are some pins named GND, some are 5 V, and so on. If electrons flow from the negative to the positive terminal, then does this mean that they are flowing from GND to one of the ...
-1 votes
1 answer
129 views

Alternative to soldering for an Arduino board [closed]

I’ve got an Arduino board and I can’t seem to find an alternative to soldering to keep wires connected to the board’s inputs/outputs. I don’t really want to solder it, since this is my first board and ...
  • 23
3 votes
2 answers
125 views

How to let microcontroller power itself?

I'm trying to create a circuit where a button press results in a microcontroller booting up and sending a wifi request. I'm relatively new to electronics, so likely have a big knowledge gap. Similar ...
  • 263
0 votes
0 answers
54 views

DHT21 / AM2301 sensor not measuring humidity Arduino

Although there was a similar thread it was for Raspberry PI. This sensor should work out of the box with the Arduino and should be more advanced than the cheap DHT11/22. I have this exact sensor: ...
  • 1
0 votes
1 answer
36 views

Using 5V output from an Adafruit SHT40 humidity sensor with DAQ system

Using the setup guide for the SHT40, the only way I can get humidity and temperature from the SHT40 sensor is to hook it up to an Arduino and interpret the data coming from the SDL and SCA pins with ...
0 votes
0 answers
35 views

Bluetooth speaker ground wire connected to 4N25

I am wondering if I can use a 4N25 optocoupler to turn on/off two small speakers. The reason for doing this is that when I turn on the unit, I won't have to hear "device connected". Side ...
  • 655
1 vote
2 answers
122 views

TA12-100 current transformer - Safe to use over 5 A?

I have some cheap TA12-100 current transformer boards with a built in 200 Ω burden resistor rated to measure up to 5 A. I would like to set these up with an Arduino to monitor a 120 V AC outlet that ...
2 votes
2 answers
681 views

Measuring high voltage DC using an Arduino

I want to measure a high voltage DC (electric vehiclr battery pack) source with isolation. The 4 ways I identified were using Linear optocoupler Isolated amplifier ADC on the HV side and sending the ...
2 votes
4 answers
753 views

How can I power an Arduino with high voltage (400 V)?

I need to power Arduino that is used in pre-charge circuitry for an electric vehicle. The Arduino will monitor the battery and controller voltage. The peak battery voltage is 400 V. I want to ask ...
1 vote
1 answer
155 views

ATtiny85 IR decoding/receiving issue

Apologies if this specific issue has been addressed before, but I've scoured for hours, haven't found an exact solution. Goal: To decode IR values using an ATtiny85 and display them over a serial port....
0 votes
0 answers
75 views

Tinkercad - Circuit Simulation Failing

Building a simple circuit using Tinkercad, however, this keeps causing the simulation to not load. Arduino is essentially being used as a battery, with no code beyond what is default. If I replace the ...
1 vote
1 answer
81 views

How to draw power from one of two sources according to priority, with indication for used source?

If two 5V power sources exist, one being always on and the other not (such as an ATX powersupply's standby 5V and "on" 5V rails), how could I draw power only from the "on" rail ...
1 vote
1 answer
79 views

Serial communication in STM32 based boards

I've made a desktop application which interfaces with an Arduino board via serial ports. Now as I have completed my project in theory, I want to make a more professional PCB with a higher clock speed, ...
5 votes
1 answer
460 views

Push-pull mosfet gate driver (using BJT transistors)

I'm trying to build a MOSFET driver, I am new in electronics, and specially in controlling MOSFETs. Please take a look at my schematic, are there any mistakes or recommendations? I'm trying to create ...
2 votes
4 answers
706 views

How does this switch debounce circuit work?

I recently started learning about micro-electronics, specifically the Arduino. I'm slowly going through the Arduino cookbook and have hit something I don't really understand. The circuit is a simple ...
0 votes
1 answer
32 views

Help with the Texas Instruments TXS0101 for level shifting

I am considering the TXS0101 for my project, which essentially is multiple I2C sensors paired with an ESP32. As the I2C for an ESP32 is 3.3V logic and some of my sensors are 5V, a TXS0101 seems to ...
  • 1
3 votes
1 answer
512 views

My non-inverting opamp circuit clips

I want to amplify the DAC output of an Arduino MKR WiFi 1010 from a 0-3.3V range to 0-5V. After some research I decided to use a non-inverting amplifier, with an LM324, using a rail voltage the 5V of ...
1 vote
0 answers
66 views

TCA9548a + TCS34725 + Arduino MEGA not identifying the sensors

I'm trying to use the arduino mega with a TCA9548A multiplexer and two color sensors, but I'm not able to connect the arduino with the two sensors. When I try to scan the TCA9548A it returns that ...
-1 votes
3 answers
137 views

Which MAX3232 IC's for simple UART to RS232 converter?

I am trying make a TTL to RS232 converter. I have designed my PCB for 16 pin SMD sop16 and max3232 CSE+. But when I was buying from a store (store link), I saw other types of max3232. I've bought and ...
  • 1,029
0 votes
1 answer
71 views

Weird short-circuit in custom Arduino

First, some background. I'm building a cockpit for home entertainment, and the parts mentioned are part of a panel with some toggle switches and backlighting. I'm an iOS developer and pilot and have ...

1
3 4
5
6 7
170