Found it!

“|t is a truth universally acknowledged that the best way to find a missing cable is to buy a replacement”.

Yesterday I lost a cable. So I bought a replacement. Today I thought I’d take a look at the original cable order. It turns out that I’d forgotten what the cable looked like, so for the last couple of days I’ve been searching for the wrong thing. A quick scan of the desktop and there it was. Oh well.

Staying sane with missing cables

One trick to stay sane while writing a book is to fixate on something completely unimportant at the same time. One part of my brain is trying to explain JavaScript while another part is frantically trying to remember where I put the USB 2.0 Type A Female to USB B Male cable that I use to connect my Synthstrom Deluge to usb MIDI devices. I have absolutely no need to connect my Deluge to a MIDI keyboard at the moment, but that’s not the point. I’m getting regular exercise breaks too as I get up and look in places that the cable might be.

By mid afternoon I snapped and ordered an adapter which does the same job as the cable. Cost: two pounds fifty pence. Of course, now I’ll have to find something else to worry about.

The writing itself is going fine, which is the important thing.

Nerina Pallot is at Cottingham Folk Festival

I’ve been listening to Nerina Pallot songs ever since I heard one of the kids playing her music and copied their CD onto my computer. And now she is appearing at Cottingham Folk Festival at the end of August. If you like melodic stuff with piano and guitar plus the odd rocky number to prove that she can do that too, then you should go along, like I’m doing. There are lots of other interesting looking acts too, including Judy Collins and New Model Army.

Enter the Glossary

If you’re not sure what a glossary is you can always look it up. Pause for laughter.

Anyhoo, I’ve decided to add a Glossary to my new “Begin to Code” book. Unlike earlier books, this one assumes a level of previous programming knowledge. That’s fine, but what if you know most of it but are missing a few bits and bobs? That’s where the glossary fits in. The idea is that you if you find something you’re not clear on you can drop into the glossary, read up on the thing you need help with and then head back to the text. I suppose you could try starting with no programming knowledge, read the entire glossary and then start on the text, but I’m not sure if this would end well.

I’ll be putting out some sample pages soon.

Single paragraph science fiction: 1

The captain looked out of the porthole at the antenna. One hundred miles wide, glinting in the distant sunlight. It had taken five years to build it in earth orbit. Then another five years to fly it to this lonely spot on the edge of the solar system. And all of it a race against time before the signal became too faint to detect. The bridge computer beeped and announced “Ten seconds to transmission”. The captain sat upright. “Those calculations had better be right” she thought to herself. It had taken the finest computers on earth to plot the trajectory of the signal on it’s 200 year journey, bouncing off planets from the transmitter to this precise location. She looked at the screen. Nothing but static so far. Then the screen cleared and displayed a familiar logo. A tune she had known since childhood blasted out of the speakers and the titles appeared. The last missing “Dad’s Army” episode had been found….

Bought an oven.....

My first thought when I ordered my printed circuit boards was that I’d solder them by hand. I’ve since had a look at what this involves and changed my mind. And bought an oven. I managed to get the one above for around thirty pounds from AliExpress (search for 110/220V UYUE 946C), plus vat but with free postage. Lots of companies are now charging for delivery, which is rather annoying, but I managed to find this one, which does not. The device is mains powered and gets very hot, so I’ll give it a good checking over when it comes.

I should be able to pop some solder paste on the pcb, drop the components on top and then heat the whole board up to 200 degrees, at which point soldering magic happens. I’m quite looking forward to when it arrives. The delivery date was given as around September (such s the price of free shipping) but with a bit of luck it might be sooner than that.

Printed PCBs

If you’ve ever thought about having printed circuit boards made for your projects: you should. I sent the designs off last Friday and and today I received five boards, beautifully made and packaged. Total cost of the whole thing - less than twenty pounds. I used a firm called NextPCB. I think I’ve taken advantage of some amazing introductory offer, but even so I’d be prepared to pay quite a bit more for service as good as this.

I wish I could say that the designs that I sent off were ones that I’d created but all the nice layout and sensible ground planes are down to the efforts of Brian. However, the quality and price of the work means that I’m even more determined to learn Kicad than before.

Meetup Fun

