Coding for Codgers

Five of us met for the first time on Friday 28th October 2016 in The Runway cafe at Martlesham Heath. Everyone had a good time - with coffee and cake. It's really a social event with cake and coffee, but with a variety of computing related activities.

In our case, Codgers do not need to be either male or ancient! Coding for Codgers will be open to anyone.

Your children and/or grandchildren at school are learning 'Coding' - ie how to write computer programs. We have played with the same computers - which only cost £10 to £20. No experience necessary - this is not going to be a serious training course, it's just for fun.

In the following sections you can see some of the things we have played with. This is not intended as a complete description of our projects, just snapshots to remind us what we have done.

The current conversations cover, amongst other things

Please keep an eye on this website in case of any cancellations. You could still head for the Runway cafe for cake and coffee even if there are no other 'Codgers' around. There's always someone there for a chat.

For more information, contact Ken@CodingForCodgers.co.uk

Weather records for Martlesham Heath (Aug 2023)

Phil's Codging Blog (Feb 2023)




Weather Stations (11 Aug 22)

We have started to build weather stations using various Raspberry Pi computers.
Two prototypes are running and reporting pressure and temperature from BMP180 sensors. Rain and soil temperature now included.
See the first results Phil



Initial Project

This warning triangle shows the computer we first played with. It costs less than £10. The program controls the three lights and the pattern depends on the code you write.

It contains a PICAXE computer (see What is PICAXE for more information).

Where do we go after that?




Morse Code

Who needs chip forks? (In joke!)Try a mouse!
This counts milliseconds where the mouse is up or down on the Key button. Anything less than 200ms down is a dot, anything more is a dash.
It needs at least 500ms space to realise that it has reached the end of a letter.
Obviously lots of room for improvement, but it seems to work.
When you have sent a few letters, click Analyse to see what it made of your message.

Try Morse-003.htm



Nine to Five puzzle

First attempt at a page to help you solve the Nine to Five puzzles. At present you can only try the puzzle given here - puzzle entry comes later.
Drag to letters of the 9 letter word into the middle of the grid to make five letter words. You can then drag the letter to a different empty square.
Double click a letter to return it to the long word.
this does filing without using cookies - but is a bit messy as it has to get round the hazards which would exist if Javascript let me store files!



BBC Micro Bit

Schoolchildren are being given these to play with and learn about programming - so we thought we would try. We now have the traffic lights controlled by a BBC Micro Bit.




Sudoku

Among other things, we've been working on programs to solve Sudoku puzzles. There is an intellectual challenge in solving Sudoku puzzles. The challenge here is firstly to work out how we would do it on paper, then write programs to automate the process.

Here's a selection of web pages which run our programs to solve the puzzles. As time goes by we will add new ones which should be able to solve the more difficult problems.


Latest program

Now we are stuck! If you click puzzle X1 or X2 then click Solve, the program will get stuck and not find a solution.

Can you finish them by hand? If so, please let us know what you did - and more importantly why you did it.

If we know the method used, we can include that in the program and it should be able to solve the more difficult puzzles. As we can't solve them by hand, we don' know what next to put in the program.

Sudoku Reward!

We can make a guess and find the solution, but that counts as cheating. Sudoku puzzles should all be solved by logic - with no guessing

Have a look at our latest program s109.htm. Click on any of the buttons from "Puzzle 1" downwards to see a puzzle - which will have all the potential values in the empty squares. Click "Solve" and the puzzle will be solved.

Try X1 or X2 and you will find that "Solve" gets so far, then gets stuck. In X1, you can guess at "5" for the bottom right "25". Click the "25" and an input box (with "2 5") and update button will appear at the top right. Change the "2 5" to "5" and click the Update button.
Click "Solve" again and the puzzle will be completed.

The challenge is to find the solution without guessing. If you can do that, and explain how you did it, then we can build your new rules into the program and it should be able to solve other puzzles.

REWARD Free coffee and cake for the first person with a solution!




Our Traffic Lights

We built a set of traffic lights - including a pedestrian crossing light

The lights are built out of Lego and yellow sticky tape. The computer is a PICAXE 18M2 ( a larger version of the computer for the Warning Triangle) and the program is written in PICAXE's very basic form of Basic