Coder Social home page Coder Social logo

wavrecorder's Introduction

Hi, I'm Alireza   

  • As a passionate embedded systems engineer and modern C++ programmer, I have honed my skills in STM32, ESP32, and AVR MCUs, and their respective platforms including STM32Cube, Arduino, and Codevision and developed an open source user friendly lib WAVRecorder. I'm also highly interested in computer networks and database concepts and contributed to courses Embedded systems and Assembly (as head TA), Computer Networking and Principles of Database Design at AUT during my BSE designing HWs and Embedded systems' lab materials.

  • Currently studying for MS.E in AI at UT with focus on Anomaly Detection leveraging Knowledge Distillation and maybe Vision-Language Models. I welcome opportunities that deepen my knowledge and fulfill enthusiasm in the field, especially if it's associated with the IoT workspace (which is my enduring passion).

wavrecorder's People

Contributors

alirezasalehy 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

Watchers

 avatar  avatar

Forkers

eggfly

wavrecorder's Issues

Library not Valid

I cannot add this zip file to my arduino ide this error comes in the monitor
Error: 13 INTERNAL: Library install failed: moving extracted archive to destination dir: library not valid

Components

Which Hardware did you use besides the microphone and the arduino due? How is the hardware connected/ How is the setup?
Can you share a schematic or a picture of the hardware construction?
Thanks in advance

Compilation error: too many arguments to function 'hw_timer_t* timerBegin(uint32_t)'

hello, I ran the library.ino code and the compiler gave me this error, can you help?

C:\Users\User\Desktop\WAVRecorder-main\library\src\AudioTimer.cpp: In member function 'void AudioTimer::setup(uint32_t, void ()())':
C:\Users\User\Desktop\WAVRecorder-main\library\src\AudioTimer.cpp:17:27: error: too many arguments to function 'hw_timer_t
timerBegin(uint32_t)'
17 | timer = timerBegin(0, 20, true);
| ~~~~~~~~~~^~~~~~~~~~~~~
In file included from C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32/esp32-hal.h:84,
from C:\Users\User\Desktop\WAVRecorder-main\library\src\AudioTimer.h:5,
from C:\Users\User\Desktop\WAVRecorder-main\library\src\AudioTimer.cpp:1:
C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32/esp32-hal-timer.h:35:13: note: declared here
35 | hw_timer_t timerBegin(uint32_t frequency);
| ^~~~~~~~~~
C:\Users\User\Desktop\WAVRecorder-main\library\src\AudioTimer.cpp:18:29: error: too many arguments to function 'void timerAttachInterrupt(hw_timer_t
, void (*)())'
18 | timerAttachInterrupt(timer, f, true);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32/esp32-hal-timer.h:50:6: note: declared here
50 | void timerAttachInterrupt(hw_timer_t *timer, void (*userFunc)(void));
| ^~~~~~~~~~~~~~~~~~~~
C:\Users\User\Desktop\WAVRecorder-main\library\src\AudioTimer.cpp:19:9: error: 'timerAlarmWrite' was not declared in this scope; did you mean 'timerWrite'?
19 | timerAlarmWrite(timer, 4000000 / frequency, true); // 500 for 8Khz, 250 for 16Khz, 125 for 32Khz
| ^~~~~~~~~~~~~~~
| timerWrite
C:\Users\User\Desktop\WAVRecorder-main\library\src\AudioTimer.cpp: In member function 'void AudioTimer::start()':
C:\Users\User\Desktop\WAVRecorder-main\library\src\AudioTimer.cpp:37:9: error: 'timerAlarmEnable' was not declared in this scope; did you mean 'timerAlarm'?
37 | timerAlarmEnable(timer);
| ^~~~~~~~~~~~~~~~
| timerAlarm
C:\Users\User\Desktop\WAVRecorder-main\library\src\AudioTimer.cpp: In member function 'void AudioTimer::stop()':
C:\Users\User\Desktop\WAVRecorder-main\library\src\AudioTimer.cpp:52:17: error: 'timerAlarmDisable' was not declared in this scope
52 | timerAlarmDisable(timer);
| ^~~~~~~~~~~~~~~~~

