穷人的宝丽来 (Qióng rén de bǎolìlái)
Poor Man's Polaroid

原始链接: https://boxart.lt/blog/poor_mans_polaroid?locale=en

## DIY 热敏“平民宝丽来”相机 本项目详细介绍了使用热敏打印技术(类似于收据打印机)制作即时相机的过程,作为宝丽来相机的有趣替代品,尽管较为复杂。虽然图像质量不如宝丽来,但结果具有独特的魅力。令人惊讶的是,零件成本最初*高于*一台基本的宝丽来相机。然而,运行成本要低得多:热敏打印的成本每个不到一美分,而每张宝丽来照片大约为1欧元。 该相机以树莓派Zero为中心,这是一种小型但功能齐全的计算机,与树莓派摄像头配对。图像处理在树莓派上使用Python代码进行,以调整亮度和对比度,然后再打印。电源由改造的移动电源提供,以实现便携性。 该项目涉及3D打印外壳、定制接线以及按钮集成,用于捕捉和重新打印图像。由于电池风险,在拆卸移动电源时采取了安全预防措施。打印机本身(PT-310型号)通过USB连接并由树莓派控制。最终结果是一款功能齐全、定制的即时相机——是对DIY创造力的证明。代码和联系信息可供那些有兴趣自己制作的人使用。

相关文章

原文

This is an instant camera that uses thermal printer to print photos, the same one that prints your receipts at the store. Photos aren't the same quality as the self developing film that polaroid uses, but they do have some, uhh, charm to them, I suppose.

Title might be a bit misleading though. When I call it poor man's, I mean fun diy project, possibly made by poor hands, and not a cheap camera, since the parts cost me more than the cheapest polaroid.

Although parts cost more, it's cheaper in the long run - one polaroid picture costs around 1 euro, while a picture from this camera is less than 1 cent (50 meter thermal paper roll costs a couple of euros).

Camera

When talking about camera, I have to mention that it's hooked up to a small computer which touches up the image and sends it to printer.

The computer - Raspberry Pi Zero

This is an actual computer, same as your desktop or laptop, albeit not as powerful (unless you haven't upgraded in the last 25 years), but it has ports for monitor, keyboard and mouse, it has bluetooth and wifi. It also has a few pins where you can solder LEDs, buttons, sensors and program them to do as you please.

It also has a dedicated camera which doesn't take up too much space and is easy to use.

Raspberry Pi camera with cable

Some might say this is an overkill, I say this is what I had on hand.

Power

Raspberry Pi needs a power source, you can plug it into a power outlet on the wall, but thats hardly portable, unless, you know, a really looong cable.

You could buy some rechargeable batteries, DC/DC converter, battery charge controller, and make your own rechargeable power source.

DIY power source parts

Or you can get a power bank which has all of the above included and pull it apart, which is what I did. This is somehow a lot cheaper than buying same parts separately.

Power bank, has a battery indicator too!

Get some tools, safety glasses and be careful when using something sharp to pull the power bank apart, because if you puncture the battery, it will burst into flames and it won't be fun. Not as if house fire is ever fun, but at least you can use a bucket of water to put out most burning things, here though, you'll need a bucket of sand to, literally, smother this problem.

Power bank half way disassembled, no fire

Naked power bank, still no fire

Printer

It's like your average printer, but small, requires non average paper and uses heat instead of ink to print. Ok, maybe it's not like your average printer, anyway, here's a couple of them that I have.

Forgot to take a photo before removing front panel

You can connect to it using a cable or bluetooth. So in theory, you could use your phone to take a picture and send it to printer via bluetooth. In practice though, you won't be running a risk of setting your house on fire with a punctured power bank battery and where's the fun in that?

I don't really have anything to add about the printer, got it from China, one cost 20 euros, the other 60 euros, supposedly they are the same model, but of course they are not. In any case, if you want to get one, the model is "PT-310", and, well, good luck.

Case

Whipped out my trusty ruler to measure the weird shaped printer in order to make a case around it.

Would have been a lot easier if it was a square box, but nooo

Whipped out my trusty FreeCAD to make a model and print it on my trusty 3D printer.

Got myself a few parts, case for the printer, case for the battery and computer, these should come together like a sandwich. Plus a few button things and cosmetic parts.

After some sanding checked out how it comes together.

Then sprayed on some primer to fill in some gaps.

And finally - paint, yellow and black looked good in my mind.

Hey, it does look good

Assembly

All what's left is to glue a few things, put in a couple of screws and write a few lines of code. So here are the things.

LEDs - you have to have lights

Added a few leds to tell me what's going on, blue when power is on, green when camera is on, red when a picture is being taken.

Raspberry Pi doesn't have a "power" button, you can shut it down by pulling the power chord or by programming a button to tell it to shut down once pressed. How to turn it on when there's no power button? Pull out the power chord and put it back in, aka power cycling. Instead of doing that, I added a switch which toggles power cable connection. Both of them are inside a panel on the side of the camera.

If you remember the times when after shutting down the PC there would be a message "It is now safe to turn off your computer" and you had to hit the power button, the set up above is basically same thing, good times.

Button to shutdown, switch to power off

Theres another button on the front of the case which takes the photos, here you can see it at the top right, along with computer, battery (below plastic plate to hold it in place) and power buttons with lights.

Inside of the front of the camera

It's a bit messy because of all the wires, but there's no way around it, best I could do is color code them, so I know what is what.

Now the other side of the case - I drilled a few holes in the printer and used screws to attach it to the case.

There's also power bank circuit and a button which when pressed, reprints last taken photo, in case I need two of the same picture (one for me and for you).

Even more wires, fuck yeah. Two for button, four for power and two for a thing I found in the power bank - thermal sensor. If battery overheats, this sensor is triggered and power is cut off, so as to not burn your house down, which is appreciated.

Making it Work

Without going too much into detail, I used Python to code this, because of all the available libararies to work with Raspberry Pi, it's camera and image manipulation. If you're curious - code is below.

Pi camera is decent, but sometimes the picture is too dark, other times there's too much light, because of this, in the code above you can see a bunch of functions which adjust the picture depending on it's brightness.

Different adjustments on the same photo. Hey, Kenny!

I've figured out when to use which adjustment by trial and error, aaaaand we're done.

And here it is in action.

If you'd like to have your own magic photo box - let me know via contacts at the bottom of the page.

联系我们 contact @ memedata.com