Show Posts
Pages: [1]
1  Community / Exhibition / Gallery / Re: AMIGA 500/1000/2000 Keyboard Interface on: June 05, 2014, 12:29:30 pm
Thanks for this code!

I just bought an Arduino Micro and connected an Amiga 2000 keyboard (the Cherry one!) to my MacBook and it's working!

As this keyboard doesn't have separate reset line, I had to remove the parts of the code (about waiting for the reset line) to get it working. Just wanted to point this out in case somebody else tries this with another 5-pin Amiga keyboard.
2  Topics / Home Automation and Networked Objects / Apple Remote's repeat code on: February 01, 2013, 02:37:31 pm

I am working on a small project that uses an IR led to send Apple Remote - IR-codes to control a docked iPhone's music player.

I am sending out IR commands using AppleRemote -code (a code similar to this: but it has defined the repeat code, too, as 0xFFFFFFFF). I can use that for sending individual commands and that works just fine, but how can I do repeat? I mean like fast forwarding a track, that on AppleRemote works holding down the next -key.

Most google results I have come across say that I should first send the code I want, followed by the repeat code (0xFFFFFFFF) but I can't get that working. I have tried a blank scetch with just the necessary things and sending the two commands with irsend.sendNEC.

Sending just the next -key code repeatedly just makes the iPhone to jump a hundred tracks forward. Sending the repeat code doesn't seem to do anything.
3  Using Arduino / Programming Questions / Re: Forming strings from digitalRead input and comparing them on: June 22, 2011, 03:59:51 pm
Hi. Thanks.
I did try the IRremove earilier but couldn't get it working for some (IDE) reason. The version you linked works. However the B&O remote codes are longer than what many other remotes use. When I run the IRrecord and capture a signal, I receive it in two separate parts as the code cuts it too early.

For example; I press CD on remote and serial monitor shows:

Received unknown code, saving as raw
 m1450 s1650 m1450 s1600 m1450
Received unknown code, saving as raw
 m1450 s1600 m1450 s4700 m1450

When I try to send it out, it doesn't work(=control the music system) as the software sends only the last half of the original code. I will try flipping thrue the IRremote.h to see if there some useful variables.
4  Using Arduino / Programming Questions / Forming strings from digitalRead input and comparing them on: June 22, 2011, 01:43:05 pm
New member signing in! Hopefully this is the correct section to post and this hadn't bee discussed too many times earlier.

I have an Arduino Duo. My project is to make a small stand-alone ir-remote converter. I have a Bang & Olufsen audio system. I would like the converter to listen to the IR data, note when there is a command sent, capture a pre-set length of bytes and compare this to preset strings (=to identify certain commands). Then the program should react in a certain way (as a result, to send out another IR command to control another devices).

I have an external IR receiver from a B&O link room system that has a receiver and processor. It works on 5v DC that I supply from the Arduino. Data output is connected to a digital pin 2. When I send an IR command and keep reading the digital pin 2 I got a series of 0s and 1s depending on a command.

Fe. running this:
void setup() {
  pinMode(2, INPUT);

void loop() {
  int data = digitalRead(2);
  Serial.println(data, DEC);
I got stuff like this: 01111111101110110110110110110110111101100110110110110110 (with infinite number of 1s (it might be good idea to invert the read as 1 seems to indicate low now) before and after.)

How can I capture a string of the input? The commands are quite different and I wouldn't need many so comparing only the beginning of a command string (like 5-10 characters) should be enough. Or should I approach this in some other way? I will get on to the IR sending (fe. Apple Remote commands to control my MacBook) later when I get the receiving part working.
5  International / Scandinavia / Re: Uudelle foorumille suomalaisaihe on: June 22, 2011, 01:22:50 pm
Terve, kaikki!
Hankin pari viikkoa sitten Arduino Duon ja innostus on kova. Osaaminen toistaiseksi matalaa, mutta kokeilemalla kyllä tuntuu löytyvän. Kaikenlaista yksittäistä oon jo testannut (nappien tilan lukua, MacBookin kanssa keskustelua sarjaliikenteellä, moottorien ohjausta (MotorShieldillä) ja tietysti ledien vilkuttelua!  smiley-mr-green). Toistaiseksi siis vain harjoittelua, isomman projektin ideaa ja inspiraatiota vielä odotellessa.

Kivaa kesää Arduinuinojen kanssa!

Pages: [1]