Arduino Forum

Using Arduino => Audio => Topic started by: ankurnaidu on Feb 08, 2018, 01:56 pm

Title: HAVING HUGE AUDIO PROBLEM AND NOT ABLE TO SOLVE IT FOR 3 .TMR pcm lib problem!!!
Post by: ankurnaidu on Feb 08, 2018, 01:56 pm
this code is written by grat scott(Youtube,Instructables)for making your own voice recorder based on TMRpcm library(github).the code islinked below.and the error i am getting is that
USING (ARDUINO nano)










SpyBug.cpp.o: In function `button()':
C:\Users\AnkurNupu\Desktop\arduino-1.5/SpyBug.ino:46: undefined reference to `TMRpcm::startRecording(char*, unsigned int, unsigned char)'
C:\Users\AnkurNupu\Desktop\arduino-1.5/SpyBug.ino:60: undefined reference to `TMRpcm::stopRecording(char*)'
C:\Users\AnkurNupu\Desktop\arduino-1.5/SpyBug.ino:61: undefined reference to `TMRpcm::stopRecording(char*)'




i tried the latest and the older versions if arduino and many other gimmicks like disabling firewalls and many other like editting and including custom made libaries.so pls help in need of all the help i can get.

i hope i get all the help and corrections i need for this problem or else i have to go searching in different blogs and posts .
for more info on who made this project and how it was check out Great Scott in Youtube And Instuctables

PLS PLS PLS PLS PLS PLS PLS help needed iam in very my in need of help
Title: Re: HAVING HUGE AUDIO PROBLEM AND NOT ABLE TO SOLVE IT FOR 3 .TMR pcm lib problem!!!
Post by: knut_ny on Feb 08, 2018, 09:43 pm
I can find no "TMRpcm::startRecording" in the library found here (https://github.com/TMRh20/TMRpcm/wiki)
Title: Re: HAVING HUGE AUDIO PROBLEM AND NOT ABLE TO SOLVE IT FOR 3 .TMR pcm lib problem!!!
Post by: pert on Feb 09, 2018, 12:05 am
Post a link to where you got the code from. Please use the chain links icon on the toolbar to make it clickable.

Post a link to where you got the library from. Or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries) then say so and state the full name of the library.
Title: Re: HAVING HUGE AUDIO PROBLEM AND NOT ABLE TO SOLVE IT FOR 3 .TMR pcm lib problem!!!
Post by: ankurnaidu on Feb 09, 2018, 01:15 am
link of library is https://github.com/TMRh20/TMRpcm (https://github.com/TMRh20/TMRpcm)

link of project and code ishttp://www.instructables.com/id/Make-Your-Own-Spy-Bug-Arduino-Voice-Recorder/ (http://www.instructables.com/id/Make-Your-Own-Spy-Bug-Arduino-Voice-Recorder/)

pls help as soon as possible!!!!!!!!!

PLS PLS PLS PLS PLS PLS 1!!!!!!!!!!!!!!

if you want anything more just ask immediately i will be checking it continuously :)
Title: Re: HAVING HUGE AUDIO PROBLEM AND NOT ABLE TO SOLVE IT FOR 3 .TMR pcm lib problem!!!
Post by: ankurnaidu on Feb 09, 2018, 01:37 am
to everyone

it is just a part of the code where you enter as it is the part of the library.


there was something sating in downloaded code to edit the TMRpcmconfig.h library with a few things(there in the first part of the code)

i did not not modify the library as it told me(i didn't know how to do it) [when i did it many errors were comming too]

So i directly added it in the code and i was getting really lesss errors!!!

pls tell me which arduino version you are using because i thick i was getting different errors with different arduino IDE versions(i even tried the web editor)

PLS PLS PLS HELP!!!!!!!!!!!!!!
Title: Re: HAVING HUGE AUDIO PROBLEM AND NOT ABLE TO SOLVE IT FOR 3 .TMR pcm lib problem!!!
Post by: pert on Feb 09, 2018, 01:49 am
Which board do you have selected in the Tools > Board menu?

PLS PLS PLS PLS PLS PLS PLS help needed iam in very my in need of help
pls help as soon as possible!!!!!!!!!

PLS PLS PLS PLS PLS PLS 1!!!!!!!!!!!!!!
PLS PLS PLS HELP!!!!!!!!!!!!!!
All this "PLS" crap is not cute and it's not going to help your cause. In fact it could even make some of the forum members not bother to try to help you. It doesn't seem very sincere to use the word "please' if you won't even bother to spell it correctly.
Title: Re: HAVING HUGE AUDIO PROBLEM AND NOT ABLE TO SOLVE IT FOR 3 .TMR pcm lib problem!!!
Post by: ankurnaidu on Feb 09, 2018, 01:51 am
sorry.

Regards,
Ankur S. Naidu
Title: Re: HAVING HUGE AUDIO PROBLEM AND NOT ABLE TO SOLVE IT FOR 3 .TMR pcm lib problem!!!
Post by: pert on Feb 09, 2018, 01:56 am
You forgot to answer my question.
Title: Re: HAVING HUGE AUDIO PROBLEM AND NOT ABLE TO SOLVE IT FOR 3 .TMR pcm lib problem!!!
Post by: ankurnaidu on Feb 09, 2018, 02:00 am
sorry, Arduino Nano Atmega 328
Title: Re: HAVING HUGE AUDIO PROBLEM AND NOT ABLE TO SOLVE IT FOR 3 .TMR pcm lib problem!!!
Post by: pert on Feb 09, 2018, 02:14 am
i did not not modify the library as it told me(i didn't know how to do it) [when i did it many errors were comming too]

So i directly added it in the code and i was getting really lesss errors!!!
OK, it sounds like you've been mucking around with things so let's start from scratch.

Do this:

Code: [Select]
//#define buffSize 128  //must be an even number
to:
Code: [Select]
#define buffSize 128  //must be an even number
Change line 75 from:
Code: [Select]
//#define ENABLE_RECORDING
to:
Code: [Select]
#define ENABLE_RECORDING
Change line 77 from:
Code: [Select]
// #define BLOCK_COUNT 10000UL  // 10000 = 500MB   2000 = 100MB
to:
Code: [Select]
#define BLOCK_COUNT 10000UL  // 10000 = 500MB   2000 = 100MB


After following the above steps, the sketch should compile without errors. If you do encounter and error then do this:

When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages". Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar).


Title: Re: HAVING HUGE AUDIO PROBLEM AND NOT ABLE TO SOLVE IT FOR 3 .TMR pcm lib problem!!!
Post by: ankurnaidu on Feb 09, 2018, 02:29 am
 please wait i will install the latest version of arduino
then post you the errer
Title: Re: HAVING HUGE AUDIO PROBLEM AND NOT ABLE TO SOLVE IT FOR 3 .TMR pcm lib problem!!!
Post by: ankurnaidu on Feb 09, 2018, 02:52 am
which version of arduino are you using because i used to get different'Error Compiling' messages in differnt versions of arduino even in the web editor

I saw somewhere that using older version of arduino is used to fix the error compiling message.


the first error message i posted was in arduino software 1.5 beta


So can you tell which version you used???
Title: Re: HAVING HUGE AUDIO PROBLEM AND NOT ABLE TO SOLVE IT FOR 3 .TMR pcm lib problem!!!
Post by: pert on Feb 09, 2018, 02:57 am
I used Arduino IDE 1.8.5. After following the above instructions it compiles for me without error.

You still haven't posted the error.
Title: Re: HAVING HUGE AUDIO PROBLEM AND NOT ABLE TO SOLVE IT FOR 3 .TMR pcm lib problem!!!
Post by: ankurnaidu on Feb 09, 2018, 03:01 am
please wait
Title: Re: HAVING HUGE AUDIO PROBLEM AND NOT ABLE TO SOLVE IT FOR 3 .TMR pcm lib problem!!!
Post by: ankurnaidu on Feb 09, 2018, 03:29 am
Yahoo, it is working

thanks a lot

Regards,
Ankur S. Naidu
Title: Re: HAVING HUGE AUDIO PROBLEM AND NOT ABLE TO SOLVE IT FOR 3 .TMR pcm lib problem!!!
Post by: pert on Feb 09, 2018, 03:37 am
Glad to hear it! Enjoy

Per
Title: Re: HAVING HUGE AUDIO PROBLEM AND NOT ABLE TO SOLVE IT FOR 3 .TMR pcm lib problem!!!
Post by: ankurnaidu on Feb 09, 2018, 04:07 am
i will just just if it is recording properly or else i will have to get back to you on this