Week 3

From Interaction Station Wiki
Revision as of 18:37, 25 September 2017 by Oyo (talk | contribs) (Created page with "=Making a pressure and bend sensors= <br> One of the most powerful tools you can plug into your Arduino is a sensor, a small electronic device that enables the microcontroller...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Making a pressure and bend sensors


One of the most powerful tools you can plug into your Arduino is a sensor, a small electronic device that enables the microcontroller to take readings from its surroundings, reacting in accordance to its program.
Digital and analog are two methods of transmitting information. The Arduino world uses both methods.
The Arduino reserves some pins for digital input and output, and others for analog. A servo’s data wire plugs into a digital pin, whereas an analog light sensor sends its data reading to an analog pin. Which pins are which? You can easily tell just by looking at the Arduino.

Digital Sensors


Digital sensors are the sensors that gives 2 state (on/off, 5V/0V). You will connect them to digital Pins and set it as INPUT.
Digital data consists exclusively of 0s and 1s .
For example, consider a push button switch. This is one of the simplest forms of sensors. It has two discrete values. It is on, or it is off. Other 'discrete' sensors might provide you with a binary value.
Another example of a digital sensor is an accelerometer, which sends a series of data points (speed, direction, and so on) to the Arduino. Usually digital sensors need a chip in the sensor to interpret the physical data.

Analog Sensors


Analog sensors on the other hand, gives range. You connect this types of Analog sensors to Analog Input pins which is measuring the incoming voltage between 0V-5V*. Arduino converts this incoming voltage into the number between 0-1023.
Analog data is transmitted as a continuous signal, almost like a wave. In other words, an analog sensor doesn’t send a burst of 1s and 0s like digital sensors do; instead, the sensor modulates a continuous signal to transmit data.