Project tutorial

Snap Circuits® - Count Down Launcher © GPL3+

Snap Circuits® makes learning electronics easy and fun! These projects are designed for younger kids who want to be introduced to IoT.

  • 2,989 views
  • 2 comments
  • 13 respects

Components and supplies

Apps and online services

About this project

Follow the Snap Circuits platform!

Overview

What Are Snap Circuits?

Snap Circuits makes learning electtronics easy and fun! Learn how to integrate Snap Circuits with your hardware. Fun for Kids!

Introductory Project

If you have not completed the introductory project please see Snap Circuits - Introduction. This project also contains a complete index of Snap Circuit projects.

Let's Get Started

Project Objective

Using the Arduino, monitor a button, that when pressed, will count down 3 seconds by flashing the red LED and launch the fan. The green LED will turn on when the fan is launched.

Building the Circuit

The minimum set requirement for this project is SC-300.

Build the following circuit:

Click the link below to download a PDF containing the circuit diagram and instructions to build it (the PDF file can also be found in the GitHub repository).

Download Circuit Diagram and Instructions

Here are images of the components that you will use to build the circuit.

Completed Circuit

Here are images of the completed circuit.

Loading the Sketch

The link below will allow you to download the sketch for this project. Click the link (or right-click) and save the file to your computer.

Download Arduino Sketch

Load this sketch into the Arduino IDE in the same manner as in the Blinking LED project. After it is loaded compile and run it. The sketch for this project will write output to the serial port so you will need to open the Serial Monitor from the Tools menu (you can press Ctrl-Shift M).

How this Works

The Circuit

This project is really two circuits in one. The first circuit monitors the push button and waits for it to be pressed. When the switch is open, the Arduino pin D3 is connected to ground through the resistor R4. Reading the value of this pin will return the value LOW. When the button is closed (pressed), the D3 pin is connected to 3V3 directly and the circuit between 3VS and ground is completed through the resistor R4. We use a high resistance of 10K here to limit the current flow. If we did not put a resistor here or we put a value too small we would short the Arduino power supply and cause the Arduino to shut down or restart.

The second circuit uses a relay to turn a motor connected to a battery on and off. The relay and battery are required because the Arduino cannot push enough current to run the motor on its own. The relay is a switch that is activated by current from another isolated circuit. The relay in this circuit is connected to an Arduino digital port that will activate and deactivate the relay. When the relay is activated, the circuit connecting the battery to the lamp is closed and the motor turns on. When the relay is deactivated the circuit is open and the motor turns off.

The Software

The software will monitor the value of pin D3. When the pin is low the software ignores it and does nothing. When the pin goes HIGH (the button is pressed) the software changes a flag to indicate the button was pushed and starts both the motor and the count down using the LED's. The count down is a flashing of the red LED three times, and finally, the green LED is turned on for one second and the motor is turned off.

Code

Source Code for all Snap Circuit Projects
This is the GitHub repository for all of the source code, documents and files presented in the Snap Circuit projects.

Schematics

Breadboard
Count down launcher bb
Schematic
Count down launcher schem
Fritzing File
Count_Down_Launcher.fzz

Comments

Similar projects you might like

Snap Circuits® - Button Controlled Launcher

Project tutorial by Daniel Porrey

  • 3,893 views
  • 0 comments
  • 12 respects

Snap Circuits® - Light Controlled Launcher

Project tutorial by Daniel Porrey

  • 1,726 views
  • 1 comment
  • 4 respects

Snap Circuits® - Push Button Monitor

Project tutorial by Daniel Porrey

  • 1,135 views
  • 0 comments
  • 8 respects

Snap Circuits® - Push Button LED

Project tutorial by Daniel Porrey

  • 1,937 views
  • 0 comments
  • 10 respects

Snap Circuits® - Measuring Light

Project tutorial by Daniel Porrey

  • 1,635 views
  • 0 comments
  • 10 respects

Snap Circuits® - Breathing LED

Project tutorial by Daniel Porrey

  • 1,695 views
  • 0 comments
  • 9 respects
Add projectSign up / Login