Questions tagged [electronics]

Use this tag to ask about electronics-related issues with your Arduino. For example: driver transistors, Ohm's Law, current-limiting resistors.

This tag is for the hardware side of your Arduino project, particularly electronics questions. Relevant questions would be about:

  • Transistors
  • MOSFETs
  • Diodes
  • Resistors
  • Capacitors
  • Inductors
  • Current-limiting resistors
  • Ohm's Law
  • Power calculations
  • Switching devices on and off
  • Input protection circuits
  • Output protection circuits
  • Opto-couplers
  • Choice of components
  • Other electronics-related questions

Also see:

235 questions
9
votes
1 answer

Why connect a diode between the reset pin of Arduino and 555 timer?

I am trying to create a watchdog timer using 555 IC and I am following this. I do not understand why a 1N4148 diode is connected between the reset pin of Arduino and the output of the 555 timer. As far as I understand, the reset pin of the Arduino…
bukke hari prasad
  • 159
  • 1
  • 1
  • 6
6
votes
4 answers

Programming standalone Atmega328p-PU with NE555N timer IC

I know I may sound a little idiotic to ask, but as I have seen in the internet that to program a standalone Atmel chip like that from of the Arduino's, you need 2 22pF ceramic capacitors and a 16mhz oscillator. As the oscillator is needed is clock…
5
votes
4 answers

Why would the resistor be after the LED in this project?

This is project 2 of their official arduino projects book called "Spaceship interface". I understand resistors normally reduce voltage so the LEDs don't burnout but here 5v is coming from either digital 3, 4, or 5 and it seems like it goes right…
Nick D
  • 55
  • 3
5
votes
1 answer

Replacement crystal on Uno for cold temperatures

I want to run an arduino out in the cold (-40), and use the serial communication - I believe that the crystal is the weakest link (the one for the serial chip) - however I don't see any drop-in (through-hole) replacement crystals that would work in…
5
votes
1 answer

Why can't most servos rotate more than around 180°

I was looking how a servomotor works. I realized that a standard servo can only turn up to 180°, but I didn't understand why. Is it because of the potentiometer?
roshan timsina
  • 117
  • 2
  • 6
4
votes
2 answers

Voltage changes but digitalRead always HIGH

I developed simple push button project I used wemos D1 mini I connected D3 pin to pull down 1K resistor. I used multimeter to measure D3 pin voltage. When i push the button, D3 pin voltage changes from 0.x volt to 4.x volt But digital read on D3…
Toni startup
  • 51
  • 1
  • 1
  • 3
4
votes
3 answers

Moving motion sensor?

Long story short, I'm trying to build some form of device that you can wear and it will detect when something moves behind you. I wanted to use PIR sensors for the motion detection, but I have no idea if they can detect objects if you're moving. Any…
Jack
  • 41
  • 2
4
votes
4 answers

How exactly is voltage measured on an Arduino?

How do the analog pins on an Arduino measure voltage? Do they either measure current and calculate the voltage with Ohm's law? (If so, why can we only read voltage and not current directly?) Or do they compare the unknown input voltage with a known…
PenguinCake
  • 45
  • 1
  • 3
3
votes
3 answers

7-Segment Common Anode

I accidently bought a "Common Anode" 7-segment display instead of a "Common Cathode". I understand that the polarity of the leds within the display is 'reversed'. So instead of putting the common pin on GND I have to put it to 5v (with current…
Paul
  • 2,703
  • 2
  • 21
  • 40
3
votes
2 answers

AMIS30543 - Library code | Order of pinDirection and pinOut

This piece of code was taken from AMIS30543- Arduino library, void init(uint8_t slaveSelectPin) { ssPin = slaveSelectPin; digitalWrite(ssPin, HIGH); pinMode(ssPin, OUTPUT); } Facts I know digitalWrite - makes the pin to the…
3
votes
1 answer

How to burn the bootloader and upload sketches on ATmega328P U (specifically this model)?

Recently I started to learn embedded electronics and C/C++ and for a couple of days I tried and I am still trying to burn a new ATMega328P U bought from Aliexpress. From what I know new ATMega328P's come with bootloader included, but after I wired…
3
votes
2 answers

Sleep mode and watchdog at the same time

Suppose we want to save battery power, and we use sleep mode and also prevent the Arduino from hanging and use the watchdog timer. The problem is here that when the Arduino goes to sleep the watchdog timer never (or can't be) reset again because of…
sepehr
  • 63
  • 4
3
votes
2 answers

Weird Voltage Noise

I'm new to this forum, so hello to everyone out there. So I have an Uno with A0 connected to the positive end of a chain of LEDs (they light up when a motion sensor goes off, clunky, but it works), and the negative end is hooked up to the GND of the…
3
votes
3 answers

Powering on the PC

I located the two pins that are responsible for powering up the PC. They are connected to the Power On button and one pin has an output of 5 V while the other is the ground. So far so good, the problem is when I connect the 5 V one to the Arduino…
3
votes
1 answer

What is difference between analog and digital input and output, and when should i use anlog or digital (input or output)?

How should i determine whether to use input as analog or digital and same for output too?
Ankush Rawat
  • 143
  • 1
  • 2
  • 6
1
2 3
15 16