Go to advanced search

by 3v3IB
Wed Mar 16, 2016 10:35 pm
Forum: Other projects
Topic: Free fall with accelerometer (freescale MMA845x)
Replies: 15
Views: 4109

Re: Free fall with accelerometer (freescale MMA845x)

I dont how do in python to read the interruption ! I connected to a GPIO but I do not know how to read it !
for the answer on the register 0d , I'll look
thank you
by 3v3IB
Wed Mar 16, 2016 4:23 pm
Forum: Other projects
Topic: Free fall with accelerometer (freescale MMA845x)
Replies: 15
Views: 4109

Re: Free fall with accelerometer (freescale MMA845x)

Hello ! my program still does not work with the code provided in the documentation. Help me thanks #!/usr/bin/python # -*- coding: utf-8 -*- import time from Adafruit_I2C import Adafruit_I2C CTRL_REG1_Data = 0x2A i2c = Adafruit_I2C(0x1c) i2c.write8(0x2A, 0x20) i2c.write8(0x15, 0xD8) i2c.write8(0x17,...
by 3v3IB
Fri Mar 04, 2016 1:00 pm
Forum: Other projects
Topic: Free fall with accelerometer (freescale MMA845x)
Replies: 15
Views: 4109

Re: Free fall with accelerometer (freescale MMA845x)

Program : #Bibliothèque import time from Adafruit_I2C import Adafruit_I2C import struct from math import * # Registers OUT_X_MSB = 0x01 CTRL_REG1 = 0x2A XYZ_DATA_CFG = 0x0E i2c = Adafruit_I2C(0x1c) # Adresse accéléromètre # Setups for calculation with configuration 2g gPerCount = 2.0 /128 #Recovery...
by 3v3IB
Fri Mar 04, 2016 7:30 am
Forum: Other projects
Topic: Free fall with accelerometer (freescale MMA845x)
Replies: 15
Views: 4109

Re: Free fall with accelerometer (freescale MMA845x)

Yes, of course but when I read the datasheet , I do not understand! I have an acceleration of 2g, but never my values ​​are all 0.
by 3v3IB
Thu Mar 03, 2016 9:42 pm
Forum: Other projects
Topic: Free fall with accelerometer (freescale MMA845x)
Replies: 15
Views: 4109

Re: Free fall with accelerometer (freescale MMA845x)

Yes, I use a raspberry Pi in my project.
I research how to program with RPi to detect a fall with my accelerometer
by 3v3IB
Thu Mar 03, 2016 2:00 pm
Forum: Other projects
Topic: Free fall with accelerometer (freescale MMA845x)
Replies: 15
Views: 4109

Free fall with accelerometer (freescale MMA845x)

Hello everyone ! I am french student an Biomedical engineering. I currently have an electronic project. I have to detect a fall with accelerometer (MMA845x). I can get the values of x, y and z with my programming in python. I do not know how to detect a fall with this information? The sensor is plac...

Go to advanced search