Neat USB Hub for Raspberry Pi

usb hub.jpg

I really like the Raspberry Pi Zero. It's tiny and powerful. But connecting things to it can be a bit of a pain, particularly when you are setting up a system and really need a USB mouse and keyboard.

This little device makes things a lot easier. It is a hub which can plug straight into a Pi Zero and give you four ports of USB goodness. It even has an adapter so that you can use it as a “normal” hub as well. I found it in Amazon here.

Haunted USB sound adapter for Raspberry Pi

haunted usb connector.jpg

I needed a USB sound adapter for a Raspberry Pi device. I found this one on Amazon and also Pimoroni. it works fine. You get stereo audio output and mono microphone input. But the strange thing about it is the eerie glow that you get from the two sockets:

sound lights.jpg

I don’t think the device supports an optical audio connection (which is the only reason I can think of for there being lights in there). However, they do seem to flicker when you plug the device into a Pi.

Microsoft Flight Simulator in "even more awesome" shock

flying again.jpg

At the end of last month a couple of things happened to Microsoft Flight Simulator. The first thing is that it got smoother and faster (especially the loading times) and the second thing is that it now runs on XBOX. I’m not lucky enough to have an XBOX that it will run on, but number one son has and reports that it works rather well.

It is an astonishing piece of software. If you’ve not had a go with it you are definitely missing out.

Cleaning a camera sensor

cleaning.jpg

When I was processing the picture tor yesterday’s post I realised that my camera sensor was absolutely filthy. The good news is that Lightroom is pretty good at getting rid of the resulting spots, but I don’t want to have to do this for every picture.

So today I cleaned up my sensor a bit. One of the problems with a mirrorless camera is that there is nothing between your precious sensor and the outside world when the lens is removed. Which means that your sensor will get dusty. If you want to find out where all the spots are, here’s how I do it.

  1. Open Notepad on your computer and expand it to fill the screen.

  2. Turn on your camera and set your the exposure to Aperture priority. Then set the aperture to the highest possible value (I go for F22).

  3. If you point the camera at the white screen you should see any dust particles show up as black dots.

  4. Turn the camera off.

  5. Take the lens off and use a dust blower to blow the dust off the sensor. Do not blow into the camera yourself. And definitely don’t sneeze into it. And don’t get the blower so close to the sensor that it touches. If you hold the camera upside down while you do this the dust should fall out. I got a dust blower shaped like a rocket that I rather like.

  6. Pop the lens on, power up the camera and check to see if the dots have gone. They should have. You can always repeat the the process a few times. If you have some tiny ones that won’t go away there my advice would be to leave them put. Definitely don’t try to wipe the sensor yourself, either get a proper kit or someone else to do it. I think (he said optimistically) that camera sensors are covered with quite a strong protective cover, but I’ve no desire to test this theory and risk totalling my camera.

  7. Oh, and one other tip. Make sure your monitor screen is clean. Otherwise you’ll spend ages trying to remove spots that aren’t there..

The return of Piano Practice

pianokeys.jpg

Music lessons were one of the less fun parts of growing up for me. For a while I was learning the violin (mainly so that when I took the violin case into school I could pretend to be a Chicago gangster). But then I got bored with that. And, once that my friends discovered that all I had in the case was a violin, and not a sub-machine gun, they got bored with it too. I got out of that practice regime by the neat trick of being really bad at it. Truly, I put the vile into violin. After complaints from the neighbours in the next town I gave that up and returned to what was supposed to be my first love, the piano. A substantial part of my childhood was spent hoping that mum and dad wouldn’t remember that I hadn’t done my practice that day.

Anyhoo, as things do, piano practice has now returned to my life. This time I’m using the Simply Piano app to keep track of my efforts and I must admit that I’m rather enjoying it. I’ve connected the iPad to my new piano and so it can tell what keys I’ve pressed and track my progress. The app has lots of content, including versions of tunes I quite like. It runs on subscription, but it is much cheaper than proper lessons.

The nice thing about learning an instrument (which of course completely passed me by when I was younger) is that when you are practicing you really can’t think of anything else. You are too busy focusing on why your hands won’t do what you want them to. So if you want to escape from the worries of the world for a while you can just go in there and do battle with something that you can’t play yet but would like to. Today I had a go at playing Beethoven. Beethoven won, but I’ll be back for another go tomorrow.

Chromebook 11 for 99 pounds - well worth it

connected chromebook.jpg

So my “mistakenly cheapChromebook 11 arrived this week and I’ve been playing with it. I’m actually very impressed. It just works. The keyboard is OK (although it is missing a row of function keys at the top) and the trackpad is useable and responsive. The screen is a bit of a weak spot, in that it has a big thick bezel and the contrast could be better, but the browsing experience is good. The battery life is very good, especially the standby time.

I’ve not added any programs to it just yet, but I did have a go at using Chrome to talk to a Connected Little Box processor (an ESP8266). To my surprise, it mostly worked. I can use the terminal program to talk to a device and the program uploader runs to completion, but the uploaded code doesn’t seem to stick. It is probably something to do with the way that the browser disconnects from the device after upload. I’ll have to take a look.

For the price I paid (99 pounds) it was a steal. It looks pretty sturdy and would be a great first machine for school use. It seems to run my Begin to Code with JavaScript (available at the end of the month - order your copy here ) sample code just fine. If it could run Visual Studio Code it would be completely perfect. Apparently it is possible to install Edge (my browser of choice) on the machine, but this involves setting up a trial version of the Linux environment which I’m a bit too lazy to do just now.

I can’t see how anyone involved in selling this machine can make a profit, which means that it must somehow be part of Google’s world domination strategy, but if you want something you can just throw into a bag to take away with you, and you don’t want to have to worry too much about losing/breaking it, this would fit the bill perfectly.

Best ever comment on the C# Yellow Book

image1.jpeg

Just had the best ever comment on the content of my C# Yellow Book from Jakeb. In the book I mention that programmers have to be responsible people, and I use the quote “With great power comes great responsibility” from Spiderman’s uncle.

Jakeb tells me this is wrong. It should be "Spider-Man’s uncle”. He even sent me an illustration to prove the point. Thanks for that. I’ll make sure it is fixed in the next version of the text.

Making Hauga

Hauga.jpg

We are in the final phase of our domestic renovations; assembling new furniture. We’ve gone for some Hagua units from Ikea. I quite like assembling Ikea furniture. I’ve not done it for a while and they’ve found a way to make it even simpler and quicker now. Panels just slot together and the huge number of little nails that you used to have to use to put the back on have been replaced with a few push-fit plastic things.

Ikea seem to have minimised furniture to make it cheaper in the same way that aircraft designers minimise planes to reduce weigh. There was nothing in the kit that didn’t absolutely need to be there.

Cut Price Chromebook

I got an email today from HP telling me that they have reduced the price of their Chromebook 11 by 65 pounds, to 99 pounds. Then later I got another email from them saying that the price reduction was an error. But it was too late. I’d already ordered mine. I’ve been after a Chromebook for a while so that I can test the example code in “Begin to Code with Javascipt” (in all good bookshops on 29th August, order your copy here)

It arrives later this week, which will be interesting.

Birthday carpet and piano

piano and carpet.jpg

As they used to say in the A-Team, I love it when a plan comes together. Today a whole sequence of DIY, decorating and carpetry (if that is a word) comes to a head. The carpet fitters are due in the morning and the piano arrives in the afternoon. And it’s my birthday.

It all worked carpets duly in place we headed out for lunch at the wonderful Bluebell Pub and then staggered home to wait for the piano to arrive. Which it duly did, right on time. Happy birthday me.