Jump to content

Infrared Remote

- - - - -

  • Please log in to reply
6 replies to this topic

#1
plb

plb

    Newbie

  • Members
  • PipPip
  • 18 posts
I could not find any information about IR control with c#. I am sure that it's possible, but I don't know how. Help me, please.

#2
TheCompBoy

TheCompBoy

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 272 posts
You could build an IR transceiver, And the class and the code i think you would have to make yourself.
Think my post we're usefull? Please take your time and press the Like button at my post, Big Thanks!
For great C# & Android tutorials visit my blogg: http://www.thecompboy.com/

#3
cepa

cepa

    Newbie

  • Members
  • PipPip
  • 13 posts
You could try using an Arduino, setting it up so that it sends decoded IR messages via serial, I'm sure you could process that serial with Csharp.

Some usefull links:
Official Arduino website
A library for an Arduino, that can decode IR receiver signals

Also this method has some downsides:
You need a basic knowledge of electronics
It's a bit costly, since it requires some additional hardware.
Everything in Arduino is programmed in C, so you will need a basic knowlage of that, but It's very easy.

#4
plb

plb

    Newbie

  • Members
  • PipPip
  • 18 posts
I have some basic knowledge in electronics and I know C. Thank you very much.

#5
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
An infrared transmitting or receiving diode should cost less than a dollar each, and they should be equivalent to those found in remotes. They may be available in hobby shops possibly or online and would look something like this: DIODE IR EMITTER 5MM IR CLR LENS - OED-EL-1L2 . May be entirely possible to open up an old remote and retrieve one for free.

You may wish to try those if you do not require signals at a distance (just standard "remote control' ranges) but for your basic description that may work.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#6
cepa

cepa

    Newbie

  • Members
  • PipPip
  • 13 posts
To Alexander:
Tv remotes and stuff like that contain emitters, you need a receiver in order to receive data from the remote. You would also need a way to interface a receiver to the computer, It's not that simple.

#7
Todilo

Todilo

    Newbie

  • Members
  • Pip
  • 5 posts
You can use something like a FEZ Panda II which is a microprocessor that can run .NET Micro Framework(you can run/debug all your code inside visual studio), add a ir receiver/emitter to it and you have yourself a remote.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users