View: 43140|Reply: 6

opi one lirc

[Copy link]

1

threads

3

posts

53

credits

Registered member

Rank: 2

credits
53
Published in 2016-3-28 06:43:19 from mobile | Show all floors |Read mode
Hello

I have had a look all over the site and wider intenet. Im looking add ir via gpio but cant fin anything and all raspberry pi stuff fails to work.

Does anyone know if its possible nd how to enable ir via gpio on opi one.

4

threads

1118

posts

9497

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9497
Published in 2016-3-29 03:41:16 | Show all floors
You probably won't find it because all boards except One has dedicated IR sensor included and on One, there is a pad for soldering it. Anyway, I would not recommend One for OpenELEC due to low amount of memory.

Otherwise, I would say it is possible if you have correct driver.

1

threads

3

posts

53

credits

Registered member

Rank: 2

credits
53
 Author| Published in 2016-3-30 02:56:17 from mobile | Show all floors
thank you I found the solder point on armbian forum. do you know if it'll take 5v or 3.3v or either? I haven't got  PI PC to check with a multimeter

4

threads

1118

posts

9497

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9497
Published in 2016-3-30 03:41:32 | Show all floors
I would say 3.3V, not much runs on 5V nowadays. Please also check this post: http://www.orangepi.org/orangepi ... &fromuid=198504

12

threads

99

posts

375

credits

Intermediate member

Rank: 3Rank: 3

credits
375
Published in 2016-3-30 21:13:17 | Show all floors
Edited by cbm80 at 2016-3-30 21:17

Such IR receivers work with 5V (at least I used them with Arduino at 5V). Check in the datasheet if they will work with 3V3 too. I'd assume that VCC-IR is 5V, you can also confirm it reviewing PI PC schematics.
BTW: Isn't it more convenient to use RF remote? At least with OPiPC I use small wireless keyboard with trackball. It is not very convenient in use because of its size, but there are a lot of small remotes available, even with small keyboard on the bottom side.
Of course soldering IR receiver is the cheapest solution.

1

threads

3

posts

53

credits

Registered member

Rank: 2

credits
53
 Author| Published in 2016-3-31 18:11:52 | Show all floors
I like using yatse for android but as a fallback I wouldnt mind soldering IR. Most of the the rf remotes ive seen fake a keyboard so its easier but there are limitations, and Plus I have a stash of VCR and other remotes I re-purpose for media centre builds.  On x86 I used to wire to the internal mic and use lirc audio_alsa driver and now with RPI its a simple 3 pin gpio plugin.  I had a look at the solder point last night and I think its doable, especially as its the end pad in a row (to give more room) - It would obviously easier to use the gpio pins though. I would however like to wait until its in a case because it will be too easy to rip out the tiny pad.

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2016-6-27 06:57:26 | Show all floors
It's a Japanese page, but a method IR Send which doesn't use lirc is introduced here.

http://feijoa.jp/lab...rrypi/infrared/

When using GoogleChrome, it's possible to translate into English.

scanir
Remote is received, and a scan code is preserved in a file.

orangepi@orangepipc:~/lirc$ sudo ./scanir tv_on.ir
write file: tv_on.ir
scaning pin: 7 (wiringpi)
max keep time: 40(ms)
Infrared LED scanning start.
Pressed Ctrl+C, this program will exit.

Scanning has been done.

orangepi@orangepipc:~/lirc$ ls -l tv_on.ir
-rw-r--r-- 1 root root 476 Jun 26 07:56 tv_on.ir


sendir
The remote cord preserved by a file is sent to a television.

orangepi@orangepipc:~/lirc$ sudo ./sendir tv_on.ir 1 14
read file: tv_on.ir
output pin: 14 (wiringpi)
unit: 26ms duty:9-17
send infrared signal.
send data.

done


It's work fine with my OPI-PC,
My television was turned on.

You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list