كل يوم أقوم بنشر معلومة مفيدة أو فكرة جديدة أو نشاط جديد أو ابتكار . ستجد معلومات عن القراءة والكتابة والابتكارات والرياضة والطبيعة والزراعة وكل ماهو مفيد وجديد . ستجد معلومات عن طائرات الكوادكوبتر ومكوناتها وأحدث التقنيات الجديدة فى هذا المجال. This is my outlet to the world. Here I put new post everyday.

tank offer

Sunday, April 29, 2018

Arduino Mosquito Repellent - How you can generate high frequency sounds with Arduino

It's a good practice(and it's a hobby of mine)to see a simple Arduino project that can be easily built from time to time.

Picture of Arduino Mosquito Repeller



Being busy makes us in need to manage our times efficiently to do many things we want to do.

He is a simple Arduino project that I wanted to share with you.

When I first started to learn microcontroller I used to blink that LED as a very primitive embedded software project.



I also wanted to make those signals make sense other than just blinking the LED.

So I used those microcontroller generated signals to drive speakers and buzzers to make sounds with different frequencies.

One of those reasons to make these projects was to make an electronic Mosquito Repellent.

As the legend says, high audio frequencies keep Mosquitoes away from you.

Of course, this turned out to be a hoax and you can try it for yourself. This simply cannot keep pests nor dogs away from you.

This only represents sound for them.

I've tried many circuits and Android App that generated high frequencies to repel Mosquitoes with no use.

However, the project is so easy and can be modified to be used as an Ultrasonic Ranging device.

I thought of modifying the code to make one piezoelectric transducer act as a transmitter and the other to act as a reciever.

I have many trnasducers of them so I want to try that project someday.


Components

Picture of Tools and Components

Arduino Uno
PCB
Piezoelectric Disk
Header Pins
A breadboard (optional)
Wires
Soldering Iron

Soldering Lead



Connections


The circuit is very simple, one of the piezoelectric disk is connected to digital pin 9 and the other to digital pin 11. The left over terminal of both the disks is connected together and soldered to the ground terminal of the Arduino.




Circuit

Picture of Code

Code


int speaker = 9; int frequency = 31000; int speaker2 = 11; int frequency2 = 31000;
void setup(){ pinMode(speaker, OUTPUT); pinMode(speaker2, OUTPUT); }
void loop(){ tone(speaker, frequency, 1000); tone(speaker2, frequency2, 1000); }



Source: Instructables










No comments:

Post a Comment