exit status 1

Compilation error: too many arguments to function 'hw_timer_t* timerBegin(uint32_t)'

Zip file is not adding to Arduino ide

When I add zip file to Arduino ide library It's showing error like
error: 13 INTERNAL: Library install failed: moving extracted archive to destination dir: library not valid
Please give me solution

hwo is the output played?

In your example circuit I don't see an output/pin.

how is the audio played on a speaker and here is the setup of the output pin?

thx

reboot all again at esp32

Core 0 register dump:
MEPC : 0x4038522a RA : 0x4038691e SP : 0x3fc8dd40 GP : 0x3fc8bc00
TP : 0x3fc74f50 T0 : 0x7fffffff T1 : 0x420095f8 T2 : 0x00000002
S0/FP : 0xffffffff S1 : 0x00000000 A0 : 0x3fc9624c A1 : 0x3fc95a74
A2 : 0x00000018 A3 : 0x3fc95a74 A4 : 0x00000018 A5 : 0x3fc95a74
A6 : 0xfa000000 A7 : 0x00000003 S2 : 0xffffffff S3 : 0x3fc9624c
S4 : 0x00000004 S5 : 0x00000000 S6 : 0x00000000 S7 : 0x3c040276
S8 : 0x00000000 S9 : 0x00000002 S10 : 0x00000001 S11 : 0x00000000
T3 : 0x3fc8eaa8 T4 : 0x00000000 T5 : 0x00000001 T6 : 0xfffc0000
MSTATUS : 0x00001881 MTVEC : 0x40380001 MCAUSE : 0x00000018 MTVAL : 0xfec77de3
MHARTID : 0x00000000

