{"id":4045,"date":"2026-04-11T09:00:00","date_gmt":"2026-04-11T09:00:00","guid":{"rendered":"https:\/\/pirhome.com\/?p=3907"},"modified":"2026-04-11T09:00:00","modified_gmt":"2026-04-11T09:00:00","slug":"energy-harvesting-pir-solar-2","status":"publish","type":"post","link":"https:\/\/www.pirhome.com\/?p=4045","title":{"rendered":"Energy Harvesting PIR Sensor with Solar Power"},"content":{"rendered":"<h2>Project Overview<\/h2>\n<p>This project creates a self-powered PIR motion sensor that runs entirely on solar energy. It is ideal for remote locations where running power cables or changing batteries is impractical. The system stores energy in a supercapacitor or rechargeable battery, providing operation through the night.<\/p>\n<p><strong>Difficulty:<\/strong> Advanced<br \/>\n<strong>Estimated time:<\/strong> 4-6 hours<br \/>\n<strong>Estimated cost:<\/strong> $40-60<\/p>\n<h2>How It Works<\/h2>\n<p>A small solar panel charges a supercapacitor or lithium battery during the day. An ultra-low power PIR sensor (Excelitas PYD 2597 or Panasonic EKMB) draws only 2-6 \u00b5A, allowing continuous operation. When motion is detected, the system wakes a microcontroller to process the event and optionally transmit via low-power radio (LoRa, Zigbee, or Bluetooth).<\/p>\n<h2>Materials Needed<\/h2>\n<ul>\n<li>Ultra-low power PIR sensor (Excelitas PYD 2597 or Panasonic EKMB 1\u00b5A variant)<\/li>\n<li>ESP32-C3 or nRF52840 (low-power microcontroller)<\/li>\n<li>Solar panel (5V, 100-200mA, 80x80mm or larger)<\/li>\n<li>TP4056 charging module (if using Li-ion battery)<\/li>\n<li>Lithium battery (18650 or LiPo, 1000-2000mAh) OR<\/li>\n<li>Supercapacitor (2x 10F 2.7V in series for 5F 5.4V)<\/li>\n<li>Low-dropout regulator (MCP1700, 2\u00b5A quiescent)<\/li>\n<li>Schottky diode (1N5819) for solar panel isolation<\/li>\n<li>LoRa module (RAK811 or Heltec) or BLE module (optional)<\/li>\n<li>Waterproof enclosure (IP65 rated)<\/li>\n<\/ul>\n<h2>Circuit Diagram<\/h2>\n<h3>Power Management Section<\/h3>\n<pre>\nSolar Panel (+) --- Schottky Diode ---+--- TP4056 IN (if using battery)\n                                       |\n                                       +--- Supercapacitor (+) (if using cap)\n                                       |\n                                       +--- LDO (MCP1700) IN\n                                       |\nSupercapacitor\/Battery (-) ------------+--- LDO GND\n                                       |\nLDO OUT (3.3V) ------------------------+--- PIR VCC\n                                       +--- MCU VCC\n<\/pre>\n<h3>Sensor Connection<\/h3>\n<table border=\"1\">\n<thead>\n<th>Component<\/th>\n<th>Pin<\/th>\n<th>MCU Pin<\/th>\n<\/thead>\n<tbody>\n<th>PIR Sensor (PYD 2597)<\/th>\n<p> VCC<\/th>\n<p> 3.3V<\/th>\n<th>PIR Sensor<\/th>\n<p> GND<\/th>\n<p> GND<\/th>\n<th>PIR Sensor<\/th>\n<p> OUT<\/th>\n<p> GPIO (with 10k pull-up to 3.3V)<\/th>\n<th>PIR Sensor<\/th>\n<p> WUP<\/th>\n<p> GPIO (interrupt pin)<\/th>\n<\/tbody>\n<p>\u8868<\/p>\n<h2>Arduino Code (ESP32-C3 with Deep Sleep)<\/h2>\n<pre><code>\/\/ Energy Harvesting PIR Sensor\n#include &lt;esp_sleep.h&gt;\n\nconst int pirPin = 4;\nconst int wakePin = 5;\nconst int ledPin = 8;\nconst int batteryPin = 3;\n\nRTC_DATA_ATTR int eventCount = 0;\nRTC_DATA_ATTR unsigned long lastWakeTime = 0;\n\nvoid setup() {\n  Serial.begin(115200);\n  \n  pinMode(pirPin, INPUT);\n  pinMode(ledPin, OUTPUT);\n  \n  esp_sleep_wakeup_cause_t wakeup_reason = esp_sleep_get_wakeup_cause();\n  \n  if (wakeup_reason == ESP_SLEEP_WAKEUP_EXT0) {\n    digitalWrite(ledPin, HIGH);\n    delay(500);\n    digitalWrite(ledPin, LOW);\n    eventCount++;\n    sendNotification();\n    lastWakeTime = millis();\n  } else if (wakeup_reason == ESP_SLEEP_WAKEUP_TIMER) {\n    reportBattery();\n  }\n  \n  goToSleep();\n}\n\nvoid sendNotification() {\n  Serial.print(\"Motion detected! Total events: \");\n  Serial.println(eventCount);\n  delay(100);\n}\n\nvoid reportBattery() {\n  int raw = analogRead(batteryPin);\n  float voltage = (raw \/ 4095.0) * 3.3 * 1.5;\n  Serial.print(\"Battery voltage: \");\n  Serial.println(voltage);\n}\n\nvoid goToSleep() {\n  esp_sleep_enable_ext0_wakeup((gpio_num_t)pirPin, 1);\n  esp_sleep_enable_timer_wakeup(24 * 60 * 60 * 1000000ULL);\n  esp_deep_sleep_start();\n}\n\nvoid loop() {}\n<\/code><\/pre>\n<h2>Power Budget Calculation<\/h2>\n<p><strong>Component power consumption:<\/strong><\/p>\n<ul>\n<li>PIR sensor (PYD 2597): 2 \u00b5A<\/li>\n<li>ESP32-C3 deep sleep: 5 \u00b5A<\/li>\n<li>LDO (MCP1700): 2 \u00b5A<\/li>\n<li><strong>Total standby current:<\/strong> 9 \u00b5A<\/li>\n<\/ul>\n<p>With 10 events\/day: 0.216 mAh + 0.021 mAh = 0.237 mAh\/day<\/p>\n<p>With 1000 mAh battery: 1000 \/ 0.237 \u2248 4,200 days \u2248 11.5 years (battery self-discharge limits to 2-3 years)<\/p>\n<h2>Installation Steps<\/h2>\n<ol>\n<li>Assemble power management circuit on PCB or protoboard<\/li>\n<li>Program ESP32 and test with motion detection<\/li>\n<li>Measure standby current to verify it is under 10 \u00b5A<\/li>\n<li>Mount components in weatherproof enclosure<\/li>\n<li>Place solar panel facing south (northern hemisphere) at optimal angle<\/li>\n<li>Deploy in field and test for 24 hours<\/li>\n<\/ol>\n<h2>Project Extensions<\/h2>\n<ul>\n<li>Add LoRa radio to transmit motion events to a central receiver<\/li>\n<li>Add DS18B20 to report ambient temperature<\/li>\n<li>Use MQTT to send data to Home Assistant via Wi-Fi<\/li>\n<li>Create a network of solar-powered sensors for perimeter security<\/li>\n<li>Use PIR to wake a camera for wildlife photography<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>This energy-harvesting PIR sensor provides maintenance-free operation in remote locations. With proper design, it can operate indefinitely without battery changes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Project Overview This project creates a self-powered PIR motion sensor that runs entirely on solar energy. It is ideal for remote locations where running power cables or changing batteries is impractical. The system stores energy in a supercapacitor or rechargeable battery, providing operation through the night. Difficulty: Advanced Estimated time: 4-6 hours Estimated cost: $40-60 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-4045","post","type-post","status-publish","format-standard","hentry","category-projects"],"blocksy_meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\r\n<title>Energy Harvesting PIR Sensor with Solar Power - PIRHOME<\/title>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/www.pirhome.com\/?p=4045\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"Energy Harvesting PIR Sensor with Solar Power - PIRHOME\" \/>\r\n<meta property=\"og:description\" content=\"Project Overview This project creates a self-powered PIR motion sensor that runs entirely on solar energy. It is ideal for remote locations where running power cables or changing batteries is impractical. The system stores energy in a supercapacitor or rechargeable battery, providing operation through the night. Difficulty: Advanced Estimated time: 4-6 hours Estimated cost: $40-60 [&hellip;]\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/www.pirhome.com\/?p=4045\" \/>\r\n<meta property=\"og:site_name\" content=\"PIRHOME\" \/>\r\n<meta property=\"article:published_time\" content=\"2026-04-11T09:00:00+00:00\" \/>\r\n<meta name=\"author\" content=\"nic@nicsky.com\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"nic@nicsky.com\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=4045#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=4045\"},\"author\":{\"name\":\"nic@nicsky.com\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#\\\/schema\\\/person\\\/41049b5236f9c77c9314997d070db3e3\"},\"headline\":\"Energy Harvesting PIR Sensor with Solar Power\",\"datePublished\":\"2026-04-11T09:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=4045\"},\"wordCount\":393,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#organization\"},\"articleSection\":[\"Projects\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.pirhome.com\\\/?p=4045#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=4045\",\"url\":\"https:\\\/\\\/www.pirhome.com\\\/?p=4045\",\"name\":\"Energy Harvesting PIR Sensor with Solar Power - PIRHOME\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#website\"},\"datePublished\":\"2026-04-11T09:00:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=4045#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pirhome.com\\\/?p=4045\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pirhome.com\\\/?p=4045#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/www.pirhome.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Energy Harvesting PIR Sensor with Solar Power\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#website\",\"url\":\"http:\\\/\\\/www.pirhome.com\\\/\",\"name\":\"PIRHOME\",\"description\":\"PIR &amp; Motion Sensor\",\"publisher\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\\\/\\\/www.pirhome.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#organization\",\"name\":\"PIRHOME\",\"url\":\"http:\\\/\\\/www.pirhome.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.pirhome.com\\\/wp-content\\\/uploads\\\/2026\\\/02\\\/cropped-\u5fae\u4fe1\u56fe\u7247_2026-02-19_222409_472.jpg\",\"contentUrl\":\"https:\\\/\\\/www.pirhome.com\\\/wp-content\\\/uploads\\\/2026\\\/02\\\/cropped-\u5fae\u4fe1\u56fe\u7247_2026-02-19_222409_472.jpg\",\"width\":512,\"height\":512,\"caption\":\"PIRHOME\"},\"image\":{\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/www.pirhome.com\\\/#\\\/schema\\\/person\\\/41049b5236f9c77c9314997d070db3e3\",\"name\":\"nic@nicsky.com\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/271d4eaab48e299e4fce771a8c43c537be3ac77a3115cc7de802a6c8b692d971?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/271d4eaab48e299e4fce771a8c43c537be3ac77a3115cc7de802a6c8b692d971?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/271d4eaab48e299e4fce771a8c43c537be3ac77a3115cc7de802a6c8b692d971?s=96&d=mm&r=g\",\"caption\":\"nic@nicsky.com\"},\"sameAs\":[\"http:\\\/\\\/www.pirhome.com\"],\"url\":\"https:\\\/\\\/www.pirhome.com\\\/?author=1\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Energy Harvesting PIR Sensor with Solar Power - PIRHOME","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pirhome.com\/?p=4045","og_locale":"en_US","og_type":"article","og_title":"Energy Harvesting PIR Sensor with Solar Power - PIRHOME","og_description":"Project Overview This project creates a self-powered PIR motion sensor that runs entirely on solar energy. It is ideal for remote locations where running power cables or changing batteries is impractical. The system stores energy in a supercapacitor or rechargeable battery, providing operation through the night. Difficulty: Advanced Estimated time: 4-6 hours Estimated cost: $40-60 [&hellip;]","og_url":"https:\/\/www.pirhome.com\/?p=4045","og_site_name":"PIRHOME","article_published_time":"2026-04-11T09:00:00+00:00","author":"nic@nicsky.com","twitter_card":"summary_large_image","twitter_misc":{"Written by":"nic@nicsky.com","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pirhome.com\/?p=4045#article","isPartOf":{"@id":"https:\/\/www.pirhome.com\/?p=4045"},"author":{"name":"nic@nicsky.com","@id":"http:\/\/www.pirhome.com\/#\/schema\/person\/41049b5236f9c77c9314997d070db3e3"},"headline":"Energy Harvesting PIR Sensor with Solar Power","datePublished":"2026-04-11T09:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pirhome.com\/?p=4045"},"wordCount":393,"commentCount":0,"publisher":{"@id":"http:\/\/www.pirhome.com\/#organization"},"articleSection":["Projects"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pirhome.com\/?p=4045#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pirhome.com\/?p=4045","url":"https:\/\/www.pirhome.com\/?p=4045","name":"Energy Harvesting PIR Sensor with Solar Power - PIRHOME","isPartOf":{"@id":"http:\/\/www.pirhome.com\/#website"},"datePublished":"2026-04-11T09:00:00+00:00","breadcrumb":{"@id":"https:\/\/www.pirhome.com\/?p=4045#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pirhome.com\/?p=4045"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pirhome.com\/?p=4045#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.pirhome.com\/"},{"@type":"ListItem","position":2,"name":"Energy Harvesting PIR Sensor with Solar Power"}]},{"@type":"WebSite","@id":"http:\/\/www.pirhome.com\/#website","url":"http:\/\/www.pirhome.com\/","name":"PIRHOME","description":"PIR &amp; Motion Sensor","publisher":{"@id":"http:\/\/www.pirhome.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.pirhome.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/www.pirhome.com\/#organization","name":"PIRHOME","url":"http:\/\/www.pirhome.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.pirhome.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.pirhome.com\/wp-content\/uploads\/2026\/02\/cropped-\u5fae\u4fe1\u56fe\u7247_2026-02-19_222409_472.jpg","contentUrl":"https:\/\/www.pirhome.com\/wp-content\/uploads\/2026\/02\/cropped-\u5fae\u4fe1\u56fe\u7247_2026-02-19_222409_472.jpg","width":512,"height":512,"caption":"PIRHOME"},"image":{"@id":"http:\/\/www.pirhome.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"http:\/\/www.pirhome.com\/#\/schema\/person\/41049b5236f9c77c9314997d070db3e3","name":"nic@nicsky.com","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/271d4eaab48e299e4fce771a8c43c537be3ac77a3115cc7de802a6c8b692d971?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/271d4eaab48e299e4fce771a8c43c537be3ac77a3115cc7de802a6c8b692d971?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/271d4eaab48e299e4fce771a8c43c537be3ac77a3115cc7de802a6c8b692d971?s=96&d=mm&r=g","caption":"nic@nicsky.com"},"sameAs":["http:\/\/www.pirhome.com"],"url":"https:\/\/www.pirhome.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts\/4045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4045"}],"version-history":[{"count":1,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts\/4045\/revisions"}],"predecessor-version":[{"id":4349,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=\/wp\/v2\/posts\/4045\/revisions\/4349"}],"wp:attachment":[{"href":"https:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pirhome.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}