Pest Detection: the Despestor

Introduction: Pest Detection: the Despestor

In the warehouse industry quality controls are of major importance. Clients rely on warehouse owner to keep sanitary controls and standard that won't compromise their business operation. One of the major challenges faced is how to prevent and early detect pests in a warehouse. Our IoT solution proposes a level 1 IoT system that uses Line Tracers and a human detector on a wheeled robot. Our solution is called PCAD system, that stands for Pest Control Auto-detection system, is a small and versatile autonomous solution that only requires to be placed at a start point and turn on via a web app. We believe that by running routine checks whenever the warehouse desires, may help increase early detection of pests in a crowded warehouse.

Step 1: Sensors and Actuators

In the design of our project we use the following:

  1. Raspberry Pi 3 Model B V1.2
  2. Micro SD card
  3. 2 x KY-033
  4. 1 x Human Detector
  5. 2 x DC Motors
  6. 2 x wheels
  7. 2 x 200 Ohlms resistors
  8. 2 x PN2222A6E transistors
  9. 2 x diodes
  10. jumping cables

Refer to the picture above

Step 2: Putting It All Together

The complete circuit is in the picture above. In order to get to the operational parts connected, we found easier to test the mechanical piece first, that is the line following robot portion of this:

0. Set up cables to power and ground from the Raspberry Pi to a long breadboard.

  1. Connected the circuit for the wheels, follow the image. For each DC Motor, please follow the instruction on: here (DC Motor circuit). We connect the wheels to pins 13 for left and 12 for right
  2. Connect the KY-033 line tracers and set them up one inch apart from each other at the "front of the robot." We connected them to pin 16 and 19 for left and right, respectively.

The idea is that given a path marked by a black line in the middle of the robot, the robot should follow the line without getting off of it. Thus, there are 3 scenarios:

  1. The line in the middle: Both line tracers will detect while portions (because the line is in between) and signal the wheels to move forward normally.
  2. The robot is getting off to the left: That means that most the robot is leftward the line, we know this when the right line tracer detects the black line. In this case, we want to slow down the right wheel and accelerate the left one to cause a curve-like motion to towards the right.
  3. The robot is getting off of the right: Conversely the case before, we accelerate the right wheel and slow down the left one.

Once this step is done, most of the device is finished. Lastly, we set up the Human detector to pin 21, and sends high signals when it observes a body of heat (rodent).

Step 3: Wrap Up & Meet the Crew

These pictures will help you get the right devices and have a closer look at the components we use:

  1. DC Motors
  2. Transistors
  3. Human Detector
  4. Raspberry Pi
  5. KY-033 (Line Tracer)
  6. Pi Wedge
  7. Diode
  8. 200 Ohms Resistor

Microcontroller Contest

Participated in the
Microcontroller Contest

Be the First to Share


    • Make It Modular: Student Design Challenge

      Make It Modular: Student Design Challenge
    • Colors of the Rainbow Contest

      Colors of the Rainbow Contest
    • Leather Challenge

      Leather Challenge



    4 years ago

    Please don't be offended but I regret to say that your concept is not developed enough to work as shown. Your motors will not produce enough torque to turn the wheels without any reduction gearing. Your borrowed motor driver will not cope with the motor current anyway. You have no provision for a comparatively heavy power source. You provide no indication of what the unmentioned software would do. You have no provision for "de-pesting" when, almost miraculously, you detect a heat source which you expect to be from a rodent. This is not really an Instructable, since no one could duplicate your effort without a lot more details - it appears to be a school project which is only in the early conceptual stage.


    Reply 4 years ago

    Thank you for your input. You are right, this instructable was part of a prototype for an experimental class. However, let me address some of your concerns:

    1- As for the software, this is a regular web app. I do not know your background in software development, but most web apps have a very similar structure. The only difference between one web app and the other is the variables that are static and dynamic that each user decides on their own. We decided le leave that open-ended because we want to allow people the freedom to explore the structure of their web app.

    2- We have tested it and it does in fact move and operates adequately. The only problem we had was with the fact that we could not keep it assembled as materials we use were used with the wrong adhesive, so it did not stay intact for long. However, as a functional device, it does serve the function of moving as a line tracker robot.

    3- Because me and my partner, both with English as a second language, were the ones who made that project, our intentions might not have been perfectly clear, linguistically. However, we do mention at the bottom of the description that "We believe that by running routine checks whenever the warehouse desires, may help increase early detection of pests in a crowded warehouse", So, this device the "Pest Detection", as mentioned above, detects pests. The term "despestor" was a play on word between detector and pest.

    4- This device runs underneath and between crates in warehouses, or so we intended it to be. Our assumption is that the only things between crates, and underneath them for that matter, are pests. The device you see at the top of the despestor, is called a human detector, made specifically to detect this sort of heat from organisms. If there is anything else that might be crawling under the crates that we are unaware of, please let us know so that we could tweak the device for error prevention.

    5- Lastly, this is an instructable. I have sent this document to several friends and colleagues and they were able to duplicate it and even have a few additions of their own. The only background this instructable needs is knowledge of coding, Python in particular, and knowledge of how to assemble hardware using a Raspberry Pi 3 Model B V1.2. As I do not know your background, I cannot really suggest any further advice. However, for a rudimental device with a processor that is not that powerful, we think that the device we made was effective enough to serve what it was built for.

    Having said that, I am open to specific improvements on the device. Is there a specific platform on which this would be better on? Is Python a language that could be changed in order to change the compiling time to gain a better response rate? Any other hardware suggestions? Please let me know and thank you for your input!

    DIY Hacks and How Tos

    Cool. You should enter this into the Microcontroller contest.


    Reply 4 years ago

    Thank you! We'll consider that!