# Tent Lantern

## Overview

https://youtu.be/O38Y5GmiO64

Camping is fun, especially at night. Moon overhead, twinkling stars, campfires, rotating bear watches.

But there aren't campfires in my tent. Sometimes, you just need light.

Introducing... the **tent lantern**.

When it's 3 AM and I don't want to disturb other campers, or reset&nbsp;my night-adjusted eyes, I need a gentle light. A headlamp is best suited for your head, and&nbsp;a flashlight is great for your hand. And both are too bright on their normal setting.&nbsp;

This 3D printed lantern features a 1200 mAh battery with charging circuit, two large LED backlights, and a hooked handle allowing you to hang on closed loops.

## Things you'll need:

- 3D Printer
- Soldering Iron
- Pliers, specifically needle nose, regular/broad, and snipping
- Flush cutters
- #000 Screwdriver
- 2x 100 Ohm resistors
- 5x M2 10mm Pan head screws: [McMaster](https://www.mcmaster.com/#92000a017/=14ybj01)
- SPDT Slide Switch
- 1200 mAh LiPo Battery
- Heat gun and heatshrink, or a hot melt glue gun
- Takeout food box handle

## &nbsp;What You'll Learn:

- How to improvise with hot glue instead of heat shrink
- How to widen&nbsp;a screw hole in a 3D print
- How to turn a takeout food box handle into a useful accessory

# Tent Lantern

## 3D Printing

![](https://cdn-learn.adafruit.com/assets/assets/000/037/058/medium800/light_tent_lantern_tray.jpg?1478628142)

[Click here to download the .STL files for the tent lantern](http://www.thingiverse.com/thing:1878445)
Only the tray requires supports, the rest can be printed without.

# Tent Lantern

## Code

If you're just going to have the LED ON all the time you can remove the Pro Trinket and just wire the LED directly to the battery through a switch, but we wanted to have the option to add more functionality later.

You can keep the Pro Trinket if you want to have the output PWM'd for lower brightness, or blink for alerts.

The code for this is extremely straightfoward.

```auto
/*
  Tent Lantern project by Timothy Reese
  https://www.learn.adafruit.com/tent-lantern
 */



void setup() {
  // initialize digital pin 12 as the output
  pinMode(12, OUTPUT);
}

void loop() {
  digitalWrite(12, HIGH);  //turn the LED Modules on
}
```

# Tent Lantern

## Assembly

# Wiring Diagram
![](https://cdn-learn.adafruit.com/assets/assets/000/037/060/medium800/light_Tent_Lantern_Wiring_Diagram.jpg?1478630823)

Danger: 

# Soldering

Begin by tinning your wires.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/066/medium800/light_Tent_Lantern_5.jpg?1478636834)

Solder wires to the BAT, G, and 5V pins on the Pro Trinket.

This Pro Trinket was desoldered from its original backpack, so the pins look a little messy.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/068/medium800/light_Tent_Lantern_7.jpg?1478636848)

Connect these three wires to their designated pins on the Pro Trinket Backpack, and solder a bridge for the +500 mAh pin on the back (if using the 1200 mAh battery.)

![](https://cdn-learn.adafruit.com/assets/assets/000/037/097/medium800/light_Tent_Lantern_39.jpg?1478637074)

Slice through the bridged track on top of the Backpack.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/098/medium800/light_Tent_Lantern_41.jpg?1478637083)

Solder in two wires for the switch.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/099/medium800/light_Tent_Lantern_42.jpg?1478637091)

You'll need to splice the G wire to accomodate the LEDs. Tinning the spliced wire is as simple as tinning a stripped wire.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/067/medium800/light_Tent_Lantern_6.jpg?1478636841)

![](https://cdn-learn.adafruit.com/assets/assets/000/037/076/medium800/light_Tent_Lantern_15.jpg?1478636903)

![](https://cdn-learn.adafruit.com/assets/assets/000/037/069/medium800/light_Tent_Lantern_8.jpg?1478636854)

If using any heatshrink, remember to put it on the wire before you solder.

Next, solder in the spliced wire for the first LED module.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/077/medium800/light_Tent_Lantern_17.jpg?1478636910)

I like to use the hook method for connecting two wires.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/070/medium800/light_Tent_Lantern_9.jpg?1478636860)

![](https://cdn-learn.adafruit.com/assets/assets/000/037/071/medium800/light_Tent_Lantern_10.jpg?1478636867)

Then slide the heatshrink tubing down.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/072/medium800/light_Tent_Lantern_11.jpg?1478636873)

We'll be connecting the (+) pin on the LED Modules to pin 12.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/078/medium800/light_Tent_Lantern_18.jpg?1478636917)

![](https://cdn-learn.adafruit.com/assets/assets/000/037/079/medium800/light_Tent_Lantern_19.jpg?1478636926)

Connect a 100 Ohm resistor between the wire connected to Pin 12, and the (+) lead of the first LED Module.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/081/medium800/light_Tent_Lantern_21.jpg?1478636943)

Next, upload the sketch to test your circuit.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/080/medium800/light_Tent_Lantern_20.jpg?1478636933)