We had a very good meetup tonight. Lots of technical talk and even some problem solving.

  • Richard showed off the box he had designed and laser cut at Hull MakerSpace.  You never know, you might see it on a train one day.

  • Brian had brought along a new M5Stack device that looks awesome. It has a lovely touch display and was running a little program that showed off all the internal sensors really well.

  • Karen had questions about Circuit Python vs Micro Python. General consensus was that they are both jolly good. Circuit Python is easier to get started with and has lots of lovely Adafruit libraries. But it doesn’t support interrupts so programs have to poll whenever they want input. Micro Python has a few more advanced features, but is a little harder to get to grips with. You can get started with Thonny really easily for both these platforms.

  • I was showing off PCBs just received from a company in China. Five large boards for less than twenty pounds. Yes please. Brian used Kicad to make a really nice layout for a PCB for the Pico MIDI Cheesebox and I was in charge of sending of the files to get them made up. All we need to do now is get the surface mount parts and solder them into place. We fired up Kicad, got the part descriptions and ordered all the bits. On my super-cheap laptop.

  • We all took a look at the PICO W. Very nice now running on a Pico Display. A very powerful combination.

  • We solved a problem with aerial connectors. Female to female doesn’t work…..

  • We discussed the creation of 3D printed jigs for holding surface mounted devices in place for hand soldering.

  • I showed off my Pure Data sound generator on my super cheap laptop. But I really need to bring a proper speaker so that everyone can hear it over the noise of the laser cutter.

  • And there was lots of non-technical chat too

The next in-person meetup is on the 3rd of August at the Makerspace. If you’ve got tech you want to talk about, come and find us.

Hardware Meetup on Wednesday

Our next hardware meetup is in person, at Hull MakerSpace in Hull Library. It’s on Wednesday 6th, starting at around 5:30 pm and then going on until around 7:30 pm. We’ll be showing off what we have built and talking tech. If you want to see the new Raspberry Pi PICO W (which brings WiFi to the very popular controller) we’ll have some around too. Just turn up, we’d love to see you.

Cottingham Show

Had some great fun at Cottingham Day today. The Pie Bakery (aka Hull Pie) were there so we grabbed some pies in the morning, had them for lunch and then went back out for strawberries, scones and cream. They had a bike show as well, which included this beauty. The weather forecast was fairly horrid, but the weather turned out really nice, and the huge crowds that turned out seemed to be having a whale of a time. As were we.

Got my PICO W

My PICO W devices arrived today. They look really nice. I’ve soldered a bunch of pins onto one of them and plugged it into my PICO Display Pack with the intention of making a tiny wireless message board. Unfortunately the Pimoroni image with the drivers for the display on it doesn’t support WiFi just yet. I’ve tried using this library with the WiFi enabled Micro Python firmware but I can’t get it to work. With a bit of luck Pimoroni will catch up soon and I can make something that displays a message each time I make a new blog post….

Raspberry Pi PICO W brings Bluetooth and WiFi to the PICO

The shiny box is the wireless antenna

The Raspberry Pi PICO is an awesome device. Super cheap, super easy to program and super easy to connect to stuff. The only thing about it that I didn’t like about it was the lack of any wireless connectivity. That’s changed now, with the launch of the PICO W. This adds a Infineon CYW43439 wireless chip to the PICO which brings Bluetooth and WiFi connectivity. The new PICO W is physically compatible with the old one. The pins are pretty much the same, although three of them (ones you don’t use much) are now accessed slightly differently.

At the moment there are no drivers for Bluetooth and you can only use the WiFi from Micro Python programs (not C++ or Circuit Python). But I expect that to change pretty quickly once folks get to grip with the device.

There’s a really good description of the new PICO W plus sample code in this month’s MagPi magazine which you can find here.

Write the introduction first?

I’m working on the introduction chapter for “Begin to code: Building Apps and Games with the Cloud”. It was suggested that I should write the introduction when I’ve finished the entire text. That way I’ll know exactly what ended up in it. I quite like this idea, but I think I’ll try and write the introduction first. I think it is better to have an idea where you are going before you start. And I can always revise it later…

Play Mantis

Mantis is a nice little game. Except that it isn’t nice. And it isn’t little. There are loads of cards, each of which poses the question “Which of the three colours on the back is on the front?”. Gameplay involves either scoring “I’m going to user the colour on the other side to match with cards I have and score points” or stealing “I’m going to use the colour on the other side to match with cards I don’t have and steal them from someone else”.

Get ten scored cards and you win. And that’s it. There really isn’t much else to tell. The game is beautifully presented, with an entire back story that will tell you a lot more about shrimps that you thought there was to know. The rules are simple, but how you apply them and what you do is up to you and can get surprisingly deep. This is not a game that you will spend the entire evening playing, but it is a great way to get the party started.