IR signal with Cerbuino

I found the following sample in the wiki, but it seems the primary library is needed for the pin capture.

Does that mean I cannot use that code for the Cerbuino? Also is there an alternative way to capture fast signals on the Cerb family without RLP ?

I don’t believe PinCapture is in the OSHW offers at this stage. So that means it’d be up to you at this stage to get it working…

… or add using RLP. Should be a rather easy addition either way.

Or use interrupts like shown here:

http://www.tinyclr.com/codeshare/entry/208

@ Gralin - Do you perhaps know the peak interrupts per second that can be handled from managed code. IIRC I have successfully reached about 34 per second, that was counting the pulses from a computer fan. I do not have anything faster so I was wondering what the peak would be.

@ taylorza - I don’t know. What i remember is that if you have too many interrupts tiny clr will not be able to buffer them for event triggering. You will get either OOM exception or you will be missing some events. Now I’m not sure but I think I was getting exceptions but I’m not sure. If so then the more memory you have the more interrupts you can count…

@ Gralin, thank you for the reply. Well I will have to use this as an excuse to get a Hydra and use it to generate high frequency pulses and test if the Spider can keep-up.

1 Like

If you have some test code, I can run the test for you as well - just to verify that your brand spanking new Hydra works properly as mine does :wink:

We could also run it on a Hydra - Cerberus combo to see where it falls over at compared to the Spider

I think interrupts are too slow for this, but RLP could work. I really want avoid RLP if possible. Are there other solutions (planned)?

What kind of IR signals do you want to capture? Do you want to make something like a learning remote control?

Yes, that would be a first test project to begin with. Later I need to measure signals at a similar speed…And I also need to write signals back on a pin with high accurancy…