Votre panier est vide !
| Modèle : | DZD000070 |
| Fabricant : | IteadStudio |
| Disponibilité : | 10 |
| N° de visites: | 755 |
1. Plug and play, easy to use. Compatible with the mainstream 2.54 interfaces and 4-Pin Grove interfaces in the market.

2. With use of M4 standard fixed holes, compatible with M4-standard kits such as Lego and Makeblock.

| PCB size | 24.0mm X 21.0mm X 1.6mm |
| Working voltage | 3.3 or 5V DC |
| Operating voltage | 3.3 or 5V DC |
| Compatible interfaces | 2.54 3-pin interface and 4-pin Grove interface(1) |
| Parameter | Min. | Typical | Max. | Unit |
| Working voltage | 3 | 5 | 5.5 | VDC |
| Digital output voltage(VCC=5V) | 0 | - | 5 | V |
| Working current(VCC=5V) | - | 450 | - | uA |
Connect S port of electronic brick of tilt switch to D2 port of Arduino board, and we will use the following program to read its digital value. When the digital value read is high level, LED lamp will be ON; when the digital value read is low level, LED lamp will be OFF.
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
int tilt=2; //connect tilt to D2int LED=13;void setup(){pinMode(LED, OUTPUT);pinMode(tilt, INPUT); }void loop(){if(digitalRead(tilt)==HIGH) //when the digital output value of tilt is high, turn on the LED.{digitalWrite(LED, HIGH); }if(digitalRead(tilt)==LOW) //when the digital output value of tilt is low, turn off the LED.{digitalWrite(LED, LOW);} } |
| Brick Type | Sensor Brick |
|---|---|
| Brick Interface | 3PIN |
| Brick Power Supply | 5V |
| Board Size | 24 × 21 × 1.6mm |
| LED Color | No |
| Weight | 15.00g |
| Model | IM120710019 |