Splice in two more wires for the second LED Module, making sure to splice the (+) wire between Pin 12, and the resistor attached to LED Module 1.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/082/medium800/light_Tent_Lantern_23.jpg?1478636952)

![](https://cdn-learn.adafruit.com/assets/assets/000/037/083/medium800/light_Tent_Lantern_24.jpg?1478636960)

Repeat the connection steps for LED Module 2. Then, test the circuit!

![](https://cdn-learn.adafruit.com/assets/assets/000/037/084/medium800/light_Tent_Lantern_25.jpg?1478636967)

# Heatshrink:

I'm a big fan of using a heat gun with heatshrink.

Warning: 

![](https://cdn-learn.adafruit.com/assets/assets/000/037/086/medium800/light_Tent_Lantern_27.jpg?1478636982)

A lighter also works, but I've found this to be both too dangerous to the project, and far too unpredictable.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/088/medium800/light_Tent_Lantern_29.jpg?1478636997)

If you need to use heatshrink on the spliced joints, use a slightly oversized diameter, and fold one wire backwards.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/087/medium800/light_Tent_Lantern_28.jpg?1478636989)

### What If I Don't Have a Heat Gun?

Use hot melt glue!

![](https://cdn-learn.adafruit.com/assets/assets/000/037/089/medium800/light_Tent_Lantern_30.jpg?1478637006)

# **Hot Glue Toothpick Trick!**
If you need to apply a large blob to cover the connection, use a toothpick like a honey stick. Stick it into the hot glue, and twist it over itself to make something resembling rock candy. The natural attraction of the glue to itself will cause it to wrap around the stick evenly, and out of your project.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/090/medium800/light_Tent_Lantern_31.jpg?1478637015)

# **Starting Screws Trick!**
If you are having trouble getting the M2 screws to thread into the holes, use the tip of the #000 screwdriver to spread the opening, like a chamfer.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/091/medium800/light_Tent_Lantern_33.jpg?1478637024)

### Whoops.

At this point in the project, I discovered my tolerances had been incorrect. Since I was out of enough silver filament to finish the entire project, I had to make do with purple and white PLA, white Ninjaflex for the tray, and silver PLA for the cap.

While I quite like the white and purple mix,&nbsp;I do not recommend using Ninjaflex in this project.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/092/medium800/light_Tent_Lantern_34.jpg?1478637030)

![](https://cdn-learn.adafruit.com/assets/assets/000/037/093/medium800/light_Tent_Lantern_35.jpg?1478637039)

# Final Assembly
The side of the cap with the smaller holes goes touches the tray. The larger holes are countersunk for the pan head screws.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/061/medium800/light_Tent_Lantern_1.png?1478636074)

Tin the contacts for the switch.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/095/medium800/light_Tent_Lantern_37.jpg?1478637057)

Feed the button wires from the Backpack through the switch slot in the tray, and solder them to the switch.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/096/medium800/light_Tent_Lantern_38.jpg?1478637066)

Now attach the battery, and test the connection.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/100/medium800/light_Tent_Lantern_43.jpg?1478637098)

Use an M2 screw to affix the Backpack to the Tray. Push the Pro Trinket into its slot.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/094/medium800/light_Tent_Lantern_36.jpg?1478637048)

Push the LiPo battery into its pocket, and plug it into the Backpack.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/101/medium800/light_Tent_Lantern_45.jpg?1478637105)

Push the LED Modules on either side of the tray, like a sandwich, and slide the entire assembly into the tent lantern body.

Info: 

![](https://cdn-learn.adafruit.com/assets/assets/000/037/102/medium800/light_Tent_Lantern_46.jpg?1478637118)

Push the switch into its space on the cap, and then attach the cap to the body using the 4x M2 screws.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/113/medium800/light_Tent_Lantern_57.jpg?1478637217)

# Wire Hanger

Beginning with the humble takeout food box, remove the handle.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/114/medium800/light_Tent_Lantern_59.jpg?1478637226)

Use a pair of needle nose pliers to straighten the loops.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/115/medium800/light_Tent_Lantern_61.jpg?1478637235)

