Pi Wars 2021 – Online Conference tickets now on sale! – Event is on 23rd & 24th January

Pi Wars 2021 at Home Conference logo

The Pi Wars team is delighted to announce that tickets for our 2021 Online Conference are now available. They are free but everyone viewing the Conference must have one. That’s one per device watching. You will need to register for the Hopin.to platform to get your ticket and get access to the Conference content.

There are two types of tickets, so please make sure you get the one that is appropriate for you and your viewing group:

  • Under 18s – please ensure you have permission from a parent or guardian to attend.
  • Adults – there is another type of ticket for you.

If you are a speaker or a member of a panel, please hold off for now as we will contact you to get you on the system by a different route.

You can get your tickets here.

A provisional running order for the two-day Conference is available here. Please note, this is subject to change, addition and refinement as we get closer to the event.

Please note, everyone is expected to agree to and abide by our Online Code of Conduct when attending the Conference.

Creating a Home Education School Clock with a Raspberry Pi and an Inky wHAT

Inky wHAT displaying the school clock

Mike: Here’s a guest post from my friend David Booth who you can find on Twitter here and on the web here. This is a great project for the current times we live in (because of the high probability of Home Schooling in the UK due to COVID-19 lockdowns) and also should come in useful for home schoolers in general.

Overview

With the rush to change everyone over to home learning, we thought it was important to retain some sort of school routine in our young kids. For that, we decided to make a clock that showed the time, but also showed a “timetable” specific to our needs. Having got Raspberry Pi’s up the wazoo in this house, and previously being lucky enough to win an Inky wHAT from a Pimoroni competition, it was obvious that I should combine these tools to create a very quick “school clock” project. All the code is available on GitHub.

What I used?

A Pi Zero. There are a plethora of online shops that sell Raspberry Pi’s. I got my Pi Zero WH from The Pi Hut for less than £14. The pre-soldered header just makes life a little easier, but you can solder that on to a normal Pi Zero W yourself if you fancy the challenge/refresher course of soldering.

An Inky wHAT: These can be bought from Pimoroni and you have a choice of colours – Black/White, Red/Black/White and Yellow/Black/White. The price varies depending on model from £45 to £52.50. As I said, I was lucky to have won one! 🙂

Other than that, all you need is an 8GB microSD card or larger, a suitable power supply for the Pi and a way of holding it all together. I used a 3D printed case from Thingiverse.

Hardware Setup

Picture of the reverse of the School Clock showing the backside of the Inky wHAT and Pi Zero

Assuming you already have a Pi Zero W with the headers already on, it is simply a matter of plugging the Raspberry Pi’s GPIO pins into the back of the Inky wHAT, inserting them both into the 3D-printed case, plugging the microSD card in (that has Raspberry Pi OS installed) and powering it on.

Software Setup

First thing to do on any new Raspberry Pi OS is to start a terminal session and update the OS:

sudo apt-get update
sudo apt-get upgrade

After the upgrade is complete, the next step is to install the software required to make the screen work. Pimoroni have created a really quick and easy one-line-installer to get the Inky wHAT set-up:

curl https://get.pimoroni.com/inky | bash

After that is complete, try running one of the example Python scripts that comes with the installer to verify all is working on the screen front. For more information, I’d recommend looking at Pimoroni’s website.

Python Code

Download the Python file from the following GitHub repository and store it in your home folder. https://github.com/worlds6440/school_clock

Make the Python file executable:

chmod +x clock.py

The code is currently set to update the clock every minute and display a new message every half hour between 8:30am and 5pm. You can obviously and easily change this by editing the contents of the get_message() method inside the clock.py file. I do intend to improve the code at some point to take its messages from a file or online location to make it easier to configure, but it’s not strictly necessary and this write-up has taken longer to do than the project itself 🙂

You can test the project now by running in the terminal:

python clock.py

To make the clock start at boot, run:

sudo crontab -e

And add the following line at the bottom:

@reboot /usr/bin/python /home/pi/clock.py &

And that’s it! Your very own School Clock for home schooling!

Display your Raspberry Pi’s video output on an Android tablet or a laptop/desktop via an HDMI dongle

Spurred on by this fantastic post by Les Pounder on Tom’s Hardware, I decided to try out a method for using a screen device with a Raspberry Pi. The trick lies in using an HDMI Video Capture dongle to turn the HDMI output of the Pi into a USB input which is picked up as a webcam on your device-with-a-screen.

I used a Raspberry Pi 400 all-in-one machine, but expect this to work with any model of Pi. Obviously, the more recent your version of Pi, the better speed you’ll get.

First of all, I sought out an HDMI-to-USB dongle. I checked with Les first to see what he’d used. This one on eBay did the job for him, but I thought: Can I get it cheaper? On Amazon, I found a similar-looking dongle for £5.99 (now £6.99) so, being a cheapskate (and having Amazon Prime), I bought one of those and it arrived soon enough.

I used an Official Raspberry Pi microHDMI to HDMI cable (knowing it was a good quality cable) and connected that to the dongle. I then used a USB-to-microUSB adapter that I had hanging around from a Raspberry Pi Zero kit that I got from The MagPi when I subscribed (although I’m sure any one of those adapter cables will work, you just need to make sure it carries the DATA line). I plugged that into my Chuwi 7″ tablet and then loaded up an app called “USB Camera Standard” from the Google Play store. I opened up the app, gave it permissions and… my tablet rebooted. Ah. That’s vexing. But, then, I wasn’t expecting a smooth ride – I fail so you don’t have to. 🙂

Had I got the wrong dongle, I asked myself? Maybe. Let’s try it with my Honor 7x mobile phone…

I plugged everything in, downloaded the same app, opened it, gave the permissions and ping! There was the Raspberry Pi desktop, albeit small. I enabled the Pixel Doubling function in the Raspberry Pi Configuration app under “Preferences” in the Pi’s menu and allowed the Pi to reboot. (This trick is on Les’ blog post here). This doubled the size of everything and I was shown what you see above. You can make the app go full-screen by clicking on the three dots at the top right. This makes the display even clearer. Just good enough for some coding/maintenance/emergency usage.

I then wondered… if all the adapter is doing is converting the HDMI output into an incoming webcam stream, can’t I just use my laptop in the same way? So, I removed the USB-to-microUSB adapter, plugged the dongle into a USB hub (because my laptop is a bit limited on ports, not for any other reason) and Windows reported that it was adding a new device. Excellent! But how to view the output? Well, my mind immediately went to Zoom which I know just displays any camera input (and because I’ve used it every single day recently!). I loaded up Zoom and… it… displayed… oh, hang on, it’s mirrored. But, that’s not a problem – you go into the Video Settings screen and uncheck the Mirror My Video box.

So, that’s the laptop screen outputting the webcam input from an HDMI-to-USB dongle from a Raspberry Pi’s HDMI output!

Yes, I know it’s all possible with a VNC server/client, but this is a great quick-to-get-setup option if you need a screen for your Pi but don’t want to lug around a monitor with a power supply!

New micro:bit v2 is now available to purchase

Photo from Pimoroni

I previously announced the upcoming launch of the new micro:bit v2. I’m pleased to say that the board is now available to purchase! The micro:bit v2 features:

  • An integrated speaker
  • An integrated MEMS-type microphone
  • A new capacitive touch button built into the main logo on the front
  • A new sleep mode to enable low power consumption when not in use
  • A new processor (nRF52833)
  • The flash memory has been doubled to 512kb
  • The RAM has been increased to 512kb (an 8x improvement!)
  • The ability for add-on boards to draw up to 200mA current
  • A new “notched” edge connector to allow crocodile clips to connect more securely.

You can currently buy the board for around £13.50 from Pimoroni and from okdo. Other resellers will no doubt be online in the next week or so.

Join Twitter today and follow @Pimoroni for great discounts and stuff to do! #freeboot #raspberrypi #microbit

The piratical pirates over at Pimoroni are at it again! They’re running a Twitter-powered activity week with great discounts on all sorts of stuff and prizes awarded throughout. You can read all about the week’s plans here and you will need to follow them on Twitter to take part. See all the responses by following the hashtag #freeboot. A really great opportunity to get your Christmas shopping done, if nothing else! 🙂

This post was completely unsponsored – just thought it would be nice to share the coolness 🙂

Christmas Shopping Guide 2020 for Raspberry Pi and micro:bit fans

It’s around this time of year that I take a look at lots of Raspberry Pi stores and pick out a few things for the Pi-lover in your life. This year, of course, Raspberry Pi Pod has broadened out and added the micro:bit, so there will be some of that as well!

Last year, I split it up into sections. I’ll do the same this year, but this time looking at retailers. Let’s start off with…

Pimoroni

The Sheffield-based company that everybody loves.

This year, they’ve concentrated a lot on their Breakout Garden family of products. Their great base boards (both HATs and smaller varieties) allow you to connect up various different sensor boards, inputs and screens, just by inserting them into the slots.

Recently, they added the GPS board you can see above but I also love the little colour screen next to it. Just make sure when you’re buying that you get the right combination of I2C and SPI devices – they are different, as you can see! The base boards and the sensors are not the cheapest you’ll find (actually, the GPS one is pretty darned close!) but they are of very high quality, all come with software libraries and are hours of fun to plug in, in different combinations.

Also on my RADAR is their newest, just-released product, the Inky Impression. This is a 7-colour, 5.7″ e-ink display.

