Embedded systems design, Microchip PIC , Microcontroller , Electronics , Software , Computer , PC,Embedded Systems in Egypt , Microcontroller companies in Egypt , Microcontroller Tutorial for beginners, Microchip Microcontrollers tutorial , Microcontrollers made easy, Microcontroller DIY, DIY,embedded systems,embedded system , open source embedded software,list of embedded systems companies in Egypt, Quadcopter , Embedded Systems components in Egypt , Embedded Systems Components Stores in Egypt
Mturk Jobs
Mturk Jobs
Tank
Showing posts with label Arduino Lonely Project. Show all posts
Showing posts with label Arduino Lonely Project. Show all posts
In this post we'll see how to generate audio signals from Arduino without using any shields or modules. PCM (Pulse Code Modulation)
Using Arduino and a speaker, you can generate audio signals as if they were coming out from an MP3 player.
Components
Arduino Uno
8 ohm Speaker
TIP 120 Resistor to be used as an amplifier.
Circuit
Just connect the amplifier transistor to Arduino and then connect them to the speaker. Software Download Audacity and then download software encoder from here. Arduino code is included in this file.
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.
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
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
Code
int speaker = 9;
int frequency = 31000;
int speaker2 = 11;
int frequency2 = 31000;