All About Eve

Most programming languages today look fairly similar. There’s small differences, of course (Python using spaces, Ruby and Perl have some odd-looking constructs). In the 1960s and 1970s, though, a lot of programming languages were pretty cryptic. Algol, APL, and LISP are great examples of unusual looking programming languages. Even FORTRAN and PL/1 were hard to read. RPG and COBOL were attempts to make programming more accessible, although you could argue that neither of them took over the world. Most programming languages today have more similarity to FORTRAN than either of those two languages.

A new programming language, Eve, claims to be based on years of research in programming from a human perspective instead of from the computer’s. The result is a language that works by pattern matching instead of the usual flow of control. It is also made to live inside of Markdown documents that can serve as documentation. You can see a video about Eve, below.

Neither of these are totally new ideas. SNOBOL, AWK, and Prolog all have some pattern-matching involved. [Donald Knuth] was promoting literate programming back in the 1980s. However, Eve understands modern constructs like web browsers.

Continue reading “All About Eve” →

Personal Compass Points To Your Spawn Point

A conventional compass points north (well, to magnetic north, anyway). [Videoschmideo]  wanted to make a compass that pointed somewhere specific. In particular, the compass — a wedding gift — was to point to a park where the newlywed couple got engaged. Like waking up in a fresh new Minecraft world, this is their spawn point and now they can always find their way back from the wilderness.

The device uses an Arduino, a GPS module, a compass, and a servo motor. Being a wedding gift, it also needs to meet certain aesthetic sensibilities. The device is in an attractive wooden box and uses stylish brass gears. The gears allow the servo motor to turn more than 360 degrees (and the software limits the rotation to 360 degrees). You can see a video of the device in operation, below.

Continue reading “Personal Compass Points To Your Spawn Point” →

Retrotechtacular: FAX As A Service In 1984

If you tell someone these days to send you something via FAX, you are likely to get a look similar to the one you’d get if you asked them to park your horse. But in 1984, FAX was a mysterious new technology (well, actually, it wasn’t, but it wasn’t yet common to most people).

fed-ex_zapFedEx–the people who got famous delivering packages overnight–made a bold move to seize a new market: Zapmail (not to be confused with the modern mass mailing service). The idea was simple (you can see a commercial for it in grainy VHS splendor below): Overnight is great, but sometimes you need something sent across the country now. A FedEx driver picks up your documents, carries them to a FedEx office. There the documents FAX to another FedEx office where another driver delivers the printed copy. The process took two hours to get a paper document from one side of the continent to another.

Continue reading “Retrotechtacular: FAX As A Service In 1984” →

Drum On A Chip–Not That Kind Of Chip

Comedian Mitch Hedberg had a theory about Pringles potato chips. His theory is the company formed to make tennis balls. But instead of a truckload of rubber, someone accidentally sent them potatoes, so they made the best of it. Certainly the Pringles can is an iconic brand all by itself. The cans also have a lot of hacker history, since they are commonly used for WiFi cantennas (even though it might not be the best choice of cans). People also use them to build pinhole cameras, macro lenses, and a variety of cannon-like devices.

[Ian H] uses the short Pringles cans to build a drum kit. Clearly, the little cans aren’t going to make very much sound on their own, but with a piezo speaker element used in reverse, the cans become touch sensors that feed an Arduino and drive a MIDI device. You can see a video of the result, below.

Continue reading “Drum On A Chip–Not That Kind Of Chip” →

Minimal Arduino Clock

Making a clock with a common microcontroller like an Arduino isn’t very difficult. However, if you’ve tried it, you probably discovered that keeping track of wall time is difficult without some external hardware. [Barzok] has a very minimal clock build. It takes a handful of LED arrays with an integrated driver, an Arduino Nano, a real-time clock module, and a voltage regulator.

Continue reading “Minimal Arduino Clock” →

Machine Learning: Foundations

When you want a person to do something, you train them. When you want a computer to do something, you program it. However, there are ways to make computers learn, at least in some situations. One technique that makes this possible is the perceptron learning algorithm. A perceptron is a computer simulation of a nerve, and there are various ways to change the perceptron’s behavior based on either example data or a method to determine how good (or bad) some outcome is.

What’s a Perceptron?

I’m no biologist, but apparently a neuron has a bunch of inputs and if the level of those inputs gets to a certain level, the neuron “fires” which means it stimulates the input of another neuron further down the line. Not all inputs are created equally: in the mathematical model of them, they have different weighting. Input A might be on a hair trigger, while it might take inputs B and C on together to wake up the neuron in question.
Continue reading “Machine Learning: Foundations” →

Mastering Ball Screws

Most inexpensive 3D printers use a type of lead screw to move some part of the printer in the vertical direction. A motor turns a threaded rod and that causes a nut to go up or down. The printer part rides on the nut. This works well, but it is slower than other drive mechanisms (which is why you don’t often see them on the horizontal parts of a printer). Some cheap printers use common threaded rod, which is convenient, but prone to bad behavior since the rods are not always straight, the threads are subject to backlash, and the tolerances are not always the best.

More sophisticated printers use ACME threaded rod or trapezoidal threaded rods. These are made for this type of service and have thread designs that minimize things like backlash. They typically are made to more exacting standards, too. Making the nut softer than the rod (for example, brass or Delrin) is another common optimization.

However, when lead screws aren’t good enough, mechanical designers turn to ball screws. In principle, these are very similar to lead screws but instead of a nut, there is a race containing ball bearings that moves up and down the screw. The ball bearings lead to less friction.

Misumi recently posted a few blog articles about ball screws. Some of the information is basic, but it also covers preloading and friction. Plus they are promising future articles to expand on the topic. If you prefer to watch a video, you might enjoy the one below.

Continue reading “Mastering Ball Screws” →