Go Down

Topic: Coding Help (Read 76 times) previous topic - next topic


Feb 27, 2017, 07:49 pm Last Edit: Feb 27, 2017, 08:09 pm by aidans1325
Hey Everyone, I'm brand new to coding arduino but need help with a project for school. We are using an arduino uno and an adafruit adxl377 accelerator. We are looking for help from someone to help us code a program that will light up an led when the accelerometer reaches 90 g's in an direction. Once it reaches 90 g's the light will stay on for 10 minutes. After that it will reset. We haven't started at all. If anyone can help us out that would be much appreciated. All work will be credited! Please no hate! Thank You!! MSG for more details or if interested.


90 G's? Are you shooting this from a cannon?

Certainly willing to help. Have you written up a detailed description of what the program needs to do? A lot more detailed that what you have here. What have you got so far for the program?



Feb 27, 2017, 07:55 pm Last Edit: Feb 27, 2017, 08:19 pm by aidans1325
Hey Paul, so far we have nothing. We have been searching around for a good place to start but have found nothing so far. This is going to be used inside a football helmet and when the helmet gets a certain force or greater it will light up. We have more details, msg me for more detail and if your still interested.


I am interested in seeing what you can do! Have you used example programs with the Arduino and the accelerator?

By the way, 1 G is 32ft/sec. I would be very surprised if two people hitting heads together are moving fast enough to generate more than 2-3G.



Feb 27, 2017, 09:01 pm Last Edit: Feb 27, 2017, 09:02 pm by AWOL
Talk to this guy and this guy - they have very similar problems to yours, and very identical IP addresses - you should get together.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.



Talk to this guy and this guy - they have very similar problems to yours, and very identical IP addresses - you should get together.
Good catch!




You might want to check this site out:

Right! I forgot the other /sec. So if the head stops in 0.1 sec, the G is 10X 32 ft/sec. 0.01 sec stopping is 100X 32 ft. per sec.




Here's your psudeo code:

if we are experienceing 90g,
  then light the LED, and make a note of the time it is now (millis())
if the LED is lit, and it has been 10 minutes since we turned it on 10L*60L*1000L ms
  turn the LED off
  do nothing


Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131