Upvote:1
You can find the CATSA guidance here: Guidelines for Batteries
And the FAA (connection?) guidance here: Batteries Carried by Airline Passengers
Unless I'm really bad at math today, you are under the limit.
There are no specific restrictions on homemade electronics though you must still pass the screening process at the terminal entrance and Customs in Costa Rica.