![]() In one end of the switch we will supply 3v3 power from the Raspberry Pi 3v3 pin and the other will be connected to the corresponding pin. With the switches in place we must now attach jumper cables to each end of the reed switch component. Repeat this action for all of the reed switches for all of the pythons and resistors. Once found I simply used cellotape over the glass vial of the switch to fix it into place. To easily locate the correct spot I used a magnet on the printed side to trigger the reed switch on the underside. The best place to start is by fixing the reed switches into place on the underside of the board. When contact is made the current will flow through the switch and in this case the current will flow to a GPIO pin on the Raspberry Pi which has been configured to be an input and react when this happens. By placing a magnet near to the switch we can trigger the contacts to quickly make contact, with a small audible click / pop being heard when this is the case. The contacts that form the switch mechanism come normally open so a current does not flow through the switch. ![]() A reed switch is a tiny switch contained inside of a glass vial. ![]() These reed switches will be triggered by the magnets inside of our game pieces. Reed SwitchĪt the head of every Python and the base of every Resistor we are going to place a reed switch on the underside of the game board. With the game board and player pieces completed our focus turn to the wiring and components that are under the board. Assemble and Test the Electronic Components Also you may wish decorate the game pieces with spare components such as LED or resistors. When you are happy with the shape add about three neodymium magnets to the base of the piece ensuring that they are gripped firmly by the sugru. Form the Sugru into the shape that you wish. Sugru is a form of air curing rubber that starts life as a sticky ball with a similar consistency to blutack. While the game board printouts are printing, open a pack or two of Sugru and create game pieces. Start by printing at least two copies of the game board as it is easy to make a mistake when assembling the game. Spare components to decorate the game pieces.Neodymium magnets to trigger the reed switches.The game board, printed on glossy photo paper.The winner is the first player to reach square 100, which is at the top left of the board. If the player lands on the bottom of a Resistor then they will climb up the game board. If the player lands on a Python’s head, then they will slither down the game board to the tail of the Python. The object of the game is for 2 or more players to roll a dice and move their game piece to match the number given on the dice. The board game is based on a simple snakes and ladders setup, with 100 squares in total via a grid of 10 x 10 squares. Magnets to be inserted in to the player pieces. ![]() Snakes and Ladders board game file (provided below, as an image).To build this project you will need the following equipment. Assembling and testing the electronic components.Meet the latest interactive board game…Pythons and Resistors: Finished Raspberry Pi Board Game: Python and Resistors These card and paper based games have little to offer the children of today who have been brought up on a diet of downloadable content packs and gamer scores.īut what if we could take a game from yesteryear and adapt it using the Raspberry Pi? The humble board game.īoard games have been a traditional family pastime for many generations but with the rise of computer games their novelty has started to dwindle. RaspberryPi B+ Board About This Projectįor this project we will look back to our childhood and bring a much loved game from our past into the future. Using programming languages such as Python and ScratchGPIO we can use these pins to control real world components. The GPIO (General Purpose Input Output) are a series of pins that enable common electronic components such as LED (Light Emitting Diodes), button and switches to be connected to your Raspberry Pi. The Raspberry Pi Model B+ has been with us for a few months now and there are a growing number of projects that make use of the extra GPIO pins. Here is what I came up with, a fun board game alternative to digital only games. I was asked by element14 to use the Raspberry Pi to reinvent the whole concept of traditional board games. Plus you will have a board game to play when you're done. This is a great project for a morning or afternoon. ![]()
0 Comments
Leave a Reply. |