303 Circuits by Elektor Electronics

February 23, 2017 | Electronics | By admin | 0 Comments

By Elektor Electronics

Like its predecessors within the three hundred sequence of electronics tasks books, 303 Circuits is geared toward the energetic electronics fanatic, specialist or beginner. because the sequence used to be begun within the early Nineteen Eighties, many hundreds of thousands of readers have present in those books that new technique, new thought, or new circuit they have been searching for. In 303 Circuits you'll find new rules, new options and new circuits protecting the gamut of electronics. The booklet is prepared in topic sections to make it more uncomplicated so that you can locate the circuit or concept you're looking for.

Show description

Read Online or Download 303 Circuits PDF

Similar electronics books

Transformers and Inductors for Power Electronics: Theory, Design and Applications

In line with the basics of electromagnetics, this transparent and concise textual content explains simple and utilized ideas of transformer and inductor layout for strength digital functions. It info either the idea and perform of inductors and transformers hired to clear out currents, shop electromagnetic power, supply actual isolation among circuits, and practice stepping up and down of DC and AC voltages.


The purpose of this booklet is to supply, either the non-specialist and the expert in EHD, having the ability to extract significant details from his/her experimental information and procure a very good actual figuring out, by means of utilizing the information offered during this booklet. as well as supplying the clinical history, it's also meant to take the reader to the frontiers of study during this box, in order that they may match, with no attempt, into the really good literature.

Extra info for 303 Circuits

Sample text

7. When the lightLED1 function is called, the Player 1 LED stays lit for 1 second and then turns off. 8. When the lightLED2 function is called, the Player 2 LED stays lit for 1 second and then turns off. 9. The program waits for a button to be pressed again. You’ve probably figured out that the circuit for the MintDuino Reflex Game is done. If Subtask 4 is working properly for you, then you’ve got all the buttons, LEDs, and resistors wired up correctly. All that’s left is to write the new sketch for the game.

PinMode(button2, INPUT); // is this needed? = button2State) { Subtask 5: Program the Game 43 delay(5); // pause, then take another reading if (button1State == HIGH && digitalRead(button1) == HIGH) { Player1Win(); gameOver = 1; } if (button2State == HIGH && digitalRead(button2) == HIGH) { Player2Win(); gameOver = 1; } } else { if (button1State == HIGH && button2State == HIGH) { // tie itsATie(); gameOver = 1; } } } // Start game over } // Tie void itsATie() { for (int i = 0; i < 3; i++) { digitalWrite(ledPlayer1, HIGH); digitalWrite(ledPlayer2, HIGH); delay(250); digitalWrite(ledPlayer1, LOW); digitalWrite(ledPlayer2, LOW); delay(250); } } // Player 1 won, light his/her LED // void Player1Win() { digitalWrite(ledPlayer1, HIGH); digitalWrite(ledPlayer2, LOW); delay(4000); digitalWrite(ledPlayer1, LOW); } // Player 2 won, light his/her LED // void Player2Win() { 44 MintDuino digitalWrite(ledPlayer2, HIGH); digitalWrite(ledPlayer1, LOW); delay(4000); digitalWrite(ledPlayer2, LOW); } After uploading the sketch to the MintDuino, run the program.

And buttons is what we need to learn how to use now. We’ll tackle Subtask 3 next, and learn how to light that LED by pressing a pushbutton. Unplug the USB cable from the FTDI/MintDuino and make no changes to the wiring of the LED and RES1. 22 MintDuino NOTE: If you managed to get the LED to light in Subtask 1, then any problems you’ll likely have with Subtask 2 will exist in the program itself. If you’re not seeing the initial three quick flashes of the LED, check your code to make certain you’re not using the ledWait variable to control the on-and-off lighting in the for loop (there should be two delays of 250 milliseconds in the for loop).

Download PDF sample

Rated 4.52 of 5 – based on 6 votes