Search found 96 matches

by zaord
Wed Dec 29, 2021 7:23 pm
Forum: MicroPython pyboard
Topic: Reading multiples i2c sensor and grab datas regularly
Replies: 8
Views: 30236

Reading multiples i2c sensor and grab datas regularly

Hi here ! I have 2 i2c sensors one flowmeter and one bmp280 (temp / pressure sensor). My fondamental question is I wants to grab my datas on micropython array, encode it with json fromat and send it to serial protocol to a PC Cpython script which will collect various datas. When I will do my measure...
by zaord
Sat Dec 25, 2021 10:14 pm
Forum: MicroPython pyboard
Topic: Pyboard.py raw repl : passing Micropython variable to Python
Replies: 10
Views: 95251

Re: Pyboard.py raw repl : passing Micropython variable to Python

Hi, I wonder if it's possible to pass an array with pyboard.py from micropython to python like : Mes_Temp = float(pyb.exec("mes.Mes_Temp()")) Where the micropython function Mes_Temp() returning an array of float values from micropython board to my python script from my computer. This is the good way...
by zaord
Fri Dec 24, 2021 12:17 pm
Forum: MicroPython pyboard
Topic: Make realtime Discrate fournier transform from i2S mic
Replies: 25
Views: 85456

Re: Make realtime Discrate fournier transform from i2S mic

Hi, I works a lot and developp this code. I 've tryied différents methods for finding the enveloppe (peak method, diff method, hilbert and yours) I have a problem on the diff method that I developped several year ago for my thesis on free reeds acoustics. This was working on matlab but here I get we...
by zaord
Thu Dec 16, 2021 8:51 am
Forum: MicroPython pyboard
Topic: Make realtime Discrate fournier transform from i2S mic
Replies: 25
Views: 85456

Re: Make realtime Discrate fournier transform from i2S mic

Here I recorded some sound from my accordions with differents 'vibrato' (beating frequency)
I don't know how to convert this on CyThon :)

https://labodezao.fr/old/share/beat_exemples.wav

I will try to convert this in array
by zaord
Tue Dec 14, 2021 10:30 am
Forum: MicroPython pyboard
Topic: Make realtime Discrate fournier transform from i2S mic
Replies: 25
Views: 85456

Re: Make realtime Discrate fournier transform from i2S mic

Good !
I will use the i2S script of mike and then grab the i2s mic into the sd card and send it here :)

Best Regards, and a lot of thanks !
by zaord
Mon Dec 13, 2021 10:48 pm
Forum: MicroPython pyboard
Topic: Make realtime Discrate fournier transform from i2S mic
Replies: 25
Views: 85456

Re: Make realtime Discrate fournier transform from i2S mic

I have also tried this code : import numpy as np import matplotlib.pyplot as plt from scipy.signal import hilbert, chirp duration = 1.0 fs = 400.0 samples = int(fs*duration) t = np.arange(samples) / fs signal = chirp(t, 20.0, t[-1], 100.0) signal *= (1.0 + 0.5 * np.sin(2.0*np.pi*3.0*t) ) analytic_si...
by zaord
Mon Dec 13, 2021 9:50 pm
Forum: MicroPython pyboard
Topic: Make realtime Discrate fournier transform from i2S mic
Replies: 25
Views: 85456

Re: Make realtime Discrate fournier transform from i2S mic

Good !
How to find the fundamental frequency of this output in micropython with a realtime optimization ? i should double it due to absolute value opération right ?
You think I should use a fft ?

Best

Ewen
by zaord
Thu Dec 09, 2021 11:19 am
Forum: MicroPython pyboard
Topic: Make realtime Discrate fournier transform from i2S mic
Replies: 25
Views: 85456

Re: Make realtime Discrate fournier transform from i2S mic

My application is realtime :)
I will use a buffer :)
by zaord
Thu Dec 09, 2021 10:25 am
Forum: MicroPython pyboard
Topic: Make realtime Discrate fournier transform from i2S mic
Replies: 25
Views: 85456

Re: Make realtime Discrate fournier transform from i2S mic

I never learn assembler at school :)
I will try to make it with your comments !

In all the case I will need the table with the coefficient right ?