Pages: [1]   Go Down
Author Topic: Knock problems  (Read 478 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have searched around for the answer for this for quite a while now and can't find an answer.
I am using the basic knock sketch and schematic provided on the arduino site but the value read in is always 0 and doesn't register a knock no matter what I try.

I have tried two piezos with no luck and this is the one I am trying currently http://www.taydaelectronics.com/buzzers/piezo-electronic-tone-buzzer-alarm-1-5-28v-pcb.html.
I have it wired with the 1M ohm resistor in parallel like it says but it just won't work. Can I get some help with what might be wrong.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 637
Posts: 34579
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

So you don't give us a lot to work on. Other people have got this to work, so it must be your implementation. Post a photo of your setup and post the exact code you are using.
Logged

0
Online Online
Shannon Member
****
Karma: 216
Posts: 12545
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You have to use a bare piezo element, not a buzzer (a buzzer is a powered oscillator circuit that drives a piezo element, you are not connecting to the element)
Logged

[ I won't respond to messages, use the forum please ]

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@grumpy_mike. How have I not given enough information? I have wired everything correcty according to the schematic but when I try it out it won't detect a knock or any noticable change. And the code is the exact code from the arduino site also included in the software so no need to post it.

@MarkT. I don't think this is true. I might be wrong and correct me if I am but I have seen lots of people implement similar piezo buzzers into a knock sensor without a problem.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 637
Posts: 34579
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I have wired everything correcty according to the schematic
You may think you have wired it up correctly but are you sure?
I have lost count of the number of things I have made that dosn't work first time. I thought I had wired it up right but in the end I had not.
If it doesn't work something is wrong, if you deny that anything is wrong you will never find the problem.

Anyway your choice.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I know something is wrong haha and I'm not denying it:P I honestly don't think it is the wiring though because it is a really simple circuit :S
Logged

Pages: [1]   Go Up
Jump to: