Go to advanced search

by harshas123
Mon Nov 07, 2016 2:57 pm
Forum: Python
Topic: Reading PDM data @ 2MHz with Raspberry Pi + pigpio (Python)
Replies: 25
Views: 7723

Re: Reading PDM data @ 2MHz with Raspberry Pi + pigpio (Pyth

Hi Givigy, I did manage to record using a MEMS microphone but not using Raspberry Pi. My final solution involved using the STM32 micro-controller in a Nucleo Board and the drivers already available from the STM website. Let me know if you are interested to go along those lines and I can send you a d...
by harshas123
Thu Jan 21, 2016 5:29 am
Forum: Python
Topic: Reading PDM data @ 2MHz with Raspberry Pi + pigpio (Python)
Replies: 25
Views: 7723

Re: Reading PDM data @ 2MHz with Raspberry Pi + pigpio (Pyth

Hi mikromauts, Thank you for your response. I am able to setup SPI @ 2MHz and transfer and receive a byte of data (through loopback by connecting the MOSI and MISO Pins). I am using pigpio to do this using the following piece of code: import pigpio import time pi = pigpio.pi() h = pi.spi_open(0,2000...
by harshas123
Mon Jan 18, 2016 8:50 am
Forum: Python
Topic: Reading PDM data @ 2MHz with Raspberry Pi + pigpio (Python)
Replies: 25
Views: 7723

Re: Reading PDM data @ 2MHz with Raspberry Pi + pigpio (Pyth

Hi Joan, I tried using the "request Notification" as you suggested using the exact same code provided by you. Prior to running your code, I generated a 250kHz clock in Pin number 4. The final file size is 178932636 bytes which translates to 14911053 samples ~ 15 million samples as expected. For freq...
by harshas123
Thu Jan 14, 2016 5:17 am
Forum: Python
Topic: Reading PDM data @ 2MHz with Raspberry Pi + pigpio (Python)
Replies: 25
Views: 7723

Re: Reading PDM data @ 2MHz with Raspberry Pi + pigpio (Pyth

Thank you for your response. I realize that it may not be possible to acquire a single bit @ 2MHz. But, if I use a 8-bit shift register, then I would have to acquire 8 bits or 1 byte every 2M/8 = 250kHz. A shift register also sends out a logic 1 when the data is ready to be read in parallel. So, can...
by harshas123
Wed Jan 13, 2016 4:25 am
Forum: Python
Topic: Reading PDM data @ 2MHz with Raspberry Pi + pigpio (Python)
Replies: 25
Views: 7723

Reading PDM data @ 2MHz with Raspberry Pi + pigpio (Python)

Hi, I am trying interface a digital MEMS Microphone with Raspberry Pi 2 Model B+, and do some signal processing in Python using pigpio. The digital MEMS Microphone needs a 2MHz Clock (which I am generating using the code: import pigpio CLK_PIN = 4 pi = pigpio.pi() pi.harware_clock(4,2000000) This gi...

Go to advanced search