![](https://cdn-learn.adafruit.com/assets/assets/000/037/116/medium800/light_Tent_Lantern_62.jpg?1478637244)

![](https://cdn-learn.adafruit.com/assets/assets/000/037/117/medium800/light_Tent_Lantern_63.jpg?1478637252)

Using the needle nose pliers, put a single bend in the center of the wire.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/104/medium800/light_Tent_Lantern_48.jpg?1478637136)

Next, work an M shape into the wire, **making sure to keep the segments shorter than the depth of the tent lantern body.**

![](https://cdn-learn.adafruit.com/assets/assets/000/037/119/medium800/light_Tent_Lantern_65.jpg?1478637269)

Put another bend on either side of the M, only this time make each bend half the length of the first two legs.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/120/medium800/light_Tent_Lantern_66.jpg?1478637278)

Straighten out the rest of the wire.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/123/medium800/light_Tent_Lantern_69.jpg?1478637304)

Using a pair of broad pliers, put a bend into the peaks and troughs of the M shape, so that the whole surface is curved like the beaks of birds.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/121/medium800/light_Tent_Lantern_67.jpg?1478637288)

Rebend the straightened wire to line up with the holes in top of the body.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/124/medium800/light_Tent_Lantern_70.jpg?1478637313)

![](https://cdn-learn.adafruit.com/assets/assets/000/037/125/medium800/light_Tent_Lantern_71.jpg?1478637321)

Push the wire down until the M is relatively flush with the top of the body. Below you can see the curve in the M.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/130/medium800/light_Tent_Lantern_75.jpg?1478637368)

Using broad pliers, curl the wire back onto itself in the channels on the sides of the body, so that the M is able to sit flush against the body. The length of the wire left determines the length of the hanger.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/126/medium800/light_Tent_Lantern_72.jpg?1478637328)

![](https://cdn-learn.adafruit.com/assets/assets/000/037/128/medium800/light_Tent_Lantern_74.jpg?1478637343)

Use snips to trim off the excess wire, leaving a single loop on either side.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/127/medium800/light_Tent_Lantern_73.jpg?1478637335)

