Show Posts
Pages: 1 ... 50 51 [52] 53 54 ... 196
766  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.
767  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.
768  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.
769  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. 
770  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.
771  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.
772  Using Arduino / Project Guidance / Re: Using multiple push-buttons on: December 03, 2013, 11:48:08 pm
You need to use the Keypad library.
773  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.
774  Using Arduino / Project Guidance / Re: motor wireless transmittion on: December 03, 2013, 02:54:30 am
If your computer will not let you access the com port then, there are two other ways but they would require shields. One would be to use a SMS shield to send a text message to your phone. And the other would be to use a SD card. Actually if you want, you could also use an Arduino LCD screen and what ever messages you get, you display.
775  Using Arduino / Programming Questions / Re: utouch ssd1963 5 inch problem on: December 02, 2013, 04:48:22 pm
You have the same problem I have, its the touch pad itself. If I tap the screen a few times in the same spot, it see a line like pattern go towards the top right of my screen. My guess is that the air bubble in between the two layers is not big enough, so when they touch, other places touch too. The way I solved this was to make a button function that ignores any outside spots, so it only accepts values within a certain space.

Code:
boolean TouchButton(int x1, int y1, int x2, int y2, int xc, int yc) // xc / yc = X touch coord, Y touch coord
{
  if (orient==LANDSCAPE) // flip touch coords depending on screen orientation LANDSCAPE / PORTRAIT
  {
    xc = xc ^ yc;
    yc = xc ^ yc;
    xc = xc ^ yc;
  }

  if (x1>x2)
  {
    x1 = x1 ^ x2;
    x2 = x1 ^ x2;
    x1 = x1 ^ x2;
  }
  if (y1>y2)
  {
    y1 = y1 ^ y2;
    y2 = y1 ^ y2;
    y1 = y1 ^ y2;
  }

  if(xc >= x1 && xc<= x2 && yc >= y1 && yc <= y2) return true;
  return false;
}
776  Using Arduino / Project Guidance / Re: motor wireless transmittion on: December 02, 2013, 05:41:42 am
The command prompt is not with the arduino software, it is the DOS cmd. All you should need to do is just type in your arduino com port and it should open a connection. Whatever messages you have on the arduino should show up in a batch file. However if your not sending anything, then you won't see anything. There is another command you can try, "echo < COM'number' "
777  Using Arduino / Project Guidance / Re: motor wireless transmittion on: December 01, 2013, 07:07:42 pm
There is a way to read received messages without shields or the need for the Arduino serial monitor, and that would be to go into the command prompt.

You should be able to send a message from the transmitting Arduino, to the receiving Arduino and be able to see it by accessing the COM Port of the receiving Arduino.

It should be just typing in that Arduino's COM port.

C:\> COM"number" example: COM5, you should be able to see the batch file with Notepad, but if you have windows 8, you might not be allowed.
778  Using Arduino / Project Guidance / Re: HELPME PLEASE!!! I NEED TAKE OUT A DOUBT on: December 01, 2013, 11:40:05 am
I use Eclipse java programmer.
779  Using Arduino / Project Guidance / Re: HELPME PLEASE!!! I NEED TAKE OUT A DOUBT on: November 30, 2013, 10:47:11 pm
It's possible but not easy. You need to make your own GUI or at least find a simple template. How much programming experience do you have already? What do you prefer to use, iOS or Android? With any luck you can go to Gigs and Collaborations and ask someone to make it for you, for a price of course.
780  Using Arduino / Programming Questions / Re: Touch Screen Password Input on: November 30, 2013, 04:40:22 pm
No the accel is being read through the analog pins.
Pages: 1 ... 50 51 [52] 53 54 ... 196