As promised, I have updated the AM2315 temperature sensor “How-To” document for modern times. The changes include:
- The removal of the obsolete quickwire library that caused so much pain.
- Removing quickwire also removed the dependency on Python3.
- Added the very capable i2c library tentacle-pi written by lexruee.
- Use of the Raspian Switch OS means these instructions work on any Pi.
- Streamlined 6-Step process.
I have tested the new procedures on every Pi that I have in the drawer. This includes a Pi v1, v2, vA+, v3, and the Pi Zero. Yup – they all work using the same software and the same pinout. Sweet!
You can download the new document and test script here.
For all of you that have contacted me in the last couple of months trying to get your sensor working, I apologize for the delay in getting this document updated.
Hello fellow smoke-breathers. Sorry about the very long absence from my blogging duties. I intend to be more active now that I no longer travel so much.
Over the last several months I have received some Emails telling me the AM2315 temperature sensor code I wrote long ago no longer works. There are a lot of reasons for this. First, the Google code repository has been taken down and folks are having trouble finding the quick2wire code libraries. They are now posted here.
Second, there were some hardware changes made to the Pi-3 and Pi Zero that broke the sensor detection code in my AM2315.py script. Finally, the use of the quickwire code is difficult due to its size and complexity. There are better i2c code libraries available now.
Since the AM2315 is still a popular hacking sensor, I will plug in an alternative i2c library, test the code on the latest Pi’s, and update the ‘How-To’ document.
Standby for the update – ‘ol Sopwith is working on it.
In my last post, I railed about the HP decision to lock down their printer firmware to prevent third party print cartridges from working. Interestingly enough, there has been enough of a backlash that HP decided to respond.
This article from ars TECHNICA describes how HP reacted to the consumer backlash by providing a special firmware upgrade that will bypass the new 3rd party cartridge restriction.
It appears HP has backed off from this crazy nonsense (temporarily) because of pressure from the Electronic Frontier Foundation (EFF) summarized in a letter from Cory Doctorow.
Here is the response from Jon Flaxmen, CEO of HP, Inc. Read it carefully and note the nuance.
I came across this interesting article over at the Wired web site this week. Seems like HP does not like customers who buy their printers to use non-HP ink cartridges. HP has modified the firmware in their OfficeJet, OfficeJet Pro, and OfficeJet Pro X printers to reject any ink cartridge that is not theirs. Essentially they have DRM’d these printers.
It is one thing to know this going in when you bought the printer; but to lock down the device after you purchase it, is evil. For example, if I walked in, say a BestBuy, and was interested in buying a new printer, and the sales guy says, “Remember, if you buy this HP printer, you can only use genuine HP printer cartridges.” Knowing this in advance, I can make an informed decision if I am OK with this “limitation.” If not, I buy something else.
This is not what happened here.
As you well know, the theme of this blog is: “It is works out of the box – what fun is that?” Ol’ Sopwith loves it when things don’t work! That means you have to fix it. Fun!
Today was one of those days when “fixing it” was not fun.
I run a backup server that takes care of all my backup chores. Had it running for years. On all my computers, I run an rsync backup script that backs up everything to this server. The server has a pair of hot-swap SATA drives that get rotated to a fire safe on a regular basis. This setup has served me well.
Now that I have had a couple of days to use my shiny new Dell XPS-13 (see Part-1 and Part-2), I realized that Ubuntu 16.04 LTS was taking a long time to shutdown. When the shutdown shutdown screen appeared, I hit the <Esc> key to watch the shutdown sequence. It was hanging on several shutdown tasks.
Lots of Googling determined this is a well know issue going back several Ubuntu releases. In one post, it was mentioned that the issue was caused by the Private Internet Access (PIA) client. It just so happens that Sopwith uses this great tool. I have had an account with them for about a year. When my Dell XPS-13 boots, PIA automatically connects to the nearest access location and gives me VPN privacy at all times. I use it on Mrs. Sopwith’s Windows box, and several of my Android phones. It just works.
I disabled the client, rebooted, and then shutdown the laptop. It shut down within a few seconds. Bingo – maybe the PIA client was not accepting the shutdown request.
Even though this problem was annoying – it was not a big deal to me. But just for the heck of it, I decided to submit a technical support issue to PIA so they were aware this might be an issue.
Ebon Upton announced in a blog post on September 8, 2016, that 10 million Rapsberry Pi’s have been sold. This is an incredible feat in the middle of an incredible story. The world is a better place because of people like Ebon and his dedicated team. To top it all off, Ebon is the nicest and most humble guy you could ever meet.
Congratulations and thanks for the coolest gadget of all time.
In Part-1 of this blog series I described my path to finally purchasing a Dell XPS-13 laptop. This entry describes the adventure of customizing the laptop and installing Ubuntu 16.04 LTS.
To get you in the mood for what is coming – check out my awesome XPS-13 desktop.
O’l Sopwith finally decided it was time to purchase a new laptop. My personal laptops usually last 4-5 years before I part with them. In the past, I have owned Dell’s, Toshiba’s, and even an Azus. Most of my corporate provided units came from Dell, HP, or Lenovo. Sorry Apple freaks, Sopwith is not a fan – so a Mac is not in my future.
For a long time, I have had my eyes on the Dell XPS-13. In my humble view this is the finest laptop on the planet. You can read about it here:
On November 26, 2015, Eben Upton and his engineering team at the Raspberry Pi Foundation announced the release of another member of the Pi family – Pi Zero. As far as I know, this is the first usable computer that runs Linux and costs $5 USD. This is an amazing accomplishment.
Rather than blog out all of the technical details, I suggest you download the latest issue of the MagPi. This is one of my favorite magazines, and the 40th issue is one of the best ever. It contains everything you need to know about the new Pi.
Cynics may argue that this Pi really does not qualify as a $5 computer since you need to invest in a couple of special cables to make is useful. Also, you need to solder in a pin header if you want to use the IO capabilities. So what? This is just another proof of Sopwith’s theorem – “If it works out of the box – what fun is that?”
The fact anyone can purchase a computer with this power at a $5 price point says it all. I suspect this device will be more popular with hackers and makers than with schools, but this remains to be seen.
Eben posted a video explaining the reasoning behind building a $5 computer. I am struck by his passion and dedication to the education of young people. His humbleness is striking.