Go Down

Topic: Mosquito control, an simple optical method (Read 5277 times) previous topic - next topic


Jul 18, 2020, 08:23 am Last Edit: Sep 22, 2020, 11:45 pm by ephitran
Making mosquitoes stay away from your yard.

For the benefit of new visitors 

Pseudo table of contents:
  • Theory, videos and images. Papaer Body     Supplemental FFile
  •     Simple ̀£method using RGB 5050 SMD (this)
  •     Even simpler using 5mm RGB through-hole  (Page 3 post #32) LED
  •     Using off-the-shelves strip of 8 LED W2812 controller. (Page 2 post #29)
  •     Using off-the-shelves long LED strip. (Page 3 post #37)
  • Dual purpose: The light bulb that repel mosquitoes.(Page 1 post #8, #9, #10, #11, #12)
  • Mosquito trap and the protocol to prove if the trap or any trap works by design and not by chance.  (Page 1 post #14)
  • Cockroach control. (Page 2 post #27)
  • Simple protocol a LAB tool to tell if a device repelling mosquitoes indeed. (Page 2 post #28)
  • Mosquito larva control. (Page 2 post #26)
  • Housefly control. (Page 2 post #23,#24, #25 )
  • Agricultural pest control . (Page 3 post #39 and followed

Theory videos, pictures, are available at:.Please review and critic Next post will be the mosquito trap that will clear the room in 3 hours.

Intellectual property: Public domain.

6 5050 RGB LED.
6 220 Ohm resisors.
1 Aurdino as module since the system only use 2 output.

Schematic: The attached file draws 1 RGB LED, you will use  6 in parallel.

Layout Configurations: Please see the second attached file:They are the insides and the finals that we distributed for humanitarian purpose.

Code: [Select]

#define RED_LED 4
#define BLUE_LED 5
// Per schematic the LEDs pins, set low to turn ON.
#define RED_ON digitalWrite(RED_LED,false)
#define RED_OFF digitalWrite(RED_LED,true)
#define BLUE_ON digitalWrite(BLUE_LED,false)
#define BLUE_OFF digitalWrite(BLUE_LED,true)

void setup() {
void loop() {
// optional testing procedures

Usage: They are not intuitive, and difficult to use. Please follow the instruction carefully.

The keyword is 'shadow' and 'line of sight'.  shadow is the place mosquitoes can hide out of line of sight and become a highway for them to into the object in the middle. Our observation show mosquitoes don't go further more than 3 feet under 'line of sight' area to get into the object.

The unit is ineffective within 2' right up front of the LED.  Please don't test by put them next or near you.  It doesn't work that way.

It works day and night.

For single unit: Imagine that the unit has 90 degree shining angle, It must be place up high, to generously cover all around the footprint of the shadows of the subjects (at least 3' buffer). Then you are safe. - Don't worry about the effective radius which is very far 100's (only if the above conditions met.)

For multiple units: We have use 4 unit at 4 corners for a 100 boy scout group. As long as shadow of one  is cover by the other.


I am doing this for the benefit of the community. I will go extra and extra to help you regardless of your purpose with only 1 condition: They must be public, available to all.


To save you some times:

If you ever think of "set and forget" modules for your sites using solar power supply.
These are what we are using over the years.

1- 3W, 6V solar panel.
1- Phone charger power bank: USB input/output. Those with 3.8V 18650 battery.
1- Your light module. (We use cheap Holtek CPU)


Output of the solar panel -> power bank input.
The light module draw the power from the power bank.

Result: It should have enough power to operate day & night. Plus some extra for cloudy days.

Warning: There is wild-west state on the rate of the solar panel and the battery. Here are some rules of thumb.

- The solar panel should have at least 150 cm x cm.

- After money and medication, Lithium-ion battery stands as the the third most counterfeited; high claims, low quality even you buy from the links in Walmart and Amazon. Some Chinese manufactures even have separate 'versions' for evaluation and for purchased shipping. Brand name battery may last you for several years.

Happy mosquito free.

Coding Badly


Please try again. I just tested.
I had the same 'broken" sometimes.



I like to pay respect to the Research Square. - The pre-print host of the paper.

Please only use these links if you have problem with the link above. (It's in the google drive)

Paper Body

Supplemental file

Coding Badly

Jul 18, 2020, 11:09 pm Last Edit: Jul 18, 2020, 11:09 pm by Coding Badly
Please try again. I just tested.
Ugh.  I'll do it.


I received a question asking about the use of 3 mm and 5 mm through-hole RGB LED.

It works. However our observations indicated a smaller effective angle. SMT LED claim of 120 degree viewing angle, for the purpose it's around 90. Through-hole? about 60. but, ...  with  through-hole we can bend to beam individual LED making them to support wider angle.


Jul 22, 2020, 07:30 pm Last Edit: Jul 25, 2020, 05:14 am by ephitran
I like to use the threat to gradually transfer the knowledge accumulated over the years or perhaps decades to save you sometimes by not repeating our same past failures. Some may just an opinion on observations.

It's not programming issues I hope the moderator of the forum OK with it.

The first 'lesson'.

The devices use at least 2 colors, it's is not a specific 'color' that repels insects, but the environment.

- Yellow LED (warm white 3500 cctk) : It's ineffective sometimes during the day.
- Light blue (Cool white 8500 cctk) : It's ineffective about 1/2 hour at around dusk.

My best guess: It is the environment that nullify the flashing property of the devices. Daylight nullify yellow, dusk when the environment change from yellow to blue, at some point it's light blue ?.

If you are OK with it. (As we currently have)  They  are  devices serving dual purposes: Repelling and illumination; a light bulb that repel mosquitoes by using warm white and cool white LED. By utilizing the block voltage (0.7 per simple diode) and forward voltage of the LEDs  you may be able to use 60 Hz AC directly to drive back to back series of cool and warm white LED,  using the combined block voltage as a mean to control the timing.

Unfortunately most people in the world have 50 Hz AC. We have thousands shipped for humanitarian purpose, they promised anything to get ones without intention to keep, some even express their suspicions of the imaginary motives. Although our tests show the 50 HZ worked, but users' opinions, their feedback  that's counted.

Beside the above limitations, these forms they like the most.

We discarded thousands of flat COB to use Corn for better repelling quality - Please see attached picture

Upon available times, my next posts will be:

- Live mosquito traps. In early days, the backyard provided enough samples for us to experiment.

- Simple protocol for us, (and you?) to tell if a programming logic or method repel or not.


Jul 24, 2020, 09:02 pm Last Edit: Jul 24, 2020, 09:03 pm by ephitran
Based on feedback from users i think I need to revisit the  issue of using them, again and possible again(s).

- No matter how hard you try to 'teach' them how to use they just hear for the time. Go home they do their own way, They think it is the light that repels mosquitoes.

- Human nature we think of ourselves first, common 'mistake' is to have the device right next to them. Actually  they are sending invitations for them to come. Again it needs a 3' buffer.

The light doesn't repel mosquitoes. They just  want to get away from 'that' blinking thing; the LED,  even the case of the above dual purpose devices. For them, the lights only occupy a tiny part of their view, the rest are 'safe'. We need to outsmart them by preventing to come in the first place, not to chase them away which the device can not do.

It shines a room meaning enables us to 'see' thing, does not mean mosquitoes scare of the entire room, but only its front part.

Happy mosquito Free!


Jul 24, 2020, 09:20 pm Last Edit: Jul 24, 2020, 11:50 pm by ephitran
Something you smile at.

- From my neighbor: Eventually the devices repel geckos  from his backyard- Their foods go away.

- From my wife's co-worker. His dog quits barking at night.


- From my children's tennis coach: His dog barks whenever she ventures in and out the area. My explanation: When you repel mosquitoes from the front, where do they go? To the back of the light, mostly they are ambushing at around the border.

- The children from Africa: The bats don't come when they playing outside and at night .


Jul 25, 2020, 04:50 am Last Edit: Jul 25, 2020, 05:12 am by ephitran
Schematic and specification for the dual purpose device. The light bulb that repels mosquitoes.

(If the image does not show then see the attached.)

* LED are with 5730 COB  footprint either 3.1V or 6.2V
* For 3.1V,  its 'block voltage" is normally at 1.45 V means minimum voltage for the current to pass.
* The AC could be either 60 Hz and 50 Hz.
* The resistor could be 500, or 1k for protection against surge.
* There is no capacitor in the circuit.  With capacitors the system may produce more stable light, somehow it's not serving the purpose.


Jul 25, 2020, 03:18 pm Last Edit: Jul 25, 2020, 08:53 pm by ephitran
The light bulb that repels mosquitoes.

How did we measure the timing of the above system.

A variable transformer comes into handy.

The system should b start to lo light at about 1/2 of the RMS

For example for 110 V light bulb at 60 Hz.

In millisecond.

1 cycle is 1000 /60  and 1 quadrant = 1000/(60*4) = 4.17 and the system start  fully lit at 55 V then the light bulb has the following timings:

   Yellow ON;     Delay 4.17;
   Yellow OFF:   Delay 4.17;
   Blue ON;       Delay 4.17;
   Blue OFF;      Delay 4.17;
goto ABC;

How to see if the light bulb indeed splits the lighting.

Have you phone camera ON to near the light bulb.

If it indeed splits the lighting (not mixing) then you will see on your phone bands of yellow, black, blue, black .... So on.  such as:

You can experiment yourselves on normal light bulb

Happy Mosquito Free


I forgot an important feature of the mosquito repelling light bulb.

For outdoor: Year round there aren't insects hovering around the light.

Except: About 4 summer days, there are large number of beetle like died underneath, in a farm it could fill up a cereal bowl.


Jul 30, 2020, 07:01 am Last Edit: Jul 30, 2020, 07:43 am by ephitran
Mosquito trap  made simple.

The following is the picture of the trap used in my lab.

Let's look at the picture first.

Beside the housing from the front the components are.

- A programmed flashing LED (Red, blue 500 Hz)
- Its back has a blue LED.

- A white solid square plate:
   a- To block the insects from seeing the blade of the fan.
   b- To reflect the blue. Blue is selected for its capability to nullify the blue flashing property of the foreground LED.
   c- Its position and size is set to make sure mosquito 'seeing' before they are exposed to the light.
- Window screen.
- Fan. (80x80, 12V 0.35A  component fan)

     The picture show one foreground LED. Unless you have good reason, it should have have two or more. In early indoor/outdoor trials we used 6 and they were fine.
It may not worth the tedious job to use 1-LED configuration, it needs a small piece of fine mesh afflicted right on the surface of the LED. as illustrated in the below picture.

How does the trap work?

     Normally traps involve setting attracting agents to draw the animal in order to catch or to kill. This breed of trap utilizes the repelling feature of the technology, upon entering the lit area mosquitoes will go to one of the nearest safe places, it could be a a shadow, or the back of the light which is the largest safe area. In their persisting efforts to get away they venture in in order to meet the light, to retreat until they come near to the place that appears to be safer, they are trapped. Normal traps work to lure the animal to come to it mostly from it front, while this breed traps them during their escaping effort mostly from its back.  - Please see the comment at the ends.

     The technology repels mosquitoes by simulations of the persistent present of other objects that also attract other  predatory insects who thought the lights are their food sources: Beetles, crane flies and unknowns.

The state of the development.

This is not public but in-house 'products', they are only available to family, friends and dozens testers who asked to keep for their personal use.


- For indoor application:
   If you want to clear the room in the first place, a small disk of water is put about 2' (50cm) in front of the trap. Otherwise it's not necessary.

   There ares some precautions and hints:

          (a) It take sometimes for the trapped to get killed thus they will come out as soon as the power cut.
          (b) Beside it need to be cleaned here and there it is maintenance free.
          (c) The trap works best when it's in front of the walls that narrowing their safe territory.
          (d) The trap is also a mosquito repelling device.
          (e) There were suggested improvements of something such as vanes to prevent mosquitoes getting out due to power off, and mechanism to disassemble for cleaning purposes.

- For outdoor applications;

   The main difference of indoor vs outdoor application are add-on efforts to serve little or no harm to beneficial insects The device requires 1/4 ich mesh to filter large predatory insects.

   However there are strictly nocturnal Texan insects (we don't know the name), they come in number to feast on net trapped mosquitoes. Therefore, for live sample purpose, the net should be replaced by a fairly large chamber to give your mosquito means to avoid eaten. They have the size of a large fire ant, have wings but they are able to craw in and out as of a roach.

   In normal operation the trap will get the  most of the first 1,2 nights; and only few on the subsequent, perhaps the place get cleared out?

The trapping method were not the original purpose of the experiments but to measure the effectiveness of the light in front of the various backgrounds.
Many questions were arisen on the validity of the explanations. Sometimes they are just educated best reasons, inspiration? or from observation over the years. These are the settings that were developed  after the facts.

Equipment for observation and testing purpose.

With  the above chamber it allow developer to observe and testing with small sample, from as low as 1/2 dozen.
With a trap inside the chamber.

- The trap indeed caught 100% or close in an hour or two.
- The mosquitoes were caught on their way from the back of the trap to the front(observations).
- In the same chamber we use either CO2 or moisture as attracting stimulant. Moisture sources gave us better results; they came looking for food?.

We hope the posts give you some information to start with. The world and consumers always want the better. And collectively The community can do it.

Go Up