Skip to content
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

Open
wonchul-kim opened this issue Aug 8, 2016 · 4 comments
Open

Comments

@wonchul-kim
Copy link

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

@olewolf
Copy link
Owner

olewolf commented Aug 21, 2016

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.

@catox0
Copy link

catox0 commented Aug 26, 2016

Hello 김 원줄,

You can use analogRead(A#) to sample the signal.
But you need to read the analog signal at regular intervals, so the frequency analysis can rely on a well-defined time axis with equally spaced data points. The best (most reliable) way to control the timing of the analog read function is to use an internal timer of the Arduino. The timer counts a predefined number of clock cycles for the internal clock and can then directly trigger an analog-digital conversion (take a sample).

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.

@Uttam1225
Copy link

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,
Uttam Singh

@SismiWoolf
Copy link

Bonjours à tous, je cherchais mon compte gitHub, sur assistance d'accompagnement nocturne de troupeau domestique exposé aux predateurs naturels et ???
Enfin au sujet de l'Arduino, il y a lire et surtout pour la valeur l'enregistré dans une variable monCapteur = anologRead(A1), pour pouvoir la lire, on lira la valeur de la variable qui à pris l'échantillon de l'entrée analogique.... Oui s'est simple, là dans mon projet quelques grosse influences, utilisation d'arme chasse, materiel d'effarouchement, autres... Politique et moral detourné par politique de survaliste, liberté abusive, atteinte à la faune sauvage, detournement de technologie/d'objectif...
Compôrtement des predateurs naturels, de la faune (barrière d'activité exploité par les predateurs....
Oui l'objectif limité le surplus de tuerie, aucun appareil ne fonctionne, tout fonctionne à un taux d'efficacité sur le moment et aussi avec le temps. Oui sujet chaud bouillant, entre deux feux protecteur abusif et anti abusif.... J'essai d'avancé même si dans 5 ans...
J'utilise le shemas FT994K... Sur arduino uno lecture de 2 geophone et enregistrement sur SD 30-60 capture / seconde.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants