Never point your camera at the sun
/This picture was taken in the afternoon
…except sometimes.
Rob Miles on the web. Also available in Real Life (tm)
This picture was taken in the afternoon
…except sometimes.
Nothing to do with the post. But another picture I like
One of the more annoying quirks of using usb serial ports is that they move about a bit. The precise port that you get when you plug the same device into your computer is subject to change. This can be annoying; particularly if you want to make something that just works. With all that in mind I present this:
def get_port(self, portNames):
result = None
for portName in portNames:
try:
print("Connecting to " + portName)
result = serial.Serial(portName, 115200)
print(" Connected")
return result
except :
print(" Connect failed to " + portName)
return result
The get_port function is given a list of ports that might have something behind them. It then works through the list trying each one and returns either a port that worked or None.
ports = ["/dev/ttyACM0","/dev/ttyACM1","/dev/ttyACM2"]
serial_port = self.get_port(ports)
You call it as shown above. The ports variable contains a list of addresses. When the function completes it will either have a useable port or None. I’ve found it quite useful.
We had a fair amount of hardware to play with
We had a lovely meetup this evening, greatly enlivened by some newcomers keen to learn stuff. The theme was musical and so we had a few devices to play with including my Chocolate Synthbox, a Synthstrom Deluge, an Organelle, a Norns Shield and Tenori-On. Much fun was had, with plenty of clicks, beeps and musical-ish sounds beating out.
We had some wonderful chats about ChatGPT, air quality, how a piano works (and how to mechanise it), lithophanes, HueForge and of course robots.
There was so much interest in Hull Pixelbots that we’ve decided to get together and build a bunch. We’ll be meeting up in two weeks (20th March) at 5:30pm in Hull MakerSpace and having a go. I’ll be publishing a shopping of list of parts soon. If you want to go on the mailing list for the Meetup send an email to addmetothelist@hullpixelbot.com
I don’t think it was my mending that broke it
My mouse has broken. I’ve had it ages. It’s a Microsoft Sculpt Comfort mouse and I really like it. Everything works but the scroll wheel. This has happened before so I took it apart and cleaned it. And it is still broken. This is a big thing. I’ve had it for ages. It came with a keyboard/mouse pack from which the keyboard has long gone. I’m now making do with a flat mouse and looking at horribly expensive “new-old” stock.
Pro tip. If you find a keyboard or a mouse that you really like you should buy a couple of them and pop one away for the future….
I went out and bought this especially for the blog
This month’s HackSpace magazine is great for all kinds of reasons. Hopefully including my article about 3D printing in colour….
This picture has nothing to do with the subject of this post. I just like how it came out.
One of the best bits of DDD yesterday was getting together with some students to talk about plans for the future. Boss had organised a bunch of speakers to have a word with a bunch of students. For me it was great to hear folks echoing what I used to tell students all those years ago. All of the speakers had great stories and I chipped in occasionally too. But I think all the advice can really be summed up very simply:
Do stuff and tell people about it.
People who might fancy hiring you will expect you to have completed your studies successfully. But if the only “war stories” that you have to tell are about your assessments you will find yourself at a disadvantage. You need to have other things you have made, done or failed at to talk about. And they don’t necessarily have to be in software. You should form a policy of finding things to do and ways in which you can use them to your advantage. If you take care of that you might find that your future will take care of itself.
A great audience here in black and white
Did my talk at DDD 2024 this morning. After a brief panic where it turned out that my HDMI adapter wouldn’t talk to the video system I managed to get everything working (thanks Warren for lending a working adapter). The audience was great and we had a splendid discussion afterwards. You can find the slide deck here.
I’ll be keeping the lid on though
Our monthly hardware meetup for March will be on Wednesday 6th March in the MakerSpace at the top of Hull Central Library. We start around 5:30 pm and then go on until 7:00 pm or so. We theme the meetups, the March one is all about music. I’ll bring along the MIDI CheeseBox, Crackers Controller and Chocolate Synth along with a few more conventional devices. If you’ve got something you want to show off or talk about, feel free to bring it along.
No need to sign in or anything, just turn up and take part. It would be lovely to see you.
Very useful if you kept buying 12v power adapters instead of 5V power adapters….
One of our students showed me a useful gadget today. You can plug a 12 supply into it and get out 5v, 3.3v and the 12v going in. The two onboard regulators aren’t good for particularly high currents at around 800ma each, but this is a terribly useful controller if you are building a robot and want 12 for the motors and then the other voltages for your onboard devices.
I saw a notebook on sale today which had “Make it Happen” on the front in large letters. I really want one with “Stop it Happening Again” on.
The spare part for our Scalextric car arrived today. This means we should be back up to six car racing for the Hull Computer Science 50th Anniversary Celebrations in May. You can find out more here.
All ready for a few more laps.
Can you spot whichi is the LEGO camera?
I got given a Lego Camera kit on Saturday. It’s awesome. And there are two other models you can make with the pieces. And it comes with little rolls of film with pictures on them. Great fun.
This picture is not black and white
Took my latest camera to the Humber Bridge today to see if it works OK. It does.
Keep the bottles of ink well away from the users…
These things are quite fun. They are little rollers which print out sums when rolled down the page. Each roller is in two halves which can be adjusted so that the sums are different. Great for a little someone who just happens to like doing maths. Search for “Roller Teaching Stamp” if you want some.
Just don’t touch the rollers to check whether or they have ink on. They have.
What Dall-E thinKs I look like. I’ll show the real picture of me at the session…
I’ve got the schedule for DDD North next week. I’m on first thing at 9:30 which will be fun. I’m talking about ChatGPT and my existential crisis.
Apparently they’ve had such a demand for tickets that they’ve had to add a bunch more. I’m really looking forward to it. Now I just have to decide which camera to take along….
This is what Dall-E thinks old software looks like running on a new computer
Hot on the heels of building code from ten years ago I spent a chunk of today installing the Visual Studio 2015 build environment and Windows 8.1 SDK. And they still work on Windows 11. Which is actually very impressive.
It comes with a snazzy case as well
It has to be said that I don’t usually put toothbrush recommendations in this blog. But yesterday m dental hygienist insisted that I get a new toothbrush and even wrote down the make and model. It arrived this morning and I must admit it is rather good. It lights up when I press too hard and even tells me how much time to spend on each quadrant of my mouth (before today I didn’t even know that my mouth had quadrants).
My dentist is leaving Hull. Very sad. I hope it’s nothing I did. Looking into my mouth for seven years must take some kind of toll I suppose. Anyhoo, I wish her all the best for the future. And now somebody else will have to say things like “You’ve got good teeth - for your age” to me.
At least I hope that’s what they are going to say.
Fun times..
The Raspberry Pi 5 is a seriously powerful beast. I’ve been very impressed by the way I can run even demanding graphical applications at reasonable speed. Today I thought I’d speed it up even more by adding a “proper” hard disk to it. I got hold of an MMe base from Pimoroni and popped a 256G solid state disk in it. The total cost was less than a video game. The base was easy to fit and setup. the hardest bit was feeding the funky ribbon cable into the connectors on the Pi and the base. Once they were connected I screwed the base onto the Pi and fired it up. My Pi was already running from an SSD memory card so I used Raspberry Pi Imager to put an operating system on the new disk, swapped the boot order using raspi-config and we were off. The difference in speed for loading applications is amazing. The system boots in around the same time it takes my PC to wake up from sleep.
If you are after a speedup for your Pi which will turn it into a much more viable desktop replacement you should take a look at this.
I really wish I’d not sold that lens…
The replacement power supply for my old hard disk has turned up. And it works a treat. So to celebrate I’m rerunning one my favourite pictures from 2015. And I’m going to make another backup of all the files.
Just in case.
Rob Miles is technology author and educator who spent many years as a lecturer in Computer Science at the University of Hull. He is also a Microsoft Developer Technologies MVP. He is into technology, teaching and photography. He is the author of the World Famous C# Yellow Book and almost as handsome as he thinks he is.