New answers tagged arduino
1
vote
Accepted
Necessary components for a basic I2C circuit
I got the circuit working. My general advice for anyone with a similar issue/level of experience is to learn to use an oscilloscope and what your clock/data signals ought to look like.
Problem 1 - ...
0
votes
Accepted
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?
simulate this circuit – Schematic created using CircuitLab
You can implement a PWM driven constant current sink like this. That allows you to communicate your measured signal mapped from 0-100% ...
3
votes
Issues with MOSFET module
The module uses D4184 Alpha&Omega MOSFETs (at least according to the ad photo, they may have a different brand, perhaps less famous one, on the actual part). They only have guaranteed Rds(on) at 4....
0
votes
Nema34 stepper motor heating
A stepper motor is not overheating just because you can’t safely touch it. It is designed to dissipate the heat due to continuous operating current indefinitely.
A stepper used at the high end of its ...
0
votes
Getting 0 output at ADC: Arduino Nano with MPX pressure sensor circuit
Please see the example code provided for the 'official' ADC-Library.
If you want to stay with your library, please see the example code and pay special attention to the implementation of the ...
-1
votes
XGZP6847A Pressure Sensor Modul
I might help you a bit. First of all you need to take raw ADC reading from the sensor by applying the pressure. Then convert those reading from Voltage to desired mmHg or kPa value.
See below video ...
0
votes
Why won’t this circuit work when powered via a DC adapter?
I can't know what the problem is but here are at least a few potential reasons based on looking at your circuit.
You are connecting a 5V MCU to a 3.3V chip. If your MCU expects any kind of response ...
0
votes
Necessary components for a basic I2C circuit
The Arduino MICRO uses an ATMEGA32U4-XUMU. According to this schematic from the arduino.cc web site, it is running at VCC = 5 volts.
That said, the SDP32-125PA pressure gauge in the question is ...
0
votes
How do I make my circuit diagram look better? Or is it wrong?
The signal flow isn't bad, but there are several errors.
The G2 anode never connects to anything.
The G1 anode never connects to anything.
The upper relay (Reference Designators - !) pin functions do ...
1
vote
Which Arduino pin is giving gnd to the bus rail on a PCB?
Please open the Protoshield schematics, and you will see how it connects.
It uses all GND pins.
1
vote
How do I make my circuit diagram look better? Or is it wrong?
It's not bad! Can be even better. I like a convention of signals flowing left to right, power flowing top to bottom.
For signals there may be an exception - if there are clear physical sides, for me ...
0
votes
Necessary components for a basic I2C circuit
Two problems are visible in the I2C scope traces:
Pull-up resistor values are too high - the rise time is too slow. Instead of 10k, use 2k2 (1k would be the lowest value you should use). See the TI ...
0
votes
Accepted
Simple UPS for Microcontroller
Using (schottky) diodes in series with the supply is always a naive solution.
Use a P channel MOSFET with drain towards incoming supply, source towards output and the gate pulled to GND with a pull-...
0
votes
Simple UPS for Microcontroller
No problems is to short for an answer.
So I'll mention that ESP8266 wants 3.3V not 5V, but making 3.3V from 5V or lithium battery voltages is not going to be problem for the XL6009 based SEPIC in ...
0
votes
Accepted
ST7735 1.44" SPI TFT GreenTab: white lines/ghosting (no hardware fault!)
I had exactly the same issue, Since arduino nano is 5V pin, and the display is 3.3V if you add 1.2K ohm resistor to spi bus and control lines except Vcc and Gnd then I am sure it will solve your ...
1
vote
Problem with an Arduino DC motor controllable circuit
What I take is intended to be debouncing for the button is killing your PWM control.
When the pushbutton changes state (if (buttonOld==0 && buttonNew == 1)) then you set the PWM output ...
0
votes
Information needed about Atmega8 development board
Grebu's answer convers this topic quite well, but one thing was not mentioned:
You can use your Arduino as a programmer for other AVR chips.
Just stick with AVR-based variants of Arduino which use 5 ...
3
votes
Information needed about Atmega8 development board
It appears that your board has no bootloader ready. You will need to flash the microcontroller (MCU) directly. For this you need a special electronic tool called a programmer.
AVR microcontrollers ...
1
vote
Combining interrupts and debouncing on a keypad
This isn't a good approach; focusing on a narrow section (the keypad itself) limits you from seeing higher-level solutions.
The better and more traditional overall approach, is to run the keypad as ...
2
votes
One IO to control two LEDs. When one is lit, the other is not
1 GPIO, 2 LEDs
For a single GPIO pin, there are two basic circuits. The first one uses two resistors and lets you light D1 or D2 alternatively, but they cannot be both turned off. The second circuit ...
4
votes
One IO to control two LEDs. When one is lit, the other is not
Here is yet another scheme that could be useful with two-pin bipolar LEDs. The IC could be 1/3 of a 74HC14 hex ST inverter or something like a dual inverter.
simulate this circuit – Schematic ...
6
votes
One IO to control two LEDs. When one is lit, the other is not
Basic idea
A minimalistic circuit solution can be implemented with only three elements - a resistor and two LEDs; it is only necessary that the LED forward (threshold) voltages meet the requirements ...
19
votes
One IO to control two LEDs. When one is lit, the other is not
simulate this circuit – Schematic created using CircuitLab
A circuit I have used many times with chips that provide a high/low status output (eg battery charger chips). Note that a bicolour LED ...
6
votes
One IO to control two LEDs. When one is lit, the other is not
Often, a GPIO pin cannot source as much current as it can sink. If this is the case, here is a trick that relies on sink current only. The center schematic is the one for your application. Your GPIO ...
18
votes
One IO to control two LEDs. When one is lit, the other is not
Figure 1. Image source (mine) from LEDnique.com.
When GPIO is pulled low R1 and L1 conduct.
When GPIO is pulled high R2 and L2 conduct.
The schematic shows 5 V but, depending on the LEDs, it will ...
1
vote
Understanding pinout of of motorised potentiometer (PRM 50KB-4)
You would use the wiper and the ends like on a normal potentiometer.
The terminals with arrow symbols are the wipers. Then there are the midpoint terminals which you don't need. And then you have the ...
1
vote
Music player via ESP32
You can't put a 10uF capacitor from DAC output to GND. Or from any IO pin for that matter. It will prevent the audio from working and may even damage MCU output. Remove it.
Maybe you intended to ...
0
votes
28C64 EEPROM Programming Using Arduino
I did the same thing with 28C64 abut write an 8x 64b LUT instead. My code works perfect but you need to tweak it to your needs. Also I use a "shield" board for Arduino Mega which I plugged ...
0
votes
0
votes
Interfacing Sensors to an Arduino Mega 2560
how do I transfer this circuit of mine to a printed circuit board
There is no need to move physical chips. The PCB needs a usual debugger/isp connection header and a blank MCU. You'll then program ...
1
vote
Interfacing Sensors to an Arduino Mega 2560
From the little experience (25 years) which I have gained from constructing electronic projects, I can say follow things. Please consider them as my suggestions.
Constructing an electronic project is ...
1
vote
Accepted
Why does TCS3200 lose accuracy when the light source is too bright?
The sensor is saturating, the trick will be to figure out why. There are also a few ways to improve your setup.
A few recommendations:
Have an adjustable light source. Ether use a variable resistor, ...
1
vote
Can the CANRX and CANTX pins be used as ADCs?
According to this page in the Arduino documentation, you need to do a couple of things:
Use the Arduino_AdvancedAnalog library to access the ADCs.
Use the predefined constants "CANRX" and &...
Top 50 recent answers are included
Related Tags
arduino × 9020microcontroller × 758
led × 481
sensor × 432
mosfet × 413
transistors × 396
power-supply × 392
relay × 351
voltage × 326
pwm × 301
serial × 279
motor × 261
atmega × 256
power × 248
i2c × 241
raspberry-pi × 236
avr × 227
dc-motor × 210
esp8266 × 196
switches × 191
adc × 191
batteries × 184
stepper-motor × 184
usb × 180
operational-amplifier × 169