Arduino
Using pyscial sensor to get data then import to computer and render graphic or relative interaction. This is an new way to connect computer to human, it could be used in industries field and also can use to created creative images
Analog(模拟信号)
The different between Digital and analog is Analog can change the value of output, not only boolean. Which means, a switch with digital only Open/ close circuit, but analog can adjust that.
Language
declare
use:
#define Name Value
to declare a variable
布尔
High | Low |
---|---|
Yes | No |
True | False |
1 | 0 |
setup
set a pin which output/input power use:
pinMode(pinPin, OUTPUT)
pinMode(btnPin, INPUT)
componet
breadBoard
+ | p | p | p | p | p | p | p | p | p | p | ⇌ |
- | p | p | p | p | p | p | p | p | p | p | ⇌ |
T | T | T | T | T | T | T | T | T | T | ⇅ | |
T | T | T | T | T | T | T | T | T | T | ⇅ | |
T | T | T | T | T | T | T | T | T | T | ⇅ | |
T | T | T | T | T | T | T | T | T | T | ⇅ |
- P means Power Rail
- T means Ternimal line
To build a circuit:
- connet power to p+,
- p+ to T,
- set some componet on T, and connect to Arduino Port / analog Port,
- T to p-,
- p- to GND
LED
- long leg => plus
- short leg => negative contact to GND / ground