# AdaBox 007

## Introduction

https://www.youtube.com/watch?v=KXWd9noYqxg

# Hi there!

[If you're looking to subscribe to AdaBox, click here!](https://www.adafruit.com/adabox)

If you're here, it's because you were given the gift of electronics with an AdaBox! You are a beginner who is getting started with your AdaBox or you just want to relive what it's like being a beginner at electronics again. But most of all, you want to learn how to build and make stuff with electronics! ([If, rather than learn electronics, you'd like to look at pictures of cats instead, please check https://www.adafruit.com/galleries/cats-of-engineering](https://www.adafruit.com/galleries/cats-of-engineering))

And, you're in luck: there's _never_ been a better time.

Gone are the days where you need thousands of dollars of equipment and lots physics/math background. Nowadays, if you want to learn to work with electronics, you can jump right in for $100 or less, and any sort of computer. And we're talking about learning _a lot_ of electronics - from the basics of analog to the complexities of firmware. With a good pack of parts, you can build a base of knowledge that will take you from your first blinking LED to someone who can start prototyping and inventing custom products.

https://www.youtube.com/watch?v=BtD2POvc1oM

# Who is this for?

Anyone who is interested in learning how to program and access to a modern web browser. That's pretty much the minimum. Remember, this guide is specifically for people who have purchased or received an AdaBox subscription!

**You don't need to know a lot of physics or math** , and just like an Art Degree isn't required for making art and being creative, **you _don't_ need to have a computer science degree**. It helps if you're comfortable using computers but that's a skill most people pick up through life.

**If you know how to program already - great! If not, don't worry, we'll teach you enough to be dangerous.**

# Who **isn't** this for?

While you can follow along without an AdaBox, it will not make as much sense unless you have _all_ of the components and more which either came as a gift or purchased yourself - remember, the goal is helping beginners!

If you're an expert, please visit our hundreds other tutorials and jump right in at [learn.adafruit.com](../../../../)

# Who are you?

Great question. This is me:

https://youtu.be/VDIwnLllLZQ

I'm Ladyada, and I love to teach people how to build stuff and how they can be creative with technology.

So, are you ready?

Let's do this thing!

# Want to buy past AdaBoxes?
# AdaBox 007

## Unboxing AdaBox 007

> "This is our world now... the world of the electron and the switch, the beauty of the baud." _- The Mentor, The Hacker's Manifesto_
> 
> "HACK THE PLANET!" _- Zero Cool, HACKERS_

With previous ADABOXes you've built robots and radios, learned CircuitPython and played retro games. Now you're ready to learn about the dark arts of electronics - this ADABOX is Super Sneaky with a **Secret** + **Spy** + **Security** theme.

Everything in this box will teach you stuff _they_ don't want you to know!

We wanted to bring you the full experience of being a super hacker spy, but without having to hang upside-down from a helicopter, or break into MegaCorp's skyscraper headquarters at 2AM.

You'll use your brains and hands to solve puzzles, send secret messages, break locks, and listen in on the radio waves around you. Then build some electronic projects that will teach you about security while having some fun. You'll learn how real hackers and security experts work, and at the same time how to protect yourself from spying eyes.

# Kit Contents
 **Large Clear Padlock & Complete Lockpick Kit** -&nbsp;Learn about the inner workings of locks with this clear 6-pin pin-tumbler padlock. It will help you get a feel for opening locks without the key.

This lockpick set includes a number of hook picks and diamond picks, a ripple rake for side-dimple locks, as well as two tensioners for turning the cylinder as you lift the pins until - CLICK - you've picked open your first lock!

![adafruit_gemma_IMG_1534_2k.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/878/medium640/adafruit_gemma_IMG_1534_2k.jpg?1520790245)

![adafruit_gemma_IMG_1536_2k.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/879/medium640/adafruit_gemma_IMG_1536_2k.jpg?1520790254)

[Software Defined Radio Receiver USB Stick](https://www.adafruit.com/product/1497)- If you've ever been curious about software defined radio (SDR), this USB stick is the easiest way possible to have fun with a powerful, configurable receiver. Packed with the powerful RTL2832U and R820T tuner, it can tune into signals from 24MHz to 1850MHz. That means you can use a computer (with Windows, Mac, or Linux) to tune into: FM Radio, AM signals (but not AM broadcast radio), CW (morse code!), unencrypted radio signals (such as those used by many police and fire departments), POCSAG pagers, and more.

![adafruit_gemma_1497-04.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/751/medium640/adafruit_gemma_1497-04.jpg?1520613327)

[Adafruit GEMMA M0](https://www.adafruit.com/product/3501) -&nbsp;The **Adafruit Gemma M0** is a super small microcontroller board, with just enough built-in to create many simple projects. It may look small and cute: round, about the size of a quarter, with friendly alligator-clip sew pads. But do not be fooled! The Gemma M0 is incredibly powerful!

![adafruit_gemma_3501-03.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/752/medium640/adafruit_gemma_3501-03.jpg?1520613677)

[USB cable - 6" A/MicroB](https://www.adafruit.com/product/898) - This&nbsp;here is your standard A-microB USB cable. Perfect for connecting your Gemma M0 to your computer in order to program it. We had these made to our specifications, available in Adafruit Black Approximately 6.5" long from end to end, its a little more compact than the typical cable -- perfect for the discrete connections you want when you create the Fowl Foul or Mouse Jiggler projects!

![adafruit_gemma_usbcable6.jpg](https://cdn-learn.adafruit.com/assets/assets/000/052/571/medium640/adafruit_gemma_usbcable6.jpg?1522126980)

**Invisible Ink Pen & [5mm UVA LED](https://www.adafruit.com/product/1793)** -&nbsp;Ultraviolet marker pens use ink which lacks color pigment, so it doesn’t leave a mark visible to the naked eye under normal lighting conditions. However, when illuminated with a UV light source (sometimes called a blacklight), it fluoresces brightly. This is easiest to see in dim lighting conditions.

The LED emits UV 'blacklight' in the UVA spectrum so it's great for projects with fluorescent materials referred to as UV/blacklight-reactive or 'glow-in-the dark'. They are bright (350mcd) and have about a 20-degree LED beam.

**Please note the UV is clear when not lit and is 'loose' in the large plastic baggie,&nbsp;** not to be confused with the blue-ish Infrared (IR) LED!

![adafruit_gemma_IMG_1540_2k.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/880/medium640/adafruit_gemma_IMG_1540_2k.jpg?1520790319)

![adafruit_gemma_uvLED2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/052/758/medium640/adafruit_gemma_uvLED2.jpg?1522986128)

[3 x AAA Battery Holder with On/Off Switch and 2-Pin JST](https://www.adafruit.com/product/727) -&nbsp;This battery holder connects 3 AAA batteries together in series for powering all kinds of projects. We spec'd these out because the box is slim, and 3 AAA's add up to about 3.3-4.5V, a very similar range to Lithium Ion/polymer (Li-Ion) batteries, and they have an on-off switch. That makes them ideal for use with 3.3V projects that have a 2-pin JST connector meant for one of our Li-Ion/Poly batteries.

![adafruit_gemma_727-03.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/764/medium640/adafruit_gemma_727-03.jpg?1520631519)

[Alkaline AAA batteries - 3 pack](https://www.adafruit.com/product/3520) -&nbsp;Battery power for your portable project!&nbsp;  
These batteries are Alkaline (MnO2) chemistry, with a voltage range of 1.6V (fresh) to 0.8V (dead). The mAh capacity depends on discharge usage but at 25mA rate it is 1200mAh Use them to power your portable Gemma M0 projects!

![adafruit_gemma_aaabatts.jpg](https://cdn-learn.adafruit.com/assets/assets/000/052/572/medium640/adafruit_gemma_aaabatts.jpg?1522127111)

[Fast Vibration Sensor Switch (Easy to trigger)](https://www.adafruit.com/product/1766) -&nbsp;The "poor man's" accelerometer/motion sensor! These spring-vibration switches are **high sensitivity** non-directional vibration induced trigger switches. Inside is a very soft spring coiled around a long metal pin. When the switch is moved, the spring touches the center pole to make contact. So, when there's motion, the two pins will act like a closed switch. When everything is still, the switch is open. Great for basic projects and wearables!

![adafruit_gemma_1766-00.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/765/medium640/adafruit_gemma_1766-00.jpg?1520631818)

[Piezo Buzzer](https://www.adafruit.com/product/160) -&nbsp;Piezo buzzers are used for making beeps, tones and alerts. This one is petite but loud! Drive it with 3-30V peak-to-peak square wave. To use, connect one pin to ground (either one) and the other pin to a square wave out from a timer or microcontroller. For the loudest tones, stay around 4 KHz, but works quite well from 2KHz to 10KHz. For extra loudness, you can connect both pins to a microcontroller and swap which pin is high or low ('differential drive') for double the volume.

![adafruit_gemma_160-01.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/766/medium640/adafruit_gemma_160-01.jpg?1520631882)

[Panel Mount 10K Potentiometer](https://www.adafruit.com/product/562) -&nbsp;This potentiometer is a two-in-one, good in a breadboard or with a panel. It's a fairly standard linear taper 10K ohm potentiometer, with a grippy shaft. It's smooth and easy to turn, but not so loose that it will shift on its own. We like this one because the legs are 0.2" apart with pin-points, so you can plug it into a breadboard or perfboard. Once you're done prototyping, you can drill a hole into your project box and mount the potentiometer that way.

![adafruit_gemma_562-00-2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/767/medium640/adafruit_gemma_562-00-2.jpg?1520631971)

[Potentiometer Knob - Soft Touch T18 - Red](https://www.adafruit.com/product/2046) -&nbsp;This 'soft touch' T18 knob that works great with our&nbsp;Panel Mount 10K&nbsp;potentiometer. The knob is designed to set directly on the potentiometer's ridges so it's an easy & secure fit.&nbsp;It has a nice feel, with a rubbery grip, tweaking it is quite fulfilling.

![adafruit_gemma_redknob.jpg](https://cdn-learn.adafruit.com/assets/assets/000/052/573/medium640/adafruit_gemma_redknob.jpg?1522127255)

[Woven Metallic Fabric](https://www.adafruit.com/product/1168) -&nbsp;This woven conductive fabric is silver colored and made of Copper+Nickel-plated nylon. Use small pieces for soft switches, plush keypads, capacitive touch sensors, and other textile interfaces. This highly conductive fabric has a resistance of less than 1 ohm per foot in any direction across the textile.

![adafruit_gemma_1168-03.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/769/medium640/adafruit_gemma_1168-03.jpg?1520632266)

[IR (Infrared) Receiver Sensor](https://www.adafruit.com/product/157) -&nbsp;IR sensor tuned to 38KHz, perfect for receiving commands from a TV remote control. Runs at 3V to 5V so it's great for any microcontroller.

![adafruit_gemma_157-00.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/770/medium640/adafruit_gemma_157-00.jpg?1520632491)

[Super-bright 5mm IR LED - 940nm](https://www.adafruit.com/product/387) -&nbsp;Infrared LEDs are used for remote controls (they're the little LED in the part you point at your TV) and 'night-vision' cameras, and these little blue guys are high powered ones! They are 940nm wavelength, which is what nearly all devices listen to. They're 20 degree beamwidth, and work great for any kind of remote control application.

&nbsp;

**Please note the IR LED is blue-ish even when not lit and is in a mini bag, not to be confused with the clear UV LED!**

![adafruit_gemma_irled.jpg](https://cdn-learn.adafruit.com/assets/assets/000/052/574/medium640/adafruit_gemma_irled.jpg?1522127511)

[Enameled Copper Magnet Wire](https://www.adafruit.com/product/3522) - For winding custom coils, or very fine-pitch rework, we always reach for **magnet wire**. Magnet wire is very very thin (0.1mm diameter!) copper wire with a very thin layer of insulation. It's used for a range of electronics, hacking and making applications. Commonly these are used for winding transformers, inductors, motor or solenoid coils, speakers, hard disk head actuators, electromagnets, pickups, among other things. However, this wire is also really good for when you have to do PCB repair, jumper wires, or solder directly to SMT pads.

![adafruit_gemma_3522-03.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/771/medium640/adafruit_gemma_3522-03.jpg?1520632662)

2N7000 Transistor&nbsp; **- this component may be 'loose' in the large plastic bag**

![adafruit_gemma_transistor.jpg](https://cdn-learn.adafruit.com/assets/assets/000/052/759/medium640/adafruit_gemma_transistor.jpg?1522986721)

# Other Contents

- Machine Screw Kit -- M3 x 8mm screws and nuts
- Digi-Key Digi-Keyer Puzzle (Subscribers Only!)
- Digi-Key Web Cam Cover (Subscribers Only!)
- EFF Multisticker Sheet (Subscribers Only!)
- 2600 Magazine: The Hacker Quarterly (Subscribers Only!)
- HackSpace Magazine (Subscribers Only!)
- Boldport Club CAD Sticker (Subscribers Only!)
- Blinka Temporary Tattoo (Subscribers Only!)

## Projects

Now that we've seen what's inside, let's start making things!

# AdaBox 007

## Lock Picking Primer

Included with AdaBox 007 is a clear practice lock and a set of pin tumbler lock picks and tensioners. You can learn how a typical pin tumbler lock works, and then practice opening them without keys!

Danger: 

![](https://cdn-learn.adafruit.com/assets/assets/000/052/025/medium800/adafruit_gemma_IMG_1534_2k.jpg?1521166926)

![](https://cdn-learn.adafruit.com/assets/assets/000/052/022/medium800/adafruit_gemma_IMG_1536_2k.jpg?1521166893)

## Pin Tumbler in Action

Here’s a quick look at the clear lock in action with a key, and then being picked one pin at a time. This lock has six pin stacks, each comprised of a key pin on the bottom and a driver pin on the top. For the cylinder to turn and the lock to open, each key pin must be raised to the point where the driver pin is lifted just above the "shear line" that separates the cylinder from the lock housing. Once each stack is lifted to the proper height, the cylinder is free to turn, opening the lock.

https://youtu.be/363QhfI2vUI

## Larger Look

Here’s a bigger (much bigger) look at a demonstration pin tumbler in action, being picked open with a comically large tensioner and hook pick.

https://youtu.be/M0JToMoNfkQ

## Greater Depth

If you want to see more details, check out this episode of John Park’s Workshop!

https://youtu.be/6DiIptgbxlQ?t=9m24s

## Next Steps

There are lots and lots of great resources online for learning to pick locks, as well as many events you can attend to learn from people, such as [TOOOL](https://toool.us/), (The Open Organization of Lockpickers).

For example, [here’s a really good introductory slide deck](https://toool.us/files/lockpick_intro.pptx) on picking from TOOOL.&nbsp;

Have a look at that deck and start practicing to hone your lock picking skills!

As you get deeper into lock picking as a hobby, an excellent YouTube channel to check out is lock picker extraordinaire [Bosnian Bill](https://www.youtube.com/user/bosnianbill/videos).

A fun related hobby is making your own lock picks, when you need something just so! For example, maybe you'll want to build a deep hook to get past that really annoying seven pin lock with multiple security pins!&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/052/026/medium800/adafruit_gemma_jepCustomPicks.jpg?1521167299)

For more on making picks and tensioners from street sweeper blades and feeler gauges, check out these two other videos from John Park's Workshop.

https://youtu.be/KLd1hu6GGwM?t=3m

https://youtu.be/CWMnaYv-M5w?t=3m19s

# AdaBox 007

## Anti-Surveillance Phone Pouch

![](https://cdn-learn.adafruit.com/assets/assets/000/051/968/medium800/adafruit_gemma_P3130655_2000.jpg?1520984045)

## RF Blocking

Our daily carry devices are amazing -- they can download all kinds of useful information, such as top secret communications and maps -- very useful for a spy! However, they can also upload important data -- including our precise whereabouts at any given time!&nbsp;

Even when you're not using your phone, there's always the chance that you're leaving electronic breadcrumbs about your location. This kind of data is exchanged between cell phone towers as you move about. If you want to be certain you're in full stealth mode, you may need to seal up your phone from all incoming and outgoing radio waves!

A Faraday cage does exactly that, and the best part is that it's very easy to make. All you need is some [conductive wire mesh fabric](https://www.adafruit.com/product/1168) and a way to close it up so that no radio waves can get in or out.

![](https://cdn-learn.adafruit.com/assets/assets/000/051/969/medium800/adafruit_gemma_P3130649_2000.jpg?1520984102)

I've made a custom pouch for my phone using a sewing machine. shown here. As soon as I drop it in the pouch, it goes into a radio wave black hole.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/051/970/medium800/adafruit_gemma_P3130658_2000.jpg?1520984146)

Everything from cell reception to WiFi, from Bluetooth to GPS are immediately snuffed out as long as the phone is tightly sealed up in the bag!

![](https://cdn-learn.adafruit.com/assets/assets/000/051/971/medium800/adafruit_gemma_P3130661_2000.jpg?1520984180)

WiFi and Bluetooth will usually reconnect quickly as you open the pouch, cell service can take a bit longer.

![](https://cdn-learn.adafruit.com/assets/assets/000/051/972/medium800/adafruit_gemma_P3130665_2000.jpg?1520984228)

To make your own RF pouch, [check out this learn guide](../../../../cell-phone-blocking-pocket?view=all)!

https://youtu.be/sH0zp1n5Zug

# AdaBox 007

## Hidden Ink UV Message Reader

# AdaBox 007

## Software Defined Radio

![](https://cdn-learn.adafruit.com/assets/assets/000/051/981/medium800/adafruit_gemma_rtl-sdr.jpg?1521064745)

Software-defined radio (SDR) is a technique for turning a computer into a radio. But not just an AM/FM radio - by using the computing power on your desktop you can listen and decode a wide variety of broadcasts. SDR can turn your computer into a weather-band receiver, a police/fire report scanner, a music listening station, and more! Instead of manually tuning inductors like a traditional piece of radio gear, it's all done in software by chips fast enough to pick up and decode radio waves on the fly.

If you've ever been curious about software defined radio (SDR), this USB stick is the easiest way possible to have fun with a powerful, configurable receiver. Packed with the powerful RTL2832U and R820T tuner, it can tune into signals from 24MHz to 1850MHz. That means you can use a computer (with Windows, Mac, or Linux) to tune into: FM Radio, AM signals (but not AM radio), CW (morse code!), unencrypted radio signals (such as those used by many police and fire departments), POCSAG pagers, and more.

### Part: Software Defined Radio Receiver
quantity: 1
USB stick and antenna
[Software Defined Radio Receiver](https://www.adafruit.com/product/1497)

## Getting Started

[This tutorial](../../../../getting-started-with-rtl-sdr-and-sdr-sharp) will show you how to get your very first&nbsp;listening adventure underway - listening to FM radio and decoding the RDS/RBDS data signal that is sent along with many FM radio stations as well.

## Freq Show: RPi RTL-SDR Scanner

[Here's a more advanced tutorial](../../../../freq-show-raspberry-pi-rtl-sdr-scanner/overview) for scanning the airwaves around you with an RTL-SDR radio receiver and a Raspberry Pi. It's a totally portable RF visualizer!

https://www.youtube.com/watch?v=Kmh_g2Ro6Qg

## Fun SDR Projects To Try

Beyond listening to FM radio and generally exploring the RF spectrum, there are many other fun things to try out with software defined radio. Check out the list below for some ideas. NOTE: some of these projects require additional hardware or antennas, be sure to check the legality of these project in your local area.

[TEMPEST](https://www.rtl-sdr.com/tempestsdr-a-sdr-tool-for-eavesdropping-on-computer-screens-via-unintentionally-radiated-rf/)- an SDR tool for eavesdropping on computer screens via unintentionally radiated RF

https://youtu.be/mBJ6uQZsF9c

[Airplanejs](https://github.com/watson/airplanejs)&nbsp;- Airplane Tracking with RTL-SDR for mac os&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/051/983/medium800/adafruit_gemma_airtracker.jpg?1521065449)

[Radio Reference Database](http://www.radioreference.com/apps/db/)&nbsp;In this incredibly thorough frequency database, you can check out your local region for interesting frequencies to try. Emergency services, vehicle dispatch, morse code stations, NOAA weather, ship tracking, aircraft/airport communications, there are all kinds of neat things to find!

![](https://cdn-learn.adafruit.com/assets/assets/000/051/984/medium800/adafruit_gemma_radref.jpg?1521065769)

[POCSAG/Flex Pagers](https://www.rtl-sdr.com/rtl-sdr-tutorial-pocsag-pager-decoding/)&nbsp;Believe it or not, there are still lots of organizations using pagers to send and receive alphanumeric text messages. They are sent in the clear, and with an added piece of decoding software, you can turn these radio waves into texts. This makes us appreciate modern, secure text messaging quite a bit more.

[Digital Speech Decoding](https://www.dsdplus.com/)&nbsp;SDR on it's own can't act like a police scanner of old, because the law enforcement and public safety channels tend to be digital transmissions, not analog ones that we can easily listen to. This software can help you decode those digital transmissions! [Here's more info](https://www.rtl-sdr.com/rtl-sdr-radio-scanner-tutorial-decoding-digital-voice-p25-with-dsd/) on getting started with DSD+.

![](https://cdn-learn.adafruit.com/assets/assets/000/051/986/medium800/adafruit_gemma_dsdplus.png?1521066297)

[Satellite Imagery](https://www.rtl-sdr.com/rtl-sdr-tutorial-receiving-noaa-weather-satellite-images/)&nbsp;It's possible to download and view satellite imagery with SDR! It requires a more advanced antenna setup, but if you're interested, this tutorial shows you how!

Watch this video (you can scrub through if you like) to watch the image being downloaded in realtime.

https://youtu.be/tHDFHc3JgpY

## Going Further

This just touched the tip of the SDR iceberg. If you'd like to get more involved, be sure to check out:

- [RTL-SDR.com](https://www.rtl-sdr.com/)&nbsp;for lots of great info, news, tutorials, and more
- [RTLSDR subreddit](https://www.reddit.com/r/RTLSDR/)&nbsp;where interested users discuss SDR in great depth
- [SigIDWiki](https://www.sigidwiki.com/wiki/Signal_Identification_Guide) where people help one another identify mysterious signals!
- [Tire Pressure Monitor Systems](https://github.com/jboone/tpms) this one is quite advanced, but a really fascinating bit of reverse engineering by Jared Boone to read the tire pressure on most modern cars over the air!

https://www.youtube.com/watch?v=bKqiq2Y43Wg

# AdaBox 007

## SDR Tuning Knob

![](https://cdn-learn.adafruit.com/assets/assets/000/051/950/medium800/adafruit_gemma_P3120101_2000.jpg?1520907324)

Have some fun tuning in radio stations with your RTL Software Defined Radio setup by using a real, physical tuning knob! You can make one with just a potentiometer and a Gemma M0, plus some screws to connect the two.

The Gemma M0 can act like a USB HID keyboard, so it’s great for sending key commands. Code it in CircuitPython to send keyboard shortcuts to CubicSDR software, or customize it for other uses!

![](https://cdn-learn.adafruit.com/assets/assets/000/051/949/medium800/adafruit_gemma_P3120073-Edit_2000.jpg?1520907270)

### Part: Gemma M0
quantity: 1
Small, HID capable microcontroller board
[Gemma M0](https://www.adafruit.com/product/3501)

### Part: 10k Potentiometer
quantity: 1
Panel mount style
[10k Potentiometer](https://www.adafruit.com/product/562)

### Part: Potentiometer Knob 
quantity: 1
Soft Touch T18 - Red
[Potentiometer Knob ](https://www.adafruit.com/product/2046)

### Part: USB Cable
quantity: 1
6" A/Micro B
[USB Cable](https://www.adafruit.com/product/898)

Additionally, you'll need two M3x8mm screws and nuts to secure the potentiometer to the Gemma M0. (Alternatively, you can use alligator clip leads if you have some handy.)

![](https://cdn-learn.adafruit.com/assets/assets/000/051/948/medium800/adafruit_gemma_Radio_Tuning_Knob_fritzing.jpg?1520903378)

## Build the Tuner Knob

With some careful bending of the legs, you can get the the potentiometer to connect to three pads on the Gemma M0. You feed the center leg into pad **A2** which will measure the analog voltage of the potentiometer, and then you’ll bend the outer legs to contact pins **D2** and **3V.**

In software we’ll set pin **D2** to a ground level, so the potentiometer will be able to reference that ground and the **3V** as the wiper turns and changes the resistance value output to the center leg.

First, bend the outer legs on an angle to widen their reach as shown.

Bend the center leg down just a bit so it will be able to dive down into **A2.**

Then, use the screws and nuts to secure the outer legs to their respective pads — the center leg will contact the **A2** pad securely without the need for a screw.

![adafruit_gemma_P3120075_2000.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/951/medium640/adafruit_gemma_P3120075_2000.jpg?1520907380)

![adafruit_gemma_P3120076_2000.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/952/medium640/adafruit_gemma_P3120076_2000.jpg?1520907387)

![adafruit_gemma_P3120078_2000.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/953/medium640/adafruit_gemma_P3120078_2000.jpg?1520907395)

![adafruit_gemma_P3120079_2000.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/954/medium640/adafruit_gemma_P3120079_2000.jpg?1520907408)

![adafruit_gemma_P3120080_2000.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/955/medium640/adafruit_gemma_P3120080_2000.jpg?1520907421)

![adafruit_gemma_P3120088_2000.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/956/medium640/adafruit_gemma_P3120088_2000.jpg?1520907434)

![adafruit_gemma_P3120089_2000.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/957/medium640/adafruit_gemma_P3120089_2000.jpg?1520907441)

![adafruit_gemma_P3120090_2000.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/958/medium640/adafruit_gemma_P3120090_2000.jpg?1520907454)

Next, you can add the knob -- try turning the shaft fully to the left first and putting the knob on at the six o'clock position as shown.

![](https://cdn-learn.adafruit.com/assets/assets/000/051/959/medium800/adafruit_gemma_P3120091_2000.jpg?1520907546)

Now, plug the USB cable into the Gemma M0 and your computer, and get ready to program it!

![](https://cdn-learn.adafruit.com/assets/assets/000/051/960/medium800/adafruit_gemma_P3120095_2000.jpg?1520907606)

## Code It

Follow this guide [https://learn.adafruit.com/adafruit-gemma-m0/circuitpython](../../../../adafruit-gemma-m0/circuitpython)&nbsp;to get started with coding the Gemma M0 in CircuitPython. Install the latest release version of CircuitPython on the board.&nbsp;

Also make sure you install the latest release version of the **adafruit\_hid** library [as shown here](../../../../adafruit-gemma-m0/circuitpython-libraries). Note: there will already be a previous version of the **adafruit\_hid** library in the **lib** folder on your Gemma M0, but it may not be the version that goes with the latest release of CircuitPython that you just installed. So go ahead and replace the old library with the new! You can do this by downloading the latest release bundle, unzipping it, and then dragging just the adafruit\_hid library to the Gemma M0’s **CIRCUITPY/lib** directory.

You may also want to install the Mu editor&nbsp;[https://learn.adafruit.com/adafruit-gemma-m0/installing-mu-editor](../../../../adafruit-gemma-m0/installing-mu-editor)&nbsp;for your coding needs.

Once you can successfully code in Mu and upload to the board, return here.

The Gemma M0 Radio Tuning Knob software will read the voltage on pin **A2.** When the potentiometer it is at the midway point, the on-board LED will light up to indicate the center detent. In this position, no key commands will be sent.

In CubicSDR, pressing the bracket keys in the tuning window nudges the tuned frequency up or down, depending on which bracket is pressed.

Turn to the right and the Gemma M0 will send `‘]’` right bracket &nbsp;keys &nbsp;— the farther to the right you turn the knob the faster it will send them. Turning to the left does the same, but with the `‘[‘` left bracket.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/051/962/medium800/adafruit_gemma_P3120099_2000.jpg?1520907660)

Info: 

Here’s the code for the Radio Tuning Knob. Go ahead and copy it, paste it into Mu, and then save it as **code.py** to your Gemma M0.

https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Gemma/GemmaM0_Radio_Tuning_Knob/code.py

![](https://cdn-learn.adafruit.com/assets/assets/000/051/961/medium800/adafruit_gemma_P3120098_2000.jpg?1520907634)

Danger: 

![](https://cdn-learn.adafruit.com/assets/assets/000/051/964/medium800/adafruit_gemma_P3120102_2000_b.jpg?1520908679)

# AdaBox 007

## Password Vault

![](https://cdn-learn.adafruit.com/assets/assets/000/051/946/medium800/adafruit_gemma_gemma_pass_vault.jpg?1520899907)

Data security is of the utmost importance for the modern spy! To keep your logins buttoned up tight, you can build a small, personal password vault and use it to enter up to three passwords for you when connected to a computer at the touch of a capacitive pad on the Gemma M0.

Long, random&nbsp;passwords -- such as&nbsp;`eF@V3p%2R*qhw8`&nbsp;are great because they're so secure when compared to simple ones such as&nbsp;`Pencil`&nbsp;or&nbsp;`12345`, but can be difficult to remember and to type. Increase your password security by using a long, random string of numbers, letters, and symbols instead of some insecure, easy to remember word. Your Password Vault will remember it for you!

Keep your Gemma M0 Password Vault with you at all times, and then simply plug it into your computer with a USB cable, and touch a capacitive touch pad to auto-type your password, then press Enter on your keyboard.

## Code it with CircuitPython&nbsp;

Follow this guide [https://learn.adafruit.com/adafruit-gemma-m0/circuitpython](../../../../adafruit-gemma-m0/circuitpython)&nbsp;to get started with coding the Gemma M0 in CircuitPython. Install the latest release version of CircuitPython on the board. You may also want to install the Mu editor&nbsp;[https://learn.adafruit.com/adafruit-gemma-m0/installing-mu-editor](../../../../adafruit-gemma-m0/installing-mu-editor)&nbsp;for your coding needs.

Once you can successfully code in Mu and upload to the board, return here.

Here's the code for the Password Vault -- to use it on your Gemma M0 copy it, paste it into Mu, and then save the file as **main.py** , and then drag it onto the CIRCUITPY drive that shows up when the Gemma M0 is plugged in.

The Gemma M0 can act like a USB HID keyboard, so it’s great for sending key commands. Using the `layout.write()` command we can have it enter long strings of text, numbers, and punctuation for us!

You'll want to change the three passwords in the code to match your own passwords -- just look for the lines that have the comments `# enter your own password here`&nbsp;and change the text inside the parenthesis and quotes.

https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Gemma/GemmaM0_Password_Vault/code.py

If you'd like to build a more elaborate version of the Password Vault using a Circuit Playground Express or Circuit Playground Classic, that requires an unlock code to use, check out [this guide, the Circuit Playground Password Vault](../../../../circuit-playground-password-vault)!

![](https://cdn-learn.adafruit.com/assets/assets/000/051/933/medium800thumb/adafruit_gemma_circuit_playground_PassVault-Code.jpg?1520831949)

# AdaBox 007

## Annoy-O-Matic Sound Prank Device

# AdaBox 007

## The Foul Fowl -- Keystroke Injection Attack Tool

# AdaBox 007

## Phantom Mouse Jiggler

# AdaBox 007

## AM Radio Morse Code Paddle

# AdaBox 007

## Vibration Sensor Motion Alarm

# AdaBox 007

## TV Zapper

# AdaBox 007

## Spy Theme Playback Device

# AdaBox 007

## Redeem your coupon code

To redeem your AdaBox coupon code, sign into your Adafruit account then click 'My Account' on the top right of the Adafruit page.

![](https://cdn-learn.adafruit.com/assets/assets/000/035/495/medium800/arduino_Screen_Shot_2016-09-05_at_11.48.13_AM.png?1473090515)

Once you're in your account page, click 'Gift Certificates and Coupons.

![](https://cdn-learn.adafruit.com/assets/assets/000/035/496/medium800/arduino_Screen_Shot_2016-09-05_at_11.48.54_AM.png?1473090556)

Your coupon code will appear under 'account coupons.'

This code is associated with your AdaBox order and can be used once per AdaBox subscription. You must be logged into the Adafruit account associated with your AdaBox order to redeem your coupon code. If you received AdaBox as a gift, the code will appear in your account once you link your Adafruit account to the AdaBox you received.

Shipping costs do not count towards free items. Discount codes do not apply to shipping costs. Discount codes do not apply to gift certificates and software. Only one discount code can be applied if available. Discount does not apply to orders placed before the sale time start. Discount can not combine with reseller, educational, or any other discounted orders.

&nbsp;

# AdaBox 007

## Need Help? Questions?


## Featured Products

### Software Defined Radio Receiver USB Stick - RTL2832 w/FC0013

[Software Defined Radio Receiver USB Stick - RTL2832 w/FC0013](https://www.adafruit.com/product/1497)
If you've ever been curious about software defined radio (SDR), this USB stick is the easiest way possible to have fun with a powerful, configurable receiver. Packed with the powerful RTL2832U and FC0013 tuner, it can tune into signals from 48.25 - 863.25MHz. That means you can use a...

In Stock
[Buy Now](https://www.adafruit.com/product/1497)
[Related Guides to the Product](https://learn.adafruit.com/products/1497/guides)
### Adafruit GEMMA M0 - Miniature wearable electronic platform

[Adafruit GEMMA M0 - Miniature wearable electronic platform](https://www.adafruit.com/product/3501)
The **Adafruit Gemma M0** is a super small microcontroller board, with just enough built-in to create many simple projects. It may look small and cute: round, about the size of a quarter, with friendly alligator-clip sew pads. But do not be fooled! The Gemma M0 is incredibly...

In Stock
[Buy Now](https://www.adafruit.com/product/3501)
[Related Guides to the Product](https://learn.adafruit.com/products/3501/guides)
### 3 x AAA Battery Holder with On/Off Switch and 2-Pin JST

[3 x AAA Battery Holder with On/Off Switch and 2-Pin JST](https://www.adafruit.com/product/727)
This battery holder connects 3 AAA batteries together in series for powering all kinds of projects. We spec'd these out because the box is slim, and 3 AAA's add up to about 3.3-4.5V, a very similar range to Lithium Ion/polymer (Li-Ion) batteries and have an on-off switch. That makes...

In Stock
[Buy Now](https://www.adafruit.com/product/727)
[Related Guides to the Product](https://learn.adafruit.com/products/727/guides)
### Fast Vibration Sensor Switch (Easy to trigger)

[Fast Vibration Sensor Switch (Easy to trigger)](https://www.adafruit.com/product/1766)
The "poor man's" accelerometer/motion sensor! These spring-vibration switches are **high sensitivity** non-directional vibration induced trigger switches. Inside is a very soft spring coiled around a long metal pin. When the switch is moved, the spring touches the...

In Stock
[Buy Now](https://www.adafruit.com/product/1766)
[Related Guides to the Product](https://learn.adafruit.com/products/1766/guides)
### Piezo Buzzer

[Piezo Buzzer](https://www.adafruit.com/product/160)
Piezo buzzers are used for making beeps, tones and alerts. This one is petite but loud! Drive it with 3-30V peak-to-peak square wave. To use, connect one pin to ground (either one) and the other pin to a square wave out from a timer or microcontroller. For the loudest tones, stay around 4 KHz,...

In Stock
[Buy Now](https://www.adafruit.com/product/160)
[Related Guides to the Product](https://learn.adafruit.com/products/160/guides)
### Panel Mount 10K potentiometer (Breadboard Friendly)

[Panel Mount 10K potentiometer (Breadboard Friendly)](https://www.adafruit.com/product/562)
This potentiometer is a two-in-one, good in a breadboard or with a panel. It's a fairly standard linear taper 10K ohm potentiometer, with a grippy shaft. It's smooth and easy to turn, but not so loose that it will shift on its own. We like this one because the legs are 0.2" apart...

In Stock
[Buy Now](https://www.adafruit.com/product/562)
[Related Guides to the Product](https://learn.adafruit.com/products/562/guides)
### Woven Conductive Fabric - 20cm square

[Woven Conductive Fabric - 20cm square](https://www.adafruit.com/product/1168)
This woven conductive fabric is silver colored and made of Copper+Nickel-plated polyester. Use small pieces for soft switches, plush keypads, capacitive touch sensors, and other textile interfaces. This highly conductive fabric has a resistance of less than 1 ohm per foot in any direction...

In Stock
[Buy Now](https://www.adafruit.com/product/1168)
[Related Guides to the Product](https://learn.adafruit.com/products/1168/guides)
### IR (Infrared) Receiver Sensor

[IR (Infrared) Receiver Sensor](https://www.adafruit.com/product/157)
IR sensor tuned to 38KHz, perfect for receiving commands from a TV remote control. Runs at 3V to 5V so it's great for any microcontroller.  
  
To use, connect pin 3 (all the way to the right) to 5V power, pin 2 (middle) to ground and listen on pin 1. It doesn't do any decoding...

In Stock
[Buy Now](https://www.adafruit.com/product/157)
[Related Guides to the Product](https://learn.adafruit.com/products/157/guides)

## Related Guides

- [Jewel Hair Stick](https://learn.adafruit.com/jewel-hair-stick.md)
- [Adafruit LED Sequins](https://learn.adafruit.com/adafruit-led-sequins.md)
- [NeoPixel Basketball Hoop](https://learn.adafruit.com/neopixel-mini-basketball-hoop.md)
- [Using MCP23008 & MCP23017 with CircuitPython](https://learn.adafruit.com/using-mcp23008-mcp23017-with-circuitpython.md)
- [Adafruit Gemma M0](https://learn.adafruit.com/adafruit-gemma-m0.md)
- [NeoPixel Manicure](https://learn.adafruit.com/neopixel-manicure.md)
- [NeoPixel Spats with Gemma and MakeCode](https://learn.adafruit.com/neopixel-spats.md)
- [Space Face LED Galaxy Makeup](https://learn.adafruit.com/space-face-led-galaxy-makeup.md)
- [Techno-Tiki RGB LED Torch](https://learn.adafruit.com/techno-tiki-rgb-led-torch.md)
- [Gemma LightTouch](https://learn.adafruit.com/gemma-lighttouch.md)
- [Princess Peach LED Crown](https://learn.adafruit.com/bowsette.md)
- [3D Printed LED-Animation BMO](https://learn.adafruit.com/3d-printed-led-animation-bmo.md)
- [The Foul Fowl -- Keystroke Injection Attack Tool with Gemma M0](https://learn.adafruit.com/the-foul-fowl-keyboard-injection-payload-gemma-m0.md)
- [3D Printed LED Fire Horns](https://learn.adafruit.com/3d-printed-led-fire-horns.md)
- [Using MPL3115A2 with CircuitPython](https://learn.adafruit.com/using-mpl3115a2-with-circuitpython.md)
