So we needed a chassis and while we had previous skeleton chassis we could have gone back to, one of us has been developing a more substantial bit of kit.
It started out as a four wheel drive 'tonka toy' with big rubber tyres that can handle uneven surfaces. As originally made, it looked a bit blank in lemon yellow, but a bit of paint for windows and a load to carry it looked a bit better. The chassis is in two halves, articulated in the middle, around a central battery holder for three 18650 LiPo's in series.Saturday, November 11, 2023
Chassis development - PiWars 2024
Thursday, November 9, 2023
Escape Route - PiWars 2024
This challenge is a zig zag course through coloured barriers described here Escape Route – Pi Wars.
It's described as a maze but really there aren't any alternative routes other than to the end so it isn't really. The picture above is a mock up just to test general algorithms of following a similar course made of blocks that just happened to be made up for our robot workshop this year. The course can be run up to three times in five minutes with points for each run and fastest run.
There are three methods allowed, fully autonomous, which I'm certain we'll be aiming at (a basic video of this in a later blog), blind remote control (with again a video later) and remote control with relayed commands, where the 'driver' can't see the robot or route and has the necessary directions given to them by someone else who can, and 'call and response', where the robot is remote controlled by a person being given instructions from a second person, only the second person being able to see the course and robot position.
Autonomous is what it is, but for remote control then the communications must be rock solid in what will otherwise be a very noisy environment electrically. This may also adversely affect the video link which most likely will be over wi-fi. As the remote control and 'call and response' both require good communications be essential for control, using a dedicated RC system or a Bluetooth controller might be the best option. Video streaming over Wi-Fi is well supported, but if not practical or reliable on the day, then at least the RC will be. Video is the described navigation choice for 'Remote Control', but a feed of data from, say, a collision detector might help enormously.
From a points perspective, completing the run scores 200 each time, or 600 for 3 completions. Not touching the walls scores an additional 100 points per run, so 900 in total for thee clean runs. For just taking on the course autonomously, 350 points are awarded, so even if your robot isn't up to it, entering autonomously and just crashing without completing any runs should be fine for some points!!! Remote control entrants get 250 points extra and 'call and response' entrants an extra 100 points. There are no points penalties for crashing/recovery etc, but the fastest robots are awarded points based on the formula system described here Formula Scoring System – Pi Wars. Thus, three clean complete runs autonomously scores 1250 with a potential extra 150 for fastest meaning a total of 1400 available. Competently doing call and response will earn a team 1000 points, plus any formula points for speed, but at least 70%. Getting this right means that a robot can do very well and any attempt at autonomous operation or 'remote control' could be abandoned closer to the day with good results.
There are coloured walls, but their colour won't be of much use to a robot unless someone is determined to be fastest. As with lava palaver, a fixed set of navigation routines could be coded to do the basic steering with additional collision avoidance added. A basic routine set might be:
- Drive_forward_until_wall_10cm_away
- Turn_90degrees_Right
- Drive_forward_until_wall_10cm_away
- Turn_90degrees_Right
- Drive_forward_until_wall_10cm_away
- Turn_90degrees_Left
- Drive_forward_until_wall_10cm_away
- Turn_90degrees_Left
- Drive_forward_until_wall_10cm_away
- Turn_90degrees_Right
- Drive_forward _until_wall_10cm_away (a hand placed in front when collecting robot at end)
- Stop
Tuesday, October 31, 2023
Lava Palaver - Constructing a flexible line follower - PiWars 2024
Here's our first experimental line follower mount, designed to be able to handle the bump in the Lava Palaver challenge and still keep following the line.
It's been drawn up in TinkerCAD and anyone who wants to play can copy it from here https://www.tinkercad.com/things/lRdxtf15kXL .
It's only an experiment to mount the line follower sensors on a hinged board supported at the front by two ball bearing castors which will raise the sensor in line with the robot travelling over the bump. A spring is fitted across the hinge to provide the means to keep the sensor in the right position as it hits the bumps and rides over the other side. A bracket is also fitted to support a microswitch fitting to detect when the robot is approaching the bump and also when it is just leaving. It's not shown in the picture above but is in the photographs. following.
Thursday, October 26, 2023
Eco-Disaster PiWars 2024
Something to think about anyway, sorting 12 barrels by colour into two areas, autonomously, within 5 minutes. That's the PiWars 2024 Eco-Disaster Challenge detailed here Eco-Disaster – Pi Wars.
The arena for this challenge is 2.2m square, with a central area of 1.6m square where the barrels are located, positions of which revealed on the day.
So, the challenge is to relocate the barrels, red for toxic, green for ok, to two areas, denoted as blue and yellow, scoring 80 points for the number of barrels relocated correctly, but loosing 40 points for incorrectly relocating barrels. There are extra points for part way completion, 50 for six barrels correctly sorted, and 150 for 12 barrels correctly sorted. Additionally, 250 points for completing the challenge autonomously, which as an 'advanced' team, we have to. As with other challenges where time matters, if all barrels are collected, additional points are awarded according to the formula system described here Formula Scoring System – Pi Wars. Thus, for completing the challenge correctly, and fastest, within 5 minutes this challenge scores 1510 points.
Approaches
Here are three general approaches to the challenge, and the final one used may be one selected on the day depending on the layout of the barrels, or just a mixture, but without a strategy then attachments can't be designed.
As an alternative view, it's been pointed out that as an autonomous challenge earns 250 points, simply letting the robot stand still or spin on the spot might earn the points, as incorrect barrel placement, however accidental, will loose points.
Assuming we're actually going to attempt the challenges, the first hurdle is identifying the colour of the barrels to be placed. An immediate option is a colour camera which has associated code to identify the colour correctly. If this is used then it's likely that this camera will also be used for navigation to the clean and contaminated zones, and preferably avoiding knocking over any of the other barrels.
A less code intensive option is to use a colour sensor such as a TCS230, which can be tuned to identify the correct zone and barrel colours on the day. This would have to be used in association with a separate navigation system, such as an ultrasonic, laser or IR system.
1. Individual Barrel Placement
This requires that the robot locate each barrel, identify the colour, and then navigate across the arena to the correct location and place the barrel there.
At it's most basic, the robot could be fitted with a 'pusher', drive up to the barrel, push it around the arena and into its correct zone, then repeat 11 times. This does imply that the route to the zone is navigable and also that the barrel is in a position to be pushed, and hasn't been stuck up against a wall.
The next step to this would be to have a barrel handler which will grip the barrel in some way allowing the barrel to be positioned where required. Attachment design ideas are in a later section.
The arena design has allowed for free movement around the outside initially and a simpler strategy might be to drive the robot to one of the corners adjacent to the target zones and collect the barrels from that position where the other barrels would be unlikely to get in the way of a robot repositioning one.
2. Sweep Then Sort
In this strategy, the robot makes two passes at barrel placement.
In the first pass, the robot uses a pusher, possibly of maximum width 325mm, to push all the barrels collectively to the side of the arena containing the zones. This will immediately place some barrels in the correct zone and of course some in the incorrect zone, as well as a few outside a zone. This may appear to be a quick solution but it would probably take five passes over the arena to guarantee collecting all in this way which might reasonably take 1 minute.
In the second pass, the robot then begins to sort the barrels, now against one arena wall, either moving an incorrectly placed barrel to the correct zone, or simply passing over a barrel if already correctly placed. A basic system would be to work from right to left, or left to right, checking each barrel and moving each errant barrel when found. Moving barrels at this stage could be using a similar push/grab attachment as in approach 1, or a specialised sideways grabber to allow a robot to drive back and forth along the line of barrels. A slightly more advanced approach would be to scan all the barrels for position, possibly while relocating one, and then shuffle a barrel in error from the other zone back until all barrels are correctly placed. Barrels not in a zone must be identified and moved into a zone, as well as the correct zone.
On a points basis, if a robot autonomously ploughed all barrels into one zone, it would score 540 points, so as a default position this strategy has some advantages. From then on, every barrel moved to it's correct zone effectively gains the robot 120 points, plus the bonus if all barrels correctly positioned.
3. Collect and Deliver
This approach requires that the robot be capable of sorting and moving all or many, barrels at once.
The robot drives around the arena collecting barrels, and once it's collecting capacity is full, drives to the zones to deposit the collected barrels. This could take one of several routes.
- The robot collects all, or several, of one colour and takes them to the appropriate zone.
- The robot collects all, or several, of any colour and takes them to the appropriate zones, sorting them as they are deposited.
- The robot collects and sorts all, or several, barrels of any colour and deposits them in the appropriate zones.
This could obviously require an attachment not much more complicated than that used in approaches 1 and 2, or could involve something more complicated where up to 12 barrels are sorted and moved by a robot at once.
Attachment Ideas
At it's most basic, a successful pushing attachment only has to sufficiently enclose and support a barrel at a low level to enable it to be positioned into a zone. This attachment could also include a colour identification sensor.
This now offers both push and pull from a simple grab, the servo can also be used to open the flap to give a bigger area to capture a barrel.
- cranes/arms, to both carry and position barrels,
- vacuums, especially to lift,
- barrel sorters, to mechanically sort barrels on the arena
- barrel rollers to deliberately handle fallen barrels or even those that fall accidentally
- blowers, to position barrels remotely
- telescopic cameras, to give a better arena view
- harvester, uses a rolling cage to sweep up and sort barrels into a rotating bowl to be deposited later
Monday, October 23, 2023
Lava Palaver - PiWars 2024
Introduction
We aren't actually in PiWars 2024, but just a reserve team for the advanced category, which doesn't mean we don't have to do anything! Assessing the challenges and thinking about what's involved has to be done.
We've all been involved with a robot workshop so haven't had much time to look at these things in depth but here's a view on the first of the challenges listed, Lava Palaver. The official description of the challenge is here Lava Palava – Pi Wars
The Challenge
This is a black painted course 7 metres long and 55cm wide, with walls 7cm high and part way along is a double chicane where the robot has to turn right then left, followed by a left and then right. A white line 19mm wide is positioned along the centre of the course. Without attachments, the maximum width of a robot is 225mm, or half the width of the course.
A course like this has been used in previous years, but as a change to the layout, a 'speed bump' will be inserted onto the course on the day of the competition, dimensions shown below.
This one feature does introduce a range of considerations also applicable to the obstacle course challenge covered later. The overhang on a robot, that part of the chassis ahead of the front wheels or tracks, will need to be able to clear the leading edge of the 'bump' and also once traversed, be able to avoid colliding with the level part of the course when coming off the 'bump'. A robot could, of course, be made sufficiently robust to collide with this and continue on, either with strengthened chassis, the addition of a skid or with a leading idler roller or wheel. The table below lists a range of overhang lengths and clearances required.There are several strategies which come to mind, and may be adopted either individually or combined. These are dead-reckoning, wall following, line following and for the second and third runs, memorised tracks. Collision avoidance, while not a navigation strategy, is desirable so will be included!
Saturday, October 7, 2023
Didn't get in
Failed to get into PiWars 2024, guess there's lots of strong advanced entries, but we've been put on the reserve list which will be a bit odd. If we were a school team it would be easier as it would be a project, but creating a blog and video for a competition you probably won't be in will be a bit different.
Anyway, we may continue for a while.
Three of us met to discuss Sidmouth Science week and inevitably we started discussing PiWars. Much fun was had experimenting with arms for sorting toxic waste barrels and a Nerf gun for shooting Zombies. Despite not getting in, we're already doing well at having solutions to the challenges and even measured out an area of kitchen for a test arena, though we have to move the table and chairs out first!
An analysis of the challenges has already been done, so they'll be written up over the next few days and published in the hope they're useful to everyone else.
Friday, September 29, 2023
PiWars 2024 Entry
Tuesday, July 19, 2022
-
With less than a month to go it seems we have lots of solutions which are all but ready to go. Line followers that can see lines but can th...
-
So this is possibly our last blog entry before we're off to Cambridge with Zyderbot, ready or not. I'm sure we'll take part in e...
-
Tuning! So we build solutions, they should work, and then the real world gets in the way. Lava Palaver progress We'd gone for a camera...