This excellent content from the Hackaday writing crew highlights recurring topics and popular series like Linux-Fu, 3D-Printering, Hackaday Links, This Week in Security, Inputs of Interest, Profiles in Science, Retrotechtacular, Ask Hackaday, Teardowns, Reviews, and many more.
Right now, we’re running the greatest hardware competition on the planet. The Hackaday Prize is the Academy Awards of Open Hardware, and we’re opening the gates to thousands of hardware hackers, makers, and artist to create the next big thing.
Last week, we wrapped up the second challenge in The Hackaday Prize, the Robotics Module challenge. Now we’re happy to announce twenty of those projects have been selected to move onto the final round and have been awarded a $1000 cash prize. Congratulations to the winners of the Robotics Module Challenge portion of the Hackaday Prize. Here are the winners, in no particular order:
Fair warning: [Paweł Spychalski]’s video is mostly him talking about how bad his “dualcopter” ended up. There are a few sequences of the ill-fated UAV undergoing flight tests, most of which seem to end with it doing a reasonable impression of a post-hole auger. We have to admit that it’s a pretty poor drone. But one can only truly fail if one fails to have some fun doing it, [Paweł] enjoyed considerable success, at least judging by the glee with which he repeatedly cratered the craft.
The overall idea seems to make sense, with coaxial props mounted in the middle of a circular 3D-printed frame. Mounted below the props are crossed vanes controlled by two servos. The vanes sit in the rotor wash and provide pitch and roll control, while yaw and thrust are controlled by varying the speeds of the counter-rotating props. [Paweł] knew going in that this was a sketchy aerodynamic design, and was surprised it performed as well as it did. But with ground effects limiting roll and pitch control close to the ground, the less-than-adequate thrust due to turbulence between the rotors, and the tendency for the center of mass and the center of gravity to get out whack with each other, all made for a joyously unstable and difficult to control aircraft.
Despite the poor performance, [Paweł] has plans for a Mark II dualrotor, a smaller craft with some changes based on what he learned. He’s no slouch at pushing the limits with multirotors, with 3D-printed racing quad frames and using LoRa for control beyond visual range. Still, we’re sure he’d appreciate constructive criticism in the comments, and we wish him luck with the next one.
A decade ago, buying a custom-printed circuit board meant paying a fortune and possibly even using a board house’s proprietary software to design the PCB. Now, we all have powerful, independent tools to design circuit boards, and there are a hundred factories in China that will take your Gerbers and send you ten copies of your board for pennies per square inch. We are living in a golden age of printed circuit boards, and they come in a rainbow of colors. This raises the question: which color soldermask is most popular, which is most desirable, and why? Seeed Studio, a Chinese PCB house, recently ran a poll on the most popular colors of soldermask. This was compared to their actual sales data. Which PCB color is the most popular? It depends on who you ask, and how you ask it. Continue reading “Ask Hackaday: What Color Are Your PCBs?”→
It’s time for Computex, and that means [Linus] has dropped something. I don’t know what, but he’s dropped something. It’s a meme or something at this point. What were the highlights? Asus announced Project Precog, a laptop with two screens. Yes, a touchscreen keyboard. It’s the 2018 version of the IBM Transnote or whatever that Microsoft thing was called. Why is it called Project Precog? Because AI or whatever. Unimaginative marketing is terrible. Intel is going to launch a 28-core CPU, and AMD is introducing a 32-core CPU. Awesome, core wars.And here’s RGB RAM because stuffing a case full of cold cathode lighting is sooo early-2000s.
Finally, the main event. The biggest story in aviation this week is that a media embargo has lifted on the Kitty Hawk Flyer. Kitty Hawk is a startup funded by Larry Page, CEO’d by Sebastian Thrun, and has received $6.5 M in funding. The Flyer, a one-man decacopter, was announced to the world through CNN Money and Casey Neistat. It should be noted that in the entire media landscape, these are the two outlets most ignorant of aviation: CNN needs no explanation, and Neistat flies quadcopters through the Hudson River Corridor at 1000 feet AGL. Additionally, Kitty Hawk is not exhibiting at AirVenture next month, which leads me to believe Kitty Hawk is trying to stay out of the aviation industry or simply doesn’t want knowledgeable people asking them questions. But I digress.
The Kitty Hawk Flyer is being promoted by the company as “a personal flying vehicle… to make flying part of everyday life” and a machine that will give you, “a world free from traffic”. It is being billed by CNN and Neistat as ‘a flying car’. Kitty Hawk is just fine with allowing the media to call it as such. Additionally, Sebastian Thrun is making claims about the Flyer that are disingenuous at best, outright illegal at worst, and should draw the ire of any investors.
In the CNN Money piece, Thrun claims the Flyer is capable of traveling at 100 miles per hour, which would be illegal. The Flier is certified as a Part 103 Ultralight, and under that regulation the Flyer “is not capable of more than 55 knots calibrated airspeed at full power in level flight.” The Flyer may also be overweight. The first version of the Flyer was basically a decacopter with a seat, and weighed in at 220 pounds. Part 103 regulations have a limit of 254 pounds, and it’s entirely possible there are more than 34 pounds of chassis and fiberglass on the latest version. I should also mention the safety training, while not required for a Part 103 ultralight, is insufficient: Casey Neistat’s underwater egress training was done in a Chuck E. Cheese-style ball pit. You can breathe in a ball pit, you can’t breathe underwater.
But legality aside, a Part 103 ‘flying car’ is just about the dumbest idea ever. You can’t use it to commute, and you’re welcome to call your local FSDO to confirm that. You’re not going to fly it in New York City or San Francisco because there are airports in the way. At best, this is a ‘flying ATV’ that you would take out on your farm; a toy for rich people. At worst, it’s the latest example of the Silicon Valley philosophy of ‘ignore laws and break things’.
[Ryan Wamsley] has spent a lot of time over the past few months working on a new project, the Ultimate LoRa backplane. This is as its name suggests designed for LoRa wireless gateways, and packs in all the features he’d like to see in a LoRa expansion for the Nano Pi Duo.
His design features a three-terminal regulator, and in the quest for a bit more power efficiency he did what no doubt many of you will have done, and gave one of those little switching regulator modules in a three-terminal footprint a go. As part of his testing he inadvertently touched the regulator, and was instantly rewarded with a puff of smoke from his Nano Pi Duo. As it turned out, the regulator was susceptible to electrical noise, and had a fault condition in which its input voltage was routed directly to its output. As a result, a component in the single board computer received way more than its fair share, and burned out.
If there is a moral to be extracted from this story, it is to never fully trust a cheap drop-in module to behave exactly as its manufacturer claims. [Ryan]’s LoRa board lives to fight another day, but the smoke could so easily have come from more components.
So that’s the Fail of The Week part of this write-up complete, but it would be incomplete without the corresponding massive win that is [Ryan]’s LoRa board itself. Make sure to take a look at it, it’s a design into which a lot of attention to detail has been put.
The 2N3819 is the archetypal general-purpose N-channel FET. (ON Semiconductor)
Over the recent weeks here at Hackaday, we’ve been taking a look at the humble transistor. In a series whose impetus came from a friend musing upon his students arriving with highly developed knowledge of microcontrollers but little of basic electronic circuitry, we’ve examined the bipolar transistor in all its configurations. It would however be improper to round off the series without also admitting that bipolar transistors are only part of the story. There is another family of transistors which have analogous circuit configurations to their bipolar cousins but work in a completely different way: the Field Effect Transistors, or FETs.
In a way it’s less pertinent to look at FETs in the way we did bipolar transistors, because while they are very interesting devices that power much of what you will do with electronics, you will encounter them as discrete components surprisingly rarely. Every CMOS device you deal with relies on FETs for its operation and every high-quality op-amp you throw a signal at will do so through a FET input, but these FETs are buried inside the chip and you’d be hard-pressed to know they were there if we hadn’t told you. You’d use a FET if you needed a high-impedance audio preamp or a low-noise RF amplifier, and FETs are a good choice for high-current switching applications, but sadly you will probably never have a pile of general-purpose FETs in the way you will their bipolar equivalents.
That said, the FET is a fascinating device. Join us as we take an in-depth look at their operation, and how and where you might use one.
FET basics
A diagram of an n-channel JFET. As the negative gate voltage on the p-type silicon decreases in the lower diagram, its electric field restricts the area through which electrons can flow in the n-type channel. Chtaube,(CC BY-SA 2.0 DE)
A basic FET has three terminals, a source (the source of electrons), a gate (the control terminal), and a drain (where electrons leave the device). These are analogous to the terminals on a bipolar transistor, in that the source fulfills a similar role to the emitter, the gate to the base, and the drain to the collector. Thus the three basic bipolar transistor circuit configurations have equivalents with a FET; common-emitter becomes common-source, common-base becomes common-gate, and an emitter follower becomes a source follower. It is dangerous to stretch the analogy between bipolar transistors and FETs too far, though, because of their different mode of operation. A closer similarity exists between a FET and a triode tube, if that helps.
The simplest FET for demonstration purposes has a piece of N-type semiconductor with source and drain connections at opposite ends, and a zone of P-type semiconductor deposited in its middle. This is referred to as an N-channel junction FET or JFET, because the channel through which current flows is N-type semiconductor, and because a diode junction exists between gate and channel. There are equivalent P-channel devices, just as there are PNP and NPN bipolar transistors.
Were you to bias an n-channel JFET as you would a bipolar transistor with a positive bias on its gate, the diode between gate and source would conduct, and the transistor would remain a diode with two cathode terminals. If however you give the gate a negative bias compared to the source, the diode becomes reverse-biased, and no current to speak of flows in the gate.
A characteristic of a reverse-biased diode is that it has a depletion zone between anode and cathode, an area in which there are no electrons. This is what causes the diode to no longer conduct, and the size of the depletion zone depends upon the size of the electric field that exists across it. If you’ve ever used a varicap diode, the capacitance between the two sides of this variable-width zone is the property you are exploiting.
In a FET, the depletion zone stretches from the gate region into the channel, and since its size can be adjusted by the gate voltage it can be used to “pinch” the remaining conductive region within the channel. Thus the area through which electrons can flow is controlled by the gate voltage, and thus the current that flows between drain and source is proportional to the gate voltage. We have an amplifier.
A simple FET radio receiver circuit showing FET biasing. The gate is biased at ground potential through the inductor, and the source is held above ground by the current in the 5K resistor. Herbertweidner [Public domain].In the JFET diagram above, the negative gate bias is represented by a battery. Tube enthusiasts may have encountered equipment that derives negative grid bias from a power supply, and you will find tube power units that include a -150 V rail for this purpose. In general though this is inconvenient in a FET circuit even though the voltage is lower, because of the extra cost of a negative regulator.. Instead the gate is held at a lower potential than the source by careful selection of a source resistor such that the current flowing through it brings the source up above ground, and a gate bias circuit that holds the gate close to ground. The base resistor chain from the bipolar circuit is for this reason often replaced with either a single resistor to ground, or a gate circuit with a very low DC resistance to ground such as an inductor.
MOSFETs, where the FET becomes more useful
Internal structure of an N-channel MOSFET. Fred the Oyster [Public domain].The JFET we have described is the simplest of field-effect devices, but it is not the one you will encounter most frequently. MOSFETs, short for Metal Oxide Semiconductor FETs, have a similar source, gate, and drain, but instead of relying on a depletion zone in a reverse-biased diode, they have a thin layer of insulation. The electric field from the gate acts across this insulation and pinches the conductive region in the channel through repulsion of electrons, with the same effect as it has in the JFET. It is beyond the scope of this piece to go into their mechanisms, but you will encounter two types of MOSFET: depletion mode devices that require the same negative bias as the JFET, and enhancement mode MOSFETS that require a positive bias.
Why would you use a FET?
So we’ve described the FET, and noted that while its mode of operation is different to that of a bipolar transistor it does a substantially similar job. Why would we use a FET then, what advantages does it offer us? The answer comes from the gate being insulated either by a depletion region in a JFET or by an insulating layer in a MOSFET. A FET is a voltage amplifier rather than a current amplifier, its input impedance is many orders higher than that of a bipolar transistor, and thus you will find FETs used in many applications that require a high impedance small-signal amplifier. The input of a high-performance op-amp will almost certainly be a FET, for example.
This half-bridge power MOSFET driver circuit uses a specialist gate driver IC with a pair of Schmidt buffers to deliver the initial surge required for a fast-turn-on time. Wdwd (CC BY 3.0).
The high input impedance has another effect less coupled to small signal work. Where a bipolar transistor requires significant base current to turn itself on, the corresponding FET requires almost none. Thus almost all complex integrated circuit logic devices are FET-based rather than bipolar because of the huge power saving that can be made by not needing to supply the base current demands of many thousands of bipolar transistors.
The same effect influences the choice of FETs for power switching, while a bipolar transistor’s base current is proportional to its collector current and thus it will need a significant driver, by contrast a power MOSFET requires virtually no standing gate current after an initial surge. A MOSFET power switch can thus be built requiring much less in the way of drive electronics and much more efficiently than a corresponding bipolar switch, and makes possible some of the tiny driver boards you might be used to for driving motors in your 3D printer, or your multirotor.
Through the course of this series you should have acquired a solid grounding in basic bipolar transistor principles, and now you should be able to add FETs to that knowledge base. We suggested you buy a bag of 2N3904s to experiment with in one of the previous articles, can we now suggest you do the same with a bag of 2N3819s?
The UNIX Way™ is to cobble together different, single-purpose programs to get the effect you want, for instance in a Bash script that you run by typing its name into the command line. But sometimes you want the system to react to changes in the system without your intervention. For example, you might like to watch a directory and kick off some program automatically when a file appears from a completed FTP transaction, without having to sit there and refresh the directory yourself.
The simple but ugly way to do this just scans the directory periodically. Here’s a really dumb shell script:
#!/bin/bash
while true
do
for I in `ls`
do cat $I; rm $I
done
sleep 10
done
Just for an example, I dump the file to the console and remove it, but in real life, you’d do something more interesting. This is really not a good script because it executes all the time and it just isn’t a very elegant solution. (If you think I should use for I in *, try doing that in an empty directory and you’ll see why I use the ls command instead.)