Go Down

Topic: Samsung Remote Protocol (Read 5 times) previous topic - next topic

retrolefty

how do i give delay of 8.8 uS..
the delayMicroseconds() takes only integer values..

And only has resolution of 4 usec steps.

Quote
Returns the number of microseconds since the Arduino board began running the current program. This number will overflow (go back to zero), after approximately 70 minutes. On 16 MHz Arduino boards (e.g. Duemilanove and Nano), this function has a resolution of four microseconds (i.e. the value returned is always a multiple of four).
[/color]

is there any kind of delay around nanoseconds?

None avalible or really possible as basic single instruction timing is around 64 nsec.  

tkbyd

Are you using a simple IR LED, and generating the carrier frequency with the Arduino?

If so, I'd try using one of the little modules which will take care of that for you... you'll send the "slow" "ons" and "offs", and the module will send out a stream of ons and offs of a beam pulsed at the much higher carrier frequency.

I have a page about RECEIVING data from IR controllers. Some of what's there....

http://sheepdogguides.com/arduino/ar3ne1ir.htm

... might be helpful to beginners reading this, but I suspect from what you've written above, you already know most of what's on that page... I only offer it if you are very frustrated!


Surendranath

@retrolefty

Quote
And only has resolution of 4 usec steps.


you made my day.. i never knew about this 4uSec step thing..
now, i calculated all the program flow timing into the protocol and it works.. Awesome.! :) :)

thanks a ton, mate.. :)

@tkbyd:

that is a nice page.. it did help me a bit.. :)
thanks to you too, mate..

this is awesome.. lol.. controlling tv with my laptop...
people wondering how channels are changing..! :P
suspecting flaws in tv... :D :D :D :D :D :D :D :D

copiertalk

The tv b gone does something simular. I am not sure about samsung.

http://www.tvbgone.com/cfe_tvbg_faq.php?PHPSESSID=f089a1a127571e58bb26305577e38ad6

adafruit links for turning a tv off.

http://www.adafruit.com/products/75&zenid=39a5381ed5706171b010630c3b7bcb4c
http://www.adafruit.com/products/73

look through her forum for a few minutes.

http://forums.adafruit.com/viewforum.php?f=23&sid=556b89b25d25735e22ad10e72672bd74

I got one a while back. I love it. Turning off the damn box while I eat is just so cool to me no matter where I am at.

you may be able to download their code and spot something or look over their design to assist in your own project.

daveg360

There's some code pasted into the comments on the bottom of Ken Shirriff's page about his infrared remote library.  Do a search fo sendsamsung on there.  Ken has done 99.99% of the legwork on infrared remotes for us all.....
If your system involves lethal voltages/life critical/flamable elements - you probably shouldn't need to ask.
The Arduino != PC.

Go Up