Show Posts
Pages: 1 ... 80 81 [82] 83 84 ... 227
1216  Using Arduino / Project Guidance / Re: Using multiple push-buttons on: December 05, 2013, 03:58:53 am
All the grounds are tied together, so anyone of them will work.
1217  Using Arduino / Project Guidance / Re: Using multiple push-buttons on: December 05, 2013, 03:50:43 am
Quote
Would I just wire it as the above says to?
Yea, it's just three wires.

Serial works both ways, send and receive, so you can a message to the other arduino, and if you receive a message, you can simple add the persons name in front of it then display it.
Ex.
Serial.print("John: ");
Serial.print(message);

Or you can use the sprintf function to combine both into one and display the buffer, but that just a little over kill, just a little.
1218  Using Arduino / Project Guidance / Re: LED tetris HELP on: December 05, 2013, 03:46:57 am
It to me, does look like it could be a memory problem, but the thing is, the T is not the last piece, it's towards the middle of them. If it was the very last of the pieces, then I would be more confident to say it was a memory issue. Your rotate function seems ok, as it does rotate every other piece fine, so, I don't know.

Maybe someone else with better eyes can find the problem.
1219  Using Arduino / Project Guidance / Re: Using multiple push-buttons on: December 05, 2013, 03:37:02 am
Quote
I really am unsure about this working out. Is there a way to somehow connect the input from these two boards together?
You can easily do that via a Serial connection, cross wire them, but don't use Serial1 "Serial"on the first keyboard, you'll need that for the serial monitor.

Quote
Is there a way to save the outputs from the Serial Monitor? I would like to record the messages that is being typed from the keyboard.
There was a way to do it using the command prompt, but since I have Windows 8, I can't do it any more due to security reasons. Maybe someone else found a way around that issue.
1220  Using Arduino / Project Guidance / Re: LED tetris HELP on: December 05, 2013, 03:19:29 am
I tried to find where you initialized it, but couldn't find it.

Another thing, at what point does the piece mess up? Asa it gets on screen or asa you rotate it? (asa -> As soon as)
I'm curious as to why you chose to have a 16 x 16 byte array, where each element is considered a single byte, whereas using a single array of words? It would cut down your code and memory usage greatly, but also probably make it more confusing too.
1221  Using Arduino / Project Guidance / Re: Which language should I learn? on: December 05, 2013, 03:11:42 am
Apps are widely written in Java, so try the program Eclipse. More direct, look at Android App Developers + Eclipse.
Keep in mind, Java is not that easy.
1222  Using Arduino / Project Guidance / Re: LED tetris HELP on: December 05, 2013, 03:03:22 am
You may very well be running out of memory, but if it is just one piece that's causing a problem, it could be something else instead.  How big did you make the 3D array "pieces"?
1223  Using Arduino / Project Guidance / Re: LED tetris HELP on: December 05, 2013, 02:29:59 am
Wow, I was not expecting that much code.  Give me a few minutes to look over it. Actually since you know the code, where is the section that rotates the piece? Found it.
1224  Using Arduino / Project Guidance / Re: LED tetris HELP on: December 05, 2013, 01:14:06 am
I'm also making a Tetris game on a simple 8x8 dot matrix. I might be able to help you, post your code. Please use the code tags, it's the # sign above the smiley faces.
1225  Using Arduino / Project Guidance / Re: A good chassis to use for a car on: December 04, 2013, 08:25:24 pm
Why not just use a cheap store bought RC and test your code first, this way you can iron out any flaws. From there, you can then plan out how you want your bigger RC to look.
1226  Using Arduino / Project Guidance / Re: Arduino Robot Arm controlled by Joystick on: December 04, 2013, 08:20:46 pm
I would find a joystick with a few numbered buttons, the more buttons, the better. Keep in mind, you may also need to get a USB shield, otherwise you may need to scrap the motherboard and just directly solder the buttons and pots.

Tilting the joystick forward and back, would raise and lower the arm, and side to side would rotate the base. The buttons would control the other servos by how long they are pressed. 
1227  Using Arduino / Project Guidance / Re: Arduino UNO not receiving serial data(TX) from Bluetooth module on: December 04, 2013, 04:40:07 pm
What are you receiving from the phone? If you do Serial.println(val); you can see what your getting.

Added: you won't see anything on putty unless you echo what you type, but you can still type.
1228  Using Arduino / Project Guidance / Re: Arduino UNO not receiving serial data(TX) from Bluetooth module on: December 04, 2013, 04:14:20 pm
Have you tried using  Putty? There is an app called Bluetooth Chat for the android, it should work with your module.
1229  Using Arduino / Project Guidance / Re: Using multiple push-buttons on: December 03, 2013, 11:48:08 pm
You need to use the Keypad library.
1230  Using Arduino / Project Guidance / Re: Arduino UNO not receiving serial data(TX) from Bluetooth module on: December 03, 2013, 09:18:34 pm
Well being that, that is my sample code you have, I'll help you out.

I see that you changed a few things, or it could be whoever else used it last, changed a few things. But here is the original.
Code:
/*
simple LED test
 */

char val;         // variable to receive data from the serial port
const byte ledpin = 13;  // LED connected to pin 13 (on-board LED)

void setup()
{
  pinMode(ledpin, OUTPUT);  // pin 13 (on-board LED) as OUTPUT
  Serial.begin(115200);       // start serial communication at 115200bps
}

void loop() {
  if( Serial.available() > 0)       // if data is available to read
  {
    Serial.println("you have a connection");

    val = Serial.read();         // read it and store it in 'val'

    if( val == '0' )               // if '0' was received led 13 is switched off
    {
      digitalWrite(ledpin, LOW);    // turn Off pin 13 off
      delay(1000);                  // waits for a second   
      Serial.println("13 off");
    }

    if( val == '1' )               // if '1' was received led 13 on
    {
      digitalWrite(ledpin = 13, HIGH);  // turn ON pin 13 on
      delay(1000);                  // waits for a second
      Serial.println("13 on");
    }
  }
}

How is your wiring? You need to cross-wire the Tx and Rx pins from the BT module and Arduino, did you do that?
If you did, is the BT module paired to your phone indicated by the onboard LED. Blinking = not paired, Solid = paired.
Pages: 1 ... 80 81 [82] 83 84 ... 227