Wednesday 25 April 2018

HI3518 Camera Module - Part 7 - Hi3518 and HC-SR501 PIR Sensor Build

Introduction

In my previous blog post I managed to work out how to read the alarm pin found on the Hi3518 camera module I have been playing with. With this worked out, I decided to combine the Hi3518 with an HC-SR501 PIR sensor so that, with a bit of software written based on the samples in the Hi3518 SDK, I could save images from the camera whenever the PIR sensor detected motion. This worked well, so I ended up putting together a waterproof enclosure to house the camera and sensor.

Enclosure Design

One of the main aims of the design was to make the enclosure waterproof so that it could be mounted outside. To this aim, I based the design around a waterproof case I had purchased at some point off of Aliexpress. The enclosure is 100mmx68mmx50mm and has a seal in the lid that gets compressed onto the case when the lid is screwed down.

To make mounting the camera module and the PIR sensor easier, I ended up designing a replacement for the lid so that I could add holes for the lens and PIR sensor dome, including a space to add an acrylic glass window in front of the lens, and mounting holes for the camera and PIR PCBs. I've put the designs for the unmodified replacement lid and the Hi3518 and HC-SR501 modified version up on Thingiverse.

Here are some photos of the final design:

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2QHAEEFm38S3jLugUfSaVV6uJ58eA9jt4tmYg7Lf99yfq0mAtxEd-si1K1X1cCc-kTwAIt42IyGDvp9TO7kURql2-0_eC9x1FRJP4G-YpjOUdjWlKzS7_GoU-wx_2-AhUzy__nm1OQ4c/s1600/Hi3518_HCSR501_waterproof_enclosure_front.JPG https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieZ63ORY6eGnxwQoGXt_9m3wRzDcsVUTrxQdZrH-JkANQg2AtbJKkiglOKLsEnyCvR2S1GCMXUPQnclYNn4MpwxTT_ReEYM-6SKXGRnNgSot45EyDbK_ykntH1-ZBS6FMLYj-za9qNQyY/s1600/Hi3518_HCSR501_waterproof_enclosure_inside.JPG https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh148i4HkyBinb0_PBEzlajR4MP0zCla3JVD51nrT7tZjC8-ELT05aescmNBp59_2y2tSe4TlOYynw4SLqi8HY7TpfCZNMLrYoShOP5vlPgO4tLLzjyNYd9a4GaabVRT2McVe8Qmzs8_X8/s1600/Hi3518_HCSR501_waterproof_enclosure_lid.JPG

No comments:

Post a Comment