The Analog World Microcontrollers are capable of detecting binary signals: is the button pressed or not? These are digital signals. When a microcontroller is powered from five volts, it understands zero volts (0V) as a binary 0 and a five volts (5V) as a binary 1. The world however is not so simple and likes to use shades of gray. What if the signal is 2.72V? Is that a zero or a one? We often need to measure signals that vary; these are called analog signals. A 5V analog sensor may output 0.01V or 4.99V or anything inbetween. Luckily, nearly all microcontrollers have a device built into them that allows us to convert these voltages into values that we can use in a program to make a decision. What is the ADC? An Analog to Digital Converter (ADC) is a very useful feature that converts an analog voltage on a pin to a digital number. By converting from the analog world to the digital world, we can begin to use electronics to interface to the analog world around us. Not every p...
Hiiiii... Now we are going build a arduino board..before knowing this WHAT IS ARDUINO..??? it a combination of some hardware (say microcontroller)along with compatible software(ARDUINO Ide) Above pic shows the basic ARDUINO board with atmega328p as its heart.so,now in this post I will tell u how to make your own board.for doing this you should require Atmega328p ic with base 16 MHZ crystal oscillator 22pf capacitors 7805 Male headers etc.... If you buy a atmega328p,initially it is not ARDUINO Ide compatible microcontroller. So to make it a ARDUINO compatible mc you must burnboot loader to that ic..it's very easy and simple procedure for that process is explained below To burn bootloder u must have an ARDUINO board and breadboard with required components. ARDUINO to breadboard connections is shown in below pic Burning the Bootloader If you have a new ATmega328 (or ATmega168 ), you'll need to burn the bootloader onto it. ...
When we write numbers, we have ten different digits that we can put in each place (0-9). After that we need to add a new column of digits and we keep going. This is called the decimal system (or base 10). What would happen if instead of using ten digits we used eight, or two, or even sixteen? Well, what happens is instead of a decimal system we would have what's called binary, octal, or hexadecimal systems (base 2, base 8, and base 16). We use subscripts to denote the system we are using: 9876 10 is decimal (if we don't use a subscript we assume we are using decimal), 7653 8 is octal, 1010 2 is binary, and BEEF 16 is yummy hexadecimal. Binary – binary just has 1s and 0s. But much of our world is binary. Light switches are either up or down, your computer is either on or off, our servers are either currently up or down (hopefully up). Because computers are made up of billions of little switches (called transistors), they do calculations in binary...
Comments
Post a Comment