-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello! I have a question about using a geophone with your code. #2
Comments
I'm not sure I understand your question. Reading data on an arduino using "analogRead" is in fact sampling the data. If you use this function at a certain frequency, then you're sampling at that frequency. |
Hello 김 원줄, You can use analogRead(A#) to sample the signal. The section starting with /* Setup interrupts for the Arduino Mega. */ (l.140ff) controls the timer and therefore sets up the sampling speed. You can look up the datasheet of the respective ATMEL chip to see how setting certain bits in control registers such as TCCR1B will control the timer function. I hope that helps. |
Sir Olewolf, My name is Uttam Singh, I am currently working on project related to geophone(HG-24) connection with arduino uno, I have used your code geosampler.ino for blinking led on interrupt, keeping in mind with the same baud rate 115200 you mention in the code but it is not working out...can you help me in the same with the connection of LED, ARDUINO UNO and GEOPHONE(HG-24) or if i require any update in the code then please mention. Waiting for your reply, |
Bonjours à tous, je cherchais mon compte gitHub, sur assistance d'accompagnement nocturne de troupeau domestique exposé aux predateurs naturels et ??? |
Dear olewolf,
This is Wonchul Kim who is a M.S. student at Seoul National Univ., Seoul, Korea.
During my project related to sensor-network, I am using SM-24 with your code.
I could understand geosampler.ino and now, I am working on geophone.ino.
In codes of geosampler.ino, I have a question.... please answer me....
I am very wondering why there needs sampling....
I know that analog signal should be sampled at a certain freq., but when I receive data from SM-24 by connecting it to analog pin on arduino mega board using 'analogRead(A0)', I could get data....
Could you exaplain it, please?
Thank you
Wonchul Kim
The text was updated successfully, but these errors were encountered: