the max voltage was 0.05v
how do i read the speaker in analog value
to be as short as you: by amplifiying the signal with a factor of 50
I am curious how many posting it will require to make you really learn that you have to give DETAILED descriptions.
0.05V while the doorbell was "ringing" seems to be a bad measuring.
So given from your short posting I assume that you are a real beginner about electronics and programming. Assuming that:
there is a very high probabilitiy that something went wrong with the measuring.
- how much experience do you have with electronics in general?
- how much experience do you have with using digital multimeters?
- what kind of measurement device did you use?
- to what measurement-range was it adjusted?
- did you measure AC / or DC?
It is still up to you to change to a much more detailed style of providing information
or with staying at single sentence postings which will require 200 postings of asking back a huge amout of things making you learn the basics of electronics in a very INefficient way.
maybe answering your question directly will help make you learn.
From the information that you have provided so far this is the real poor sketchy-sketch that can be given
#include <libraryName.h>
// can only be specified if a much more detailed description is provided
// exact syntax can only be specified if a much more detailed description is provided
// that makes it possible to choose a library
libraryName mySmartPhoneInfoObject
int SpeakerSignal;
void setup() {
}
void loop() {
SpeakerSignal = analogRead(A0);
if (SpeakerSignal > 5}
// code to make your smartphone "beep"
// can only be given if a much more detailed description is provided
}
save time
video in post # 24 is completely useless
i used a multimeter it was set to 20vDc
and i get 0.05v max when main bell sound was ringing
im using this doorbell
video is completely useless
The video user @malharja123 posted is completely useless.
There is zero information in this video that would help proceed in the project
It is enough to see the picture
the doorbell-button and the speaker seems to be mounted in this housing.
To me it seems totally unnescessary to add any kind of feature to this doorlock as it has
Fingerprint access, RFID access, Pincode access, mechanical key access, video door phone access, mobile phone access
So how many two-sentences-postings will you need to explain why you want
by that hint i made this code
const int doorbellPin = A0;
const float thresholdVoltage = 0.05;
void setup() {
pinMode(doorbellPin, INPUT);
Serial.begin(9600);
}
void loop() {
float doorbellVoltage = analogRead(doorbellPin) * (5.0 / 1023.0);
if (doorbellVoltage >= thresholdVoltage) {
Serial.println("Doorbell ringing!");
}
//Serial.println(dVoltage);
delay(100);
}
but it prints different values every time
Your other topic on the same subject deleted.
Please do not duplicate your questions as doing so wastes the time and effort of the volunteers trying to help you as they are then answering the same thing in different places.
Please create one topic only for your question and choose the forum category carefully. If you have multiple questions about the same project then please ask your questions in the one topic as the answers to one question provide useful context for the others, and also you won’t have to keep explaining your project repeatedly.
Repeated duplicate posting could result in a temporary or permanent ban from the forum.
Could you take a few moments to Learn How To Use The Forum
It will help you get the best out of the forum in the future.
Thank you.
no one was answering my questions
pls undo that forum
Maybe not, but starting a duplicate topic is not the right thing to do. Updating the original topic would have been better
but no one is answering
pls
i dont have any option
Maybe nobody can provide an answer with the information available or maybe what you are trying to do is impossible
sorry i undrstand
its not
pls let me post
I am not stopping you posting here
let me post on other pls don't delete the forum
I see that you have posted another duplicate topic, which has been deleted
In view of that @malharja123 will be enjoying a break from the forum
how
@malharja123 was originally suspended for a period of 2 days for repeatedly creating duplicate topics
Having then created a duplicate account, which has been deleted, his account has been suspended permanently
