Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IRLremote on Cortex M0 (SAMD architecture) #16

Open
LFBFerreira opened this issue Mar 29, 2017 · 6 comments
Open

IRLremote on Cortex M0 (SAMD architecture) #16

LFBFerreira opened this issue Mar 29, 2017 · 6 comments

Comments

@LFBFerreira
Copy link

Hi,
I have lost quite a few hours trying to find an IR library that works with a board with a Cortex M0 processor (Adafruit Featherr M0 Bluefruit), but so far no luck. I have used this library before hence the reason why i am posting this here (great job with its development btw).

From what i understood this far, the problem with supporting the SAMD architecture is its difference in the way Timer Interrupts work correct? The rest of the code should be compatible, so.... is there a possibility of seeing support for this in the near future?

I have a project that cannot run on a ATMega processor due to its lack of memory, so M0 would be the next best thing for a similar price.

What would i have to do to make this library compatible with the board i am using (I am not so good at low level development)? Has anyone encountered the same problem so far?

@NicoHood
Copy link
Owner

Does the board library implement something like attachinterrupts() and micros()? That si required. However its not optimal for those kind of boards i heard.

Another idea is to use an atmega and translate the data into serial code and send it to the other mcu. or use spi/i2c.

see #3 #6

@LFBFerreira
Copy link
Author

Does the board library implement something like attachinterrupts() and micros()?

Also something i'm searching. I would like to think the obvious answer is yes since its a processor and interrupts are something essential but i might be wrong or it might still be in the making since its not such a mainstream processor.

But the idea of using another board to receive the signal and pass it through serial is good. Is your library compatible with the attiny85? It would be perfect for this case.

@NicoHood
Copy link
Owner

Why not just try out both options? Attiny was never tested but it should work. You need to use some special serial library for the attiny though, but that'd work, yes.

@LFBFerreira
Copy link
Author

Same reason as usual, limited time, and in this case also limited hardware. But i just ordered a couple of AtTinys, i will try and let you know when i test it.

In the mean time i also made a similar post on the Adafruit forum and someone might have a solution, altough it doesn't use your library. But if it works for the IR Remote library it should also work with yours with some modifications form the solution proposed by BryonMiller in this post

Hopefully the AtTinys will arrive before the end of the weekend and hopefully i will have time to do some tests

@LFBFerreira
Copy link
Author

A small update on this matter. I haven't had the time to test this library with the AtTinys. In the meantime i have used the IR Remote library, now also compatible with the M0 architecture. Although it seems to use the same timers and the FastLed library, it seems the M0 is fast enough to handle both

@NicoHood
Copy link
Owner

NicoHood commented Apr 6, 2017

The IR Remote library is just not as precise and small like the IRL implementation. Would be nice to give it a try if anyone has a patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants