With the approach of the April 1, calssico day for April Fool I started thinking about what I could do to this anniversary.
Since I have decided that for this year given the conjunction of the date of Easter with no will realize electronic jokes, I am, however, wanted to stay on the subject by building a game that simulates fishing.
My intent was to place the float at a point and wait for the fish showing signs of his presence to proceed to fish.
Moving fish that sail in the river is the presence of LEDs that light up cyclically, When the LED is on is the right time to make the fish take the bait, if you guess the right time do not have results.
Imagining that it can be easy to evade the complexity simply by holding the fishing button, I proceeded to modify the schema so that the pressure of the said button blocks the displacement of the LEDs.
The scheme even though per se is simple in itself has some points that make it particularly.
The heart of the circuit is an integrated classic overused and seen in many different ways, The CD4017
The peculiarity lies in having used the pins 15 e pin 13 , if they brought to positive potential, respectively, resets the outputs and block the advancement.
The general clok is given daun square wave oscillator realized with two PNP transistor chosen only because it bought at the price of at fairs 1 cents per piece, somehow I'll have to dispose of.
The hard part was finding the buttons normally closed but, I finally found them at a pretty fair price, including a gift of PNP.
oscillator exit, the voltage of the rectangular form is sent to the input pin 14 of the decimal counter. It consists of five stages Johnson counter and decoder which converts the binary code into a signal on one of the ten outputs. If there is a low level at the entrance to the counting input EI (pin 13), the counter performs its operations synchronously with the rising edge at CI . At a high level entry EI, CI disabled and the counting stops. At a high level reset input R (pin 15), the counter is reset.
At each output of the decoder, a high level appears only for the period of the clock pulse with the corresponding number. The counter has an output carry-Q (pin-12), which is not used in this case.
In the game, there is a low level at the entrance of EI, if you want to catch the fish, you must press the button “Fishing”, correspond with a high level on pin 13, and one of the LEDs will remain lit. If the fish is chosen, it is captured, the RGB LED will begin to glow and to change color in an autonomous way thanks to the NPN transistor drive connected to it. Everything can be restored to its initial position by pressing the button “Reset” and the circuit starts from scratch. This reset circuit may be omitted without substantial changes to the game.
Two out are intentionally left unused for a little complicate the game, those that match the pin 10 ed 11.
Given the extreme simplicity of the schema I opted for a cutout breadboard instead of one printed for the realization.
As with the previous power source is taken with a USB cable, my wife and my daughters wear them in industrial quantities for their phones.
For the part that hurts it is always the most stressed, spinottto the micro USB that plugs into your phone, I cut about ten centimeters of the terminal cable and recycling the rest.
Here are some photos of the construction.
Also for this reason a generous layer of glue on the opening to seal it and is ready for use
https://www.elettroamici.org/wp-content/uploads/2018/04/IMMAGINE-SIMBOLO.jpg235300Amilcarehttp://www.elettroamici.org/wp-content/uploads/2017/08/FAVICON-1-300x271.pngAmilcare2018-04-02 16:11:082018-04-02 16:14:37FISHING GAME