|
2014-01-22
, 19:28
|
Posts: 339 |
Thanked: 1,623 times |
Joined on Oct 2013
@ France
|
#12
|
|
2014-01-22
, 19:44
|
|
Posts: 562 |
Thanked: 2,744 times |
Joined on Dec 2013
@ Espoo, Finland
|
#13
|
Why not use a dedicated IRDA chip, with an I2C interface then ?
Would solve problems like the stop bit.
By the way this chip seems to also provide RS232/485 interface and GPIO.
|
2014-01-22
, 20:16
|
Guest |
Posts: n/a |
Thanked: 0 times |
Joined on
|
#14
|
|
2014-01-22
, 20:30
|
Posts: 339 |
Thanked: 1,623 times |
Joined on Oct 2013
@ France
|
#15
|
The idea here was to use the IRDA transmitter to mimic the e.g. TV remote control by making the ~40kHz (or 38kHz) carrier signal with bit pattern.
https://learn.sparkfun.com/tutorials...munication/all
and something here
http://youtu.be/BUvFGTxZBG8
|
2014-01-22
, 20:51
|
|
Posts: 562 |
Thanked: 2,744 times |
Joined on Dec 2013
@ Espoo, Finland
|
#16
|
Wouldn't the proper way to do this be that the chip is configured with the expected 1200 bauds and modulate it after (with an ne555 like or an I2C PWM expander if its period needs to be software controlled).
something like "cat /dev/xxx" would allow to see directly the received value (and not a list of 0x0 or 0xF for each individual bit) ?
there may be problems with the start/stop bits with this proposal. Don't know if they are the same on IR than with say a RS232 line, so that the UART would understand them correctly ?
The Following User Says Thank You to kimmoli For This Useful Post: | ||
|
2014-01-22
, 20:55
|
|
Posts: 562 |
Thanked: 2,744 times |
Joined on Dec 2013
@ Espoo, Finland
|
#17
|
So, even better if we can combine this with rs232 as well - and - that OLED / perfect device!
|
2014-01-25
, 12:24
|
|
Posts: 562 |
Thanked: 2,744 times |
Joined on Dec 2013
@ Espoo, Finland
|
#18
|
|
2014-01-25
, 13:31
|
Posts: 28 |
Thanked: 4 times |
Joined on Aug 2011
|
#19
|
|
2014-01-25
, 14:35
|
|
Posts: 562 |
Thanked: 2,744 times |
Joined on Dec 2013
@ Espoo, Finland
|
#20
|
Tags |
jolla, the other half |
|
Hmm... Using just the UART to send IR 'bits' with carrier frequency could be possible. The carrier is about 30...60 kHz, say 40kHz. If this is set to uart bitrate.
The actual datarate is way much lower, say something like 1200 bps. So we need send about 4 bytes of 0xAA for one high bit (and 4 bytes of 0x00 for one low bit (hoping that the STOP bit doesn't cause problems)
Doing it like this would free the phone cpu from low-level timing and lets the uart to do it. just feed the data to fifo over i2c.
Could be doable. Just add buffer and IR led there.
For IRDA something like TFBS4711 could be suitable.