![](https://cdn-learn.adafruit.com/assets/assets/000/037/106/medium800/light_Tent_Lantern_50.jpg?1478637155)

![](https://cdn-learn.adafruit.com/assets/assets/000/037/107/medium800/light_Tent_Lantern_51.jpg?1478637163)

![](https://cdn-learn.adafruit.com/assets/assets/000/037/131/medium800/light_Tent_Lantern_76.jpg?1478637375)

The hanger is done!

![](https://cdn-learn.adafruit.com/assets/assets/000/037/105/medium800/light_Tent_Lantern_49.jpg?1478637144)

![](https://cdn-learn.adafruit.com/assets/assets/000/037/132/medium800/light_Tent_Lantern_77.jpg?1478637383)

Now with the hanger, you can put it through closed loops.

![](https://cdn-learn.adafruit.com/assets/assets/000/037/108/medium800/light_Tent_Lantern_52.jpg?1478637171)

![](https://cdn-learn.adafruit.com/assets/assets/000/037/109/medium800/light_Tent_Lantern_53.jpg?1478637181)

![](https://cdn-learn.adafruit.com/assets/assets/000/037/111/medium800/light_Tent_Lantern_55.jpg?1478637201)

![](https://cdn-learn.adafruit.com/assets/assets/000/037/112/medium800/light_Tent_Lantern_56.jpg?1478637208)


## Featured Products

### White LED Backlight Module - Large 45mm x 86mm

[White LED Backlight Module - Large 45mm x 86mm](https://www.adafruit.com/product/1621)
These pretty strips of light are plastic diffused backlights, often seen in LCD displays. Normally they're tucked behind the LCD and shine white light from below. Here, we've got the LEDs available individually and they're really cool! Each LED is encased in a 3.5mm thick strip of...

In Stock
[Buy Now](https://www.adafruit.com/product/1621)
[Related Guides to the Product](https://learn.adafruit.com/products/1621/guides)
### Adafruit LiIon/LiPoly Backpack Add-On for Pro Trinket/ItsyBitsy

[Adafruit LiIon/LiPoly Backpack Add-On for Pro Trinket/ItsyBitsy](https://www.adafruit.com/product/2124)
If you have an ItsyBitsy or Pro Trinket you probably know it's the perfect little size for a portable project. This LiPoly backpack makes it really easy to do! Instead of wiring 2 or 3 boards together to make a charging system, this little PCB sits on top of the PCB and allows a...

Out of Stock
[Buy Now](https://www.adafruit.com/product/2124)
[Related Guides to the Product](https://learn.adafruit.com/products/2124/guides)
### Adafruit Pro Trinket - 5V 16MHz

[Adafruit Pro Trinket - 5V 16MHz](https://www.adafruit.com/product/2000)
 **Deprecation Warning: The Pro Trinket bit-bang USB technique it uses doesn't work as well as it did in 2014, many modern computers won't work well. So while we still carry the Pro Trinket so that people can maintain some older projets, we no longer recommend it.** Please...

In Stock
[Buy Now](https://www.adafruit.com/product/2000)
[Related Guides to the Product](https://learn.adafruit.com/products/2000/guides)
### PLA Filament for 3D Printers - 1.75mm Diameter - 1KG

[PLA Filament for 3D Printers - 1.75mm Diameter - 1KG](https://www.adafruit.com/product/2063)
Having a 3D printer without filament is sort of like having a regular printer without paper or ink. &nbsp;And while a lot of printers come with some filament there's a good chance you've been printing up a storm and need something new. &nbsp;That's why we've started carrying a...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/2063)
[Related Guides to the Product](https://learn.adafruit.com/products/2063/guides)
### Flush diagonal cutters

[Flush diagonal cutters](https://www.adafruit.com/product/152)
These are the best diagonal cutters, large super-comfortable grip to use and have strong nippers for perfect trimming of wires and leads. I've used my pair every day for years.

In Stock
[Buy Now](https://www.adafruit.com/product/152)
[Related Guides to the Product](https://learn.adafruit.com/products/152/guides)
### Aluminum iPhone 4 Phillips #000 / PH000 Screwdriver

[Aluminum iPhone 4 Phillips #000 / PH000 Screwdriver](https://www.adafruit.com/product/890)
We tried half a dozen different precision Phillips #000 screwdriver tools to find the one we liked the most. The body is made from a single piece of aluminum and has nice knurled grips. The end-cap rotates so you can keep the body steady while rotating. The tip is nicely machined and is...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/890)
[Related Guides to the Product](https://learn.adafruit.com/products/890/guides)
### Breadboard-friendly SPDT Slide Switch

[Breadboard-friendly SPDT Slide Switch](https://www.adafruit.com/product/805)
These nice switches are perfect for use with breadboard and perfboard projects. They have 0.1" spacing and snap in nicely into a solderless breadboard. They're easy to switch no matter what size fingers you have, but not so easy that they'll get flipped by accident. Work great as...

In Stock
[Buy Now](https://www.adafruit.com/product/805)
[Related Guides to the Product](https://learn.adafruit.com/products/805/guides)
### Lithium Ion Polymer Battery - 3.7v 1200mAh

[Lithium Ion Polymer Battery - 3.7v 1200mAh](https://www.adafruit.com/product/258)
Lithium-ion polymer (also known as 'lipo' or 'lipoly') batteries are thin, light, and powerful. The output ranges from 4.2V when completely charged to 3.7V. This battery has a capacity of 1200mAh for a total of about 4.5 Wh. If you need a larger battery, <a...></a...>

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

## Related Guides

- [CircuitPython BLE Advertising Beacons](https://learn.adafruit.com/circuitpython-ble-advertising-beacons.md)
- [Pro Trinket as a USB HID Mouse](https://learn.adafruit.com/pro-trinket-usb-hid-mouse.md)
- [Zelda: Breath of the Wild – 3D Printed Guardian Sword with NeoPixel LEDs](https://learn.adafruit.com/breath-of-the-wild-guardian-sword-led-3d-printed.md)
- [Animated Flying Toaster OLED Jewelry](https://learn.adafruit.com/animated-flying-toaster-oled-jewelry.md)
- [Adafruit Pro Trinket LiPoly/LiIon Backpack](https://learn.adafruit.com/adafruit-pro-trinket-lipoly-slash-liion-backpack.md)
- [Portable Trellis Sound Board](https://learn.adafruit.com/portable-trellis-sound-board.md)
- [Zelda Guardian Robot Terrako Companion](https://learn.adafruit.com/terrako.md)
- [Mindfulness Clock OF DOOM](https://learn.adafruit.com/mindfulness-clock-of-doom.md)
- [Glowing Viking Rune wayFinder](https://learn.adafruit.com/glowing-viking-rune-artifact.md)
- [LED Campfire](https://learn.adafruit.com/led-campfire.md)
- [Adding Third Party Boards to the Arduino v1.6.4+ IDE](https://learn.adafruit.com/add-boards-arduino-v164.md)
- [DotStar Fortune Necklace with Bluetooth and Touch](https://learn.adafruit.com/dotstar-fortune-necklace.md)
- [Adafruit Audio FX Sound Board](https://learn.adafruit.com/adafruit-audio-fx-sound-board.md)
- [Wireless Game Show Poppers for the Classroom!](https://learn.adafruit.com/wireless-game-show-poppers.md)
- [Adafruit EyeLights LED Glasses and Driver](https://learn.adafruit.com/adafruit-eyelights-led-glasses-and-driver.md)
