Sensor
Sensor
Initially I built a line following robot successfully. With a perfect C language code everything went smoothly. But now I have a big challenge before me in which I am supposed to find a suitable sensor that can be used in a container to cause a microcontroller trigger sound production in three stages such that the first sound is produced when intrusion is sensed the first time, second time and finally the third time. The sound increases in volume sequentially. Can any one help me please to kickstart this work. :?
You may be able to use a digital pot to control the output volume and a simple counter for the sensor triggers. Each trigger corresponds to a volume settings on the pot. Check out the examples http://www.mikroe.com/en/tools/digitalpot/
Why the marketing chiropractic signature. What are the odds of finding a DC in this forum?
Why the marketing chiropractic signature. What are the odds of finding a DC in this forum?
-
- Posts: 2780
- Joined: 25 Dec 2008 15:22
- Location: Scotland
@bura
this should really be posted in the general section, next time!
check the compiler help file for sound library, this will give you a quick route to generating three different tones. If you have enough free pins you could look at a simple resistor network switching to produce differing impedance paths for the speaker to give 3 x fixed volume control, you only need 2 pins to have 3 options.
there are obviously a number of solutions, it really depends on what bits-n-bobs you are (allowed to use) using, for whatever reason, cost, PCB space, availability etc.
this should really be posted in the general section, next time!
check the compiler help file for sound library, this will give you a quick route to generating three different tones. If you have enough free pins you could look at a simple resistor network switching to produce differing impedance paths for the speaker to give 3 x fixed volume control, you only need 2 pins to have 3 options.
there are obviously a number of solutions, it really depends on what bits-n-bobs you are (allowed to use) using, for whatever reason, cost, PCB space, availability etc.