IR library fails to install as a zip and the example doesn't compile if I do so manually

Hello. It’s me, as the song goes.

Trying to install the IR library as a ZIP or manually both fail miserably, this library IRLibRecvPCI.h.

As a ZIP I get the Error: 13 INTERNAL: Library install failed: moving extracted archive to destination dir: library not valid and if unzip and copy the libraries to the Arduino directory where the other library files reside I get a compilation errors… that start with…

In file included from /Users/localuser/Arduino/libraries/IRLibProtocols/IRLibSendBase.cpp:14:
/Users/localuser/Arduino/libraries/IRLibProtocols/IRLibSendBase.cpp: In member function 'void IRsendBase::enableIROut(uint8_t)':
/Users/localuser/Arduino/libraries/IRLibProtocols/IRLibHardware.h:292:41: error: 'TIMSK2' was not declared in this scope
  292 |         #define IR_RECV_DISABLE_INTR   (TIMSK2 = 0)
      |                                         ^~~~~~

Needless to say I rather disappointed.

The Temperature sensor I got doesn’t work.
The Round Display I got doesn’t work very well.
And now I find the libraries for the IR receiver refuse to install.
On top of that an ESP32S3 Sense that arrived in the post is dead.

Can someone tell me what I am doing wrong with the IR receiver? Here is the wiki page with the code?

Indeed, the only bright side to this is this forum.

Thanks
Mark

Hi there,

So that error can occur for a couple reasons, usually because an older LIbrary exists with the same name(lots of times with updates) Open the library tabs and remove the old one first then Try the import again. (NOTE) you really should restart the IDE or even Reboot when those issues arise , sometimes as a fresh starting point and some times to UN stick something.

One thing on new systems or getting new dev environment going , I know it sound kidd like or stupid to some but “compile and empty sketch” first.
Just as a Heads up Test.

Also keep in mind the Board Support package you use for the MCU you have chosen, in the case of espressif they depreciated allot of the API’s (updated to 5.x IDF)so none of the functions that worked in the older BSP now do NOT. (they are making an effort to force the use of there IDE , ESP-IDF)
The Nrf52 stuff Nordic stuff always works and gets updated without breaking the old stuff, IMHO, YMMV

So you deal with in this Area of the Maker space…
The manufacturing integrator (in this case SEEED)
The IDE (arduino, PLIO)
The LIBraries(3rdparty),
The BSP for MCU (manufacture) ARM, Nordic, Espressif, Fruit, Robot, more…

No plug and play here, Just know when you’re on the bleeding edge , expect to get some cuts. :grin:

HTH
GL :slight_smile: PJ :v:

Its interesting what you say… I looked up the expressif IDE and noted it says this. It is asking you to turn off security on your mac so their app will work, so that it has free range across your entire system.

macOS security notice
#
On macOS, if you download the Espressif-IDE archive with the browser, the strict security checks on recent macOS will prevent it to run, and complain that the program is damaged. That’s obviously not true, and the fix is simple, you need to remove the com.apple.quarantine extended attribute.

*$ xattr -d com.apple.quarantine ~/Downloads/Espressif-IDE-2.4.1-macosx.cocoa.x86_64.tar.gz*
After un-archiving, if the application still complains, check/remove the attribute from the Espressif-IDE.app folder too:

*$ xattr -dr com.apple.quarantine ~/Downloads/Espressif-IDE.app*

We live in interesting times…Odd that visual studio doesn’t need this or Arduino environment? So why does this app?

Hi there,
Unfortunately, I don’t work with MAC’s, :worried: You may want to look to a Windows emulator and install a windows version of the IDE. (or grab a cheap laptop for a dev machine , It’s how I started) I didn’t want updates and system changes to effect what I had working or visa-versa. It was a good way to go. With a proper system Restore built in and File level restore, even if I deleted the demo.ino instead of the testDemo.ino :smile: I can restore it in a click. (it’s like a control-Z for files)
I share the network connection and folder on the laptop over my network LAN so I can access it for the files or Remote desktop into it as a Window on my system. The USB-c port on the Laptop has a HUB with other devices as well.

so important to have total confidence in you OS , and Dev System.
I use PLIO when I need debugging or heavier lifting with other SDK’s
HTH
GL :slight_smile: PJ :v:

I have since upgrade the Dev system to a More powerful setup, compiles only take a couple bites of a sandwich now instead of the whole thing. :stuck_out_tongue:

PJ,
It’s a good idea, although I am a UNIX guy at heart and have never liked Windows, although I wish I had got some shares when it was MSDOS. It would be a good way to address the security concern I mentioned, maybe I’ll get a PC emulator like parallels and run things within that.

I am more disappointed with the sensors because they all belonged to a kit I purchased, so I assumed it would be a safer bet than getting individual sensors. It turns out it isn’t.

As for Expressif systems pushing people to V5, Apple does the same thing. Once they release a new version of OSX, they invalidate the versions before it, making it nearly impossible to reload an older system from scratch. It is prime example of the human race shooting itself in the foot, someone should sue them for doing that too.

I will take another look at the display today and try to figure out how to get it running with the breadcrumbs I got in this post, including your super useful one with the versions!

I also need to get the IR working, so I will try chasing Seeed Studios support and Grove support too.

On a different note, have you or anybody else here successfully got a temperature/humidity sensor working? Could you share with me the type, the code, and the environment you used? It’s one of the projects I really want to work on here.

I spent more than $300 on all this kit over the past two months, and the only success story I have is a DIY security camera that can upload images to the cloud.