Quick tip for improving the code: instead of useing those rather compilcated switches just replace the filename with String(audiofile)+".wav" and you can record an unlimited number of files.
@@loufbread26 That with the code shown you can only create up to 10 files, instead, with this improvement, you can create as many files as can fit in the MicroSD
The cool spy-bugs on TV send the audio through a radio. This gives me an idea for a "DIY or Buy": a walkie-talkie. There are a few very basic walkie-talkie tutorials based on arduino, but nothing really nice. You could try the analog version too, but a digital one would be more fun: sample the audio with the ADC, then send it over the air somehow (LoRA module maybe, or a cheapo 433mhz ook module pair), then receive and play it back with a DAC from resistors (or use a DAC chip, or a micro that has a DAC built-in like the SAMD21 found in the Adafruit Feather M0).
www.aliexpress.com/item/FM-Frequency-Modulation-Wireless-Microphone-Module-DIY-Kit-FM-Transmitter-Board-Parts-Kits-Simple-Electronic-Production/32749629485.html This sends audio through FM radio
Unless you PWM it (and given the inherent complexity of recording audio on something so much not designed to do so), I think that would be a higher current draw than is desirable.
@@ninovitaliano7943 I'm honored someone noticed, thanks. It's true though, isn't it? The onboard LED is rather bright and it takes around 10-20 mA, and if you're running off a battery you want to cut down on the current draw as much as you can so this is something you would disable first. The other option is to use PWM to modulate the LED, but AFAIK pin 13 doesn't have hardware PWM, so you have to spend processor cycles on this, and I bet that there's not much free processor time left over from "recording audio on something so very much not designed to do so".
16khz is a very odd sampling rate. So make sure you always have subtraction of 44.1kHz or 48khz. (32khz, 22khz or 11khz) Also it's good to use some input filtering to prevent extra distortion (Shannon theorem).
Naming the files that way would look nicer but doesn't add any information. But if you wish you could add an RTC clock and add the timestamp to the file name.
Indeed. And atleast for the use case of a spy bug, an arduino/micro controller is a little overkill. And what if someone discovers the device and destroys it and the SD card with the data? You can easily make a small FM transmitter (i made one thats 17x6.6mm). It wont transmit kilometers away, but enough so that you dont have to be right next to it.
for a "spy bug" I wouldn't use a push button with led. With a normal switch you can determin the state of the bug based on the position of the switch and you can use it as wake up signal to save battery when the device is off.
True and I will use their service for more complex projects. But for such small projects I think that showing a circuit on a perfboard makes it more accessible for viewers.
You can probably keep the power consumption even lower by downclocking the arduino and pushing it into deep-sleep when not recording. In deep sleep, one can get the power consumption in the micro amp region.
Please make a videos about galvanic isolation, safety and upgrading video for your peltier module cooler 😀. Nice to see you continue making videos for us 😃😃😃.
some micro FPV cameras i use on tiny drones can record and broadcast medium fidelity analog video and audio at a tenth the size. they only require the camera/Tx bundle and a gumstick battery to operate, meaning its about 27g and 5-6cm^3.
no, and if it's cheaper I don't see the point. I've made my own microcams before CMOS sensors had a processor and body that small, but i have no practical use for a spy bug, just a suggestion. no need to be so pretentious.
Hello Scott, Why not make spy bug as a bug using FM transmission and recording in phone, I tried but facing problem with frequency. Why don't you make a video on that
Bruce Lee , I don't know what is lora But I tried it using transistors and couple of passive elements. And some time it did work and later stopped working cz of frequency fluctuation or noise .
Hey Great Scott. I really like the idea of the spy bug but why dont make it even smaller, replace the arduino with atmega 328p chip and make a pcb with your partner - JLC pcb. Please make a part 2 of this video.
Good idea Landimm but he could also put it in his pocket and add a camera so that we can spy on the teachers and an RC522 RFID reader to make sure that nobody used it
I've found using standalone AVR chips plus a crystal to be cheaper and smaller than using even Arduino nanos, plus an ftdi USB to serial adapter only for breadboarding. I use a pro mini as an ISP since some vendors who claim their AVR chips already have the Arduino bootloader are less than reliable in their claims.
Fabuloso como siempre. Espero cada semana tus videos. Hasta estoy pensando en traducirlos para la comunidad hispanohablante. Awesome like ever. I hope your videos every week. Even i am thinking in to traslate your videos to the Spanish for LatinAmerica
DUDE YOU GUYS ARE SO YOUNG AND DUMB AND FULL OF IT...IF YOU KNOW ELECTRONICS, heinrich hertz BUILT THE FIRST FM TRANSMITTER IN 1887 THEY WERE CALLED OSCILLATORS! NOW PICK UP YOUR FACE AND GO BACK TO HISTORY CLASS! BECAUSE YOU HAVE BEEN DEFACED!
If you look even further there were several inventor the FM transmitter...GUGLIELMO MARCONI, Nikola Tesla and the list goes on...LOL! youre chatting to a geek who knows his sh**! especially when it comes to electrons...LOL! Dont let me spank ya!
This would be good to use on a motion activated circuit. I can see this as a crude DIY Security system. It would be interesting to make it only record when sound is louder than a given threshold.
dumb question...looks like you need to manually initiate the recording mode by pressing a switch. For the purpose of eliminating this need, couldn't you put a circuit that activates the record mode if there is sufficient sound input volume and deactivate if there were a specified amount of time for which there was no sound over a specified input level?
This night is my turn. I'll realize a video about 1KW DC motor control from scratch. Regards and stay forever like this. You are giving the possibility to everybody to learn something !!
We should add a wifi and gps that can update audio via phone call make an internal menus and all you have to do is call the circuit lol and it will transmit audio via phone towers, would be a fun project
Nice one once again! I'm thinking of adjusting this circuit to be a guitar looper pedal by replacing the mic with a signal amplifier / buffer and playing back the .wavs through an external DAC
Hello, please have you tried this project and also amplifying the mic, Please I will like to know more, because am working on a similar project. Thank you
At 0:20, shouldn't it be '1/f' instead of 'f' as the interval between two sample points in the V vs t graph? Here 'f' indicates sampling frequency right?
ios is unable to record phone calls. To be able to record both the speaker and microphone at the same time would be outstanding. A device like Arduino or raspberry pi could function as a headset but built into it are whatever components are necessary for recording and storing the recordings. Do you know how to make such a device?
i built this and workss great.im having an issue working out how to debounce the switch because i will click once and it wont turn off it takes a few clicks to turn off but it is still capturing audio files
Nice video as always, GreatScott never fails to deliver. The only thing that i disliked was the fact that i cant create SD card projects with good frequency of sampling and theres no explanation on hows that solved in this project. How to write on a SD so fast??
Could you please show us how to get a tiny camera (1080p) that we could secretly put into a porch light and connect for power and video through cat5 back to a POE switch? Mostly need the tiny camera and connections to the end of a CAT5, please?
Hi. I am a photographer and lately I am animal hounting with my camera. I think you could modify your recorder to record the shutter shound in a field and then play it back in anti faze to silent the noise. It should be connect to camera via the hotshoe adapter. Thanks.
Hey Scott, could you please make a video about analog synthesizers, envelope generators or something similar? I'm trying to build a simple synthesizer on a breadboard but nothing really seems to work correctly...
Most of the original analog to digital signalling is 64kb/s for phone communications, 8bit x 8K sampling rate. Is the pro mini better than the nano? Very cool build!!!!!
Sir, Which sensor is best to buy? 1. Electret Microphone Amplifier - MAX4466 with Adjustable Gain . 2. MAX9814 High Performance Microphone AGC Amplifier Module.
Hello Scott, great and very helpful videos you have there! May I ask you where you order your LiPo batteries from as a fellow German? Chinese traders don't ship here as far as I know. Thank you!
Quick tip for improving the code: instead of useing those rather compilcated switches just replace the filename with String(audiofile)+".wav" and you can record an unlimited number of files.
What's the difference
ohhh my god i was thinking same
how do you do this?
@@loufbread26 That with the code shown you can only create up to 10 files, instead, with this improvement, you can create as many files as can fit in the MicroSD
The cool spy-bugs on TV send the audio through a radio. This gives me an idea for a "DIY or Buy": a walkie-talkie.
There are a few very basic walkie-talkie tutorials based on arduino, but nothing really nice. You could try the analog version too, but a digital one would be more fun: sample the audio with the ADC, then send it over the air somehow (LoRA module maybe, or a cheapo 433mhz ook module pair), then receive and play it back with a DAC from resistors (or use a DAC chip, or a micro that
has a DAC built-in like the SAMD21 found in the Adafruit Feather M0).
www.aliexpress.com/item/FM-Frequency-Modulation-Wireless-Microphone-Module-DIY-Kit-FM-Transmitter-Board-Parts-Kits-Simple-Electronic-Production/32749629485.html This sends audio through FM radio
RPITX can accomplish this.
You can easily achieve this by building a small FM transmitter, it is very tiny, easy to build and ceap (
I tried this for my mini-project, it worked successfully!
Thank you Great Scott
Can you help me with it I am facing issues in my circuit
Is it working now
Could you please help me?? the led doesn't off when the push button its on :(
sponsored by the NSA
Not quite
Spicy Meme Boi eazy plz
add a transmitter that transmits directly to the NSA then yes
@@greatscottlab Im sure it is
If you want a spy bug, just use your smartphone. Everyone has one and they are smaller.
why not using the onboard led for notification, it would consume less power and you don't a extra led
Also possible
But it'll be to bright?
Unless you PWM it (and given the inherent complexity of recording audio on something so much not designed to do so), I think that would be a higher current draw than is desirable.
@@danya023 neeeeerd
@@ninovitaliano7943 I'm honored someone noticed, thanks.
It's true though, isn't it? The onboard LED is rather bright and it takes around 10-20 mA, and if you're running off a battery you want to cut down on the current draw as much as you can so this is something you would disable first. The other option is to use PWM to modulate the LED, but AFAIK pin 13 doesn't have hardware PWM, so you have to spend processor cycles on this, and I bet that there's not much free processor time left over from "recording audio on something so very much not designed to do so".
16khz is a very odd sampling rate. So make sure you always have subtraction of 44.1kHz or 48khz. (32khz, 22khz or 11khz) Also it's good to use some input filtering to prevent extra distortion (Shannon theorem).
As small as possible... Why not own PCB? ;p
And instead of using switch 1.wav, 2.wav why not make string "record" + recordNumber + ".wav" ? :D
and recordNumber could be stored on an extra recodNumberFile.txt to prevent overwriting of old data
Pixel Inside Or in EEPROM ;)
Naming the files that way would look nicer but doesn't add any information. But if you wish you could add an RTC clock and add the timestamp to the file name.
I think his focus was on the building, not the programming... ^^
Indeed. And atleast for the use case of a spy bug, an arduino/micro controller is a little overkill. And what if someone discovers the device and destroys it and the SD card with the data? You can easily make a small FM transmitter (i made one thats 17x6.6mm). It wont transmit kilometers away, but enough so that you dont have to be right next to it.
The visuals in this video are beautiful. Watching the whole project come together felt so good. :O
I can’t tell you how happy I am I was in great need of such a thing thank you very much
Anstatt ne gopro session zu nehmen mit hd auflösung und gutem Mikro. Trotzedem ein super Video.
Danke Scott
Thats the kind of video why i subscribed to your channel
I ordered my first bpc at jlcbpc just a half week ago trough you.
Impressive presentation - one of the best I have seen, great job!
for a "spy bug" I wouldn't use a push button with led. With a normal switch you can determin the state of the bug based on the position of the switch and you can use it as wake up signal to save battery when the device is off.
Even know I don't know much about circuits and voltages it's still good to watch
I'm trying to make a talking robot with a jaw servo that moves based on an audio signal from a 3.5mm audio jack. Any tips GreatScott?
no. just stop
I think that you can use the analog signal coming from the 3.5 mm jack and convert into a range of motion of the jaw servo! I think that should work
@@lonsteam4627 Fuck you sshole
@@lonsteam4627 ?
ua-cam.com/video/b1lAe7NNlOo/v-deo.html
The more I watch these videos the more I question my pick of going to school for an electrotechnician. Seems sooo damn overwhelming.
Why didn‘t you make your project with a perfect pcb? You are even advertising for jlcpcb...
True and I will use their service for more complex projects. But for such small projects I think that showing a circuit on a perfboard makes it more accessible for viewers.
GreatScott!
Absolutely love your attitude. Keep up the good work!
I had been looking for this for month haha, your videos are really good
Another week, another great video!
Great work! It's always nice watching a product of yours.
Nevermore suprises for Christmas! 😀 Great as allways
Actually did something similar with an ESP32 so I where able to control the "bug" via my phone, even download the files. :)
I am looking for a similar project you are describing, could you share the code?
I am trying to do the same project with esp32 but Im new to this board. could you share the knowledge with me too? Thanks in advance
Please share codes, doing a similar thing for my place. Thanks
Send link to that
Please help us send with the code 🙏🏼
This is one of your best projects, thanks
Your videos are always really nice, thank you very much.
You're welcome :-)
The code is not getting uploaded can tell me pls????
6:42 hey GreatScott! I can see you on that solder :D
You can probably keep the power consumption even lower by downclocking the arduino and pushing it into deep-sleep when not recording. In deep sleep, one can get the power consumption in the micro amp region.
*You gained an hour of battery power range, by removin' both voltage regulator and smd led. What a big difference*
This is a great video, It's the best I have seen that will help my project. 👍
Yesterday i was searching about this...
Nice timing!
I knew it ;-)
Hey GreatScott! make a tour of your lab in which you work for your projects .
congrats on 700K!
Please make a videos about galvanic isolation, safety and upgrading video for your peltier module cooler 😀. Nice to see you continue making videos for us 😃😃😃.
I have almost all of that on my to do list. It will happen when I get to it.
good day sir. everytime i run the code this error comes in: "'class TMRpcm' has no member named 'startRecording'" ?
ua-cam.com/video/DDObmKghN24/v-deo.html
watch this video
some micro FPV cameras i use on tiny drones can record and broadcast medium fidelity analog video and audio at a tenth the size. they only require the camera/Tx bundle and a gumstick battery to operate, meaning its about 27g and 5-6cm^3.
no, and if it's cheaper I don't see the point. I've made my own microcams before CMOS sensors had a processor and body that small, but i have no practical use for a spy bug, just a suggestion. no need to be so pretentious.
I was just thinking about this. Perfect!
CSI LIKE THIS VIDEO!
NSA like this video
i waited for this video for years
Me too...
Excellent video as always.
Hello Scott,
Why not make spy bug as a bug using FM transmission and recording in phone, I tried but facing problem with frequency. Why don't you make a video on that
I put it on my to do list
Bruce Lee , I don't know what is lora But I tried it using transistors and couple of passive elements. And some time it did work and later stopped working cz of frequency fluctuation or noise .
that need an app bro :P
iron man can you give me sketch of your work please ?
it will help me in my final year project
@@greatscottlab Please do. I am doing the same project but getting only noise as output!
Hey Great Scott. I really like the idea of the spy bug but why dont make it even smaller, replace the arduino with atmega 328p chip and make a pcb with your partner - JLC pcb. Please make a part 2 of this video.
Good idea Landimm but he could also put it in his pocket and add a camera so that we can spy on the teachers and an RC522 RFID reader to make sure that nobody used it
Thank you for uploading video of my adivice !
Akshay Kolekar The code is not getting uploaded can tell me pls????
Nice project. Thanks for another great video.
I am definitely going to build this. Thankyou very much as always awesome video
I've found using standalone AVR chips plus a crystal to be cheaper and smaller than using even Arduino nanos, plus an ftdi USB to serial adapter only for breadboarding. I use a pro mini as an ISP since some vendors who claim their AVR chips already have the Arduino bootloader are less than reliable in their claims.
Fabuloso como siempre. Espero cada semana tus videos. Hasta estoy pensando en traducirlos para la comunidad hispanohablante. Awesome like ever. I hope your videos every week. Even i am thinking in to traslate your videos to the Spanish for LatinAmerica
How about a VOX function so it only records when there is sound, and mostly powers down otherwise. Could dramatically improve battery life.
Scott Dont forget brother...there are still fm transmitters...they are as 100 years or more...
Almost 100 years, from around 1933
Im smelling some unqualified comment over here
DUDE YOU GUYS ARE SO YOUNG AND DUMB AND FULL OF IT...IF YOU KNOW ELECTRONICS, heinrich hertz BUILT THE FIRST FM TRANSMITTER IN 1887 THEY WERE CALLED OSCILLATORS! NOW PICK UP YOUR FACE AND GO BACK TO HISTORY CLASS! BECAUSE YOU HAVE BEEN DEFACED!
If you look even further there were several inventor the FM transmitter...GUGLIELMO MARCONI, Nikola Tesla and the list goes on...LOL! youre chatting to a geek who knows his sh**! especially when it comes to electrons...LOL! Dont let me spank ya!
Bro. Calm Down. I didnt even read what u said. I meant Hans.
Why not replace the arduino with an esp-12f, or esp32, and directly beam the recordings across the network to a local PC for storage?
5:35 if you wanna blow your battery , a lipo cell is a great choice as a heatsink for battery charger ic :)
This would be good to use on a motion activated circuit. I can see this as a crude DIY Security system.
It would be interesting to make it only record when sound is louder than a given threshold.
Sounds interesting
Great video. Short but informative as well,as usual!
Grüße aus Hessen
Thanks mate :-)
You should use JLCPBC for this or another project to show everybody how great they are
Bigger projects with their PCBs are coming. It just takes a bit of time.
GreatScott! Cool man, can't wait to see them 😃
Can you make a BMS for li-ion using arduino ?
It is on my to do list
GreatScott! BMS -> big up for that ! A 12S BMS would be sooo good... Oh : put an ajustable number of battery cell !
GreatScott! Thanks
your amplifer break out have agc which amplified background noise replace local omp amp and it work fine
Really..... Ur videos are really informative.....!!!!!😘😘😘😘
dumb question...looks like you need to manually initiate the recording mode by pressing a switch. For the purpose of eliminating this need, couldn't you put a circuit that activates the record mode if there is sufficient sound input volume and deactivate if there were a specified amount of time for which there was no sound over a specified input level?
Well done Scott ! Very useful and super explained.
Thank you very much :-)
This night is my turn. I'll realize a video about 1KW DC motor control from scratch. Regards and stay forever like this. You are giving the possibility to everybody to learn something !!
GreatScott! Here we are. Video of this night ua-cam.com/video/ZBMiIQ5rJl0/v-deo.html
We should add a wifi and gps that can update audio via phone call make an internal menus and all you have to do is call the circuit lol and it will transmit audio via phone towers, would be a fun project
Finally, you made the video i asked for;-)
Keep up the great work.
Nice one once again! I'm thinking of adjusting this circuit to be a guitar looper pedal by replacing the mic with a signal amplifier / buffer and playing back the .wavs through an external DAC
Hello, please have you tried this project and also amplifying the mic, Please I will like to know more, because am working on a similar project. Thank you
At 0:20, shouldn't it be '1/f' instead of 'f' as the interval between two sample points in the V vs t graph? Here 'f' indicates sampling frequency right?
This time u made a spy bug wit mic , next time do a camera, scott!😄😄😄😄
What is this type of science called? Electrical engineering? Computer programming? Something else? How can I begin to learn about this field?
Hey GreatScott how about a DIY Sunrise Alarm clock. Or maybe even a DIY or Buy Episode about it?
Disguise as a functioning USB charger and use that to also charge it, allowing the battery to mainly function as a backup?
Thanks again for another great tutorial!
could a battery be charged from a microphone if you used a huge inductor to the charge circuitry then just place it in a noisy environment? 🤔
Nice video as always
Loved it! 😍 Awesome
Arduino is Johnny Of electronics
ios is unable to record phone calls. To be able to record both the speaker and microphone at the same time would be outstanding. A device like Arduino or raspberry pi could function as a headset but built into it are whatever components are necessary for recording and storing the recordings. Do you know how to make such a device?
Since the STM32 has 12-bit ADCs wouldn't that be better? Also you could just use your sponsor to DIY a full PCB with all this.
So the Library you used does only run on AVR based boards, any idea for a library that would also run on SAMD21. z.B. Arduino Zero
I was trying to make a talking tom. Is it possible this way?
I'm not sure why, but this has made me want to make a combat robot. 😂
Best project brother!!
hey Scott, as your name says you are Great!
i built this and workss great.im having an issue working out how to debounce the switch because i will click once and it wont turn off it takes a few clicks to turn off but it is still capturing audio files
4:50 Why did you use a swich? You could do the same thing with an if in 2 lines instead of 11
4:09 LOL at that solder joint :D
Nice video as always, GreatScott never fails to deliver. The only thing that i disliked was the fact that i cant create SD card projects with good frequency of sampling and theres no explanation on hows that solved in this project. How to write on a SD so fast??
Is there a way to Not use an audrino board in this project? And can we store the audio in a SD card?
I have a feeling the sale on those PCBs is going to last forever.
Could you please show us how to get a tiny camera (1080p) that we could secretly put into a porch light and connect for power and video through cat5 back to a POE switch? Mostly need the tiny camera and connections to the end of a CAT5, please?
Another Awesome Vid!!!!!
This was awesome! I always wanted to make something like that but I could'nt
very good one.... By using bluepill that u have already explain then i think sound quality will be quite better
Hey I wanted to make a pen with a circuit like this.
How would one go about scaling this process down?
Hi Great Scott I want to buy pcb from jlcpcb but there is high shipping cost. I am some confused. How we can buy pcb with no shippping cost. Thanks
Its cost 2 dolar but shipping cost 13 dolar to Turkey. It is the problem. GreatScott said free shipping
Yunus Başeğmez I know I am late but I think free shipping includes USA
Hi. I am a photographer and lately I am animal hounting with my camera. I think you could modify your recorder to record the shutter shound in a field and then play it back in anti faze to silent the noise. It should be connect to camera via the hotshoe adapter. Thanks.
Hey Scott, could you please make a video about analog synthesizers, envelope generators or something similar? I'm trying to build a simple synthesizer on a breadboard but nothing really seems to work correctly...
It is on my to do list
GreatScott! Thanks.
This was a great video. Thank you:)
Is there a pre-made amp circuit that uses an 3.5mm audio jack as an input rather than a microphone?
Most of the original analog to digital signalling is 64kb/s for phone communications, 8bit x 8K sampling rate.
Is the pro mini better than the nano?
Very cool build!!!!!
The pro mini and nano achieve the same results.
Sir,
Which sensor is best to buy?
1. Electret Microphone Amplifier - MAX4466 with Adjustable Gain .
2. MAX9814 High Performance Microphone AGC Amplifier Module.
Finally a new upload xD
Hello sir, why are we can't use this system with your latest video on walkie talkie?
Hello Scott, great and very helpful videos you have there! May I ask you where you order your LiPo batteries from as a fellow German? Chinese traders don't ship here as far as I know. Thank you!
Maybe you could make a crude Beer Brewing system much like your crude Cocktail system?
"I created a Spybug, but please dont use it for spying" xD