Difference between revisions of "How it's made"
Line 13: | Line 13: | ||
=Sensors and Actuators= | =Sensors and Actuators= | ||
==Sensing== | ==Sensing== | ||
+ | we often construct our reality using our sensory experience: | ||
+ | |||
+ | our visual and sound come from our eyes and ears, we can feel the moisture level on our skins, we can feel the gravity and orientation thanks to our inner ear structures. | ||
+ | |||
+ | and now imagine all the sensory input can be converted into digits and feed to a computer, and the computer device can decide what to do(output) with the input data. | ||
+ | let's look back to the Shannon-Weaver model of communication. | ||
+ | |||
+ | |||
+ | there is so many already made sensor module for Arduino. Many sensors can detect signals or pick up data beyond human senses. For example ultrasonic sensors. | ||
+ | Imagine we can use these sensor technologies to expand our senses and "reality". | ||
+ | |||
+ | Back to the Sensors: | ||
+ | In General, there are two types of sensors: analog and digital. | ||
+ | |||
+ | The analog sensor can detect a range of data. (for example from 0-1020) | ||
+ | |||
+ | The digital sensor can detect either 0 or 1. (or HIGHT /LOW). | ||
+ | |||
+ | for better understanding: the analog sensor is like a dimmer and the digital sensor is like a normal switch. | ||
+ | |||
+ | Here is a list of sensors and examples: | ||
+ | |||
+ | [['''Comment sensors:''']] | ||
+ | Don't need additional libraries, normally included in Arduino's example tutorials.<br> | ||
+ | Potential meters: [https://www.arduino.cc/en/Tutorial/AnalogReadSerial AnalogReadSerial] | ||
+ | Botton or switch: [https://www.arduino.cc/en/Tutorial/Button Button] | ||
+ | Ultrasonic sensor: [https://www.arduino.cc/en/Tutorial/Ping Ping] | ||
+ | Mic or piezo: [https://www.arduino.cc/en/Tutorial/Knock knock] | ||
+ | [https://www.arduino.cc/en/Tutorial/toneMultiple toneMultiple] | ||
+ | |||
+ | Flex & force sensor: [https://www.arduino.cc/en/Tutorial/toneKeyboard toneKeyboard] | ||
+ | LDR (Light Dependent Resistor): | ||
+ | [https://www.arduino.cc/en/Tutorial/Calibration Calibration] | ||
+ | [https://www.arduino.cc/en/Tutorial/tonePitchFollower tonePitchFollower] | ||
+ | |||
+ | [[ '''Advanced sensors:''']] | ||
+ | Need to install additional libraries.<br> | ||
+ | Capacitive Sensor-Analog : [https://learn.adafruit.com/adafruit-cap1188-breakout/using-with-arduino adafruit-cap1188-breakout] | ||
+ | Or [https://www.bareconductive.com/shop/touch-board/ touch-board] | ||
+ | Pulse sensor(heart rate): [https://pulsesensor.com/pages/installing-our-playground-for-pulsesensor-arduino pulsesensor] | ||
+ | UV sensor: [https://learn.adafruit.com/adafruit-si1145-breakout-board-uv-ir-visible-sensor/overview uv-index-sensor] | ||
+ | Gyroscope/acceleration meter:[https://learn.adafruit.com/adafruit-lsm9ds1-accelerometer-plus-gyro-plus-magnetometer-9-dof-breakout/arduino-code Gyroscope/acceleration] | ||
==Actuators with Adafruit Motor Shield== | ==Actuators with Adafruit Motor Shield== |
Revision as of 16:18, 25 July 2021
Physical computing
Basic electronics and circuits
Basic electronic components and sensors
Arduino introduction
all about microcontrollers
simple circuit and sketches
Sensors and Actuators
Sensing
we often construct our reality using our sensory experience:
our visual and sound come from our eyes and ears, we can feel the moisture level on our skins, we can feel the gravity and orientation thanks to our inner ear structures.
and now imagine all the sensory input can be converted into digits and feed to a computer, and the computer device can decide what to do(output) with the input data. let's look back to the Shannon-Weaver model of communication.
there is so many already made sensor module for Arduino. Many sensors can detect signals or pick up data beyond human senses. For example ultrasonic sensors.
Imagine we can use these sensor technologies to expand our senses and "reality".
Back to the Sensors: In General, there are two types of sensors: analog and digital.
The analog sensor can detect a range of data. (for example from 0-1020)
The digital sensor can detect either 0 or 1. (or HIGHT /LOW).
for better understanding: the analog sensor is like a dimmer and the digital sensor is like a normal switch.
Here is a list of sensors and examples:
'''Comment sensors:''' Don't need additional libraries, normally included in Arduino's example tutorials.
Potential meters: AnalogReadSerial Botton or switch: Button Ultrasonic sensor: Ping Mic or piezo: knock toneMultiple
Flex & force sensor: toneKeyboard LDR (Light Dependent Resistor): Calibration tonePitchFollower
Need to install additional libraries.
Capacitive Sensor-Analog : adafruit-cap1188-breakout Or touch-board Pulse sensor(heart rate): pulsesensor UV sensor: uv-index-sensor Gyroscope/acceleration meter:Gyroscope/acceleration
Actuators with Adafruit Motor Shield
DC motor
push-pull solenoid
Servo motor
=Stepper motor
TIP 120 circuit
Relay Module
Introducing the Relay Module
A relay is an electrically operated switch. It means that it can be turned on or off, letting the current go through or not.
Controlling a relay with the Arduino is as simple as controlling an output such as an LED.
Notice the writing on the module terminals
COM: common pin
NO (Normally Open): there is no contact between the common pin and the normally open pin. So, when you trigger the relay, it connects to the COM pin, and supply is provided to a load
NC (Normally Closed): there is contact between the common pin and the normally closed pin. There is always a connection between the COM and NC pins, even when the relay is turned off. When you trigger the relay, the circuit is opened and there is no supply provided to a load.
If you want to control a lamp, for example, it is better to use a normally open circuit, because we just want to light up the lamp occasionally.
Wiring
it is very straightforward as you can see. But always double-check the relay module connections before you plug things together.
GND: goes to ground
VCC: goes to 5V
IN1: controls the relay (it is connected to an Arduino digital pin)
OK, but maybe you want to control more than one thing??
then no porblem
here are 16 channels:)
The wiring is the same, you will just need 16 digital pins on the Arduino