Code for calculating G-force using ADXL335.

Go To Last Post
10 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hi Friends,
need your help for a project.actually i want a code in C .
actually what i am trying to do is take input of all three axis (analog)of adxl335 into microcontroller atmega168.
and i want to connect lcd from my controller and i want
lcd to display the g force experienced by adxl335
pls send me the code..

thanks in advance 8)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Search says there are 18 threads about adxl335. Have you read them?

(moved from AS4 to AVR forum)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

no freind
these threads dont seem to resolve my query
i have seen them......

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

A simple google search "adxl335 arduino" leads to http://chionophilous.wordpress.c... (commented code ; interesting IT links; following posts explain how to calibrate it )

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Here's something to study

Attachment(s): 

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

well a lot of thanks to bob and dbrion

bob can this code work in atmega 168?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

bob kindly explain the code to me bcause i m not that good in coding...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Then NOW is a very good time to become better at coding.

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

this code isnt compiling in avrstudio4..

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Try it with the imagecraft compiler. (It says this on the 3rd line...)

Imagecraft compiler user