How-To Guide

PROJECT
13
What do you think the NPN transistor
(Q2) is used for in this circuit?
Build the circuit shown here, note that the blue jumper
wire is connected beneath the NPN transistor (Q2). Turn
on the switch (S1). Open the Snap Circuits
®
Coding app,
connect to the SC Controller, and use Circuit Control
mode to activate sirens. See project 1 and pages 34-42
to review how to use the app.
Next, put the app in BOTCode
TM
mode and create some
code to sound different sirens. Experiment with changing
parameters for commands, such as the time duration.
The alarm IC (U2) can produce four siren sounds, as
shown in project 11. Those sirens can be produced by
controlling the SC Controller outputs as follows:
Siren 1. D1 on, others off.
Siren 2. D1 and D2 on, others off.
Siren 3. D1 and D3 on, others off.
Siren 4. D1 and D4 on, others off.
4 SIRENS CODING
BOTCode
TM
Screen: Play 4 Sirens
- Play different sirens for different durations in
the same program.
CODING CHALLENGE
25
Control Screen
in Circuit Mode

Summary of content (25 pages)