olewolf / geophone Goto Github PK
View Code? Open in Web Editor NEWCode and Arduino shield for a frequency analyzer for geometric sensors
License: GNU Lesser General Public License v3.0
Code and Arduino shield for a frequency analyzer for geometric sensors
License: GNU Lesser General Public License v3.0
It looks like the "5v" label is across the wrong pins for the PCB design.
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
(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.:
const int16_t twiddle_imag[ 256 ] PROGMEM =
const int twiddle_imag[ 256 ] PROGMEM =
const int16_t twiddle_real[ 256 ] PROGMEM =
const int twiddle_real[ 256 ] PROGMEM =
(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:
#if defined( ARDUINO_AVR_MEGA2560 )
analogReference( DEFAULT );
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
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.
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?
report( geodata_samples, NUMBER_OF_GEODATA_SAMPLES );
should be
report( geodata_samples_real, NUMBER_OF_GEODATA_SAMPLES );
Line 261 in 3df989e
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?
It gets a bit less noisy if I use 12v power for the Arduino; maybe my capacitor choices are incorrect?
Any suggestions would be appreciated
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.