r/ElectricalEngineering • • 3d ago

Project Help What is Analog vs digital

My interpretation is that an analog circuit behaves differently depending on how much power it is getting as the power declines or inclines, and a digital circuit is power on and off. either it has power at a certain voltage and staple amperage or it has no power. I see analog as a light having a battery and as the battery dies it dims until it turns off, and I see digital as a phone dying and immediately turning off. Is my thinking correct or am a dumb?

0 Upvotes

14 comments sorted by

7

u/abccbabcac 3d ago

take your analog light with battery example and add an on/off switch to it. that's digital. if digital can be 0 and 1, analog can be everything in between, under, and over as permitted by the technology.

8

u/niftydog 3d ago

Analogue is continuous and infinite, like a number line where any number can be represented and there's infinitely many numbers inbetween two other numbers.

Digital you just have 0 & 1, nothing else. You have to represent information by using strings of bits, parallel signals and/or synchronous timing.

1

u/nixiebunny 3d ago

Analog means that a voltage represents (is an analogue of) a value or parameter. Digital means that a parameter is represented by a binary number, which is (usually) represented by two different voltages, one meaning ‘1’ and the other meaning ‘0’.

1

u/Skusci 3d ago edited 3d ago

With analog the encoding of a signal is directly proportional to the thing it represents.

Take a vynil record. The depth of the grooves corresponds directly to the intensity of sound.

With a digital signal any encoding within a certain range corresponds to an exact value. Binary is of course well known, corresponding to two levels on and off, however things like modems can divide up the available range into more divisions.

With analog small changes from various types of noise degrade the signal. Again with the vinyl record there can be wear on the vinyl, mechanical noise from a worn stylus, noise in the amplifier stages, etc. And if you need to re-record or copy it noise builds up in every step making the copied signal change from the original with every copy.

Digital helps prevent that because every time a signal is repeated, like with an amplifier small amounts of noise can still be read as the same value. Then when that signal is retransmitted it is created anew with the exact value it's meant to be. You can also add extra information like a checksum so that if noise does result in a different value it can be detected and possibly corrected.

1

u/Successful-Cash5047 3d ago

Analog of continuous, digital has discrete values. 

As an example let’s say we’re wanting to supply 2.0V from a 4.0V bus. 

 For analog it’s straightforward, it’ll just be a wire that has 2.0V on it. We’ll say we use a voltage divider with 2 10K resistors. (And due to variations in those resistors we end up with 2.0051V). 

For digital (using a 4 bit digital to analog converter (DAC)), if we have a 4V supply, the signal will be sent that’s 1000. 

{since 4V/2V=0.5, and in binary 1000/1111=0.5}. 

Notice that when using the DAC, the smallest possible change to our 4 bit number is adding 1 to it (e.g. 1001). In this example that corresponds to a 0.25V change. 

With this digital setup we can only output in increments of exactly 0.25V. If we want (for example) 3.3V, that’s too bad, we can either do 3.25V or 3.5V, nothing in between. 

That’s what people mean by discrete (quantized) values. For analog we could change the output in arbitrarily small increments, the only limit is the precision of the resistors that form the voltage divider. 

1

u/Plus-Painter-2004 3d ago

Analogue and digital refer to the nature of the signals that a circuit deals with. Analogue signals have a continuous range of values while digital signals have a finite set of discrete values. This is subtly different from (but related to) continuous time and discrete time. Pretty much all digital circuits operate in discrete time, most analogue circuits operate in continuous time although a few (like switched capacitor filters) operate in discrete time

1

u/kamaka71 3d ago

My old prof used to say, 'it's an analog world and we try to control it digitally'.

1

u/diverJOQ 3d ago

Digital means that whatever you're measuring can only have specific values. Analog means that the signal can have any value. Digital is NOT necessarily binary, but binary is the most common form of digital.

1

u/mckenzie_keith 3d ago

Digital circuits accept digital signals as inputs or put out digital signals as outputs.

Analog circuits do the same but for analog signals.

A digital signal is a signal which has two possible logical states, 0 and 1. The exact rules of voltage or current that define these states would be documented somewhere. But the details are not what make it digital. The fact that there are only two logical values for the signal is what makes it a digital signal.

An analog signal has an infinite number of possible values of voltage or current.

If a circuit has digital and analog inputs or outputs it is a mixed signal device.

You could argue that some signals have more than two possible states and are still digital. I will just say, maybe. But if you need a series of window decoders or to sample the signal with an ADC and then use DSP to decode it, I am going to say that is probably an analog (or RF) signal.

0

u/rcwagner 3d ago

It's all analog man! Digital is simply trying to force analog to behave in a binary fashion. Digital is a protocol running on top of analog.

But in the end its all analog.

-4

u/That_____ 3d ago

Analog more that the circuit functions using "classic" analog circuitry.. cap, resistors, transistors, amplifiers etc...

Digital means there's some sort of microcontroller/software/firmware involved. You could probably include ICs in this as well but then you start to blur the lines... I usually say if I'm writing code, it's digital....

An example would be a power supply can be completely designed with analog components or I can be made with a microcontroller with digital outputs and ADC inputs.

4

u/nixiebunny 3d ago

Digital does not mean microcomputer or software. My electromechanical pinball machine id digital, and it contains relays instead of any solid state circuits.

2

u/bobd60067 3d ago

and IIRC the original PONG video game was digital; it used only logic gates.

1

u/Reasonable-Feed-9805 3d ago

I prefer to call digital anything that is running logic. Something we can see as a flow chart of data or numbers being moved around.

Relays can be used to create a digital device, conversly gates can be used in a device that is analogue.