• Non ci sono risultati.

72- TILT SENSOR MODULE

N/A
N/A
Protected

Academic year: 2021

Condividi "72- TILT SENSOR MODULE"

Copied!
5
0
0

Testo completo

(1)

TILT SENSOR MODULE

Description

The tilt sensor is a component that can detect the tilting of an object. However it is only the equivalent to a pushbutton activated through a different physical mechanism. This type of sensor is the environmental-friendly version of a mercury-switch. It contains a metallic ball inside that will commute the two pins of the device from on to off and vice versa if the sensor reaches a certain angle.

Specifications

 On-board LM393 voltage comparator chip and photo activity sensing probe  Support 5V/3.3V voltage input

(2)

 On-board signal output instructions, output the effective signal is low lever, at the same time indicator light off

 Output signal can directly connect with the microcontroller IO  The sensitivity of the signal detection can be adjusted

 Reserve a line voltage to compare circuit (P3 has been leaded out)  PCB size: 30(mm) x15(mm)

Pin Configuration

1. VCC: 3.3V / 5V DC 2. OUT: high/low output 3. GND: ground

Schematic Diagram

1 2 3

(3)

Wiring Diagram Sample Sketch void setup(){ pinMode(2, INPUT); pinMode(13, OUTPUT); Serial.begin(9600); } void loop(){ if(digitalRead(2) == HIGH){ digitalWrite(13, HIGH); Serial.println("tilted!"); } else{ digitalWrite(13, LOW);

Serial.println("not tilted"); }

delay(250); }

(4)

How to test

The components to be used are:

 Microcontroller (any compatible arduino)  Tilt sensor module

 1 Pin M-M connectors  Breadboard

 USB cable

1. Connect the components based on the figure shown in the wiring diagram using a M-M pin connector. VCC pin is connected to the 5V power supply, GND pin is connected to the GND, and the OUT pin is connected to the digital I/O pin. Pin number will be based on the actual program code.

2. After hardware connection, insert the sample sketch into the Arduino IDE. 3. Using a USB cable, connect the ports from the microcontroller to the computer. 4. Upload the program.

5. See the results in the serial monitor.

Testing results

(5)

Riferimenti

Documenti correlati

Figure 8: Temperature distribution on the external oil channel wall on the central test section for case B1.. 4.5

Dipartimento di Automatica e Informatica Politecnico

 The takeOrdered(num, key) action returns a local python list of objects containing the num smallest elements of the considered RDD sorted by. considering a user specified

The didactic area of the exhibit is composed of "blocks" of modular walls suitable for housing graphic boards, prospective objects and virtual stationings.. These blocks

The optimization model has been developed as Mixed Integer Linear Programming (MILP) for minimizing the cost of buying energy from the utility grid, maximizing energy efficiency

(Committenti: Comune di Gorizia, IRISACQUA Spa, Comune di Capriva del Friuli, CAFC Spa, etc.) Progettazione, Direzione lavori, coordinamento sicurezza, contabilità cantieri di

Desde esta doble perspectiva, se profundiza tanto en determinadas cuestiones del sistema de supervisión bancaria y el complejo entramado institucional instaurado para su

Tutti i pazienti sono stati sottoposti ad angiografia coronarica quantitativa (QCA) con una nuova coronarografia di follow-up a 9-12 mesi dalla precedura indice: ciò ha