Jeff Duntemann's Contrapositive Diary Rotating Header Image

rpi

Odd Lots

  • NASA’s first asteroid sample, from asteroid Bennu, safely landed and is now in a clean room awaiting analysis. That’ll take some time yet, but let’s just say that the journey was definitely the reward—the first of many rewards, I suspect.
  • FEMA and the FCC are planning a test of the Emergency Alert System (EAS) and the Wirless Emergency Alerts (WEA) on Wednesday, October 4 of this year. The timing for the alert is 2:20 PM EST. The WEA portion of the test will be heard on cellphones.  The EAS portion of the test will go out to broadcast radio and TV stations. The test broadcasts will announce themselves as test broadcasts and no action need be taken. As I read the release, the EAS portion will last for one minute and the WEA portion for half an hour. (H/t to Don Doerres.)
  • Older adults who use the Internet regularly have only half the risk of dementia compared to those who use the net occasionally or not at all. I avoid social media fistfights and use the time I devote to the net to learning new things and promoting my books. Pace Woody Allen, my brain is my first favorite organ.
  • The Raspberry Pi 5 has been announced, and the 4 GB version should be available in quantity to end-users by midlate October. (The 8 GB version may not ship until November or December.) Tom’s Hardware has a good long-form overview. The CPU is an A76 quad core with all cores running by default at 2.4 GHz. It overclocks well. Oh, and it has a power button!
  • NOAA’s average temperature anomaly chart for the contiguous US shows no clear trend from 2005 to the present. The data come from USCRN, the United States Climate Reference Network, all sites of which are well away from any UHI.
  • UHIs bias temperatures quite a bit. Here’s a new study from the peer-reviewed journal Climate that credits UHIs for most of recent recorded warming. As much as 40% of the warming measured since 1850 might be due to measurements made in cities rather than out in the natural environment.
  • An NHS study shows that cannabis is a “hyperaccumulator” of heavy metals, especially lead and cadmium. Regular users show hazardous levels of those metals, and traces of several othes, in blood and urine.
  • Cannabis isn’t the only hyperaccumulator of heavy metals. Brazil nuts contain 1,000 times the amount of radium found in typical foods. Barium too. I gave up Brazil nuts in my teens because it was just too damned much work to get them out of their shells. Right choice, wrong reason. But emphatically the right choice.
  • Another NHS study shows that typical N95 masks emit hazardous levels of toxic organic compounds linked to seizures and cancer. So not only will N95 masks not protect you from COVID, over the long haul they could kill you.
  • The penny jars are still coughing up old uncirculated pennies in considerable numbers. Over the past week or so I got brilliant uncirculated (BU) 1976-D and 1969-S pennies. Peculiarly (or maybe not) the uncirculated pennies I find before 2000 tend to be older than pre-2000 pennies showing signs of daily handling. I think this proves my theory that they’ve spent a long time in a jar in somebody’s closet.
  • There is now reasonable evidence that night people are at greater risk for type II diabetes than morning people. The researchers seem puzzled by this, but I have a hypothesis based on a lecture I heard 25 years ago at the Mayo Clinic here in Scottsdale: Night people stay up late, but their work or school schedules begin at the same time as for morning people, so night people get less sleep overall. Mayo Climic researchers found that dogs deprived of sleep both gained weight and developed diabetes. There is a metabolic connection to sleep quantity and quality that we don’t fully understand yet, but the research is out there and we could use a lot more.
  • A new baby giraffe was born back in July with no spots. Actually, no reticulation; her coat is uniformly the color of giraffe spots. She may be the only such giraffe in the world, and although she’s enjoying the spotlight now, I don’t think she’ll be quite as happy once she gets into giraffe middle school.

Odd Lots

  • I regret to report that Robert Bruce Thompson has left us, at age 64, of heart problems. He’s best-known for his books PC Hardware in a Nutshell and Building the Perfect PC, but he’s also written several books on astronomy and telescopes that I much admire, as well as several books on home-lab chemistry. He was one of the best technical writers of his generation, and has been blogging as long as I have, which later this year will have been 20 years.
  • Apple will be releasing the source code for the Lisa OS this year. The machine came out in 1983 and didn’t sell well due to its $10,000 price tag. (That would be almost $25,000 today.) I’m interested because Lisa OS was written in…Pascal! I’ve heard rumors from the FreePascal community that a port to the Raspberry Pi is likely and might not even be especially difficult. Imagine the OS from a $25,000 machine running on a computer costing $35. I’d do that just to say I did.
  • I didn’t know anything about ArcaOS until a few days ago, but it’s basically a continuation of OS/2 Warp, based on Warp 4, MCP2. Legal, not free, but also not hideously expensive, and supported to boot. If you ever used OS/2 and liked it, take a look.
  • Back before we truly understood the dangers of nuclear radiation, scientists experimented with nuclear fission by moving neutron reflectors around a softball-sized core of PU-239 by hand, and recording the nuclear reaction’s strength from Geiger counter readings. This was called “tickling the dragon’s tail,” and when done clumsily, led to the death of several researchers and shortened the lives of others. Here’s a good summary.
  • The last house designed by Frank Lloyd Wright before his death in 1959 is in Phoenix, and it’s for sale. Got $3.25M in your wallet? You’re set! (Thanks to my own Carol for the link.)
  • Here’s an excellent long-form piece on Amazon Go, the online retail behemoth’s experiment in checkout-free B&M retailing. Take if off the shelf, toss it in your bag, and when you’re done shopping, just leave. You need an Amazon account and ideally a smartphone, but with that you’re in business. No word on when the concept will move beyond Seattle.
  • The Dark Crystal is coming back to movie theaters in February. That was a butt-kickin’ movie, and I will probably hand over the $14 ticket price without a great deal of grumbling. A really big screen is worth something!
  • IO9 mentioned some teasers for Cloverfield III. III? Was there a Cloverfield II? You guys never tell me anything!
  • A Canadian sniper team in the Middle East nailed an ISIS terrorist at 3,871 yards. This is about 1,000 yards farther than the previous record for a sniper kill. I have a lot of respect for marksmen (my father was one) and a sense of awe before the skill of snipers at this level.
  • Every time I crank up Waterfox, it asks me if I’d like it to be my default browser. Every damned time. Something appears to be redefining my default browser without my permission. This support page hasn’t been especially helpful. Haven’t cracked this one yet, but I’ll report here when I do.
  • Something the AGW crowd should keep in mind: If you say that any hot summer’s day means global warming, don’t be surprised if people unroll the syllogism and assume that any cold winter’s day means global cooling. Climate isn’t simple, and we know a lot less about it than we claim.

Odd Lots

  • Solar cycle 24 is crashing, and we’re still three years from Solar minimum. 24 really does look to be the weakest cycle in 100 years or more.
  • And if you don’t think the Sun influences Earth’s climate, read this, about the Sun’s indirect effects on climate and why they make climate so hard to predict.
  • I doubt the payback would be more than the cost of the equipment and the electricity, but you can mine bitcoin with a Raspberry Pi–or better yet, a whole farm of them. (Run them from a solar panel?)
  • Speaking of the RPi: I burned a new NOOBS micro-SD last week, and used it to install the latest stock Raspbian. What I discovered is that this latest release has a terrible time detecting any monitor that isn’t straight HDMI. I’ve been using the RPi with older 4:3 DVI monitors through an adapter cable ever since I got my first board, and the board had no trouble figuring out the size of the raster. I’ve screwed around with the config file with only partial success; even telling the board precisely what mode your monitor speaks (1600 X 1200, 75 Hz) doesn’t guarantee correct video.
  • When I was much younger I wanted a PDP-8. And then a PDP-11, which I almost got because Heathkit actually made a hobbyist PDP-11 desktop. I settled for an S-100 8080, because there was actually software for it. I recently stumbled on a hobbyist PDP-8 system based on Intersil’s IM6120 chip. It’s not hardware you can buy; you download the PCB design and the software, get somebody to make the board (not hard these days) and then stuff it yourself. Runs FOCAL-69 and OS/8. Paleocomputing at its best!
  • From the It’s-Dead-But-the-Corpse-Is-Still-Twitching Department: Aetna is pulling out of the Obamcare exchanges entirely next year, citing $200M in losses.
  • You won’t believe where Earth’s atmospheric xenon comes from! (Actually, you will…but you have to say that these days because clicks.)
  • Excellent long-form piece on why we should fear an ideologically uniform elite. From the article: “If you really want to live in a world without tyranny, spend less time trying to show others why you are right and more time trying to show yourself why you are wrong.” Bingo. Because no matter what you think, you are always wrong. About everything. Nothing is simple. Nobody has the whole story. Ambiguity is everywhere. Certainty is poison.
  • How many times do we have to say this? Eat fat to lose weight.
  • We could use more research here (can’t we always?) but it’s certainly possible: Eating more salt may help you lose weight. Could be; I determined by experiment that salt doesn’t affect my blood pressure, so it couldn’t hurt to try.
  • A correlation has been found between consuming lowfat or nonfat dairy products and Parkinson’s disease. No such correlation is seen with full-fat dairy products. My guess: Your brain is mostly made of fat, and people who eat low-fat dairy tend to eat low-fat everything. So this is yet another reason to go low-carb high fat, even if you don’t need to lose weight. Fat is a necessary nutrient!
  • After decades of difficult research, scholars have finally decoded the lyrics to the “O Fortuna” movement of Carmina Burana. And…they aren’t in medieval Latin at all. (Thanks to Sarah Hoyt for the link.)

A Two-Arm Monitor Stand for the Raspberry Pi

Two Arm Mount on Steampunk Table-Cropped-500 Wide.jpg

If what I’ve heard is true, most Raspberry Pi installations consist of the naked circuit board lying atop a nest of wires on the desk behind a monitor. I think it’s true; that was certainly my Raspberry Pi installation for a long time. Now, I’ve decided to use my steampunk computer table as my Raspberry Pi 3 workstation. And I got an idea: Use one of those VESA-standard 2-arm monitor stands that clamps to the edge of a desk without any drilling into or other hacking-up of the desk. One arm holds the monitor, and the other holds the Raspberry Pi itself.

The trick is to buy one of several Raspberry Pi cases that includes a flange with VESA 75 or VESA 100 holes. VESA is a standard for TV and monitor mounting hardware. Its two smallest configurations are a 75mm square, and a 100mm square. Most modern flat-panel TVs and many monitors have threaded holes on their back faces arranged in one of the several VESA configurations. I’m pretty sure (having looked at a lot of monitors and TVs in the past few years) that the 100mm configuration is the commonest. It’s the one on the Dell 1907fp monitor that I’ve been using for Raspberry Pi boards since the beginning. VESA-compatible displays generally use metric screw threads in the mounting holes, with M4 the standard for the smaller configurations, including 100mm. M4 screws can be had at Ace Hardware, and probably also at Home Depot and Lowe’s. (I go to Ace first for such things.)

The Raspberry Pi case that I used is this one:

RPi VESA Case.jpg

It has four little wings with both the VESA 75 and VESA 100 holes. The holes in the wings aren’t threaded, and easily pass standard 8-32 machine screws, which I used to hold the case to the second arm of the monitor stand. I oriented the Raspberry Pi with its USB ports on top, so I can reach over the monitor and plug in peripherals or thumb drives easily.

This approach isn’t limited to the Raspberry Pi. There are VESA cases for the Intel NUC (Next Unit of Computing) boards, and most of the higher-end embedded boards like BeagleBone. On a small table like the one I made, there’s not a lot of flat space to park a case of any size, so whatever computer I’m going to be using on it should be able to hang on that second monitor arm. The arms on the unit I bought can hold up to 12 pounds each. Most of the small-form factor Dell machines I use are that weight or lighter. Dell’s Micro 3000 series has an optional VESA bracket, and brackets for other models may be available. And hey, you guys could rig something, right?

Odd Lots

  • I had some fairly sophisticated oral microsurgery about ten days ago, and it kind of took the wind out of me. That’s why you’re getting two Odd Lots in a row. I have things to write about long-form but have only recently found the energy to write at all. Promise to get a couple of things out in the next week.
  • Some researchers at UW Madison are suggesting that sleep may exist to help us forget; that is, to trim unnecessary neural connections in order to improve the signal-to-noise ratio in the brain. Fair enough. What I really want to know (and am currently researching) is why the hell we dream. I doubt the answer to that is quite so simple.
  • Ultibo is a fork of FreePascal/Lazarus that creates custom kernel.img files for the Raspberry Pi, allowing direct boot into an embedded application without requiring an underlying OS. I haven’t tried it yet (still waiting on delivery of a few parts for a new RPi 3 setup) but it sounds terrific. Bare metal Pascal? Whoda thunkit?
  • Humana just announced that it is leaving the ACA exchanges after 2017. As I understand it, that will leave a fair number of counties (and some major cities) with no health insurance carriers at all. Zip. Zero. Obamacare, it seems, is in the process of repealing itself.
  • NaNoWriMo has gone all political and shat itself bigtime. You know my opinions of such things: Politics is filth. A number of us are talking about an alternate event held on a different month. November is a horrible month for writing 50,000 words, because Thanksgiving. I’m pushing March, which is good for almost nothing other than containing St. Patrick’s Day. (Thanks to Tom Knighton for the link.)
  • Paris has been gripped by rioting since February 2…and the US media simply refuses to cover it, most likely fearing that it will distract people from the Flynn resignation. Forget fake news. We have fake media.
  • I heard from a DC resident that there was also a smallish riot in Washington DC today, and so far have seen no media coverage on it at all.
  • Cold weather in Italy and Spain have caused vegetable shortages in the UK. Millions of small children who would supposedly never know what snow looked like may now never know what kale looks like. Sounds like a good trade to me.
  • Trader Joe’s now sells a $5 zinfandel in its house Coastal brand, and it’s actually pretty decent. Good nose, strong fruit. Seems a touch thin somehow, but still well worth the price.
  • I don’t know if you’ve ever seen Gahan Wilson’s cartoons in Playboy and National Lampoon, but Pete Albrecht sent me a link to an interview with Wilson that explains why he did certain things the way he did, like his brilliant series called “Nuts” about how the world looks and feels to small children.

Odd Lots

Odd Lots

Odd Lots

Odd Lots

Measuring Raspberry Pi USB Power Draw

Smartronix USB Meter.jpg

Most of the problems that turn up while configuring Raspberry Pi systems cook down to inadequate power. The infamous stuttering keyboard problem vanished immediately here when I put the RPi on a stiffer 5V supply. When I bought a second RPi for a programming system, I incorporated a powered hub capable of sourcing 500 ma from each port, and in doing so strangled the power problem in its crib.

Problem solved, but I still wondered: How much juice do these things actually need? How stiff is the 5V supply? I’m a bench tech, and not being able to do actual measurements made me nuts. So I sniffed around a bought a test instrument for measuring voltage and current at a USB port under load. It’s the Smartronix USB Power Monitor, model ST034TT05-01-001. I bought it from CyberGuys; $49.95.

It works like any current meter: You connect it between a USB port and a USB device. It simultaneously measures the voltage on the port and the current through the device. There’s a full-size Type A jack on the right side of the box for connecting the load, and a full-size AB cable plugging into a B jack on the left side of the box, which plugs into a Type A port.

Works like a charm. I did the measurements below in about ten minutes:

Raspberry Pi board running Raspbian, w/o Wi-Fi 50-73 ma
Dell 0C8639 wired USB mouse 5-17 ma
Dell SK8135 wired USB keyboard 53-56 ma
AirLink AWLL5088 Wireless N Ultra Mini USB Wi-Fi 32-80 ma
SanDisk Cruzer Mini thumb drive, 256 MB 27-30 ma
SanDisk Cruzer Micro Skin thumb drive, 256 MB 75-89 ma
San Disk Cruzer Mini thumb drive, 512 MB 7-11 ma
KingMax Super Stick thumb drive, 512 MB 35-62 ma
SanDisk Cruzer Mini 1 GB thumb drive, 1 GB 5-11 ma
SanDisk Cruzer Micro Skin thumb drive, 4 GB 75-91 ma
SanDisk Cruzer Micro Skin thumb drive, 8 GB 43-70 ma

In the readings above, the two numbers are the range across which I saw current run. In most cases, the first number is when the device is idle, the second is when it’s busy. All measurements were taken from the same USB port, one of the four ports on the Rosewill powered hub. All devices tested are USB 2.0, because the meter itself is not listed as capable of testing USB 3 devices.

I have several of most of the thumb drives, and identical models were almost alike in their power behavior. This made me wonder how the Cruzer Minis managed to use so little power while doing the same task that all the other drives did. In this case, the task was copying a 109 MB file (the Lazarus 1.0.6 installer) from the PC to the thumb drive. One would think that smaller drives would draw less current, but not so.

Probably the biggest eyebrow-raiser was how rubbery the 5V USB rail is on my quadcore. An 8GB Cruzer Micro Skin thumb drive pulled the port down from 4.99 v to 4.91 v while drawing 90 ma. The same drive pulled the Rosewill hub supply down by only .02 v , from 5.17 v to 5.15 v while drawing 70 ma. (Current draw in thumb drives is not the same on the RPi as it is on Windows.)

My only gripe about the meter is that “peak” mode displays the highest values for voltage and current, when voltage and current generally move in opposite directions as load increases. So a downward movement in voltage isn’t registered in peak mode.

Other than that, it works as described and answered a whole lot of questions about what sorts of things I can reasonably expect to connect to a Raspberry Pi’s built-in USB ports. Actually, I now recommend using the powered hub for everything, given the RPi’s touchiness about power. It makes the RPi system bulkier and snakier, but a whale of a lot more reliable.

And as for the Smartronix USB power meter, let’s say solidly (if not quite highly) recommended.