All Questions
Tagged with accelerometer programming
7 questions
2
votes
3
answers
210
views
I develop an earthquake detector but when it detects a movement, the alarm doesn't stop from ringing
This is the code that I used. Actually, I use to code: for Arduino sofware and processing IDE software.
Arduino Source Code/Program:
#include<LiquidCrystal.h> // lcd Header
LiquidCrystal lcd(7,6,...
2
votes
1
answer
213
views
My motor driver gets stuck in either high or low with a certain speed super randomly. Motor output stops going based on accelerometer input
Running a DC motor(6.5A max input), motor driver (MD10C 7Amp peak output), and arduino Mega.
Basically, I am creating a stabilized object based on the accelerometer's input. It works great but all of ...
-1
votes
1
answer
45
views
acelermetor count goes down after 1 peak
I am using a Wemos D1 Mini and an mpu 6050 accelerametor. I managed to get the acceleratmetor to work and have 1 value come out of movements. So when a peak it hit (aka, the threshold of 1.00 is hit) ...
-1
votes
2
answers
138
views
Is it possible to get values only during vibration/movement from an Accelerometer(ADXL335/MPU6050)?
I'm trying to make a wearable motion sensor using ESP32 board and ADXL335 Accelerometer.
Presently when I'm serial printing the output I'm getting the tilt value as well, which have different values ...
-1
votes
1
answer
889
views
How to use H3LIS331DL 3-Axis Linear Accelerometer with arduino to detect Harsh braking of vehicle
I am a newbie here, Recently I was working with H3LIS331DL 3-Axis Linear Accelerometer I²C Mini Module
Here is code for the X, Y, Z-axis.
#include <movingAvg.h>
#include <...
-4
votes
1
answer
86
views
Need help with my project
Can anyone give me the full code of my project because my code is not working?
My aim is that when the Z axis of an accelerometer is below 370 and a pushbutton connected to a pin 2 becomes high, then ...
0
votes
1
answer
3k
views
Using MMA8451 accelerometer to count steps [duplicate]
I'm trying to use an Adafruit MMA8451 accelerometer to create a pedometer-type device that counts steps. I'd like to initiate a counter that says "if the x-axis readout is > some threshold, add 1 to ...