Experiências com o acelerómetro MMA7361 - Playing with the MMA7361 accelerometer

Experiências com o acelerómetro MMA7361 - Playing with the MMA7361 accelerometer

O MMA7361 é um acelerómetro capaz de detectar movimento nos 3 eixos ( X, Y e Z) e fornecer um sinal analógico nos pinos de saida.

A célula é capacitiva e funciona mecanicamente a uma escala microscópica. Quando o componente muda a sua posição, uma haste move-se entre 2 lâminas variando assim a distância ente elas e medindo desta forma a aceleração.

The MMA7361 is an accelerometer capable of detecting moviment on 3 axis ( X, Y and Z ) and output an analog signal for each axis.

The g-cell is capacitive and work mechanically in a microscopic scale. When the device change it's position, a central beam will move and change the distance between both fixed side beems. The change in distance is a measure of acceleration.

 

Photobucket

 

Além dos pinos de alimentação e de sinal analogico para cada eixo, o sensor possui ainda os pinos:

Together with the power pins and analog outputs, the sensor also has the following pins:

 

0g-detect - Quando o componente detecta que todos os 3 eixos estão a zero, torna este pino em estado logico alto.

0g-detect - The sensor offers a 0g-Detect feature that provides a logic high signal when all three axes are at 0g.

g-select - Consoante colocarmos este pino em estado logico alto ou baixo, ele coloca a sensibilidade a 1.5g ( 800mv/g ) ou a 6g ( 206mv/g).

g-select - Depending on the logic input placed in this pin it will change between two sensitivities allowing it to function with a 1.5g or 6g sensitivity.

sleep mode - Possui também um modo de economia. Quando activado, as saidas dos 3 eixos são desligadas e o consumo desce para perto dos 3uA.

sleep mode - When Sleep Mode is active, the device outputs are turned off, reducing the operating current down to near 3uA.

self test - Activando este pino, o componente faz uma auto verificação interna.

self test - The sensor provides a self test feature that allows the verification of the mechanical and electrical integrity of the accelerometer.

 

Na ebay existe este sensor á venda já montado numa pequena placa pronta a usar. Assim que recebi o meu, corri logo para a bancada para o experimentar.

This sensor is available already assembled on a "ready to use" pcb on ebay. The moment it arrived in the mail, i ran to my workbech with it to try it out.

 

Photobucket

 

Nesta board existe a possibilidade de ligar a 5V ou a 3,3V.

No meu circuito de teste, decidi apenas ligar o eixo X e usar a voltagem mais reduzida. Usei também um display 8x2 para verificar as leituras.

On this board there is the option to choose between 5V or 3,3V.

On my test circuit i decided to use only the x axis and use the lowest voltage input. I also used a 8x2 display to check the readings.

 

Photobucket

 

Para regular a voltagem optei por usar o LM350. Uma vez que esta board já possui os componentes adicionais recomendados pelo fabricante, liguei a saida do eixo X directamente á entrada ADC do microcontrolador.

As a voltage regulator i decided to use a LM350. Because this board already has the adicional components recomended by the maker, i connected the X axis directly to the microcontroller's ADC input.

 

Photobucket

 

Adicionalmente coloquei um pequeno pulsador para transitar entre 3 modos. O primeiro modo mostra o valor obtido pelo ADC do microcontrolador e a indicação da orientação do componente.

Adicionally i added a small push button to change between 3 available modes. The first mode shows value taken from the microcontroller's ADC and an indication of the chips position.

 

Photobucket

 

O segundo modo mostra, além do valor obtido pelo ADC do microcontrolador, mostra também uma simples representação grafica da inclinação do sensor.

The second mode shows, besides the microcontroller's ADC value, also shows a very simple graphic representation of the sensor's tilt.

 

Photobucket)

 

O terceiro modo mostra a mesma forma grafica mas usando leds.

The third mode shows the same graphic form but using leds.

 

Photobucket

 

 

Embora o circuito seja bastante simples, mostra que podem ser construidos facilmente vários circuitos mais sensiveis e mais completos.

Brevemente tentarei construir uma aplicação mais elaborada usando este sensor.

Although this is a very simple circuit, it shows that is very easy to build more sensitive and complex circuits.

I will try to build a more elaborate aplication using this sensor soon.

 

Como sempre, deixo um pequeno video mostrando o circuito a funcionar.

As always, here´s a small video showing the working circuit.