LENSanother to improve the overall system’s efficiency. For “We aim to tame the power of mechanical technology, by putting itexample, the LifeTrac tractor can be used to till the soil in the hands of average people to use and modify according to theirwith removable blades via rotary action, beforeattaching its removable power source to the needs. Moreover, we will be developing PowerCubes running onCompressed Earth Block Press to make bricks. As the steam power in addition to standard fuels, using pelletised biomassname suggests, the LifeTrac tractor is designed to lasta lifetime, requires little maintenance, and costs so you can make your own fuel as well”$12 000 to build, compared to at least $25 000 for oneof the cheapest store-bought machines. Marcin Jakubowski Andrew Spina from Baltimore, Maryland, USA With that, Catarina Mota, an accomplished Abovejoined Open Source Ecology specifically to build the researcher and open-source advocate who served on Looking to build yourLifeTrac tractor, “I want to understand it and be able the board of directors of the Open Source Hardware own home? Start hereto maintain it. It’s also a project that will teach me Association (and who also happens to be Creditmany valuable skills. I’ve already learned a ton about Jakubowski’s wife), spearheaded the creation of the Open Source Ecologymachining and CAD,” he reveals. Open Building Institute (OBI). OBI is an immersive training programme that teaches builders and Left The Machine Index of the OSE Wiki describes 50 entrepreneurs how to construct anything from a Staying warm inmachines the Factor e Farm residents feel are single-room studio to a large family home – all in a winter is key to powernecessary for a small off-grid community to sustain sustainable way that utilises aspects of the GVCS. efficiencythemselves. So far, twelve have been designed, Creditdocumented, and prototyped on the farm. According The OBI is Catarina’s attempt to spread the open Open Source Ecologyto Marcin, each costs approximately one-third the source construction model and raise public awarenesspurchase price of a comparable commercial model, of the cost savings potential the GVCS can provide toincluding labour. What’s more, the parts and power those seeking to build their own home.source for every machine are interchangeable. “It’sdesigned for efficiency and cheap maintenance,” says Part of the OBI training programme demonstratesMarcin. “We have proven that the economic sense is how a 700 sq ft (65 m2) home can be built using locally-there: the brick press costs $5000 in materials; the sourced materials for 10 percent of the cost of annearest competitor costs you $52 000.” average new home – furthermore, the construction takes just five days.WE’RE TRYING TO REINVENT CIVILISATIONHowever, the original hope – that people would take Marcin says he hopes aspiring entrepreneurs willthe ideas and run with them, replicating the open- be able to use what they learn to create newsource technology and improving on it until it became businesses: “We envision that DIY builders andcommonplace – didn’t happen. startup entrepreneurs will be our early adopters, and we believe that some of our designs will be adopted “It’s hard to replicate what we do,” admits Marcin,. by mainstream builders, once the open-source“We have to train people. There’s a lot of cultural cost-to-performance advantage becomes clear.”clash with how people do things normally and howwe do them, and so we decided to start thistraining programme.” 51
Open Source Global Village Construction SetFEATURE THE WORLD’S FIRST OPEN SOURCE TRACTOR Right L ifeTrac is a low-cost, multi-purpose full-sized LifeTrac) to 20 000 lb bulldozers, and The LifeTrac needs to open source tractor. The four-wheel everything in between. The machine uses most of handle muddy farm drive, hydraulically driven, skid-steered the same components as LifeTrac to retain conditions tractor is intended to be a minimalist, part interchangeability. Credit but high-performance, workhorse and Marcin built the first LifeTrac in three months for Open Source Ecology $6000 – about $30 000 less than a comparable power unit for any off-grid operation. mass-produced model. Seeing room forDIY improvement, he assembled a second prototype in The project aims to provide a life-size ‘Lego Set’ for just six days and, since starting Factor e Farm,Inspired by Marcin has built a total of six tractors.Marcin’s TED Talk, constructing a wide range of heavy machinery, fromHayden Betts andDaniel Leon, two small, two-wheeled garden tractors, such as thestudents fromPolytechnic School MicroTrac (a scaled-down, walk-behind version of thein California, raised$8200 by sellingt-shirts, bumperstickers, and hatsto pay for thematerials requiredto construct theirown LifeTrac.Hayden and Danielthen donatedtheir LifeTracto the SouthCentral FarmersCooperativefor use on their120-acre farm thatgrows produce forunderprivilegedinner-city families.52
LENSI WAS AMAZED TO FIND THIS Compressed earth blocks are surprisingly strong and AboveACTUALLY WORKS perform as excellent insulators against both heat and Testing the stability of“A tractor is basically a solid box with wheels, each sound, making for a very energy-efficient building. the LifeTracwith a hydraulic motor,” he said. “So, conceptually, Creditit’s actually very simple. And when I first did it, it was “I’d like to be able to show that a full modern Sean Churchlike, ‘Wow, a tractor’ ... I was amazed to find this standard of living can be created from any parcel ofactually works.” land using only the local resources on site in a small Left fraction of the time,” adds Marcin. Up to 200 horse The latest iteration of the LifeTrac is powered by power to utilise for alltwo modular motors, each a single-cylinder diesel The LifeTrac can be used to provide the Liberator your farming needsengine of 27 hp that drives a hydraulic pump. with approximately two cubic yards of soil per hour, CreditHydraulic motors drive the wheels, which operate in providing a six-block per minute pressing rate. A tractor Open Source Ecologypairs to move the 4000 lb tractor on tank-like treads. loader is needed to keep up with the machineWhen fully powered the machine is capable of throughput as approximately 30 people would be 53moving up to two tonnes. required to load the machine manually with shovels and buckets without the LifeTrac. However, using Standardized beams of 4”×4” rectangular tubing these machines in conjunction, three people can buildserve as the backbone of the LifeTrac, along with an a six foot-high round wall, 20 feet in diameter, one footXYZ space frame, bolt-together construction, and thick, in an eight-hour day, though construction timestock bonding and pivot plates that allow for scalable will vary somewhat depending on preparation time andand pivoting joints. While long-term, reliable the quality of the soil.performance will tell if the LifeTrac is worthy of itsname, the results after one year of operation are “I’ve pressed 5000 bricks in one day from the dirtpromising as the hydraulic motors and cylinders beneath my feet and built a tractor in six days. Fromremain leak free. what I’ve seen, this is only the beginning,” explained Marcin. “The highlight of our design is that it is modular andallows for a high degree of modification and flexibility– such as scalable frames, interchangeable powerunits, quick connect wheel drive, and plug-and-playhydraulic power,” explains Marcin. He also notes thata Gasifier Burner may also be used for propulsion in apiston engine, and biodiesel from oil crops or thedestructive distillation of wood (known as Fischer–Tropsch Synthesis) can also provide dieselsubstitutes. Furthermore, the inclusion of a ‘UniversalRotor’, designed to allow for different size and speedmotors and shafts, means the tractor can beconverted into a truck with little more than theaddition of suspension or shocks. In addition to this, a‘Soil Pulveriser’ has been designed to attach to theLifeTrac to be used to smash soil into a fineconsistency suitable for producing Compressed EarthBricks (CEB) using The Liberator, OSE’s automatic,high throughput CEB Press. It can be used to produceup to ten blocks per minute, and the bill of materialscost of the machine is $3000 – $6500, depending onpart availability and the build process used.QUITE LITERALLY, DIRT-CHEAP!The CEB Press takes pulverised soil and uses it toform compressed earth bricks for building.Compressed earth bricks can be made directly fromsoil at the proposed building site, eliminating the needto transport bricks from elsewhere, theoreticallyreducing the cost and environmental impact to build.
Open Source Global Village Construction SetFEATUREDITCH YOUR MORTGAGEFBORRICAKNHEAORMTEH B riana Kufa, 20, of San Diego, is a Cedar Creek, Texas, a compressed earth brick press certified welder who studied was built from scratch by the non-profit organisation, architectural engineering in college. Creation Flame. With the help of Jason Smith, Tiffany Kufa came to the Factor e Farm to learn Kerr, and many others, Creation Flame became the world’s first replicator of the Liberator Compressed how to build the Liberator, the world’s Earth Block Press, and the first independent party to successfully replicate any GVCS machine. first automated, open source compressed “I come from the software world. I didn’t know how earth brick press. “It’s a lot of cutting, a lot of welding, to weld. I hadn’t had much machining experience,” said James Slade, co-founder of Creation Flame. “It a lot of torching, and that’s basically all the skills you took some learning. We made some errors, but if I can do it, just about anybody can do it.” Today, Jason Right would need to make one of these,” Briana explained. works closely with Marcin and other OSE contributors Earth Brick homes on the design, fabrication, testing, and documentation are suitable for “I could probably teach someone how to do those of GVCS equipment. humans and canines Credit things in a day.” Open Source Ecology Commercially manufactured earth brick presses sell Seed Home for upwards of $10 000, but Open Source Ecology’s A 700 sq ft ‘seed home’ packed with Liberator can be constructed for around $4000. In ecological features, including rainwater I COME FROM THE SOFTWARE WORLD. catchment, an I DIDN’T KNOW HOW TO WELD ozone water The Liberator CEB Press is the only GVCS machine to filtration system, reach product release status, and bricks from the press 3000 watt PV solar have been used to build nine studios, a kitchen, panels, super- bathroom, and 3000 square foot workshop on the efficient LED Factor e Farm. These earth brick buildings are lighting, passive constructed with a dual brick wall design that creates a solar heating, a space between the two walls. This space forms an air modular biodigester, transfer block with natural insulation and sound- and top loading proofing qualities. Furthermore, the thermal mass of refrigerator, will compressed earth brick is effective in keeping the cost you less than house cool in summer, while retaining heat longer in $25 000 in materials. winter. Throughout several experiments, Marcin and Catarina learned that it is possible for a group of 3554 people to build the shell of a 24×16 ft structure in just two days. Their latest goal is to develop all the modules necessary to build a Living Building Challenge
LENS Left Make sure you’re wearing eye protection when welding Credit Sean Churchcompliant home, at a reasonable cost by July 2018. “Can you imagine how much lighter your financial burden would beIt’s worth noting that the Living Building Challenge is if your house was made from renewable locally-sourced materials,the highest standard for eco-construction in the world. consumed significantly less resources, and produced most of its “To make the house hackable, we focused on own energy, water and food? Eco-houses should cost less – notkeeping all systems accessible,” Catarina explains. more – than standard houses. This is what we see as the future of“Rather than pouring concrete over the hydronic-heated floor water lines, we buried them in sand. If environmentally and economically sustainable building”there is a leak in the system, we can lift thefloorboards to repair it. The electric lines are not Catarina Motaembedded in the walls, they run along the ceilingedge, inside an easily accessible channel. And the Thanks to Marcin and Catarina’s work, eco-friendly Belowwater lines run along the edge of the rooms, in a housing represents a more affordable and more We don’t recommendchannel under the floor. If there is a leak or if we wish accessible option to a wider range of people than ever sledge hammeringto add another valve, we can simply remove the before. “People are hungry for meaning and your power cubeboards to make the necessary repairs or changes.” authenticity in today’s world. Part of such meaning Credit comes only from seizing one’s raw productive power,” Sean Church Marcin and Catarina are now offering a library of says Marcin. “All of the technology for building anmodular home designs that anyone can download autonomous house exists, it’s just a matter ofand import into Sweet Home 3D, an open-source harnessing them all under one roof.”interior design software. The library of modules isalso open source, and anyone can contribute their For more information visit opensourceecology.org.own designs to it, provided they meet the OpenBuilding Institute requirements. “The design itself will dictate the way that youbuild, but the number of options you can build isinfinite,” says Marcin. Any new designs that meetthe OBI’s requirements are automatically publishedto the library of designs, but a team of advisoryarchitects and ecological building experts select thebest designs to be featured in the website gallery. One of the greatest functional benefits of Marcinand Catarina’s modular approach to construction isthe relative ease with which you can add andremove entire sections of a building. A largeexpansion with the same functionality as the starterhome is expected to cost around $12 000 for a 225sq ft addition, with each additional 225 sq ftanticipated to cost $5000. 55
There’s life in the old radio yetFEATURE A gentle introduction to a whole world of radio technologies56
LENSI t seems difficult to believe when have started with a crystal set and, where a BUILDING A CRYSTAL SET sitting at a bench surrounded by modern technically inclined teen might microcontroller boards and have an Arduino or a Raspberry Pi, their The simplest possible radio is the crystal set, Internet of Things devices, but 1960s equivalent would have had a a tuned circuit coupled to a high-impedance transistor regenerative AM receiver. The earpiece through a germanium or Schottky there was once a time when to a technological advancements that have signal diode. A quick web search will reveal given us the huge range of exciting multiple crystal radio kits, but this is a very large extent electronics meant projects we have at our fingertips today easy circuit to build from parts you have found have been very beneficial to our community for yourself or retrieved from an older scrapsimply radio. We take radio but, in leaving simple radios behind, they AM radio. have allowed us to ignore a fascinatingcommunication so much for granted that it corner of the world of electronics. It’s Looking at each part individually, if you can’t worth taking another look at these find them in a scrap AM radio, you can easilyhas now become merely a component in technologies not to wallow in the past, but buy both the tuning capacitor and ferrite rod for simply because they are interesting. the antenna from multiple suppliers includingthe form of a little wireless module, but in Rapid or Bitsbox. Your scrap radio may provide There are two halves to every radio you with a ready-wound coil, but if not then youthe earlier part of the 20th century it was system: a transmitter and a receiver. Radio should wind 50 turns of enamelled copper wire transmission is tightly regulated in all on the ferrite rod and secure it with tape.the miracle of the age. Amateur radio was countries, so while we are talking about transmitters here, they are only for The diode should be a germanium point-at the cutting edge rather than a niche illustrative purposes unless you happen to contact type, which was once ubiquitous but is possess a legal authorisation such as an now obsolete. You will find them in older scraphobby, and to open an electronics book amateur radio licence. radios and TV sets, but Bitsbox carries the 1N34A type, should you need to buy one.was to see a comprehensive selection of Radio waves are simply electromagnetic radiation, the same as light or radiated A high-impedance earpiece such as olderradio receiver designs. heat. They consist of an electric and telephone units, army surplus headphones, or a magnetic field that oscillates from one crystal earpiece completes the component list.The close association between radio and polarity to the other, and their frequency is The crystal earpiece should be available from the number of times that oscillation occurs multiple suppliers.electronics persisted into the solid state per second. For example in the UK, the BBC Radio 5 Live AM transmitter onera, to the extent that through the 1950s 909 kHz oscillates between polarities 909 000 times per second.and 1960s the word ‘transistor’ was often The simplest radio transmitter producessynonymous with ‘small portable radio’. An this oscillation as an electrical waveform, and induces the radiation by passing thatintroduction to hobby electronics would waveform to an antenna. Supplier addresses Below Bitsbox (bitsbox.co.uk) The circuit Rapid (rapidonline.com) diagram of the simplest crystal set receiver Left The Regency TR-1 from 1954, the world’s first commercial transistor radio Credit Joe Haupt [CC BY-SA 2.0], via Wikimedia Commons 57
There’s life in the old radio yetFEATURE Left A vintage crystal set receiver from the early years of the 20th century Above A Raspberry Pi fitted with a low-pass filter board to be used as a transmitter The radiation travels at the speed of For analogue broadcast radio, you will light, so the distance between the start of probably recognise the two different each oscillation and its end, for a given modulation schemes as AM, for Amplitude frequency, will always be the same. This is Modulation, and FM, for Frequency called the wavelength, and most antenna Modulation. In an AM transmitter, the designs achieve maximum efficiency by speech or music is mixed with the radio matching their dimensions to a fraction of frequency signal to produce a result with the wavelength at their chosen frequency. varying amplitude, while in an FM transmitter the frequency of the radio So, if you build an oscillator and connect signal changes with the speech or it to an antenna, you have created a radio music waveform. transmitter. Were you to listen to it though, you would hear only silence. It has no COMPLETING THE CIRCUIT speech, music, or anything else applied to Both forms of transmission can be received it. To attach some information to your with relatively simple circuitry, but an AM transmission, you must modulate the transmitter can be constructed with the information upon it, and there are many barest minimum of components. A radio different ways in which this can be done receiver captures the radio waves from depending upon the information in hand.58
LENSelectromagnetic radiation through air and FM REGENERATIVE RECEIVERspace into an electrical signal which it thenamplifies and demodulates to retrieve Above For the more advanced or confident constructor, it is possible toinformation such as speech or music. It Our prototype two- make a simple FM receiver with only two transistors. This is amust possess selectivity, or the ability to transistor regenerative regenerative receiver using a J310 field-effect transistor and anarrow down to a single signal on one FM radio receiver 2N3904 bipolar transistor as an audio amplifier, that can be builtfrequency, among the many others that will Below on a piece of prototyping board, as long as it is made with care tobe pulled in by its antenna, and in all but The circuit diagram of the keep all component leads as short as possible.the very simplest of receivers it must also two-transistor FM receiverhave sufficient gain to amplify any signals All the parts should be available from most componentsuch that they can be demodulated. suppliers – try either Bitsbox or Rapid if you draw a blank. The coil is seven turns of stiff enamelled copper wire wound on a With well over a hundred years of 5 mm former, which is removed to leave a free-standing air-development behind them, both transmitter cored coil. You will need to scrape a little of the enamel off atand receiver designs can be anything from about one-and-a-half turns, to solder on a 1 m antenna wire. Ifthe very simple to the extremely complex, you don’t have any enamelled copper wire, follow the exampleand leave many opportunities for the in our prototype and scavenge some from a toroidal mains chokeexperimenter and home constructor. found in a dead PC ATX power supply.Surprisingly this does not mean only theoldest of designs – the latest software- In use, this radio is a little more tricky than those you may bedefined radios have provided a new vista used to because, in addition to the trimmer capacitor which isfor anyone who wishes to tinker with radio, the tuning control, it has the 1 kΩ variable resistor which is athrough free software such as GNU Radio. regeneration control. You should adjust this to the point at whichIt’s worth looking at some of the simplest you hear the noise in your headphones, and tune the radio to aradios to give a basic introduction to radio station. The regeneration may need adjustment for each stationtechnology. We’ll show you the simplest of and, if you can find a plastic screwdriver for the tuning, you willAM receivers, a simple regenerative FM find that it does not cut out while you are adjusting it. With somereceiver, and – even though it is illegal to trimmers, you can fashion a tuning tool from a matchstick.operate without a licence in manyterritories – we will also show you a Our prototype was able to receive several strong local FMtransmitter to help illustrate some of stations in this way. It may not perform as well as a commercialthe technology. radio, but for its simplicity it does quite an impressive job. The earliest radio systems were Coil: Seven turns 560Rdeveloped long before transistors or even on a 5mm formervalves or tubes were developed. Their Tap: 1.5 turns 5pF 3.5mm +9Vowners didn’t have the luxury of socket Headamplification, and thus their receivers had 1uF phoneto work using only the componentsavailable to them. The crystal set, so 1m wire J310 100nF 330k -named because its earliest versions used a antenna crough germanium crystal, is the simplest 5n6possible radio receiver and receives AM RFC 10kbroadcasts. It uses a minimum of parts andhas the handy bonus of not requiring any 1k 2N3904 BE 1nF 7-50pF GATE 2uH Trimmer Regenerative Tuner Audio Amplifier J310 pinout 2N3904 Gate pinout Source C B Drain E 59
There’s life in the old radio yetFEATUREbatteries, but with the penalty of working results for very little outlay. With a bit of sensitive on the particular frequency it isbest with only the strongest of stations. It searching, the parts can be scavenged tuned to. Regenerative radios can be madeconsists of only four components: a coil of from scrap electronic devices, making it an to work at many frequencies – includingwire and a tuning capacitor that together extremely cheap first radio project. the FM broadcast band, where they aremake a tuned circuit to select a particular probably the simplest way possible tofrequency, a germanium diode to recover If AM and a crystal set is a little tame for make a receiver.the speech or music signal from the radio you, simple radios don’t stop there. Thesignal, and a crystal earpiece to play the regenerative receiver was one of the THIS IS LONDON CALLINGsounds to the listener. earliest improved radio designs, and uses a Probably the simplest transmitter possible single transistor or tube as an amplifier for most readers will come from a A crystal set may be extremely simple adjusted to the point at which it is almost surprising source. The Raspberry Pibut, given a long piece of wire as an oscillating. At that point its selectivity is contains an oscillator designed to provide aantenna, it can deliver surprisingly good hugely enhanced, making it much more clock signal to peripherals, which some clever hardware hackers realised could beHARMONICS AND LOW-PASS FILTERS repurposed into a low-power transmitter. The PiFM package can be readily A transmitter that is capable of producing a pure sine wave should in theory only emit one single downloaded and, as its name suggests, it frequency. Unfortunately it is almost impossible to produce such a perfect transmitter, and inevitably turns the Pi into an FM broadcast any real-world device will produce an element of distortion. This distortion appears as spurious transmitter. By connecting a piece of wire frequencies at multiples of the original, referred to as harmonics. A transmitter producing square to a GPIO pin and running it, you can waves, such as those from the Raspberry Pi’s clock generator, will contain a significant proportion of transmit for a short distance, perhaps these harmonics, enough to cause interference to radio users on other frequencies. All transmitters throughout your house. will therefore contain some form of low-pass filter designed to only let through frequencies below a certain point. The low-pass filter is a network of inductors and capacitors calculated for a particular As we mentioned earlier, though, running cut-off frequency. The figure shows a design calculated by the Qucs circuit simulation package for your own transmitter without a licence is a filter with a 120 MHz cut-off. The component values are calculated by the software; a real-world illegal in most countries. This is partly for version of this filter would use the closest available off-the-shelf values. bureaucratic reasons, but also it is this way because part of the licence conditions Above mandate that any transmitters have good A low-pass filter designed using spectral purity (which is to say that they the Qucs simulation package must transmit on only one frequency). If your transmitter also interferes with your local emergency services or air traffic control, then obviously it shouldn’t be allowed to continue, and that is why government agencies, such as OFCOM in the UK or the FCC in the USA, have teams enforcing the technical side of the licence conditions. With a tiny transmitter such as the Raspberry Pi you might get away with it, but to ensure that it or any other transmitter does not emit on other frequencies, you will also require a filter on its output.60
LENS SOFTWARE-DEFINED RADIO ON THE CHEAP The radios described so far owe their roots to a much earlier age in radio experimentation. The cutting edge of the radio engineer’s art lies in software-defined radio, or SDR, in which the hardware simply digitises a piece of radio spectrum into a computer, and all the signal processing work is performed in software. Unusually for a cutting-edge technology, SDRs are extremely affordable thanks to a happy accident when a commodity USB TV receiver chipset was found to have an undocumented mode allowing it to be used as an SDR. The Realtek RTL2832-based USB sticks can be bought for under £10, and readily form a software-defined receiver that can have a bandwidth from 30 MHz to 2 GHz. They work with the free GQRX, SDRSharp, and GNU Radio software, delivering a lot of scope for radio experimentation at pocket-money prices. A low-pass filter (a network of capacitors Above Different countries have their own routesand inductors calculated to let through only The internals of an RTL2832 to getting an amateur radio licence, but infrequencies below a certain point) removes USB stick, a cheap SDR that most cases one can be yours for passing aanything above the desired frequency. can be had for under a tenner technical examination. Credit Calculating component values for such a Dsimic [CC BY-SA 4.0], via In the UK you can find more informationfilter is beyond the scope of this article, but Wikimedia Commons from the RSGB (rsgb.org), and in the USAfortunately you can locate plenty of freely from the ARRL (arrl.org), but then all otheravailable software such as the Qucs radio is a logical next step. As part of the countries will in turn have their ownsimulation suite (hsmag.cc/nuYhkD), global regulation of the radio spectrum, similar organisations.which can be a great help if you want to there are multiple internationally agreeddesign one for yourself. frequency bands upon which However you experiment with radio, private experimenters can get a licence to though, have fun and let us know what youAMATEUR HOUR operate using any transmitter that meets build. Tweet us at @HackSpaceMag orIf you are new to radio, then maybe the the regulations, including ones they have email at [email protected] here has given you something made themselves. The result opens up aof a taster for what can be an extremely hugely varied array of different radiointeresting and multifaceted field of technologies, from satellites throughelectronics. You may be happy to play with computerised data modes to atmospherica simple regenerative receiver or a cheap propagation research, television, andRTL software-defined receiver but, if your much more.interest goes further, the field of amateur 61
Alec Steele INTERVIEW HackSpace magazine meets… ALEC STEELEBecause there’s nothing cooler than hot metal here’s something literally awesome about blacksmithing. The heat, the T noise, the glowing lump of metal at the heart of it all. It’s incredible to think thatALEpeopledidthiskindofworkcenturiesago without lathes or power tools or modern knowledge of chemistry. It’s almost as incredible to think that anyone’s doing it nowadays – demand for horseshoes, weapons, and agricultural implements has dropped massively since the end of feudalism and the Industrial Revolution. For anyone to make a living as a blacksmith these days, they have to be doing something a bit special – and what Alec Steele’s doing is special indeed. We went to speak to Alec and take pictures of shiny stuff – we weren’t disappointed. Read on for an instruction manual of how to make Damascus steel, why perfectionism gets things done, and the best reasons for making stuff that ,Ewe’veeverheard. 62
EECELELENS Above “When I was 11 I saw this blacksmith hammering on a piece of steel and thought it was the craziest thing. Fire! Hammers! Loud noises and sparks! What more does any 11-year-old kid want?” 63
Alec Steele HACKSPACE First of all, tell us about Damascus steel: what is it, and how doINTERVIEW you get those wonderful patterns in the metal? is borax, basically – disodium tetraborate. temperature is where there’s like a phase The flux supposedly helps clean your change in the steel or something like that, ALEC STEELE The way I’m makingwelding surfaces as it welds, and helpswhere it converts to austenite. Then what Damascus steel now is I’m takingseal it from oxygen. You don’t want anyyou do is you cool it down very quickly so alloys of steel with different chemicalimpurities in there, otherwise they’reyou can form martensite crystals (I think! compositions. The first alloy of steel isgoing to end up in the final piece. If youI’m no scientist, but I’m pretty sure that’s one that has a high carbon percentage,have a void in the final piece, you’re goingwhat’s happening). 0.8% carbon and not a whole lot else.to have a big problem. There’s a tiny little bit of manganese and The practical reality of that is that stuff like that, but it’s essentially plainFrom there you heat it back up, toyou heat it up, you cool it down fast, 0.8% carbon steel. That holds a good edge,something like 1300–1400 degreesit gets hard. It gets very brittle though it’s good for a knife.Celsius. At that point it’s a bright, high – it can almost be as brittle as glass. yellow, almost white. The surface of the So then what you do is you heat it to a What we then do is we add anothersteel can sometimes look as thoughlower temperature and hold it at that steel to it that has 0.8% carbon, and alsoit’s bubbling. It’s as hot as it gets, and ittemperature for a certain amount of time. 2% nickel. That nickel doesn’tcan be painful to even look at if you’reThis is called tempering. That takes what affect the edge quality at all,really staring at it. It’s beyond red, it’sis very, very hard and brittle, and you’re it’s still great knife steel, butbeyond yellow, it’s white. At that pointallowing it to be tough, flexible, be able to when we make something, we You’re creating this keep an edge, but not have the ”then polish it. We put it in acid interesting mosaic of steel edge break and be too friable, as you continually develop the too brittle. So the tempering is and the nickel will resist the important. These are the things pattern and move it around to that really make a blade. You’reAL” Eetch.It’salongthelinesofhow constantly trying to balance stainless steel is more resistantcreate different patterns between cutting something to staining because it has the really well and it not being chromium and sometimes alsowhen you hammer it, or when you press able to cut after the first time the nickel. it, the surface of the steel, the different you use it because it breaks or By bumping the nickel percentage up welayers are to some extent molten and bends or something like that. increase its corrosion resistance, so we’rewill create a bond, but you still have theIt’s all about getting this equilibrium of able to put it in acid and have the plainclear differentiation between one alloyhardness and toughness, and all about carbon steel etch away, leaving the nickeland another. getting the right equilibrium of blade steel proud on the surface, and we can geometry that’s going to be cutting then polish the nickel steel. It gives us aStarting off, you have straight layersthrough well enough, but also well enough relief where we’re able to polish and showof steel. But when you draw it out,supported for the task at hand. the contrast in the patterns. That’s themanipulate the pattern as you go, you general principle behind it, and that’s howcut it, re-stack it, you’re creating thisHS Is this the same process no matter we’re getting the patterns in the steel.interesting mosaic of steel as youwhat you’re making? continually develop the pattern and move HS How do you go about making twoit around to create different patterns.AS You don’t put on a splitting axe the different styles of steel come together in same edge that you put on a straight one object? There are people who will twist the razor, because the splitting axe doesn’t Damascus, there are people who will cut want that edge. That edge is going to roll AS We stack up the bits of steel – theyinto it to reveal different layers in theover and chip and get damaged and be no steel, there’s all sorts of stuff that you can use to the splitting axe. Whereas on theEstart as individual little coupons of steel straight razor, while you still need to cut,and we tack-weld them together, so they do to make interesting patterns on the you need a very thin edge, but you’re notdon’t fall apart as they’re going in and out finished thing. going to be subjecting it to a lot of impact,of the fire. Then we go to the forge. We From there you forge the blade, and so you can have the thin edge. It’s aboutheat it up in the forge until it’s a yellow or then you grind the blade and get ready creating the right balance. In making aan orange temperature – not to welding for heat treat. The heat treat basically blade, that’s the start: it’s the balance oftemperature, but just to the degree that we involves taking the steel in its normal the different attributes of what the steelcan close it up so air is less likely to get in state, heating it up, then quenching it in will give you and what the geometry ofthere. Then we can apply some flux. Flux oil at the critical temperature. The critical the thing you’re making will give you.64
AboveEECELELENS AboveThese are cucumber “I’m really happyplants, growing in with the things thatwater contaminated I’ve made. But thatwith varying amounts doesn’t mean thatof arsenic I’m not committed to doing a hell of a lot better tomorrow.” 65
Alec SteeleALEEINTERVIEW Above Alec learned from books, asking experts, from internet forums – but most of all, by doing 66
So from there, you polish the thing. LENS And it takes a long time and a lot of effort to polish it well enough that you can get usually to a 400-grit finish, then I’ll take it makers and craftsmen out there have a good etch. You have to take it from your to a buffer, which will then take the burr spent decades trying to acquire. belt grinder — it looks like you’re leaving that’s created from that, get it nice and a flat finish, but a belt grinder won’t leave clean and finally, get a sharp edge that It takes incredible discipline, it takes a flat finish, there’ll be a lot of scratches,will make a mess out a lamb chop. incredible understanding of the basics, and they’ll be in the wrong direction. it takes incredible skill and knowledge, The scratches that a belt grinder makes HS Sounds easy! years of practice to be able to get to that are typically going laterally to the blade, level. The great thing is that someone who which is problematic because the blade is AS It is. It’s just really tiring. has got to that level would be able to take not going to have a perfectly flat surface. a bit of steel and basic tools and knock HS We made our own little knife in anything I could make out of the water Grinding will stop at, say, 400 grit, but issue 2, the most basic knife possible, in a similar amount of time, just because to be able to switch the scratch pattern admittedly, and for that we used 1080 they know the basics so well. Because around, we then have to go back to 80 or steel, so that terminology rings a bell. they know the foundational principles. 120 grit with the hand sanding and put the Just a blank of steel, get a pattern on paper, cut it out with a hacksaw, file, it, We think we need crazy amounts ofECscratchesalongthelengthoftheblade, heat it, temper it (if I remember rightly, tools to do anything, and it’s nice to have so that when it’s etched you can have a we used engine oil), and that felt really all the tools, and if you can have the tools, nice polish. It takes hours and hours and cool, that you can do that with just a it’s great. But you can do superb work hours to build those grit scratches back up blowtorch and a hammer. Nothing at all with very little, really. It’s pretty cool to to 400 grit so you can get the clean finish. like this beautiful expanse of power tools see when people are capable of pretty When it’s ready for the etch, we’ll then go that you’ve got here. awesome work with minimal tooling. into a 10% ferric chloride solution. AS I’m working on something similar HS You make it sound like you’re just an HS This is the whole blade we’re talking right now. I’m making a blade with just apprentice to your craft, when anyone about here, not just the cutting edge? basic hand tools. This here, it’s all going looking around here and noting all to be finished out with just files and some the stuff you’ve made would probably AS Absolutely. We polish the whole blade sanding, just a hand hammer, an anvil think you’re already damn good at the and, to reveal the Damascus pattern, we with no complex bits of tooling. I’m going blacksmithing game. To me it looks like you’ve pretty much cracked it.EE” LEthengointotheetch,which It takes incredible discipline, it is ferric chloride. You leave takes incredible understanding of AS No! I’ve not cracked it at all, it in there until the carbon the basics, it takes incredible skill honestly, I’m still very much steel etches away and the and knowledge, years of practice to a beginner. Every single day nickel steel will stay where there’s a torrent of information it is, so you’re going to get be able to get to that level being thrown at my head from this negative. Then after the the material I’m working with. etch, and various processes to be using a power drill to drill a hole in it, I’m learning so much. I am at the afterwards, you have to take but everybody’s got a hand drill right? very beginning of my journey a 2000 grit over the nickel of craftsmanship, of learning steel to polish up the nickel, It can be made a lot simpler – making stuff, of creating things; I like to ”shine up the high spots. You stuff with steel, making knives, it can think that’s because I’ve got high get the beautiful contrast between the standards of where I want to two, and that’s essentially it. end up. I want to be able to make works of Obviously you need to sharpen the blade. art that people are going to appreciate for Sharpening a blade is complex, but it can generations to come. And that’s a high standard, you know.be made a lot more complex than it needs be done with seriously limited tools. It’s If you want to be making the best stuffto be. What you’re essentially trying to the fundamentals that are key. I don’t that’s going to be appreciated by yourdo is bring steel down to almost nothing, consider myself a knife maker, I consider great-grandkids, you’ve got to set youralong a straight line, while making sure myself a blacksmith who’s just getting standards high. It might look like I knowyou don’t have a burr that’s going to mess into knife making. It’s such a complex what I’m doing, but not in the details thatwith your cuts. craft: the attention to detail that’s I want to be really, really focused on. IGetting back to reality, what I will do required to make great blades that many want to be able to have a very high degreeis take the edge on a secondary level, thousands of extremely talented knife of control over what I do, so that what 67
Alec Steele is made is exactly what is in my mind’s eye. I don’t want to let the material takeINTERVIEW control, I don’t want to let the tools take control. I think that’s one of the greatest Left things about craftsmanship, that people This Union Flag is in the steel itself, an effect are able to get so incredibly skilled at a achieved through careful beating and cutting craft, to the point where there is nothing between what they imagine and what you want to be a mountain right here, but I guess the makers tried”. We expect it to they create, other than their own sweatwe’re going to blow you up and put a roadwork. We expect it to be exactly what was through you”. That’s what we do: we take intended. And this is the beautiful thingALEandhardwork.That’srealskill:theydon’t ownership of the world and we make sure about craft. Generations behind us, people ever have to say “it turned out like this”;that we make what we want from it. have made things with unbelievably they say “I made it like this”. minimal tools exactly as they intended, Every single scratch, every single If there’s a big river and we want to because of skill, because of determination, micron on this blade is exactly how Idrive across it we say “OK, let’s build a because of the discipline of their craft. intended it. There are people who can dobridge”. Engineers make sure they build that – OK, so maybe not to the micron,a bridge and they make sure they build The first steam engine – imagine maybe every 10 or 50 microns. But wherein the allowances to account for heat having to make the first steam engine every 100th of an inch is exactly plannedexpansion and cooling, and the differentwith the tools that were available to for, or exactly wanted. I’m not necessarilyseasons and account for exactly how you then! That took some doing. That saying they drew it out, but they intendedmuch load’s going to be put on it, andtook some serious thinking, some it to be exactly like this. There’s not abe sure that they build a bridge that isserious willpower to make right, some single mistake in there, there’s not aexactly what is required, provides what serious craftsmanship. single thing that they haven’t rectified tothey want, and does the job to the greatest make better. There are people out theredegree of perfection possible. That’s what Something that I very often fall prey who can do that. And they do it everywe do. We don’t pick up an iPhone and say to every single day in the workshop is single day. That takes some serious“Oh golly, my iPhone doesn’t work today. saying “that’s good enough”. We wouldn’t discipline and an unbelievable dedication have all the nice things we have in the to the craft. world if people before us said “that’s And that’s why I describe myself as a good enough”. beginner: the material is still taking meEin certain directions. It’s the ownership HS Arguably. Maybe we wouldn’t have anything at all if nobody said “that’s good enough”. AS There’s tolerance to it, right? You could say that you want a blade that’s bang on 6.253 mm thick, and I end up with 6.2531…over the material that’s the really excitingthing, and I think one of the biggest rootsof craft in all of human pursuits. It’ssaying to the things around us, “I know Right See if you can spot the Baratheon war hammer in this picture in time for series 8 of Game of Thrones68
ECyou’reoff,that’snotperfect.Perfection LENS doesn’t exist; what there is is a degree ofRight tolerance that you’ve got to work with.If you like long shots of sparks Obviously at some point you’ve got tocoming off hot bits of metal, you’ll say that’s good enough. But the standardlove Alec’s YouTube channel: is very high historically, it’s high in thehsmag.cc/ShEXZH cars we drive, of course. Tolerance is important and I don’t want to act as if I’m trying to make sure that I can craftAS I’ve not got anywhere near to thethis thing. I ended up using cocobolo; it things to a micron by hand with a file anddegree of excellence that I’d like to get inhas these beautiful carved facets where I a toothbrush, for goodness’ sake. What Ithe pieces that I’ve made – again, I’m awas paying more attention than I’ve ever mean is that the tolerance has to allowbeginner. But the best thing I’ve made sopaid to making sure everything’s straight, the thing to work to the best that it can.far is the kris. It’s not an authentic kris byeverything’s neat and even and equal, soEELEHSWhat’stheclosestyou’vegottothis any stretch of the imagination, but what that when it gets picked up you don’t look mythical state of perfection? Do you haveit is is a wavy blade. It has this sinusoidalat it and look closely and go, “that doesn’t a favourite thing that you’ve made?shape, and it’s a double bevel, a daggerlook square, that doesn’t look centred”. with an 18-inch-long blade. You’re trying to do justice to the thing You have to have this bevel going up that you want to make. If you say that this sinusoidal shape, and you keep the you want to make a nice clean piece of bevel centred, and you make sure that you work, you’ve got to make sure that things have an even finish the whole way down. are square and neat and centred, and It’s made in Damascus steel, which itself your own two hands are to blame for requires a lot of thinking to get right (and every single fault along the way. Every I didn’t get it as right as I wanted). It’s got single mistake in there is your fault. this integral guard, so instead of there And that’s pretty fun, because you can being a guard that’s placed on after the always improve: you’re always going to be fact and it’s attached on, it’s forged out making mistakes. of the material. So the Damascus flows in and out of this guard. The transitions I look up to incredible craftsmen who between these points are very difficult, it’s do incredible work and I go, “Oh my very easy to mess it up. goodness, how could you do better than that?” But I tell you what: they’re looking That then transitions into a keyhole at the same things and going, “Man, I handle; keyhole was invented by Rodrigo messed this up”, looking at all the flaws Sfreddo, who is a Brazilian knife maker. that you or I would never notice. There are You have this cut-out in the steel that tens of millions of craftsmen who have looks like a keyhole, and you have to gone before us who have made extremely get the wood to fit in there tightly, you clean work with only their two hands by don’t even have to pin it. You don’t need having an extreme mastery of the craft. to use any glue between the wood and I find that really inspiring, and really the metal. It’s so tight that there’s no air, exciting. What’s to stop me from making there are no gaps, the wood doesn’t go better work? Nothing more than my ownAbove anywhere because the pressure of the determination to make it happen. NothingAlec’s making this knife from a piece of 1080 steel metal is holding it in there. It took ten more than my ability to learn from myusing only hand tools – like we did in issue 2 tries for me to get the wood to fit right. I mistakes the day before. And hopefully spent seven days alone on the handle of improve and get better. 69
Improviser’s Toolbox: MatchsticksFEATUREMATCH STICKS For something that’s essentially made up of just two components, a matchstick is an extremely dexterous toolMayank Sharma H istory would have us believe that ignited the match by dipping it into a small bottle the ability to start a fire has a filled with sulphuric acid. The match didn’t get much @geekybodhi direct correlation with the growth attention because of the dangerous and expensive mixMayank is a Padawan of human civilisation. It was our of ingredients.maker with anirrational fear of drills. ancestors’ desire to control fire that The first friction matches came along in 1826, whenHe likes to replicate John Walker combined a paste of sulphur with gum,electronic builds, distinguished them from animals. While potassium chlorate, sugar, and antimony trisulphide,and gets a kick out and ignited it by drawing the match between a foldof hacking everyday we gained control over fire more than a million years of sandpaper. His matches however were consideredobjects creatively too dangerous, and were even banned in France and ago, matchsticks are a fairly recent invention. Some of Germany. Charles Sauria then reformulated the match72 using white phosphorus, which turned out to be the earliest examples of matches are the Chinese fire dangerous in other ways. sticks from 577 AD that were used by the women of a The calls for banning white phosphorus matches led to safety matches that were devised by two Swedes. town to ward off invaders. First, Gustaf Erik Pasch in 1844 proposed placing some of the match’s combustion ingredients on a separate Over the years intrepid alchemists have generated striking surface, rather than incorporating them all into the match head, as a precaution against accidental heat and fire with many chemical reactions. In 1680, ignition. This idea, along with the discovery of the non- toxic red phosphorus, led J. E. Lundström to introduce Sir Robert Boyle produced a safety matches in 1855. Although safety matches posed less of a hazard, many people still preferred the flame by scratching a splinter convenience of strike-anywhere matches, and both types are still used today. of sulphur-coated wood on Modern matches are manufactured in several a piece of paper coated with stages. In the case of wooden-stick matches, the matchsticks are first cut and soaked in a vat filled with phosphorus. Jean Chancel, a dilute solution of ammonium phosphate. They are then dried and inserted into holes in a long perforated the assistant of famous belt, which dips them into several chemical tanks before they are dried and packaged in boxes. French chemist Louis Jacques Thénard, gave us the first modern self-igniting match in 1805. The head of this match was made from a mixture of potassium chlorate, sulphur, sugar, and rubber, and the user
LENSMATCHSTICKROCKETS Project Maker WAREN GONZAGA Project Link hsmag.cc/PTQtqXE ver since he was in middle school, Above Did you Waren Gonzaga dreamt of working Waren is a true rocketeer, and says that he even enjoys the know? for NASA and building rockets. Since “smoke from the failed rocket launch attempts” The hobby of he couldn’t find a hobby class to pursue by experimentation. His Instructables page has collecting match- details on the science involved, along with lots of related items his interest in his city in the Philippines, illustrated build information to help anyone replicate like matchboxes, the project. The construction involves wrapping a matchbox labels,he decided to enrol in Mike Warren’s Rocket Class piece of aluminium foil around the strikeable tip of the and such is known matchstick. Pinch the foil at the top to make sure the as phillumeny.on Instructables.com (hsmag.cc/ZbtTMu). Waren exhaust is directed towards the bottom to achieve lift-off. Waren experimented with several designs and ALERT!wanted to build a solid propellent rocket but couldn’t shares details about the failed ones, along with the successful ones. Matches arefind a shop from where he could source the materials. flammable, and some of these“Also, I am not aware of any law regarding making projects shoot flaming stick.and launching rockets,” he adds. He remembered Make sure there’s nothingseeing an article from NASA on matchstick rockets flammable near by and bear insome eight years earlier. Since that article lacked mind that they may not endspecifications, Waren decided to construct his rocket up where you expect. 73
Improviser’s Toolbox: MatchsticksFEATUREMATCHSTICKCRAFTSProject Maker A few years after a classmate bought a glue and can be easily duplicated with a little bit of cube made of matches for one of the patience and lots of matchsticks: “The motivationCORDELL VON projects in Cordell’s high school design behind my matchstick creations is to make somethingMALEGOWSKI impressive out of what is a seemingly simple object. class, he decided to make one of his It is also to inspire others by showing what can beProject Link achieved with some time and patience.”hsmag.cc/vLrLnH own. “After some trial and error I was Like the Buddhist monks who destroy a mandala able to make it and then I made a video on how I on completion, Cordell lights up his creations once they’re done: “The reason I burn them after is mostly made it. As that video became popular, I made a few for the entertainment value. As they are made from matches, it’s what most people would expect and more matchstick creation videos, with one of them want me to do.” becoming my most viewed video,” shares Cordell. All his videos detail each and every step, with clear and detailed annotations. Unlike the majority of matchbox crafts, most of Cordell’s are put together without Right The matchstick creations serve no practical purpose but, as Cordell suggests, they do make excellent gifts74
LENSMATCHSTICKGUNI f you’ve ever had the desire to rain flaming arrows on your enemies, follow Grant’s project to unleash your medieval warrior. He converts a regular clothes peg into a piece of desktop weaponry that canshoot matchstick arrows over 20 feet. “When I madethat project, I had a small son who instantly fell in lovewith it, and he had me make a few more so we couldrun around the house having matchstick wars. It was agreat way to bond, father and son”, shares Grant.To make the gun, simply remove the spring from theclothes peg and place them back to back. Then carve Project Makerout the channels for the arrows with a utility knife, and GRANT Above THOMPSON Let’s be clear, shootingcut a small notch to hold the spring. Then, glue the pointy or flaming projectiles Project Link is dangerous. Be sensiblepieces back together and attach the spring. Grant’s hsmag.cc/YVMpqD and safe if you decide to recreate this project.Instructable has detailed illustrations that’ll help youeasily repurpose the clothes peg.MATCHSTICKPUZZLESU narguably, the most popular non- Project Maker incendiary use of matchsticks is to build puzzles. Matchstick puzzles DAWIE VAN HEERDEN became popular in the 19th century, and Project Link are perhaps the earliest examples of hsmag.cc/YBcMrKboard games. Dawie van Heerden from Cape Town, challenge and is tagged with one of the four difficulty levels: easy, medium, hard and extreme. Thanks toSouth Africa has always been intrigued by “these the images, you can replicate the puzzles offline with real matchsticks with little trouble. Each post also haslittle sticks with their rounded heads”. He has been an illustrated answer, and you can browse the blog without accidentally revealing the solutions.collating matchstick puzzles on his blog, that’s ranked Above Dawie is the creator ofamong the Top 100 Puzzle Blogs on the web. He the Quickstick board game (quickstick.has been posting puzzles since 2011, and the blog info) which challenges you to solve digitalcurrently has over 500 puzzles. Each puzzle post numerical puzzleshas a matchstick illustration, along with a textual 75
Download the appOut now for smartphones & tablets 2SA5V%E with an annual subscription£2.29 or £26.99rolling subscription subscribe for a year
FORGEHACK MAKE BUILD CREATE Improve your skills, learn something new, or just have fun tinkering – we hope you enjoy these hand-picked projects 9PG2 PG 78HOME ASSISTANT MSCAHOKOILNOFG Start your journey to craftsmanshipControl your IKEA lighting with these essential skillswith a Raspberry Pi 78 Arduino 9PG6 82 Wearables 88 DécoupageLBEADOPBAANOEL 10PG6 11P0GTessellated triangular lighting AMAZONinspired by the iconic bags HACKING ECHO AN RC CAR10PG0 Keyboards are so 2017. Upgrade your miniature It’s time to control yourHOMEMADE GIN clunkers with a bit of 3D builds with your voice printing and a micro:bitThe perfect way to relax aftera long day in the workshop10PG2ROBOT SUMOCan you build theultimate fighting bot?
Arduino programming: multiplexing, operators, and four seven-segmentsSCHOOL OF MAKINGArduino programming:multiplexing, operators,and four seven-segmentsUse the simple power of operators to multiply your project's capabilities without adding code L ast month we had fun getting a seven- you’ll know that we needed to use a total of eight pins segment display to work and writing on the Arduino to control the display, exactly as we the code to make it show something would if we were driving seven LEDs separately, which useful. This month we’re going to is all a seven-segment display really is. With eight pins taken, there aren’t enough remaining on a normal expand on those foundations to build Arduino to handle another seven-segment display, let alone another three. So how is it going to be done? something four times better. Four times The answer to this was also in the last issue, though not in the seven-segment tutorial. It was part of theGraham Morrison better exactly, in fact, as we’re going to upgrade our LED section listed as ‘multiplexing’ (see right). @degville hardware from a single digit to four, transforming the Below With multiplexing, you can light up more LEDs than you've gotGraham is a veteran humble seven-segment into something capable of far pins for. Bring on the blinkenlights!Linux journalist who ison a life-long quest to more – numbers up to 9999 in base ten, and even afind music in the perfectarrangement of silicon few words. The first thing that likely crossed your mind with this plan, apart from trying to work out which swear words can be shown, is how this is all going to be wired to a humble Arduino. If you followed our tutorial last time,78
FORGE The main problem with multiplexing is that you can or anode. Those last four connections are going to YOU’LL NEEDonly turn on one segment at a time. Turn on any more be used to multiplex the limited digital connectionsand other segments on other digits will also light up. from the Arduino to the display. See the Wiring box 1 × 3461BS displayThe solution to this is to light each LED briefly as (overleaf) for more details on how to connect these to 7 × 330 Ω resistorspart of a cycle through the LEDs that need to be lit. the pins on your Arduino. 20 × patch cablesIt may seem remarkable in an age where computers Arduino Unotake seconds to boot and webpages minutes to load, CODE WORDSbut the Arduino can do this quickly enough that the With everything wired up, we can finally start 79persistence of vision effect, where your eyes still see playing with some new code. Rather than start froman object for a brief moment after the object is no scratch, we’re going to augment the code fromlonger visible, makes them appear solid. last month, both to avoid repetition and to provide some continuity, but the code can be grabbed The specific unit we’re using is a 3461BS four-digit from git.io/vAS8Y.seven-segment display, although each digit also hasa decimal point. This unit has twelve pins, six on the With the old code loaded into the Arduino IDE,top edge and six on the lower edge, and while other we’re going to start at the top of the file withfour-digit displays may place these pins in different something we should have added initially – codelocations, the physical configuration will be the same to automatically handle whether your seven-after you’ve identified (from the unit’s specification segment display uses a common anode or commonsheet) which pin does what. The specification for our cathode configuration, as explained last month.display uses pins 1,2,3,4,5,7,10, and 11 for segments As programmers, we should be making as fewE, D, decimal point, C, G, B, F, and A respectively, assumptions about the people using our code asand pins 6, 8, 9, and 12 for the common cathode possible, and that often means making things that could be specific more generic. In this case, we start MULTIPLEXING by setting a global true of false value for whether a common anode display is being used: Multiplexing allows you to drive multiple LEDs, ergo multiple seven-segment displays, by taking advantage const bool ANODE = true; of the way LEDs use a potential difference in voltages to activate rather than just simply being ‘on’. This This line does nothing on its own but, like the array dependence on a differential means that if the two we used to hold the pin order for the connections, pins connected to a segment are set the same, such it’s used by later logic to change the behaviour of the as both being set to HIGH or LOW, the LED won’t code. If we were using old-school C, we’d typically light, whereas any difference in the two connections, use a #DEFINE statement to declare a global constant such as LOW and HIGH or HIGH and LOW, will light value like this. The compiler then effectively swaps the LED. This behaviour can be exploited by wiring a defined value whenever it is referenced within the multiple LEDs or segments to a grid of crossing code. But for Arduino’s Processing language, const is connections. As long as each pair of connections is recommended as it better obeys the rules of variable unique, such as (A,B), (A,C), (B,C), the specific LED scoping, which means they’re far safer when working using those connections can be targeted. This saves with multiple files. your breadboard doubling as a tapestry loom, but it also means you can drive many more LEDs with BITWISE OPERATORS the Arduino’s humble allotment of digital I/O pins. The only part of the code that cares whether the However, there’s one significant caveat: only one display we’re using is common anode or cathode is element or segment can be lit at any one time. Try to the part that sets the HIGH or LOW values for the turn on more than one and the crosstalk in the wiring segments. This is because a common anode display matrix will light other segments too. requires the opposite signals to the common cathode. The behaviour can be described using something called a ’truth table’, which is a very useful tool for understanding your hardware requirements and how they might best be implemented in code. In our case, a truth table can be used to show how we want to reverse the output depending on whether we’re using a common anode configuration or not. Using 0 for off and 1 for on, the table would look like the following:
Arduino programming: multiplexing, operators, and four seven-segmentsSCHOOL OF MAKING QUICK TIP WIRING input 1 AND input 2 are on, or they turn on output if either input 1 OR input 2 are on, including both inputs. While we definitely To wire this up, connect the following Arduino pins to Their truth tables look like the following: recommend the those segments indicated on the display, via a 330 Ω use of resistors to resistor. These aren’t required for the common anode/ A B AND A B OR keep your displays cathode pins 10–13: 0 0 0 000 and Arduino safe, 2 -> A 0 1 0 011 segments are 3 -> B 1 0 0 101 only turned on for 4 -> C milliseconds, which 5 -> D 1 1 1 111 means you could get 6 -> E away without them. 7 -> F In Arduino C, the operators that process this simple 8 -> G input are looking at individual bits, the true and false Right 10 -> D1 values, and these actually correlate to low-level gates The exact wiring 11 -> D2 and low-level code. This makes these operators will depend on the 12 -> D3 incredibly efficient, which is why it’s always worth specification and pin 13 -> D4 attempting to refactor your code into these simple configuration of your computational terms. specific display A B Output 1. 0 0 LOW Going back to our example and the requirement we80 2. 0 1 HIGH have to reverse the input for common anode displays, 3. 1 0 HIGH the first truth table correlates exactly to an operator 4. 1 1 LOW called XOR, or exclusive ‘or’. The X differentiates this operator from the ordinary OR above by not including 1. If the segment is off (A=0) and the display a positive output when both the inputs values are on isn’t common anode (B=0), output is LOW. (or 1 in the truth table). 2. If the segment is off (A=0) and the display is common anode (B=1), output is HIGH. We’re going to use this operator in a new function 3. If the segment is on (A=1) and the display isn’t that isolates the digitalWrite commands: common anode (B=0), output is HIGH. 4. If the segment is on (A=1) and the display is void setSegment(int pin, bool state) { common anode (B=1), output is LOW. if (state ^ ANODE) { The reason for mapping everything out like this is that the simple behaviour described in truth tables can digitalWrite(pin, HIGH); be mapped to special logical operators in code. You’re likely already familiar with the logical operators AND } else { and OR – they turn on output depending on where digitalWrite(pin, LOW); } } The XOR operator appears on the second line as the circumflex symbol (^). The function itself is called with two arguments: the pin to send the signal to and whether that pin needs to be HIGH or LOW. The efficiency comes because we can question both the requested state and whether the values need inverting with the XOR command, which is going to act exactly like the first truth table. FOUR TIMES SEVEN We now need to augment our original routines to handle both the new digits and what will be our method of rendering them. This starts with a new array to hold the pin numbers for the connections to the common anode or cathode. This array will be called digPin and the backwards order we’ve used – 13, 12, 11, and 10 – is intentional as these are connected from least to most significant digits respectively, which will help when we write the program logic. Also, we’re updating the pin values
FORGEwe used in the segPin array as we’ve reorganised our To do this, we’re going to rely on another incredibly Abovecircuit to use sequential pin ordering rather than the useful operator, the modulo, which uses the percent We’ve used therandom plug and pray approach used last month: character (%). Modulo will return the remainder of a cheap and readily division, rather than the number of times one number available 3461BS const byte segPin[8] = {2, 3, 4, 5, 6, 7, 8, 9}; goes into another. This makes it useful in loops as a for this project, but const byte digPin[4] = {13, 12, 11, 10}; zero is often interpreted as false, but it’s also perfect almost any other for peeling off digits. 1234 % 10, for example, will quad seven-segment The setup function also needs to be updated to return the last digit, 4. If we then divide the number by display will workinitialise the new pins we’re using. To do this we just 10 and run the modulo again, we’ll get the next digit.add another for loop to handle the pins used to target And that’s exactly what we do in this function: QUICK TIPthe separate digits: void displayNum (int number) { If you connect the void setup() { int tens = 0; segment pins to for (int i = 0; i < 8; i++) { while (tens < 4) { the same Arduino pinMode(segPin[i], OUTPUT); displayDigit(tens++, number % 10); pins we used last } number /= 10; month, you won’t for (int i = 0; i < 4; i++) { } need to modify your pinMode(digPin[i], OUTPUT); character or pin } } order code. } The above code includes one last new operator, 81 the /= operator. This is closely related to the iterative The next new functions we’re going to add will be operators we looked at last month, but instead ofused to display a number on one of the four displays, incrementing a value, here we divide number by 10 andrather than displaying a number on the single assign the result to number in a single command.display we coded last month. The big difference inthis implementation is the multiplexing, and this is All that’s now left to do is update the main loopaccomplished by first making the common pin for to remove the delay and count to an appropriatelythe digit ‘HIGH’, writing the number to the seven- large number. This is as simple as changing it tosegment display, waiting a period for the number to the following:remain visible, and then setting the common pin toLOW to terminate the drawing process. void loop() { for (int i = 0; i <= 9999; i++) { Here’s the code: displayNum(i); } void displayDigit(int digit, int number) { digitalWrite(digPin[digit], HIGH); } for (int i = 0; i < 8; i++) { setSegment(segPin[i], segNum[number][i]); With that done, upload the code to your Arduino and } pretend you’ve got the ultimate Geiger counter. The delay(5); code can be found here: git.io/vxMZ6. digitalWrite(digPin[digit], LOW); } The delay function pauses execution of the code,allowing the character on the display to linger for aset number of milliseconds. The 5 milliseconds we’reusing is virtually imperceptible to the human eye, butif you wanted to see how the multiplexing works, setthis to something like 200 (a fifth of a second) andwatch each seven-segment display update with eachdifferent number. The final piece of this puzzle is to transform thedisplayNum function we used last month to adaptto the four digits rather than a single one. The mainjob of the new additions will be to split a four-digitnumber, such as 2543, into its constituent digits,which can then be sent individually to each display.
Make a ‘hello world’ tote with Circuit Playground ExpressSCHOOL OF MAKINGFlaunt your skillswith a light-up bagMake an interactive tote bag with a Circuit Playground Express and a little sewing N eed a project idea for your brand STENCIL YOUR TOTE new Circuit Playground Express? If you’re starting with a brand new, blank canvas Make it a wearable one! The CPX has tote bag, be sure to wash, dry, and press it before oodles of sensors and NeoPixel LEDs decorating it. The fabric will take the paint better and make for a nicer finished project. built right in, so there’s no soldering A vinyl cutter is nice for making stencils, but it’s or breadboarding required to set up a definitely not necessary. To make the stencil by hand, trace the ‘hello world’ text onto your contact Sophy Wong circuit. You’ll want to take it with you everywhere so paper, keeping a border of at least 2–3 cm around the text. Carefully cut out the text with a craft knife. @sophywong you can tinker whenever inspiration strikes you. In this Apply the stencil to the front of your tote, pressingSophy Wong is a down firmly along all the edges for good adhesion.designer, maker, project, we’ll sew it onto a tote for coding on the go! Remember to place the hole shapes into the lettersand avid creator. Her with negative spaces.projects range from The CPX is a little powerhouse, and we’ll use theperiod costumes Using a craft sponge or spouncer, dab fabric paintto Arduino-driven on-board accelerometer, capacitive touch capabilities, over your stencil. For nice, crisp text, take your timewearable tech. She and aim for an even, opaque application. Carefullycan be found on her and ten NeoPixel LEDs to run some fun animations remove the stencil and let the paint dry. When it’sYouTube channel and completely dry, it’s a good idea to heat set your fabricat sophywong.com, on the front of the tote bag. To make our program paint according to the manufacturer’s instructions.chronicling her Now you’re ready to make it light up!adventures in making. interactive, we’ll add snaps for simple touch-sensitive Right buttons. Each button will play a different NeoPixel Stencilling, rather than drawing the animation when pressed. While we’re at it, we’ll use design, means less chance of slip-ups the accelerometer to trigger a flashy animation if you82 happen to run, skip, or jump while out and about with your bag. For portable power, we’ll use a battery holder and three AAA batteries. Look for a battery holder with a power switch and a male JST connector, which will work perfectly with the JST connector on board the Circuit Playground Express. To be safe, leave the batteries out of the holder until your build is complete. Your snaps should be metal – bare metal will work best, but these colourful enamelled snaps also worked well. If your snaps are coated, check them with a multimeter to make sure they are conductive. You can use any bag you like for this project, and you may already have the perfect bag to start with. If not, pick up a blank canvas tote at a craft store and decorate it to make it your own. The Circuit Playground Express is a perfect match for this ‘hello world’ text: the board fits nicely over the ‘o’ in ‘world’. Keeping it front and centre makes it easy to plug the board into your computer any time you feel like changing the code!
FORGEAboveTime to hit the highstreet and let theworld see yourmaking skills 83
Make a ‘hello world’ tote with Circuit Playground ExpressSCHOOL OF MAKING Left The battery connector pushes firmly into place, so should hold even when the bag is in use YOU’LL NEED MAKE A BUTTONHOLE of the buttonhole and let dry. Use a craft knife to cut The Circuit Playground Express will be attached the buttonhole open, being careful to only cut the For The Bag to the front of the bag, but the battery holder will fabric in the centre of the buttonhole. be inside the bag. This means we need a neat Blank canvas way to pass wires through the front of the bag. A If you don’t have a sewing machine, you can cut a tote bag small buttonhole is perfect for this, and if you have small slit in the bag and hand-sew around the edges a modern sewing machine, chances are it has a to bind them. Run a bead of Fray Check along the Contact paper buttonhole function. bound edges to stabilise the hole. or adhesive shelf liner Place the Circuit Playground Express in its spot on ATTACH THE the front of the bag, and mark where the buttonhole CIRCUIT PLAYGROUND EXPRESS Craft knife or will go: about 1 cm below the JST battery connector Place the empty battery holder inside the bag, and vinyl cutter on the CPX. Follow your sewing machine’s push its JST connector through the buttonhole to procedure for making a buttonhole on your line, the front of the bag. Plug the JST connector into the Textile paint about 1 cm wide. Apply Fray Check along the centre black port at the bottom of the Circuit Playground Express, and lay the CPX in place on the front of the Craft sponge or Below bag. You can use a dab of hot glue to hold the board spouncer The large holes on the CPX are easy to sew through, both for in place while you sew it down. making the circuit and holding the board in place Hand sewing kit Since we won’t be using the power and ground pins in our circuit, we can use those holes to attach Sewing machine the board to the bag. Thread a needle with heavy- (optional) duty thread, or use a double strand of regular hand- sewing thread. Sew through the three GND pins, the Heavy duty two 3.3 V pins, and VOUT – that’s six holes – for a or upholstery secure attachment. thread For Making The Circuit Circuit Playground Express 3 × AAA battery holder, with male JST connector and power switch Conductive thread Metal-capped prong snaps and setting tool (sometimes it’s included) Fusible interfacing Fray Check Superglue Disappearing ink fabric pen84
FORGEAboveCarefully mark your placements out before making anypermanent incisionsADD CONDUCTIVE BUTTONS you can remove the temporary markings you made. AboveDecide where your metal snaps should go, and mark Now plug it in and see if it works! You don’t have totheir locations on the front of the tote. Keep in mind stitch in a straightthat the A0 pin cannot be used for capacitive touch, PROGRAM THE line. Wearables arebut you can use any of the other I/O pins (A1 through CIRCUIT PLAYGROUND EXPRESS meant to be creative!A7). Draw the path you will sew from each snap to MakeCode is a great way to get started with code.its I/O pin with disappearing ink. In this ‘hello world’ It’s visual and block-based, so programming is a Leftdesign, we are connecting to A1, A2, A3, A4, and A7. matter of connecting the right blocks together. It’s A gentle whack fixes simple to get started, and perfect for unleashing the snaps in place Thread a needle with conductive thread and tie a all the bells and whistles packed into the Circuittight knot at the end. For each button, start at the Playground Express. So grab your computer, head to 85point where your snap will be, and push the needle makecode.adafruit.com, and start a new project.through the fabric from the inside to the outsideof the bag. Take seven or eight small stitches right Click on the Light category, where you’ll find lotson that spot to make a big dot – this will be the of different blocks that can be used for animatingconnection point for the snap to sit on top of. From the NeoPixels on the Circuit Playground Express.there, sew with a running stitch along your path to Grab the ‘Show Animation’ block and drag it into thethe I/O pin you’ll be connecting to. Forever loop on your workspace. The CPX simulator on the left will now show the rainbow animation. When you get to the board, stitch around thepin about five or six times, and pull tight for a goodconnection. End with your thread on the inside of thebag, and tie a tight knot to finish off your run. Dab abit of Fray Check or superglue onto the knot to keep itsecure, and cut the thread tail short. Repeat this stepfor all the paths you marked. Prong snaps come in four pieces, but for thisproject we’ll only be using the top two pieces: thecap and the socket. To install each snap, place thepronged cap over your sewn connection point,and press the prongs through the fabric. Insert theprongs into the socket part of the snap, sandwichingthe fabric and the conductive thread dot betweenthe snap pieces. Set the snap with a setting tooland hammer. When you’ve set all your snaps, turn the bag insideout so you can take a good look at your circuit. Makesure all the thread tails are cut short and not touchingthe other legs of the circuit. If everything looks good,
Make a ‘hello world’ tote with Circuit Playground ExpressSCHOOL OF MAKING Right You could simply download this code to your CPX and Now we need to assign each of our capacitive You can reprogram have an awesome flashy bag. But let’s go further and touch buttons to play a different animation. Buttons your CPX in place if use our capacitive touch buttons! are inputs, so head over to the Input category you decide you want and drag the ‘On Button A Click’ block onto your different animations MakeCode has several different animations built in, workspace. We’ll start with the button connected to Below and for this project we can think of them as modes. pin A1, so change ‘Button A’ to ‘pin A1’. From the The MakeCode So let’s set up a variable to make it easy to change Variables category, grab the ‘Set Item to 0’ block, environment makes it from one animation mode to another. and drop it into your ‘Pin A1 Click’ block. Change the easy to link events to variable drop-down from ‘item’ to ‘mode’. touch actions In the Variables category, click ‘Make a New Variable’ and name it ‘mode’. Drag your new Head into the Light category and grab the animation86 ‘mode’ variable onto your workspace, and drop it drop-down menu block – you’ll need to scroll down to on top of the rainbow icon in the ‘Show Animation’ ‘More’. Drag the animation block on top of the ‘0’ to block. This will replace the rainbow animation with place it in your ‘Set Mode to’ block. Now, when you your variable. click on the A1 pad on the CPX simulator, the rainbow animation will play! Repeat the steps above to set up the rest of your capacitive touch buttons on pins A2, A3, A4, and A7, and choose a different animation for each one. To quickly copy the block you just created, right-click it and select ‘Duplicate’. Check your work by clicking on the pins in the simulator. If your animations are playing as expected, move on to setting up the accelerometer! Since you’re likely to be moving around while out and about with your bag, we’ll tell the CPX to flash the NeoPixels when it detects a big movement. Just like our buttons, the accelerometer is also an input, so go back into the Input category and grab the ‘On Shake’ block. Chances are there will be an animation playing when the CPX is shaken, so the first thing we’ll need to do is stop whatever is already running. From the Light category, grab the
FORGE‘Stop All Animations’ block and drop it into the ‘OnShake’ block. Under this, add the ‘Show Animation for500 ms’ block and select the running lights animation.Let’s give this animation a little more airtime bychanging the duration from 500 ms to two seconds.Check your work by clicking ‘SHAKE’ at the top ofthe CPX simulator. The lights should flash red fortwo seconds, and then go back to playing whatever” Since we won’t be using the power and ground pinsin our circuit, we can usethose holes to attach the ” board to the baganimation was already running. If your code is BACK WITH FUSIBLE INTERFACING Aboveworking perfectly, it’s time to load it onto your actual Now that we’re sure everything is working, let’s cover Keep your circuitCircuit Playground Express! the back of the circuit with fusible interfacing. This insulated from will insulate our circuit nicely and keep the hand-sewn anything jangling Click ‘Download’ and follow MakeCode’s stitches from catching on objects inside the bag. around insideinstructions to load your new code onto your board.Tapping the snaps on your bag should trigger the Turn the bag inside out again, remove the battery 87animations you programmed, and shaking the bag holder and set it aside. Cut a piece of interfacing thatshould trigger the flashing runner lights. If something will cover the whole circuit. Follow the instructionsis not working as expected, check for crossed for your fusible interfacing to apply it to the fabric. Inconductive threads and make sure your snaps are general, you’ll iron the interfacing on with a little bit ofanchored well to the thread dots under them. steam – you can iron over the conductive thread, but don’t iron directly over the CPX or snaps. Just press Check out the finished code for this project here: around them so the fusible interfacing is held downhsmag.cc/ORBbKo. securely. Make sure to avoid covering the buttonhole with interfacing. Need help? Go to learn.adafruit.com/makecodeto learn more about programming your Circuit If you’ve used steam to apply your interfacing, letPlayground Express with MakeCode. your project dry completely before connecting it back to power. If you’d like to add some weatherproofing to the Circuit Playground Express, paint its surface with clear nail polish. GRAB AND GO! It’s time to plug in your battery holder, add batteries, and take your project for a spin! Flip the power switch to on, and shake your bag to see your NeoPixels flash. Try out your conductive buttons – what else can you make them do besides play animations? Whenever you have a new idea your Circuit Playground Express will be right by your side, and we want to see what you make! Show us your projects at @HackSpaceMag! Left With the battery hidden inside the bag, only the circular outline of the CPX adorns the bag
Brighten up your project enclosuresSCHOOL OF MAKINGBrighten up yourproject enclosuresTransform the ordinary into unique personal pieces using découpagePepi Valderrama @depepiPepi Valderrama isa writer who lovestechnology, crafts, andshiny things with LEDlights. You can find heron depepi.com Right T here are loads of great cases for personal touch. Although découpage might seem Découpage works Raspberry Pis, Arduinos, and other simple at first sight, forgetting certain details, like well with different electronics, but most of them are, materials and weather conditions, could be a fatal materials. It’s a well, a bit dull. Laser-cut acrylic or mistake and end up ruining the result. perfect technique to transform the injection-moulded plastic might be The best glue for découpage is one that combines mundane into unique varnish and glue. The best options are water-based pieces, gifts, and art perfectly functional, but it can leave a and should come in matte or gloss types. We’ll be using Mod Podge, which is a tried and tested YOU’LL NEED little to be desired from an aesthetic point of view. découpage staple. You can also use PVA glue or permanent spray glue, as they work just as well Scissors Let’s take a look at one technique for making these and are quicker to dry, but the final look might not be A glue brush as flashy. And of course, you can just use varnish. Wrapping paper enclosures a little more lively. However, the best is the gloss type since it doesn't Comic books go all cloudy. Mod Podge gloss Découpage, from the French verb 'to cut', is a Glitter A craft knife simple technique that involves cutting pieces of Something that needs decorating paper or cloth and gluing it onto objects by applying88 layers of varnish. It's a simple way to personalise objects that seem dull, look old, or just need a
FORGE Left Raspberry Pi cases work better when applying glitter. However, using small pieces of paper to cover them up also works perfectly The most common découpage pair is gluing paper ” Paper is not your only choice, though, as glitter can ”on paper. Boxes, notebooks, and postcards are the also be used for decoration. It can be used eitherperfect candidates for creating your own artsy look, as a base or an add-on for your projectsbut découpage works on other materials, like plastic,metal, or wood as well. So, if you find yourself imperfections, so even a small amount of dust can QUICK TIPwondering whether to get a simple cover for your spoil the results. If the project lasts for several days,Raspberry Pi or Arduino project, or the cool, geeky it's advisable to use a clean, dry cloth to get rid of all For a final matteand shiny one that costs ten times more, with these dust as you go along. look, the bestsimple steps you can make your case personal and option is to useunique with little extra cost. Secondly, you need to consider what kind of papers gloss varnish for you're going to use, and prepare them in advance all the project, However, using découpage on a Raspberry Pi case by cutting them to the correct shape and size. The except for the lastcan be rather tricky. Most cases out there have tiny thickness of the paper and the ink used on it have a coating layer.holes and corners, and are made of plastic. This can big impact on the final result, as different papers, inks,be challenging when applying the Mod Podge glue, and colours react differently with the glue and varnish.paper, and glitter. Plastic and steel are slippery, whichmeans that extra care is needed to achieve excellent Depending on your goals, you might want to useresults. Also, a thicker paper works best since it will fine, decorated tissue paper, or thicker papers, likebe easier to work with. However, if your target is to comic book pages or wrapping paper. The first onecreate textures, or you like that slightly transparent is good for creating textures, while the second typelook, tissue paper is the way to go. works best on flat or tricky surfaces. It is important to remember, however, that the average printingGETTING STARTED paper rarely works well with découpage, so you areBefore starting any project with découpage, you need better off buying proper paper, rather than printingto clean all surfaces of the object you want to work something off the internet.on and make it dust-free. Glue and varnish amplifySANDY LOOK GLITTER Left Thin coating layersTo have a glittery, sandy look, you need to apply a thin of Mod Podge workMod Podge layer on the surface and then throw raw better for any project.glitter on it until it covers the surface completely. Once Applying thicker gluethe glue is dry, shake the case to get rid of the extra and varnish layers toglitter. Apply another thin coating layer of Mod Podge, go quicker will haveand repeat the process. When you're satisfied with the disastrous results, asthickness and sandy look, you can apply a covering of seen in this picturethe final coating layer. It's not advisable to leave theglitter layer raw without a final coating layer, sincethe glitter might come off with time and mess with thecomponents in the Raspberry Pi. 89
Brighten up your project enclosuresSCHOOL OF MAKINGWRAPPING PAPER ON A CARD BOX Boxes are easy to style by using paper carefully along the lines of the box Above découpage, whether you are giving by using a craft knife or a box cutter. Once Edges can be tricky. We can either fold the paper, or apply them a fresh look for keeping your things you have reassembled the box, you can smaller pieces of paper on top of one another safe, or creating something festive and choose to apply a matte coating layer or a personal for a gift. glitter one to it. Or, you could leave it as is with the mixture, but always wait for each layer to and enjoy the feel of the paper itself. dry completely. Otherwise, the end result won't be First, you need to unfold the box until smooth and even. you have it flat on the table. Then, apply Make sure you take care of the a thin layer of Mod Podge and glue the folding areas. Applying paper too tightly Don't use a hair dryer to speed the drying process wrapping paper, taking into account the might look good when the box is flat on – it's preferable to wait until it dries naturally, places where the box will fold back – you the table. However, when folding it back otherwise bubbles can appear on the coating don’t want the paper to break and tear to its original shape you can end up with layers and spoil the end results. As an average, a when you reassemble it. Use a sponge broken paper areas. A good idea is to twenty-minute wait between coating layers would to push the paper and to get rid of air fold the corners of the box when gluing be enough. However, it's advisable to wait double bubbles where necessary. Once the glue the paper, so the little extra you need when the atmosphere is wet, rainy, or too steamy is dry, turn the flat box over, and cut the comes naturally. during summer. QUICK TIP Paper is not your only choice, though, as glitter Once the glitter base is done, apply a light layer can also be used for decoration. It can be used of Mod Podge, without glitter, on the surface of the Consider adding either as a base or an add-on for your projects. Small Raspberry Pi case. Then, glue the paper. If needed, some glitter on the objects usually look better when you use glitter as use a small sponge to pressure the paper a bit to get final layers for a a base, since covering them with paper is tricky, rid of air bubbles. Wait until the glue is dry and apply flashy look. Go for unless you're planning to use smaller pieces or you a new light coating layer of Mod Podge and paper. a smooth layer of want to create textures. Glitter also comes in handy Repeat until you're satisfied with the results. You glitter instead of a if we're going for a sandy look and texture. can apply as many layers of paper as you see fit. The sandy look, unless end result can be minimalistic or gothic, depending you want to create A GLITTERY RASPBERRY PI CASE on your taste and style. drawings with the Put some glitter in a glass, along with some Mod glitter on the surface. Podge glue, and mix it with a stick or the glue brush A PAPER-COVERED RASPBERRY PI CASE until the mixture is smooth. Apply a light coat of If you want to use only paper to cover your the mix on the Raspberry Pi case, and wait until Raspberry Pi case, you will need to be more patient it's completely dry. Continue applying light layers and take into account all the tiny holes, cuts, and corners of the case. First, apply a thin coating layer COMIC BOOK PAPER of Mod Podge, and put the paper carefully in place. Use a small, dry sponge to push the paper gently Comic book paper can be a tricky choice, since ink and get rid of all the air bubbles. Once the glue is might fall off if you try to glue several layers of paper dry, cut the paper carefully with a craft knife, around without thinking about the design first. Re-adjusting the edges of the case. Then, apply a new thin the paper once it's wet with Mod Podge isn't coating layer and wait until it's dry. You can use as advisable, or even possible, without ruining the paper. many thin coating layers as you want or need. Plan your design early, or go for a simple cover-up. Be careful with the round edges of the Raspberry Apply a thin coating layer of Mod Podge and then Pi case, since these can be very tricky. The best plan the comic book paper. Wait until it's totally dry before of action is to glue strings or small pieces of paper applying another thin coating layer of the glue. Wait to cover the area. As long as you apply thin coating for it to be completely dry before applying the next layers and wait until they're dry, the end results will coating layer. look professional. Using other magazines or even posters is possible as well, and, depending on the paper and ink, they often work in the same way as comic book paper. Always allow time for the glue to dry before applying more layers. Also, think carefully about the design, since different kinds of ink can react differently as well.90
FORGE QUICK TIP Newspaper looks great with découpage, but make sure that each layer of glue is completely dry before starting the next, as the ink can run.” If you want to use only paper Left & Below to cover your Raspberry Pi Craft knives and cutters are greatcase, you will need to be more tools to cut unwanted paper. To cut withoutpatient and take into account creating marks on the paper, we must waitall the tiny holes, cuts, and until the coating layer is completely drycorners of the case ” 91APPLYING TISSUE PAPER ON METAL and textures. However, using a sponge will give youRaspberry Pi cases are usually plastic, but many a different texture result. Repeat as many times asprojects are better suited to metal enclosures such needed to hide the text on the tin.as Mentos tins, or die-cast aluminium project boxes.You can use découpage on these as well. Next, cut a 2 cm line of tissue paper. This is to cover the edges of the tin can. You can apply as If your goal is to get a textured paper look, your many coating and paper layers as you wish until youbest choice of paper is tissue paper. To get the get the desired results.feeling, we used an empty coffee tin can to createa pencil holder. First, you apply a thin coating layer These basic techniques can be used to brightenof Mod Podge, and then glue the first tissue paper up almost any project – or even quite a lot of tools!layer on it. The trick is to glue it as smoothly as Let us know what you’ve decorated on Twitter, andpossible. We need a first layer of paper on the tin so how – @HackSpacemag.we can work comfortably creating the texture withother paper layers later. Once the first layer is dry, you can apply anotherthin coating layer of Mod Podge, and glue anotherlayer of tissue paper. This time you can use yourfingers to give some texture to it. The trick is tomake the paper slide a bit, creating small wrinkles
Controlling smart lights with Home AssistantTUTORIALControlling smart lightswith Home AssistantMaking IKEA’s smart lights a bit smarter Dylan MurphyDylan is an app andwebsite developer. Heis a vintage Macintoshcollector and lover ofall things IKEA. YOU’LL NEED H ome automation is great for a Home Assistant is an open-source home plethora of possibilities, but can automation platform that runs on Python 3. It Raspberry Pi be expensive and restricted by the requires very little processing power and therefore is (preferably Pi 3 for manufacturer. Home Assistant aims perfect to be run on a Raspberry Pi. Home Assistant better performance combines smart home devices and allows them to all but can work with to change that and IKEA’s Trådfri helps be controlled together from a single app or online UI. any model) At the time of writing, Home Assistant has support to reduce the cost. for 988 components. A component is an extra piece Trådfri gateway of software that is installed onto your HA instance IKEA’s Trådfri smart home lighting system is (the Home Assistant UI), to allow a smart home Trådfri bulb device to be controlled with Home Assistant. This an inexpensive way to introduce yourself into the Trådfri steering device world of smart home gadgets. The Trådfri system iOS or Android is relatively inexpensive but, unfortunately, is very mobile device restricted – that’s where Home Assistant comes in. OPTIONAL Trådfri motion sensor92
FORGEnumber is increasing all the time. Home Assistantthen allows you to create automations that link allof these components together. This opens a vastrange of possibilities that were never open before.An example of this is turning on a fan connected withyour smart plug when the temperature goes above20°C. Or, you could do something more extreme suchas playing music on your Sonos at home and turningon your Roomba to vacuum your house if your Tesladoor is unlocked, but only if it is precisely 03:15 in the” IKEA’s Trådfri smart home lighting systemis an inexpensive wayto introduce yourselfinto the world of smart ” home gadgetsmorning. This allows the restricted Trådfri system to onto an SD card, insert the card into the Raspberry Pi. Figure 1unlock its full potential for a fraction of the cost of a Connect the Pi to the internet and boot it up. Boot up IKEA also sellsmore expensive smart lighting system. the Pi and wait approximately five minutes. After that a small wireless time, go to hassbian.local:8123. This is your Home dimmer which is more To get started with IKEA’s Trådfri smart home Assistance instance. minimalistic than thelighting system, you will first need to set up the steering device. Yougateway on the Trådfri app. This is free from the To be able to use your Raspberry Pi without a can set that up hereGoogle Play Store or the Apple App Store. Firstly, keyboard, mouse, or monitor, you need to access it as wellplug in the Trådfri gateway to a wall socket and a via an SSH connection. Connecting via SSH is whennetwork port. Launch the IKEA Trådfri app on your you connect from one computer to another. This Figure 2mobile device and connect to the same network can be done on macOS, Windows, Linux, or even a Trådfri can be aas your Trådfri gateway. Follow the instructions on mobile device. bit temperamentalthe app to connect your bulb and steering device sometimes, so youtogether (Figure 1). Setting up an SSH connection on a macOS or may need to restart Linux computer is simple. All you need to do is find the gateway To be able to still use and edit your HA instance, out the IP address of your Raspberry Pi. (This can beyou will use your Raspberry Pi in headless mode easily found on your router’s online UI, although this 93(using a Raspberry Pi without a keyboard, mouse, or will differ with each manufacturer. Your Raspberry Pimonitor) – the end goal is to leave your Raspberry Pi will usually be labelled ‘hassbian’.) Then open up aalone acting as your home automation hub. Terminal and type… Once you have successfully set up the Trådfrihub you need to set up Home Assistant. Thereare 14 different ways to install Home Assistantthrough varying methods and on different systems.Our favourites are hass.io and Hassbian. Despite itrequiring a few more command lines, we’ve found itto be more reliable in the long run and gives you morefreedom to do what you. To install Hassbian, go to hsmag.cc/xRzRvm andselect ‘Download the Hassbian image’. Use Etcherto flash the image onto your SD (or microSD) card.Etcher is a free piece of software available on macOS,Windows, and Linux. Once the image has flashed
Controlling smart lights with Home AssistantTUTORIAL Above ssh Pi@your_IP_address into your Pi via an SSH connection. To do this, run With 988 Home the command: Assistant Then type ‘yes’ if prompted and log in with the components, your password – raspberry (Figure 3). Setting up SSH sudo hassbian-config install samba Home Assistant on Windows is more tedious as you need to use Instance could separate software such as PuTTY. Go to putty.org Once this has been installed, you need the Trådfri get really messy and download the appropriate version for you. script to eventually use your Trådfri lights. To do really quickly this type: Once you have opened up the application, go94 to input the IP address into the Host Name field sudo hassbian-config install tradfri and select the SSH option. Press open and select ‘yes’. Enter the login as pi and the password as into the terminal. The Home Assistant Instance is raspberry, (Figure 4). now configured and ready to use. You are now successfully into your Pi’s command Connecting your Trådfri lighting system to HA line and you can install some scripts. Firstly, install is also simple. All you need to do is to go to Samba. This allows your Pi to be accessed as a hassbian.local:8123 and then press the CONFIGURE network drive. This will be useful when you want button next to IKEA Trådfri (Figure 2). Here you need to create automations but you don’t want to log to input the security code written at the bottom of your IKEA Trådfri Gateway. You’ll then see all of your GOING FURTHER Trådfri bulbs show up on a ‘Light’ card. These are some useful – and not so useful – ideas for You now have all of the ingredients to start other automations: creating Home Assistant automations. To view your Home Assistant automations, go to your network • Set off an intruder sequence for a room in your folders and find automations.yaml in the Home Assistant folder. These are located under the house, and send a notification to your phone hassbian directory. The automations.yaml when your door sensor is triggered. file is where you create your automations. The YAML file is formatted as a list as opposed to • Set your lights to dim and turn blue when being formatted as code. Automations consist of three main parts. The ‘alias’ is the name for your you turn on your Chromecast and start automation. The name of your automation doesn’t watching something. Figure 3 • Start playing music on your Sonos and flash SSH gives you a tunnel into your Raspberry Pi and allows you to execute commands as though you were directly connected the lights when your Bitcoin goes above a certain value. • Use an Amazon Dash button as a trigger for any automation. • Home Assistant automations lack reliability from time to time, so all automations are created at your own risk…
FORGEmatter and is only for your personal reference. The ” Home Assistant is continuously expanding ”second part of an automation is the ‘trigger’. The its components list, so the possibilities oftrigger is what activates the automation, for example automations subsequently carry on expandinga motion sensor inside your house. The final partof an automation is the ‘action’. This defines what - alias: Trådfri Motion Sensor Onhappens when the trigger is activated. For example, trigger:the action could be something simple such as - platform: stateturning on a light or it could be something more entity_id: light.desk_lampadvanced such as turning on an intruder sequence from: ‘off’which consists of sending you a notification whilst to: ‘on’also flashing your smart lights and locking all action:your doors. - service: Home Assistant.turn_on entity_id: group.desk Let’s start with a simple automation: turn thelights on when the sun sets. We have installed the This article is the tip of the iceberg when it comes Figure 4Trådfri component and the sun component is pre- to the possibilities of Home Assistant and Trådfri. Putty can save yourinstalled onto Home Assistant, so all that we need to Home Assistant is continuously expanding its SSH connections todo is join them together in automation.yaml. Firstly, components list so the possibilities of automations make it easier whengive a name to your automation. The second part of subsequently carry on expanding. IKEA’s Trådfri connecting next time.an automaton is the trigger. In our case, the trigger system will eventually release more colour bulbs, Just press Savewould be the sun. Finally, the action is the turning on so the future is bright for the low-cost smart homeof the light. Putting all of this together gives you this: lighting system. - alias: “Bye Sun, Hello World” trigger: platform: sun event: sunset #time offset is optional offset: ‘-00:45:00’ action: - service: Home Assistant.turn_on entity_id: light.bathroom This is an example of a basic Home Assistantautomation, but you can get more creative. Amore advanced automation is turning on your deskbacklight, desk lamp, and speaker charging dockwhen you sit in your chair. Despite this seemingcomplicated, it uses the same foundations that thesun rising automation does – it just expands on it byadding more actions and a more advanced trigger. IKEA has a Trådfri motion sensor (£16, €17.99,$17.99, 179kr.) Unfortunately, IKEA does notcurrently expose the motion sensor to HA, whichmeans it can’t be used on its own (this is correctat time of writing). Therefore, the only other optionis to install a smart bulb in your desk lamp andthen connect to the motion sensor. From there youcould attach the motion sensor to the bottom ofyour desk chair. This will give the result of turningon your desk lamp when you sit on your chair, butit doesn’t turn on your desk. To solve this you needto create an automation to turn on your desk whenyour Trådfri desk light-bulb goes from an ‘OFF’ stateto an ‘ON’ state: 95
Build a Bao Bao-inspired LED panelTUTORIALBuild a Bao Bao-inspired LED panelUncover a new world of geometric style with a triangle-based LED grid B ao Bao bags are built up out of Rhino 3D. You can download the design files from right-angled triangles where two hsmag.cc/issue6. We made ours out of 3 mm of these triangles, joined along the material, using black acrylic for the pattern frame, opal acrylic for the individual pattern, and MDF for the hypotenuse, make squares. The back and sides. You could use alternative materials if you choose to – provided they’re 3 mm thick and resulting grid pattern works well for strong enough. Natthakit bags because it allows a hard surface We finished the enclosure with a non-glossy blackKangsadansenanon sticker to give it an anodised aluminium look, but this to bend in most directions. Here, we’ve adapted this is optional.NatthakitKangsadansenanon pattern for an LED panel, where it allows us to lightis an architect /artist from Thailand. up a wider range of patterns than the more typicalHe is interested inincorporating the square-grids.intelligence of the digitaltechnologies into the STEP 1 STEP 2existing objects of daily We designed this panel by measuring the actual sizes The pattern sticks out of the frame by 1.5 mm to givelife. His goal is to make from a Bao Bao bag and designing an enclosure in it more resemblance to the real bags. This is doneobjects that are at oncesimple, artistic, andimbued with a greaterawareness of humanity. Right Laser-cutting allows us to create complex patterns much easier than traditional tools96
FORGE Left From initial cutting to final look Below Addressable LEDs allow far simpler wiring than matrices of simple lightsby lifting up the frame 1.5 mm from the table andinserting paper between them on both sides of theframe, so it leaves some gap in the middle to put thetiles in before gluing them in place.STEP 3Now it is time to put the LEDs on the board. When itcomes to this step, be aware that there are severalways to connect smart 144 LEDs (WS2812B)together, but we’re going to detail the way that wefound easiest. There are three input pins on each LED(5 V, Ground, and Data In), and three output pins (5 V,Ground, and Data Out). Each LED is connected to thenext by linking the output ones of the previous to theinput pins of the next. Each LED can consume 0.06 A when it’s running at its brightest white, which means that our panel could consume up to 8.64 A. However, you don’t necessarily need this much power. For example, each primary colour (red, green, or blue, obviously) only consumes 0.02 A. As long as you’re aware of the limitations when programming patterns, you can use a power supply that can supply less current. We used a 5 A power supply, but this does mean we can’t go full-white if we want. STEP 4 Left Feed the wires though the board and solder each An extra laser-cut LED in place. This can result in the back of your board structure on the back looking quite spaghetti-like. We found it easiest to makes it easy to hot-glue all the wires in place, then flip the board over mount our panel and do all the soldering in one go. 97
Build a Bao Bao-inspired LED panelTUTORIAL Below Heated acrylic is easy to manipulate into different shapes. It’s a great way of adding little details to projects” The resulting grid pattern works well for STEP 7 bags because it allows a hard surface to bend in most directions ” As a nod to the panels’ inspiration, you can add a bag strap. This is made from acrylic that’s been softened STEP 5 with a heat gun until it becomes pliable enough to bend. Make sure you don’t over-heat it though or you We used a layer of paper to diffuse the LEDs. This may end up with a puddle. gives an even glow to the pattern on the front, rather than showing every individual LED placing. STEP 8 Attach the strap. The Bao Bao bags have a keyhole STEP 6 attachment to allow you to change the length of the With everything wired up, add a support to allow the strap. We simulated this with a cut-out in the acrylic panel to be hung on a wall. and glued the handle in place. Above When viewed from behind, high fashion turns to cyberpunk Right The NeoPixel LEDs come in many form factors, but the wiring is always the same. Pick whichever is easiest for you to wire up98
FORGE Left A little homage to the original bag designs that inspired the panelSTEP 9 STEP 10 LeftConnect the Data In pin of the first LED to a data The Adafruit_NeoPixel library gives you a convenient You don’t have to usepin on an Arduino, then connect the 5 V and Ground way to control the LED, and includes some this ordering, but youpins to your power supply. You’ll need to connect the demonstration functions that should put your LED do need to rememberground on your power supply to the ground on the panel through its paces. Once you’ve got these the way they’re wiredArduino, even if the Arduino is powered separately running, you should be able to create your own Below(such as through the USB connection). This common designs by modifying the example code. Both There’s nothingground is needed to ensure that the GPIO signals can animations and static images can look great. Don’t special about thebe properly transmitted. forget to let us know what you come up with! code for this. Any NeoPixel code will do the business 99
Make your own GinTUTORIALMake your own GinRelax after a hard day in the workshop with a homemade tipple T here are basically two ways of making gin – most commercial gin makers use distillates of the various botanical flavours to keep the resulting spirit crystal-clear. DIYers, on the other hand, usually soak Ben Everard the flavourings in the gin to impart their flavour @ben_everard more directly. This second method is known asBen has tried far moreways of making alcohol compound gin (though it’s often known as bathtubthan are really sensiblefrom the surprisingly gin in reference to the containers used duringnice mango cider tothe frankly horrible Prohibition in America), and it’s what we’ll do.strawberry jam wine.If he ever offers you a The biggest advantage of making your own gin isdrink, be wary. that it can contain exactly the flavours you want. You Right Your gin will take on don’t need to follow our recipe directly – throw in a a slight colour from the botanicals – don’t few more juniper berries if that’s your thing; some worry, it’s all part of the homemade citrus peel can give it a nice tang. You can go even aesthetic, honestly further off-piste if you like: Twisted Spirits make a Douglas-Fir flavoured gin, while Hendrick’s Gin is famously made with cucumber. WHISKY Many spirits are really just a grain alcohol that’s flavoured in some way. Whisky, for example, starts life as a clear spirit from grain (or malted grain), but it’s then left to age in oak barrels. It’s these oak barrels imparting their flavour in the drink that makes it whisky. So, does this mean that you can take vodka, infuse it with wood, and end up with whisky? We’ll let you know. Unlike juniper, oak takes a long time to flavour the drink (hence why whiskies are often aged for several years). Two years ago, this writer started an experiment with oak in vodka, using toasted oak shavings. It hasn’t become whisky yet – or at least, it doesn’t taste like it yet. While there’s a definite whisky note to it, it’s still a subtle background flavour and couldn’t really be confused with whisky just yet. Two years though is still quite young, so it may later take on the full whisky flavour. Of course, it may never make it. Whisky is barrelled at a higher alcohol percentage than the vodka we started with, and this may help it dissolve more sugar from the oak than our elixir will manage.100
Search
Read the Text Version
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132