At £66, it’s not a frivilous purchase, and with a refresh rate of 15 seconds for the full screen at full-colour, it’s not the speediest thing in the world, so you’ll have to have a product in mind for it. I quite like the idea of doing a weather clock with it, but I’ll leave that to my good friend, Tim Richardson, who does that kind of thing in his sleep!

The pirates of Sheffield also carry a nice range of micro:bit gadgets

My favourite is the enviro:bit (above) which adds more sensors to the microcontroller board.

The Pi Hut

Probably the largest Pi retailer, The Pi Hut has been around since the beginning and has a large range across Raspberry Pi, micro:bit and general maker-y-type umm stuff.

With the recent release of the Raspberry Pi 400, The Pi Hut, being one of the official resellers (along with Pimoroni) of course has the basic unit and also the full kit, containing everything you need apart from a screen. They also do this nifty sleeve to keep the Pi 400 in, you just have to be lucky to find it in stock (although I do believe they’re expecting more in imminently, so sign up to be notified!).

They also have a very nice collection of lenses for the new-ish Raspberry Pi HQ camera.

If you want something a bit different for the enthusiast in your life, you might find a lot of value in the hackable Bangle watch, also available from The Pi Hut.

On the micro:bit front, The Pi Hut has a lot of stock from various suppliers, including Kitronik, 4tronix and ElecFreaks. I’m particularly impressed with Jamie & co taking on the MonkMakes range including this cute little servo controller board:

Basically, if you want to get a lot of smaller bits from multiple different manufacturers, The Pi Hut is a great place to shop.

4tronix

Robotics specialist Gareth, over at 4tronix, always has something different to offer. At the moment, the jewel in the crown, in my opinion, is the M.A.R.S. Rover Robot.

It started out just as a micro:bit product, but Gareth has now converted it to be used with the Raspberry Pi Zero. It costs £120 (inc VAT), so it’s not cheap, but you get a lot for your money, including a chassis made out of the PCBs. Take a look here.

RasPiO

My good friend Alex Eames has got some lovely products in his web shop including…

the brilliant Pro HAT which brings out all the GPIO pins, in order, to female headers with a convenient breadboard in the middle. He also brings out the GPIO pins again to an unpopulated header, giving you lots of options when connecting things up into a temporary or permanent project. Also on his site is…

… an Arduino-compatible Night Light that comes as a kit, giving you an hour or so’s fun with your soldering iron and then letting you program it yourself, if you so wish. I have two in use at home, and they’re great fun and very useful!

Red Robotics

Neil Lambeth might only have one product so far (this not being his full-time job!) but it is incredibly impressive, not to mention useful…

The RedBoard+ is the retail iteration of his RedBoard robotics board. It is ideal for pretty much any robotics project where you want to use a HAT on a Raspberry Pi. It takes a wide range of power inputs and allows you to control 2 sets of DC motors and up to 12 hobby servos! It’s full of little features, too, like the broken-out I2C pins. Take a look here.

Pi Supply

Their current big offering is their LoRa range, which is all about transmitting small packets of data over a long distance.

There are node boards for the Raspberry Pi and for the micro:bit and, of course, there are Gateways too to receive your messages. LoRa is fairly specialist, but it’s ideal for Internet of Things applications.

Kitronik

Based in Nottingham, Kitronik is a great site for makers. They have all kinds of things on their site, from e-textiles to maker materials such as 3D printer filament or Perspex sheets. They also have an extensive in-house micro:bit range including

the Zip Halo which gives you a circle of super-bright LEDs to play with.

Crowdfunding Campaigns

Here are a couple of campaigns that you might want to back for an “alternative gift”.

The first is from Andrew Gale (who has run several Kickstarters before and has always delivered). It is a four-month Soldering Subscription package with four soldering project kits delivered to you on a month-by-month basis. There are a couple of options – you can choose for your first month’s kit to be a Christmas tree that will plug into the new Raspberry Pi 400 so it stands up, and there is also a surface-mount option for those who like a bit more of a challenge. Checkout the campaign here and view the campaign video below:

Another one that’s come to my attention is the new campaign from the CodeBug team:

The CodeBug Connect is an updated version of their previous board and now offers:

  • 5×5 RGB LEDs.
  • Two 5-way joystick buttons.
  • Onboard accelerometer.
  • Expansion header at the top to allow you to add other capability boards (as shown in the picture).
  • Lots of other enhancements and new features.

They will be manufactured in the UK (which is nice) and there is an option to get a hand-soldered board early (before Christmas). Take a look at the campaign here and view the video below:

Other stores

I’d also like to recommend the following stores that have a variety of bits and pieces that will make great Christmas presents:

  • AB Electronics – a UK retailer offering lots of HAT and pHAT-sized add-on boards.
  • OKdo – CPC/Farnell’s new maker/hobbyist arm has a lot of what you would expect, from kits to add-on boards.
  • Rapid Electronics – they have a “Christmas Shop” which is worth a look, but have a browse and see what you can find!