Arduino Thread

NyxCharon

Active Member
Anyone else have one?

I'm currently working on using a IR remote and some steppers together to control a catapult.

For those of you who don't know what I'm talking about:
arduino_uno_test.jpg

http://arduino.cc/
Cost around $30 and the amount of stuff you can do with them is limitless.
It uses a basic IDE and a java like syntax to program.
 

Troncoso

VIP Member
Anyone else have one?

I'm currently working on using a IR remote and some steppers together to control a catapult.

For those of you who don't know what I'm talking about:
arduino_uno_test.jpg

http://arduino.cc/
Cost around $30 and the amount of stuff you can do with them is limitless.
It uses a basic IDE and a java like syntax to program.

Is this similar to the rasberry pi? I guess I could read the link, but I thought I would ask first.

Edit: Quick read says it's not the same, but very interesting. I think I should try and gather $30.
 
Last edited:

NyxCharon

Active Member
Not really. It's not meant to be a small computer. It's more of a interface to work with lots of different hardware. You write some code, upload it to the board, and then the board does what it need with the hardware you wired to it. They only run about $25-30, and you can even get them at radioshack.
 

Troncoso

VIP Member
Not really. It's not meant to be a small computer. It's more of a interface to work with lots of different hardware. You write some code, upload it to the board, and then the board does what it need with the hardware you wired to it. They only run about $25-30, and you can even get them at radioshack.

Do you not have to provide it drivers for the variable peripherals you give it?
 

NyxCharon

Active Member
Do you not have to provide it drivers for the variable peripherals you give it?

For the hardware you plug into it? Nope. There's built in libraries for everything. For instance, my IR sensor I just imported the IR sensor library,
Code:
#include <IRremote.h>

the whole code looks like this:
Code:
#include <IRremote.h> // use the library

int receiver = 11; // pin 1 of IR receiver to Arduino digital pin 11

IRrecv irrecv(receiver); // create instance of 'irrecv'

decode_results results;

void setup()

{

  Serial.begin(9600); // for serial monitor output

  irrecv.enableIRIn(); // Start the receiver

}

void translateIR() // takes action based on IR code received


{

  switch(results.value)

  {

    case 0xFF629D: Serial.println("Mode"); break;

    case 0xFFA25D: Serial.println("Power button"); break;

    case 0xFFe21D: Serial.println("Mute"); break;

    case 0xFF22DD: Serial.println("Previous"); break;

    case 0xFF02FD: Serial.println("Next"); break;

    case 0xFFC23D: Serial.println("Play/Pause"); break;

    case 0xFFE01F: Serial.println("Vol -"); break;

    case 0xFFA857: Serial.println("Vol +"); break;

    case 0xFF906F: Serial.println("EQ"); break;

    case 0xFF6897: Serial.println("0"); break;

    case 0xFF9867: Serial.println("100+"); break;

    case 0xFFB04F: Serial.println("Repeat"); break;

    case 0xFF30CF: Serial.println("1"); break;

    case 0xFF18E7: Serial.println("2"); break;

    case 0xFF7A85: Serial.println("3"); break;

    case 0xFF10EF: Serial.println("4"); break;

    case 0xFF38C7: Serial.println("5"); break;
  
    case 0xFF5AA5: Serial.println("6"); break;
    
    case 0xFF42BD: Serial.println("7"); break;
    
    case 0xFF4AB5: Serial.println("8"); break;
    
    case 0xFF52AD: Serial.println("9"); break;
    
    case 0xFFFFFFFF: break;

    
    default:  Serial.print("Other button:"); Serial.println(results.value, HEX);

  }

  delay(500);

  //lcd.clear();

}

void loop()

{

  if (irrecv.decode(&results)) // have we received an IR signal?

  {

    translateIR();

    for (int z=0; z<2; z++) // ignore 2nd and 3rd signal repeat

    {

      irrecv.resume(); // receive the next value

    }

  }

}
 

dug987654

New Member
I (and group) used an Arduino for a uni project, making a footrest for the footwell in the back of a Bentley. We used a push on-push off switch to turn it on/off, and a (on)-off-(on) rocker switch for forwards and backwards, with four limit switches, three solenoids and forwards/backwards motor. As the motor we were using required a lot of power we had to have additional switches to step up the power, and H-bridge for direction changing and some other stuff. It started to get a little messy!

Got a video of it working here:

http://www.youtube.com/watch?v=qudAoKjm_Jw

And principle of how it works here:
tpd_gifani.gif


The amount of electronics started to get a bit messy:

tpd_footrest.jpg


My portfolio webpage has a report on the project if anyones actually that interested! http://www.douglasrose.co.uk/tpd.html
 
Top