Almost every day we hear about things being described as analog or as digital it's kind of like the difference between men and women no wait this is the wrong channel for that instead it's like old cell phones which used to be analog but now they're all digital. At this point most countries have either changed or in the process of changing their television transmissions from analog to digital as well ah heck even clocks can be analog or digital.
Let's use these clocks to learn the difference between analog and digital
Even though there are only 12 numbers on the face of this clock you can always tell how many minutes have a labs just by looking at how far the minute hand is between the two numbers when we look at a digital clock all it can do is show us for each digit of the time the numbers 0 through 9 even if we zoom in really really close we can't see how close the clock is to flipping to the next digit so this means the increments of time are fixed to certain digits or levels.
ok ok ok i know you're asking me how does this all apply to electronics.Let's use this to talk about analog electronics first so we got to go back to the analog clock as the clock hands sweep across its face the time displayed is continuously updated with nearly infinite precision. The key here is the continuous change analog signals are signals that are continuously variable or in other words continuously changing just like the time on the clock as we learned in the video on the difference between AC and DC the AC voltage in your house continuously changes iterative 50 to 60 Hertz.
Imagine that we have the ability to stop time and look at the voltage.
ok I know bad pond but what I wanted to show here is that as we move across in time that the voltage value is constantly changing. This doesn't mean that analog is only found in the wall sockets or through a sea. It's just a very good example in fact there are sensors like this accelerometer which provides an analog output this sensor buries its output voltage depending on how much acceleration is occurring.If you want to use that analog voltage with a digital system like an arduino then you're going to need to convert that signal to digital first going back to the digital clock.
Remember that time can be represented by fixed numbers symbols like 0 through 9. The same thing is true in digital electronics the digital signals can only be represented with thick symbols like 0 or one but how do you get those zeros and ones well turns out that they're formed from voltage digital signals can have a bold a high level and a low level and so what this means is that at zero volts. These signals considered a digital 0 and then at some high voltage say like five volts the signal is considered a digital one as it turns out digital. Isn't quite this absolute depending on the transistor technology being used there's a range that the signal might be considered a 0 or 1, for example on this Arduino Uno a digital 0 is considered zero volts up to 0.5 volts while a digital one is anywhere from 3 point 5 volts up to 5 volts and so there's these two bands where there's the low and the high the area between the low and the high is an undefined area a digital signal with the voltage in this zone could either be considered a 0 or a 1 because digital logic needs to have a value associated with it. This undefined region will get turned into one's or zeros problem is we can't always predict which one that they will be the key to understanding the difference between analog and digital is to remember that analog voltages continuously change while digital voltages have defined levels when you step back and think about it it kind of turns out that digital signals are actually analog signals where the voltage levels have special meanings.