Giter Site home page Giter Site logo

olewolf / geophone Goto Github PK

View Code? Open in Web Editor NEW
52.0 52.0 19.0 1.05 MB

Code and Arduino shield for a frequency analyzer for geometric sensors

License: GNU Lesser General Public License v3.0

Eagle 92.59% Arduino 4.14% Shell 0.34% CSS 0.02% Perl 1.61% Scilab 0.10% C 0.81% BitBake 0.39%

geophone's People

Contributors

olewolf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

geophone's Issues

Hello! I have a question about using a geophone with your code.

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

no file or directory

How to solve this prob?

Geophone.ino:98:36: fatal error: twiddle_factors_256_br.h: No such file or directory
compilation terminated.
Error compiling.

twiddle_factors_256_br.h

Hey olewolf, great work with the geophone, i just have a little problem. Before i go on, I'll like to specify what I'm working with.
Arduino version: 1.6.8
OS: windows 7
these are the errors i get back when i try to verify the geophone.ino
In file included from C:\Users\WKUUSER\Documents\geophone-master\Geophone\Geophone.ino:98:0:

C:\Users\WKUUSER\Documents\Arduino\libraries\geophone-master/twiddle_factors_256_br.h:10:7: error: 'prog_int16_t' does not name a type

const prog_int16_t twiddle_real[ 256 ] PROGMEM =

   ^

C:\Users\WKUUSER\Documents\Arduino\libraries\geophone-master/twiddle_factors_256_br.h:46:7: error: 'prog_int16_t' does not name a type

const prog_int16_t twiddle_imag[ 256 ] PROGMEM =

   ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

             from sketch\Geophone.ino.cpp:1:

C:\Users\WKUUSER\Documents\geophone-master\Geophone\Geophone.ino: In function 'void fft_radix2_512(short int_, short int_)':

Geophone:465: error: 'twiddle_real' was not declared in this scope

   short WR = pgm_read_word_near( twiddle_real + group );

                                  ^

Geophone:466: error: 'twiddle_imag' was not declared in this scope

   short WI = pgm_read_word_near( twiddle_imag + group );

                                  ^

exit status 1
'twiddle_real' was not declared in this scope

i realized it's something with the twiddle code, so i went ahead to take a look.
on the 10th line, const prog_int16_t twiddle_real[ 256 ] PROGMEM =
prog_int16_t isnt recognized even when described.

Any help would be appreciated

Sample/Serial comms Noise

Hi Ole - I love the project, and really appreciate your time putting it all up!

I'm having some issues with noise from the system. It's all harmonics of 60Hz, and I can't tell if it's electrical noise from the serial send every second, or possibly a sampling artifact?

image

It gets a bit less noisy if I use 12v power for the Arduino; maybe my capacitor choices are incorrect?

image

Any suggestions would be appreciated

Few questions about design

I was building this circuit on a breadboard and not the Arduino shield approach that you documented here. If running on Mega, can you just leave out the diodes and just run the signal out similar to the DiscoverCircuits example you referenced? There was a 100n capacitor you added to yours, what was the purpose and is that necessary?

Also, if connecting to three geophones to get all three axis, would you just build three amps and connect each to different analog pins? Or is there a better approach to get the best sampling freq?

Duplicated events in serial plotter

Hi, just started using the shield with the Geosampler.ino program on an Arduino Mega.

It looks promising so far but every event seems to be repeated (see image for example). Any idea why this would be happening?
image

Thanks in advance!

Two issues with Geophone on Arduino Due

(1) Multiple warnings on "narrowing conversion of [number] from 'int' to 'const int16_t in <twiddle_factors_256_br.h>

line 10: const int16_t twiddle_real[ 256 ] PROGMEM =
line 46: const int16_t twiddle_imag[ 256 ] PROGMEM =

Adding compiler directived for MEGA and DUE removes the problem. E.g.:

Expand line 46 to:

if defined( ARDUINO_AVR_MEGA2560 )

const int16_t twiddle_imag[ 256 ] PROGMEM =

elif defined( ARDUINO_SAM_DUE )

const int twiddle_imag[ 256 ] PROGMEM =

endif


Expand line 10 to:

if defined( ARDUINO_AVR_MEGA2560 )

const int16_t twiddle_real[ 256 ] PROGMEM =

elif defined( ARDUINO_SAM_DUE )

const int twiddle_real[ 256 ] PROGMEM =

endif


(2) Invalid conversion from 'int' to 'eAnalogReference' in <Geophone.ino>
line 1110: analogReference( DEFAULT );

According to the Arduino Due documentation, the analogReference() function is ignored on the Due.

Adding compiler directives restricting the analogReference to the MEGA removes the issue:

Expand line 1110 to:

#if defined( ARDUINO_AVR_MEGA2560 )
analogReference( DEFAULT );

#endif

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.