Show Posts
Pages: [1] 2
1  Using Arduino / General Electronics / Re: CAD software on: June 21, 2011, 08:10:48 pm
Thanks guys. I have had a go with Eagle and just cannot get my head around it. I'm sure it is a very good piece of software but it is very unintuitive (it's free I suppose) so I am now having a look into the AutoCad Electrical and something called DesignSpark PCB. I will have to BootCamp my Mac for both of these pieces of software (nevermind LOL).

Thanks again
2  Using Arduino / General Electronics / Re: CAD software on: June 20, 2011, 02:09:00 pm
Thanks a lot. Ill give Eagle a go, that 80x100mm limitation is all I need anyway.
3  Using Arduino / General Electronics / CAD software on: June 20, 2011, 11:25:00 am
Hello there,

Could anybody please advise me on appropriate CAD software to design a PCB. Bare in mind that I use a Mac and would preferably like the software package to be as cheap as possible.

I am constructing a robot for my third year University project and at the moment I am using a prototyping board. Later on in the project I wish to get a PCB made so the final 'product' is more compact. Any advise would be a great help

Thanks
4  Using Arduino / Networking, Protocols, and Devices / Re: Final Year University Project WiFi Recommendation on: April 02, 2011, 12:11:59 pm
I was looking at the WiFly module from Sparkfun
5  Using Arduino / Networking, Protocols, and Devices / Re: Arduino - Arduino bluetooth connection. on: April 02, 2011, 10:37:46 am
There should be no reason why this is not possible. I have used a bluetooth module with my Arduio, but I was connecting to a PC. The module I used was called BlueSMiRF
6  Using Arduino / Networking, Protocols, and Devices / Final Year University Project WiFi Recommendation on: April 02, 2011, 10:17:50 am
Hello fellow forumers,

I am currently a second year student studying computer science and will be, for my final year project (next year), be building a robot that maps out the WiFi signals from within a building and then uses this data to find its way around. However, I am not able to find a suitable WiFi module that is capable of connecting to a standard 802.11 wireless network and is also able to collect signal strength and MAC addresses of near by wireless access points. Is there anybody out there that could recommend me one?

Thanks a lot,
Tomas
 smiley-lol
7  Forum 2005-2010 (read only) / Interfacing / Re: HELP with Arduino and Parallax MMA7455 on: April 26, 2010, 09:49:59 am
Thanks anyway, in fact ill probably change my casting technique over to using a return type of Unsigned int

Cheers
8  Forum 2005-2010 (read only) / Interfacing / Re: HELP with Arduino and Parallax MMA7455 on: April 24, 2010, 04:28:33 pm
No worries, I fixed it. I stupidly forgot to cast the byte value, returned by the receive() function, to an integer before returning from the accRead() function

Thank you all for your help, especially gbulmer, you have been great help
9  Forum 2005-2010 (read only) / Interfacing / Re: HELP with Arduino and Parallax MMA7455 on: April 24, 2010, 04:20:15 pm
Right, I have it working now, but the registers that should contain numbers for the X Y Z coordinates out put funny ASCII characters.
Code:
/*
  Accelerometer
  
  A Program which takes input from an accelerometer and outputs the
  data to the serial port
  
  Hardware:      Parallax MMA7455
  Concept Usage: Games controller
*/

#include <Wire.h>

#define ACCELEROMETER 0x1D //Address for Accelerometer

//REGISTERS
#define MODE_CONTROL  0x16 //Mode control register
#define PULSE_DET     0x1B //Pulse detection threshold limit value
#define X_OUT         0x06 //8 bit register containing value for X
#define Y_OUT         0x07 //8 bit register containing value for Y
#define Z_OUT         0x08 //8 bit register containing value for Z
#define DETECTION     0x0A //Detection source register

//VALUES
#define Z_PULSE       0x40 //Pulse detected on Z-axis
#define SENSEVALUE    0x25 //Default sensitivity level

//required setup function
void setup() {
    Wire.begin();
    Serial.begin(9600);
    accWrite(MODE_CONTROL, SENSEVALUE);
}

//required loop function
void loop() {
    Serial.print("X: ");
    Serial.print(accRead(X_OUT));
    Serial.print("   Y: ");
    Serial.print(accRead(Y_OUT));
    Serial.print("   Z: ");
    Serial.println(accRead(Z_OUT));
    delay(100);
}

//function to write byte data into a register
void accWrite(byte address, byte data) {
    Wire.beginTransmission(ACCELEROMETER);
    Wire.send(address);
    Wire.send(data);
    Wire.endTransmission();
}

//function to read byte data from a register
byte accRead(byte address){
    byte val = 0x00;
    Wire.beginTransmission(ACCELEROMETER);
    Wire.send(address);
    Wire.endTransmission();
    Wire.requestFrom(ACCELEROMETER, 1);
    if(Wire.available() > 0) {
        val = Wire.receive();
    }
    Wire.endTransmission();
    return val;
}

The output I get is like this:
X: ú   Y: å   Z: P
X: ü   Y: æ   Z: O
X: û   Y: å   Z: P
Ill keep hacking away to try fix it, but I have had no luck so far
10  Forum 2005-2010 (read only) / Interfacing / Re: HELP with Arduino and Parallax MMA7455 on: April 24, 2010, 10:21:21 am
Seriously need help. I think I have hooked up my accelerometer correctly to the arduino and I have come up with some software to run it, however I have run into problems. I have noticed that every time the Wire.endTransmission() function is called the program hangs. Do you think this is because it has been wired up incorrectly?

Code:
#include <Wire.h>

#define ACCELEROMETER 0x1D //Address for Accelerometer

//REGISTERS
#define MODE_CONTROL  0x16 //Mode control register
#define PULSE_DET     0x1B //Pulse detection threshold limit value
#define X_OUT         0x06 //8 bit register containing value for X
#define Y_OUT         0x07 //8 bit register containing value for Y
#define Z_OUT         0x08 //8 bit register containing value for Z
#define DETECTION     0x0A //Detection source register

//VALUES
#define Z_PULSE       0x4  //Pulse detected on Z-axis
#define SENSITIVITY   0x25 //Default sensitivity level

//required setup function
void setup() {
    Wire.begin();
    Serial.begin(9600);
    accWrite(MODE_CONTROL, SENSITIVITY);
}

//required loop function
void loop() {
    Serial.println("Begin");
    accRead(MODE_CONTROL);
    delay(100);
    Serial.println("Done");
}

//function to write byte data into a register
void accWrite(byte address, byte data) {
    Wire.beginTransmission(ACCELEROMETER);
    Wire.send(address);
    Wire.send(data);
    Wire.endTransmission();
}

//function to read byte data from a register
byte accRead(byte address){
    byte val = 0x00;
    Wire.beginTransmission(ACCELEROMETER);
    Wire.send(address);
    Wire.requestFrom(ACCELEROMETER, 1);
    val = Wire.receive();
    Serial.println(val);
    Wire.endTransmission();
    return val;
}

Thanks again
11  Forum 2005-2010 (read only) / Interfacing / Re: HELP with Arduino and Parallax MMA7455 on: April 22, 2010, 11:53:32 am
Thanks again gbulmer

You have been a great help. I feel now I can wire this thing up

Cheers  smiley-grin
12  Forum 2005-2010 (read only) / Interfacing / Re: HELP with Arduino and Parallax MMA7455 on: April 21, 2010, 11:13:44 am
Can anybody just confirm how to hook up the data line of the Accelerometer to the arduino board. Thanks a lot gbulmer for your help, i just wish to confirm your suspicions.

  smiley
13  Forum 2005-2010 (read only) / Interfacing / Re: HELP with Arduino and Parallax MMA7455 on: April 20, 2010, 08:55:22 am
Thanks thats great. The link you posted describing the pin layout of the microprocessor was a great help
14  Forum 2005-2010 (read only) / Interfacing / Re: HELP with Arduino and Parallax MMA7455 on: April 20, 2010, 06:37:39 am
I think that my main problem arises when trying to hook up the accelerometer. I want to hoop it up via an SPI connection. I know how to wire up the ground and the voltage pins but i dont really understand how to wire up the CLK, DATA and CS pins coming from the accelerometer module. Any help with this would be great and will hopefully enable me to greatly progress with my project
15  Forum 2005-2010 (read only) / Interfacing / Re: HELP with Arduino and Parallax MMA7455 on: April 17, 2010, 01:20:16 pm
Thanks a lot. This will be a great help.  ;D
Pages: [1] 2