Pages: [1]   Go Down
Author Topic: I need Help with Triple Axis Accelerometer Breakout - MMA7361 code  (Read 1296 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi I'm new in this and I have basic stamps and a Triple Axis Accelerometer - MMA7361.

I need the code or routine to use the MMA7361 with basic stamp.

The Arduino code is:

http://www.geeetech.com/wiki/index.php/MMA7361_Triple_Axis_Accelerometer_Breakout
http://arduino.cc/forum/index.php/topic,38132.0.html

It would be great if someone could help. Thanks.
Logged

Offline Offline
Edison Member
*
Karma: 58
Posts: 2078
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you have a Arduino Uno, connect Arduino GND to GND. Arduino 3.3V to Vdd and the analog outputs of the sensors to analog inputs of the Arduino.

Have you tried a few examples ? They are included in the Arduino software program (the "Arduino IDE").
Can you read an analog pin and write it to the serial monitor ?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


  Sorry but I don't have Arduino Uno, I need the code for BS2.

 I was wondering if someone could help me or if anyone had the code and could share it with me please.

 Thanks.
Logged

Norway
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi AlexGR!

As far I can see, the BS2 is a stripped down copy of the Arduino Uno.
You should, however, not have any problems using this instead of the Aruino Uno on this build
You may have to download and install the Arduino developement package : http://arduino.cc/en/Main/Software
You might also want to find and print out a picture of an origonal Arduino Uno. Just to see what the pins are called on the Arduino ...

On the webpage you supplied, there is a picture and a "pin to pin configuration" table of how they want you to connect it to your Arduino.
When you are done plugging it up, there will be 9 cables connected to the MMA7361 board. There will also be a cable from 5volt to the AREF on the Arduino board.


The webpage gives you an example code. It looks like plain sailing.
Just copy and paste it into your Arduino IDE.

PS: the example has an Include line at the top.
This is not a file I'm familiar with. Does the Accelerometer come with a CD or someting?
... Make sure to copy this file to your work folder of this build before you compile it.

If you get no errors while compiling, then you are good to go :-)
Logged

Offline Offline
Edison Member
*
Karma: 58
Posts: 2078
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What is BS2 ?
Is it the Parallax BASIC Stamp ?
http://www.parallax.com/Store/Microcontrollers/BASICStampModules/tabid/134/ProductID/1/List/1/Default.aspx?SortField=UnitCost,ProductName
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


 yes it is.
« Last Edit: April 26, 2013, 12:49:29 pm by AlexGR » Logged

Offline Offline
Edison Member
*
Karma: 58
Posts: 2078
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That is a PIC chip.
Does it have analog inputs ? You only need 3.3V and three analog inputs.
Perhaps you should ask your question on another forum.

Can you replace it with an Arduino ?
Logged

Pages: [1]   Go Up
Jump to: