Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arduino for Secret Agents

You're reading from  Arduino for Secret Agents

Product type Book
Published in Nov 2015
Publisher
ISBN-13 9781783986088
Pages 170 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Marco Schwartz Marco Schwartz
Profile icon Marco Schwartz

Table of Contents (16) Chapters

Arduino for Secret Agents
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
A Simple Alarm System with Arduino Creating a Spy Microphone Building an EMF Bug Detector Access Control with a Fingerprint Sensor Opening a Lock with an SMS Building a Cloud Spy Camera Monitoring Secret Data from Anywhere Creating a GPS Tracker with Arduino Building an Arduino Spy Robot Index

Building the spy microphone


In this section, we are going to put everything together and actually build our spy microphone.

The hardware for the project is nearly ready if you followed the previous section. You just need to plug the SD card into the reader again.

I also added an LED on pin 7, just to know when the recording is on. If you want to do the same, you just need an LED and a 330 Ohm resistor. Of course, remove this LED when you actually want to use it as a spy microphone or your project might get noticed.

The schematic to help you out is as follows:

The following is the image of the completely assembled project:

We are now going to see the details of the code for the project. Basically, we want the device to record audio from the microphone for a given amount of time and then stop the recording.

As the code is long and complex, we are only going to see the most important parts here.

The first step is to include the SdFat library:

#include <SdFat.h>

Then, we will create the instances...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}