cjdawson.com
- Mar 6, 2023
- 2
- Joined
- Mar 6, 2023
- Messages
- 2
I'm thinking about how to build a project based on the game battleships.
One of the features of the game is that I want to be able to place the ship onto the grid, and have a circuit detect where the ship is.
The ship itself will be either transparent plastic, or maybe opaque, with Red Leds in (that will light up when it registers a hit) not fully decided on that bit yet.
The main problem that I have is that I want to be able to place the ship on the board and have it's location detected, as well as being held in place. I thought about using a du point style pins, but these will be rather flimsy, and are likely to break easily. The grid square where the leg of the ship can be placed, will also need to be occupied by an LED, which will at minimum light up white to denote a miss. (Red will be used for hit)
The main problem that I'm thinking about is trying to figure out the options that I have for detecting the where the ship is on the board.
As a starting point the board is likely to be a 10x10 grid, of LED's, spaced about 10mm apart, each grid square will contain the LED, and the mechanism that will be used to secure the ship into place, That mechanism will also need to create the electrical contacts needed to be able to detect the location of the ship, and either power an LED to denote the ship being hit (or more to the point, several led's for each hit, 5 on the aircraft carrier etc.)
Making the 10x10 matrix of bi-colour led's shouldn't be too hard, (it'll be driven by a Raspberry Pico, and maybe shift registers, still working that through)
I'm planning on 3d printing the ships, game grids and cases. Using a Pico W, to control everything. Instead of pegs (which get chewed, lost etc) LED's will be used instead. A keypad and screen will be used to take shots. The idea is to place the ship on the board and have the board detect where the ship is
So the problem that I'm trying to solve....
1. how to detect the location of the ship when placed into the lower board.
2. how to make it so that the ship will light up red when hit.
The one thing that I don't want to do is have to manually enter the ship locations like you had to on the 1980's version of computer batterships.
Any ideas?
One of the features of the game is that I want to be able to place the ship onto the grid, and have a circuit detect where the ship is.
The ship itself will be either transparent plastic, or maybe opaque, with Red Leds in (that will light up when it registers a hit) not fully decided on that bit yet.
The main problem that I have is that I want to be able to place the ship on the board and have it's location detected, as well as being held in place. I thought about using a du point style pins, but these will be rather flimsy, and are likely to break easily. The grid square where the leg of the ship can be placed, will also need to be occupied by an LED, which will at minimum light up white to denote a miss. (Red will be used for hit)
The main problem that I'm thinking about is trying to figure out the options that I have for detecting the where the ship is on the board.
As a starting point the board is likely to be a 10x10 grid, of LED's, spaced about 10mm apart, each grid square will contain the LED, and the mechanism that will be used to secure the ship into place, That mechanism will also need to create the electrical contacts needed to be able to detect the location of the ship, and either power an LED to denote the ship being hit (or more to the point, several led's for each hit, 5 on the aircraft carrier etc.)
Making the 10x10 matrix of bi-colour led's shouldn't be too hard, (it'll be driven by a Raspberry Pico, and maybe shift registers, still working that through)

I'm planning on 3d printing the ships, game grids and cases. Using a Pico W, to control everything. Instead of pegs (which get chewed, lost etc) LED's will be used instead. A keypad and screen will be used to take shots. The idea is to place the ship on the board and have the board detect where the ship is
So the problem that I'm trying to solve....
1. how to detect the location of the ship when placed into the lower board.
2. how to make it so that the ship will light up red when hit.
The one thing that I don't want to do is have to manually enter the ship locations like you had to on the 1980's version of computer batterships.
Any ideas?