Show Posts
Pages: 1 ... 38 39 [40] 41 42 ... 196
586  Using Arduino / Project Guidance / Re: Robot arm "control board"... any thoughts? on: January 07, 2014, 02:31:29 am
I would personally go with the Due, it's faster and like the Mega, it has a lot of pins.  Another good reason is of course multiple serial ports, so you don't need to use software serial and risk any of your libraries using a timer that is already being used for the servos.

Interfaces:
It really depends on what you/she plans on doing with it. You could get a TFT with a touch screen to make it look high tech, or use say an android table or IPad via wifi or bluetooth. This would also double as a keypad and other various buttons, if needed. I would include the bluetooth anyways just so you can debug without needing to be connected to a computer.

Power:
There are some really good power units that are also quite compact and provide a good range of voltages. My friend had one, I'll see if I can get the name if it. If anything, you can make your own with a 12V power pack and use regulators to get the required voltages. This is not exactly what he had, but it is very similar 12 volt power supply

Accessibility:
You may want to make a breakout board, one with various connectors like Dupont pins (male and female) and some screw sockets.
587  Using Arduino / Programming Questions / Re: Brute Force 4 digit code, need correct pin logged on: January 06, 2014, 11:17:13 pm
This sounds familiar to this post HERE
588  Using Arduino / Project Guidance / Re: Arduino BLE pairing on iPhone on: January 06, 2014, 11:15:09 pm
No, the link I gave you is the modules the DONT work.
589  Using Arduino / Project Guidance / Re: Arduino BLE pairing on iPhone on: January 06, 2014, 09:56:36 pm
Some modules do work but the normal ones like this HERE, does not.

Do a search for compatible "Arduino bluetooth modules" that work with the Iphone and see what you get.
590  Using Arduino / Project Guidance / Re: Arduino BLE pairing on iPhone on: January 06, 2014, 09:34:59 pm
The iPhone has a different protocol, so only certain modules are able to be paired. I heard that the GoldSmirf can be paired, but HC - 05/06 modules can't be.
591  Using Arduino / Programming Questions / Re: Class interfaces and operands on: January 06, 2014, 09:28:09 pm
Can you show us what your getting as an output?
592  Using Arduino / Project Guidance / Re: love o meter starting project on: January 06, 2014, 09:18:31 pm
Here's your problem. Your IF statements are garbage.
Quote
else if(temperature >= baselineTemp+2 && temperature > baselineTemp){

Use case statements, like so.
Code:
switch( int( temperature ) )
  {
  case 0 ... 19:
    digitalWrite (2,LOW);
    digitalWrite (3,LOW);
    digitalWrite (4,LOW);
    digitalWrite (5,LOW);
    digitalWrite (6,LOW);
    break;

  case 20 ... 22: // not really need to do it like this, its a little much, but I like consistency
    digitalWrite (2,HIGH);
    digitalWrite (3,LOW);
    digitalWrite (4,LOW);
    digitalWrite (5,LOW);
    digitalWrite (6,LOW);
    break;

  case 23 ... 24:
    digitalWrite (2,HIGH);
    digitalWrite (3,HIGH);
    digitalWrite (4,LOW);
    digitalWrite (5,LOW);
    digitalWrite (6,LOW);
    break;

  case 25 ... 26:
    digitalWrite (2,HIGH);
    digitalWrite (3,HIGH);
    digitalWrite (4,HIGH);
    digitalWrite (5,LOW);
    digitalWrite (6,LOW);
    break;

  case 27 ... 28:
    digitalWrite (2,HIGH);
    digitalWrite (3,HIGH);
    digitalWrite (4,HIGH);
    digitalWrite (5,HIGH);
    digitalWrite (6,LOW);
    break;

  case 29 ... 500:
    digitalWrite (2,HIGH);
    digitalWrite (3,HIGH);
    digitalWrite (4,HIGH);
    digitalWrite (5,HIGH);
    digitalWrite (6,HIGH);
    break;
  }
593  Using Arduino / Project Guidance / Re: love o meter code on: January 06, 2014, 07:16:36 pm
No cross posting, just update your original post.
594  Using Arduino / Project Guidance / Re: love o meter starting project on: January 06, 2014, 05:44:51 pm
Something does not look right.

Quote
ps:  my leds are connected to pins 2 to 6 and the sensor to a0
.
.
.
 for (int x=1; x<5;x++){ // pins 1 - 4
.
.
.
digitalWrite (1,LOW);
digitalWrite (2,LOW);
digitalWrite (3,LOW);
digitalWrite (4,LOW);
digitalWrite (5,LOW);


595  Using Arduino / Project Guidance / Re: 12 digit Keypad-controlled lock not working on: January 06, 2014, 04:58:16 pm
The code you originally posted already had pins set up.
Quote
byte rowPins[ROWS] = {5, 4, 3, 2};
byte colPins[COLS] = {8, 7, 6};
Why not just follow the sketch and use them?
596  Using Arduino / Project Guidance / Re: touch screen buttons on: January 06, 2014, 01:52:22 pm
To get you buttons to work, you first need to know if you are able to get feedback from the touch screen.
Next you will need to calibrate your touch screen and set the boundaries. Once you got all that and you can see where you are touching the screen with X and Y values and it is accurate to the screen, you can then use this.

Code:
TouchButton(int x1, int y1, int x2, int y2, int xc, int yc) // the first four values are the coordinates of where your button is on the screen, then the second two values are the raw touch coordinates.
{
int tmp;
  if(xc >= x1 && xc<= x2 && yc >= y1 && yc <= y2) return true;
  return false;
}
597  Using Arduino / Project Guidance / Re: Arduino + Bluetooth + Android + Motors on: January 06, 2014, 01:43:23 pm
Hi, could you give me an example string you will be sending? Also a minor correction, and you should take out the delays.
Quote
void movedireita(int velocidade = 255){
  analogWrite(direcao[1], velocidade);
  digitalWrite(direcao[1], LOW);
598  Using Arduino / Project Guidance / Re: Dual axis solar tracker on: January 06, 2014, 01:37:26 am
I'm not into mumbo jumbo, nor do I understand that website. Is this a school project or just for fun?
599  Using Arduino / Project Guidance / Re: Dual axis solar tracker on: January 06, 2014, 12:46:47 am
So are you tracking wind or the sun? Either way the process is the same. four sensors means four different values.

TL ... TR  ( top left/right)
BL ... BR  ( bottom left/right)

What you can do is make an algorithm using IF/ELSE statements by taking the averages of the four sensors and then compare  them.

Compare the left side average "avg(TL, BL)" to the right side average "avg(TR, BR)" to give you PAN, and then do the same for tilt, avg(TL, TR) and avg(BL, BR). Which ever average is bigger, is where the tracker moves.

unsigned int Avg(unsigned int A, unsigned int B)
{
  return ( (A + B) / 2 );
}

Simple.
600  Using Arduino / Project Guidance / Re: 12 digit Keypad-controlled lock not working on: January 05, 2014, 08:13:32 pm
Your using pins 1 and 0 right? Don't, otherwise you won't be able to use the serial monitor. Start at pin 2
Pages: 1 ... 38 39 [40] 41 42 ... 196