tandav / ultrasonic-stethoscope Goto Github PK
View Code? Open in Web Editor NEWMy bachelor and master thesis at Voronezh State University
My bachelor and master thesis at Voronezh State University
it should be much simpler:
import sys
for i in sys.argv:
print(i)
than
ultrasonic-stethoscope/arduino/app.py
Lines 304 to 306 in 627bfe7
TLDR: use argparse, optparse is deprecated
ReadKey()
/bin/Debug/
Хз, пока не разобрался с этим дерьмом. Если из других папок - то не подключается. Даже если из /bin/Debug/
, то выдаст ошибку, но работать будет
timer.enabled = true
is the same thing as timer.Start()
. Use second option for certainity. more infoКороче подстраивай n_mic и k - чтобы получить что нужно турику
e.ButesRecorded = 1600 всегда.
e.Buffer.Length = 1600 всегда.
Мб каждые 10ms
byte[] buffer = ...; // e.Buffer
for(int n = 0; n < buffer.Length; n+=2)
{
short sample = BitConverter.ToInt16(buffer, n);
}
В этой статье вроде Wavebuffer самый крутой
Короче потом эту оптимизацию сделать. Сейчас похуй пока BitConverter юзать
Но вот что тогда дает частота дискретизации
For a given sample rate, bit depth, and channel count, PCM audio always has the same bitrate (calculated by multiplying those three values together). If you want to reduce the bitrate, you must change one of those three (lowering the sample rate is probably the best option unless you can go from stereo to mono).
Частота дискретизации должна быть больше и отрисовывать скользящее среднее. Отрисовывать по дехе точке ну там 512 допустим
походу там аля остаточное напряжение на ADC остается после прошлого сенсора, даже если на него уже перезаписал.
dt=100ms, -> 16000 Bytes/s * 8 = 128000 Bytes / s
mb fake
16 bits = 2 bytes (diveded by 8)
http://stackoverflow.com/questions/13248500/microphone-buffer-in-naudio-c-sharp
типа по 2 байта как-то походу они аля 2 байта инфы - следующие 2байта инфы.
Короче, суть такая, что сохраняю все значения, сколько их получилось из running_mean
при заданном running_mean_window_size
. Это или list, в который аппендятся значения и в конце timerTick()
обнуляются. (len(list) == 0
). Или array, который заранее инициализируется и его длина тоже просчитывается вручную или по формуле заранее.
Важное замечание: количество значений при скользящем среднем равно исходному количеству значений. (buffer_size)
Отрисовка этого дерьма на экране - это вообще другая сущность. Создается другой array/queue/list, в который "просеиваются" значения из листа значений. Можно фулл отрисовывать сколько есть, можно через 1/через 2 итд, короче чтобы комп не тормозил и нужная детализация была.
Now you can't just simply download and run project. Need to change .gitattributes
and .gitignore
could not open serial port
error)Do it when I near generator. Seems like values oscillating around -2V
(should be 0V
)
x-axis shift shrinks chart in the first several seconds. Need to fix.
Actually you don't need special Queue or List to store data. You can append and remove it from the very chart.
chart1.Uptate()
ultrasonic-stethoscope/install.bat
Line 1 in d45fbef
use some standard paths like:
C:\Anaconda3
C:\Miniconda3
%UserProfile%\Miniconda3
%UserProfile%\Anaconda3
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.