Posts

...and we are done!

Image
With the final videos edited, uploaded to YouTube and submitted via the neat form, Forest Fighters has made its entry. We got caught out by the requirement to show the robot dimensions so we had to add a still image to the first part of the video. The new render features this image as part of the lead-in, as you can see we are within the dimensions although the gripper needs to be fully open to be under the 400mm allowed but is well within the 500mm over length allowed when it is closed. Here is Audrey III sat in the start box to tidy up the toys. Audrey has taken a bit of a pounding over two Pi Wars so, if we are lucky enough to compete again, she will be retired and we shall try something new. The most complex challenge was the Up The Garden Path and the most stressful was Feed The Fish. However, they've all have been fun to do.  We send endless thanks to Mike, Tim and David for their awesome work and we're really looking forward to a fantastic results weekend.

On the home straight....

Image
Three video's in the bag and two to go. With the final submission date just around the corner we have been practising our driving skills for the challenges we still have to video. Here is a clip of our Feed the Fish setup. The ball contraption works well and the code has been modified to use the triggers on the controller to launch Audrey forward at top speed while simultaneously opening the contraption to send the ball forward when she stops sharply. Keen eyed observers might spot the similarity to the golf ball device used by Tractor Bot in the Golf challenge from 2017 and 2018. It was so good that we thought of it for the Feed the Fish challenge as soon as golf balls were mentioned. Credit to Keith's Pi Tutorials (@PiTutorials) of Ipswich Makerspace for the original STL. 

Add a timer to your video submissions

Image
Part of the recommendations for the video submissions for each challenge, is to arrange for the video to have a timer overlay, like you might see when a sporting event is shown on TV.  We have been using kdenlive ( https://kdenlive.org/en/ ) for editing videos and can recommend it. There are builds for Windows, Linux and Mac and it just so happens that kdenlive can add a timer overlay to a video clip. (Its also free and open source). Amy's dad has produced a short video showing how to add a timer to your challenge videos, using the kdenlive Dynamic Text effect.  kdenlive can also be used to add lead-in, and titles to make the judges life easier. ..and not for the faint-hearted here is the resultant video, including lead in, titles and timer overlay. We will be using this timer technique on all our Pi Wars 2021 videos.

Up the Garden Path: First Test Run

Image
The garden path code is now feature complete! It still needs a smidgen more tuning to be at 100% but here is our first full speed test run..... The third junction is missed, meaning this wouldn't count in competition, but we are quite pleased with the result.

More line following (now with added voice)

Image
We are still trying to improve the line following and are ensuring that the junctions are correctly navigated. If the line is straightforward, then we can follow at a decent frame rate (+32fps) but, as in the last post, we had real issues when we hit a junction. Looking at the Garden Path challenge rules, the highest amount of points can be obtained through using audio commands with camera based navigation (https://piwars.org/2021-vpw/challenges/up-the-garden-path/). While signposts did work, using the camera to follow the line and help with audio commands would seem to be the most reliable and best option. Below is a short video (once again using the rolling road on another screen for the Pi's camera to decode) but now with a USB microphone plugged into the Pi to issue commands to vosk (https://alphacephei.com/vosk/) with a limited list of words. Volume warning: It's a bit loud when Amy's Dad shouts the voice commands!!!! We need to see if we can't improve the latency ...

False Positives and Line Following

Image
 I've finally got around to laying out the Garden Path challenge and tested it with an unmodified line follower code used (supposed to be used) in Lava Plava. Needless to say, it kinda crashed and burned. It's not quite as bad as I expected but which fork the robot took was more by luck than any programming on our part. I set up a Pi4 and camera pointing at my monitor with a "rolling road" displaying the computers view to determine how best to handle the junctions the robot will come across. The frame rate is nowhere near what we achieve on the robot, as the image is being streamed across SSH. However, for the purposes of recognising the junction patterns, it should be ok. The red border shows the detected line and the blue line shows the heading the robot needs to turn to to get the line back in the centre of view. The red figures indicate motor overall power (g) and, left(l) and right(r) motor power between 0 and 1. Turning right reduces the motor on the right keepi...

Happy New Year (and we hope its better than the last)

Image
Gripper update. The grippers have been sprayed and a non-slip coating has been added. Grippers The software has been modded slightly to maintain continuous pressure on the block, once the grippers close, and a control button to switch off the gripper servo when the grippers are not closed. This seems to work reasonably well but we might require more tweaking as the cubes are quite slippery. Blocks We now have three cubes of different colours for the "Tidy Up The Toys" challenge. Amy has produced some nice menu artwork including this one for "Feed the Fish". Carping On She will also be giving a talk at the PiWars conference about this and her other digital art, see https://piwars.org/2021-vc/ for details.  Feed the Fish Team Forest Fighters still can't decide how to do this challenge either using a catapult or shove halfpenny methods. Having printed a catapult and launching nerf rounds across the lounge never to be seen again behind the TV, we are thinking thi...

A quick diversion and a Happy Christmas!!!

Image
Along with having some colourful, python powered colour changing windows, we wanted some additional festive cheer. So Amy's dad created a small pixel matrix display... ...and its now installed in one of the front windows! The four front windows are surrounded by rgb led strips each controlled by an ESP8266, with a master python program telling them what to display, via WiFi using HTTP commands. Happy Christmas everyone and hopefully 2021 will be better than this one, after all it has the Pi Wars competition in it.

Symbol Recognition

Image
For the Up The Garden Path challenge, we haven't quite decided if we are going to use voice commands or pattern recognition combined with line-following, (or even a mix of all three! ). Amy's dad has been looking at pattern recognition and converting some C++ code to Python to see if it was quick enough on a Pi4. We have previously used Open CV for line following. Amy's dad used the same process back in 2014 for the first line follower code that Ipswich Makerspace's Tractor Bot used, but that was C++. Back then the Pi wasn't really up to it. This example video was using C++ on a x64 PC.  The next video is from over six years later. In 2020 the Pi4 can match that and do a whole lot better with Python (especially since this is over VNC.) (The cube is a 50mm reject from the 3d printing earlier covered with self-adhesive printed signs). You can find the source for this to experiment with here: https://github.com/ForestFighters/Symbols  

Into the unknown with Voice Commands.

Image
Amy's dad here with a quick update on PiWars 2021 progress..... We have busy with other projects so its been pretty quiet on the Pi Wars front, however the basic robot software and hardware is essentially going to be the same as last year (2020) but with added voice commands.  I have been checking out Vosk as a way of getting a Pi to understand voice commands. Here is a quick video showing its not too shabby, especially for single word commands. The main advantage of Vosk is that it is local to the machine rather than using the "Cloud" so even if your cloud service provider is down (note Google authentication went down yesterday for a couple of  hours so not impossible!) you can still command your system using voice. Also it doesn't seem to use much processor (considering I recorded the video over VNC!)

New 3D prints...

Image
Since the barrels of the 2020 competition have changed to cubes, the 3D printer is hard at work creating some new items. Including remaking the grippers so that they grip the cubes better. I will cover inner surface of the gripper faces after painting with some non-slip material.  Yes, I know we only need one of each colour but my green filament had not arrived.  We use Tinkercad for its simplicity and for generating 3D models quickly and accurately. It does an excellent job.

Guess Who's Back?

Forest Fighters are happy to announce we will be entering virtual Pi Wars this year~ We will be building off last years robot (Audrey III) and adapting her for any new challenges so expect a full-scale makeover. Keep tuned in for more updates to this year's blog!✨✨✨