Show Posts
Pages: [1]
1  Using Arduino / Sensors / IR - recieve(d) code(s) - howto use ??? on: January 28, 2011, 02:03:58 am
Hello all.

I am playing with an IR-reciever i plugged out off, some old electronics, i can't tell the Khz off the thing, but it has three legs 1=OUT 2=GND 3=+5vdc (VCC).

I sat it up on the Arduino, and had a lot of problems, recieving codes, until i found this code on the net :

http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html

Quote
#include <IRremote.h>

int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;

void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver
}

void loop() {
  if (irrecv.decode(&results)) {
    Serial.println(results.value, HEX);
    irrecv.resume(); // Receive the next value
  }
}

Now i am getting code's... ect. REMOTE DOWN = 801491a9 - but i can't figure out howto go from here ??? - I tried diferent code's to catch the output, but can't make it work. ?

Can any here help me further on ???

Jesper.
2  Forum 2005-2010 (read only) / Syntax & Programs / Re: Audio input selector with arduino on: October 04, 2010, 12:03:55 pm
Yeaa... I know i could use som "logic" TTL's. .. But i am planning using the arduino with a display, so i can see, witch input is selected...
3  Forum 2005-2010 (read only) / Syntax & Programs / Re: Audio input selector with arduino on: October 04, 2010, 10:56:00 am
Ok, i got the message...

I will post later in progress when i have wrote some code.

Jesper.
4  Forum 2005-2010 (read only) / Syntax & Programs / Re: Audio input selector with arduino on: October 04, 2010, 09:36:28 am
Excatly a state machine (a word i was looking for).

Do you have a code for that, to get me going for a start ?

Jesper.

BTW: Isen't it possible to attach a picture here ???
5  Forum 2005-2010 (read only) / Syntax & Programs / Audio input selector with arduino on: October 04, 2010, 08:03:36 am
Hello, i am in progress in making an Audio input selector  8-)

I allready made the PCB's, with the relay's. I am making it with 6 inputs. The relay's used are omron 5vdc. I allready have some transistors, and whatever i have to use for switching the relays on/off.

I need a setup, where i use two pushbuttons, one for switching to the next relay in the line, and one for switching to the one "before". A sort of counting up/down code.

Each relay have it's own pin for the coil on the pcb. - So i think i have to use 6 output from the ArduinoBoard to control each relay.

Could somebody help me started with the code for this ?

Jesper.




6  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: 4x20 HD44780 display and 6pcs. relay. on: June 29, 2010, 03:56:21 pm
Ahhh... Ok, now i understand your'e upinnion !

I think i can use the analog input's for my 2 buttons though, but i am not sure ?

Jesper.
7  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: 4x20 HD44780 display and 6pcs. relay. on: June 29, 2010, 03:32:30 pm
Ok, i see what you meen, but i stil, want to see, if it's possible to do without extensions...

When you say analog pins, you meen analog input 0 - 5 right ?
Like described :

Digital I/O Pins 14 (of which 6 provide PWM output)
Analog Input Pins 6

I use only 6 pins, so giving me 7 spares(enough for 6 relays) ? - Right ?

Jesper.
8  Forum 2005-2010 (read only) / Frequently-Asked Questions / 4x20 HD44780 display and 6pcs. relay. on: June 29, 2010, 02:38:02 pm
Hello here...

I am new into Arduino-stuff, but it's really cool and fun playing with. I have been making DIY-Audio for a decade now, but newer tried using programmable chip's before. I bought my Duemilanove for the purpose of making an input-selector for a new Pre-amp, i am making (It's a PASS B1-pre.).

I have allready attached a display, but i was wondering if it's possible to make the shifting of 6 relays, without using another Atmel processor ?

The pin's used for the display is as follow :
2, 3, 4, 5, 11, 12. And for spare there is 0, 1, 6, 7, 8, 9, 10

The shifting should be done with 2 pushbotton's (NormallyOpen), i have 5vdc psu, transsistors, resistors ready, and the relay's are 5vdc. / 160ohm, witch gives around 30mA, therefore i have to use transistor and seperate psu!

I would have the 2 pushbottons to count up, or down, from relay 1 to relay 6 (Audio-input) - Well there is some Toslink included in my setup, but it's dosent really have something to do with the Atmel.

well i think it's possible, but i could use some hint's / sketchs, or whatever to get going the right direction. - I must say, that i am a very newbee into this.

I would very much upload a picture, if i would be allowed (no browse botton) ?  smiley

Jesper.


Pages: [1]