Stack memory:
3fc8dd40: 0x3fc8de20 0x3c059ac0 0x3fc8dd78 0x3fc9624c 0xffffffff 0x00000000 0x3fc96228 0x40385da0
3fc8dd60: 0x00000001 0xffffffff 0x00000001 0xffffffff 0x00000000 0x00000000 0x00000000 0x0000031e
3fc8dd80: 0x00000000 0x00000000 0x00000002 0x3fc8e9a8 0x00000002 0x00000000 0x3fc8e9a8 0x42011c48
3fc8dda0: 0x00000001 0x60040000 0x00000000 0xffffffff 0x0000000e 0x0000000a 0x00000003 0x3fc97cc4
3fc8ddc0: 0x00048c00 0x3fc8f000 0x00000000 0x3fc8f000 0x00000001 0x3c040274 0x3fc8b58c 0x4200c0b2
3fc8dde0: 0x00048c00 0x3fc8f000 0x00000000 0x00000004 0x3fc8de30 0x3fc8d1d4 0x00000004 0x42009606
3fc8de00: 0x3fc8de20 0x3fc8e958 0x3fc8de70 0x42009d18 0x3fc8de30 0x3fc8f000 0x3fc8de70 0x42000b18
3fc8de20: 0x00000074 0x3fc8eabc 0x00000000 0x4038661a 0x00000000 0x0000000a 0x00000003 0xe155b0fe
3fc8de40: 0x00048c00 0x00000246 0x00000003 0x3fc97cc4 0x00048c00 0x000000fa 0x00000000 0x00000000
3fc8de60: 0x003fffff 0x00000024 0x3fca943c 0x40380262 0x00000000 0x00000000 0x00000000 0x40380408
3fc8de80: 0x00001881 0x00000246 0x00000005 0x00000001 0x00001881 0x8000000a 0x3fc8e968 0x403801ee
3fc8dea0: 0x00000001 0x3fc8dea8 0xffffffff 0x3fc93288 0x3fc93288 0x00000000 0x3fc8debc 0xffffffff
3fc8dec0: 0x3fc8debc 0x3fc8debc 0x00000000 0x3fc8ded0 0xffffffff 0x3fc8ded0 0x3fc8ded0 0x00000000
3fc8dee0: 0x3fc8dee4 0xffffffff 0x3fc8dee4 0x3fc8dee4 0x00000000 0x3fc8def8 0xffffffff 0x3fc8def8
3fc8df00: 0x3fc8def8 0x00000000 0x3fc8df0c 0xffffffff 0x3fc8df0c 0x3fc8df0c 0x00000000 0x3fc8df20
3fc8df20: 0xffffffff 0x3fc8df20 0x3fc8df20 0x00000000 0x3fc8df34 0xffffffff 0x3fc8df34 0x3fc8df34
3fc8df40: 0x00000000 0x3fc8df48 0xffffffff 0x3fc8df48 0x3fc8df48 0x00000000 0x3fc8df5c 0xffffffff
3fc8df60: 0x3fc8df5c 0x3fc8df5c 0x00000000 0x3fc8df70 0xffffffff 0x3fc8df70 0x3fc8df70 0x00000000
3fc8df80: 0x3fc8df84 0xffffffff 0x3fc8df84 0x3fc8df84 0x00000000 0x3fc8df98 0xffffffff 0x3fc8df98
3fc8dfa0: 0x3fc8df98 0x00000000 0x3fc8dfac 0xffffffff 0x3fc8dfac 0x3fc8dfac 0x00000000 0x3fc8dfc0
3fc8dfc0: 0xffffffff 0x3fc8dfc0 0x3fc8dfc0 0x00000000 0x3fc8dfd4 0xffffffff 0x3fc8dfd4 0x3fc8dfd4
3fc8dfe0: 0x00000000 0x3fc8dfe8 0xffffffff 0x3fc8dfe8 0x3fc8dfe8 0x00000000 0x3fc8dffc 0xffffffff
3fc8e000: 0x3fc8dffc 0x3fc8dffc 0x00000000 0x3fc8e010 0xffffffff 0x3fc8e010 0x3fc8e010 0x00000000
3fc8e020: 0x3fc8e024 0xffffffff 0x3fc8e024 0x3fc8e024 0x00000000 0x3fc8e038 0xffffffff 0x3fc8e038
3fc8e040: 0x3fc8e038 0x00000000 0x3fc8e04c 0xffffffff 0x3fc8e04c 0x3fc8e04c 0x00000000 0x3fc8e060
3fc8e060: 0xffffffff 0x3fc8e060 0x3fc8e060 0x00000000 0x3fc8e074 0xffffffff 0x3fc8e074 0x3fc8e074
3fc8e080: 0x00000000 0x3fc8e088 0xffffffff 0x3fc8e088 0x3fc8e088 0x00000000 0x3fc8e09c 0xffffffff
3fc8e0a0: 0x3fc8e09c 0x3fc8e09c 0x00000000 0x3fc8e0b0 0xffffffff 0x3fc8e0b0 0x3fc8e0b0 0x00000000
3fc8e0c0: 0x3fc8e0c4 0xffffffff 0x3fc8e0c4 0x3fc8e0c4 0x00000002 0x3fc8e0d8 0xffffffff 0x3fc911ac
3fc8e0e0: 0x3fc95a60 0x00000001 0x3fc8e0ec 0xffffffff 0x3fc92814 0x3fc92814 0x00000000 0x3fc8e0f8
3fc8e100: 0x00000000 0x00000000 0x00000000 0x3fc8e110 0xffffffff 0x3fc8e110 0x3fc8e110 0x00000000
3fc8e120: 0x3fc8e124 0xffffffff 0x3fc8e124 0x3fc8e124 0x00000001 0x00000001 0x00000000 0x0001ffff

ELF file SHA256: 319c20648bda0d74

Rebooting...
E (110) esp_core_dump_flash: Core dump data check failed:
Calculated checksum='0403c070'
Image chec
SD opened successfuly
File removed!
Started
Stop
Stop
Stop
Stop
Stop
Stop
Stop
Stop
Stop
Stop
Stop
Stop
Stop
Stop
Stop
Stop
Stop
Stop
Stop
Stop
Stop
Stop
Stop
Stop
Stop
Stop
StGuru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0).

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.