loading
8CommentsPerth, Western AustraliaJoined January 29th, 2014

Tell us about yourself!

Complete Your Profile
  • how to use the IR library with an attiny

    See venumz's comment below

    Thanks man! I'm glad you found it useful :) That millis() thing is pretty odd. I must've missed it because I converted all my delay() and millis() calls into delayMicroseconds() and micros() in order to make the sketch fit in the flash! xD Curiously, if you examine the file Arduino\hardware\arduino\avr\cores\arduino\wiring.c there is a preprocessor statement: `#if defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__) ISR(TIM0_OVF_vect) #else ISR(TIMER0_OVF_vect) #endif` This is the version of wiring.c which ships with the IDE by default, and it's quite odd that it checks for ATtiny*4 but not ATtiny*5. However in Arduino.h there is a statement which checks for both! I will raise this as an issue on the repo. As for beer, thanks for the offer (i <3 bee...see more »Thanks man! I'm glad you found it useful :) That millis() thing is pretty odd. I must've missed it because I converted all my delay() and millis() calls into delayMicroseconds() and micros() in order to make the sketch fit in the flash! xD Curiously, if you examine the file Arduino\hardware\arduino\avr\cores\arduino\wiring.c there is a preprocessor statement: `#if defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__) ISR(TIM0_OVF_vect) #else ISR(TIMER0_OVF_vect) #endif` This is the version of wiring.c which ships with the IDE by default, and it's quite odd that it checks for ATtiny*4 but not ATtiny*5. However in Arduino.h there is a statement which checks for both! I will raise this as an issue on the repo. As for beer, thanks for the offer (i <3 beer) but the fact someone found my code useful is a reward in and of itself :) Have a drink for me!

    see venumz's comment below

    Thanks man! I'm glad you found it useful :)That millis() thing is pretty odd. I must've missed it because I converted all my delay() and millis() calls into delayMicroseconds() and micros() in order to make the sketch fit in the flash! xDCuriously, if you examine the file Arduino\hardware\arduino\avr\cores\arduino\wiring.c there is a preprocessor statement:`#if defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__)ISR(TIM0_OVF_vect)#elseISR(TIMER0_OVF_vect)#endif`This is the version of wiring.c which ships with the IDE by default, and it's quite odd that it checks for ATtiny*4 but not ATtiny*5. However in Arduino.h there is a statement which checks for both! I will raise this as an issue on the repo.As for beer, thanks for the offer (i <3 beer) but the fa...see more »Thanks man! I'm glad you found it useful :)That millis() thing is pretty odd. I must've missed it because I converted all my delay() and millis() calls into delayMicroseconds() and micros() in order to make the sketch fit in the flash! xDCuriously, if you examine the file Arduino\hardware\arduino\avr\cores\arduino\wiring.c there is a preprocessor statement:`#if defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__)ISR(TIM0_OVF_vect)#elseISR(TIMER0_OVF_vect)#endif`This is the version of wiring.c which ships with the IDE by default, and it's quite odd that it checks for ATtiny*4 but not ATtiny*5. However in Arduino.h there is a statement which checks for both! I will raise this as an issue on the repo.As for beer, thanks for the offer (i <3 beer) but the fact someone found my code useful is a reward in and of itself :)Have a drink for me!

    View Instructable »
  • seejaydee commented on rwhite19's instructable how to use the IR library with an attiny8 months ago
    how to use the IR library with an attiny

    I have modified the library and it now works perfectly (tested on an ATtiny85). Follow the same instructions as for IRremote_Attiny.zipYou'll need to change the #include names but everything else is identical.https://drive.google.com/open?id=0B_w9z88wnDtFNHlqYU5sWEZuV0U

    I'm using Arduino 1.6.4 and set the board to "Adafruit Trinket 8MHz" (also uses the attiny85). I followed the instructions at https://learn.adafruit.com/adafruit-arduino-ide-setup/overview to add support for the attiny. You still need to "upload using programmer" etcNo "patch" either. This instructable is somewhat dated. Go to 1.6 you won't regret it.

    I have modified the library and it now works perfectly (tested on an ATtiny85). Follow the same instructions as for IRremote_Attiny.zipYou'll need to change the #include names but everything else is identical.https://drive.google.com/open?id=0B_w9z88wnDtFNHlqYU5sWEZuV0U

    Hi, What other libraries are you running? tiny_IRremote uses Timer1, and it sounds like another of your libraries is also using that timer.The error output is referring to line 78 of Arduino/Hardware/attiny/cores/tiny/wiring.c and line 271 of libraries/tiny_IRremote/tiny_IRremote.cppTell me what code is on those lines and I will be able to help more. If you haven't already got it, look up "Notepad++" and install it. It's great for editing code.

    View Instructable »