St.
Conrads Inter College
Robotics
Class VI – Viva Notes
Chapter 3 : Dora’s Door Alarm
A Door Alarm with Button and Servo Motor is a smart security project that helps to
protect a door from unwanted entry.
In this project, we use an IR Sensor, a Buzzer, a Servo Motor, and a Button in the
Code2Play app.
The IR sensor works like a smart eye and detects a person near the door.
If someone comes near the door without permission, the buzzer turns ON and makes a
loud sound to alert us.
The servo motor acts like a door lock. It rotates to a fixed angle (like 0° for lock and 90°
for unlock) to open or close the door.
Using the Button in the app, we can control the servo motor and open/close the door
only when needed.
This project is useful for home security, lockers, and school labs because it gives both
alarm safety and door control in one system.
Components used:
• Qbrick (or) Mother Board
• Qbits (or) Building Blocks
• IR Sensor
• Buzzer
• Servo Motor
• RJ Cable
• Android Device
Test Yourself
1. IR Sensor has a transmitter and a receiver.
Answer: TRUE
2. Buzzer is a ______ device.
Answer: PIEZOELECTRIC
3. Buzzer is an ______.
Answer: ACTUATOR
4. IR Sensor works by emitting light.
Answer: TRUE (It emits IR light)
5. IR rays are invisible to human eyes.
Answer: TRUE
6. Mention 2 examples of IR sensor.
Answer: TV remote control
Automatic door / security alarm (obstacle detector robot)
Chapter 4 : Principal Victor’s Voting Machine
A Voting Machine is a project used to collect votes and show the result using lights.
In this project, we use 2 limit switches as two voting buttons and 2 RGB LEDs to show
who got the vote.
• Limit Switch 1 = Vote for Candidate A
• Limit Switch 2 = Vote for Candidate B
Whenever a person presses a limit switch, the vote is counted for that candidate.
At the same time, the RGB LED glows to show the vote has been registered.
Example:
• Press Switch 1 → Candidate A vote increases + LED 1 glows
• Press Switch 2 → Candidate B vote increases + LED 2 glows
Components used:
• Qbrick (or) Mother Board
• Qbits (or) Building Blocks
• Limit Switches – 2
• RGB LED - 2
• RJ Cable - 4
• Android Device
Test Yourself
1. What is the maximum value of RGB?
Answer: 255
2. Pick out the input component used in making the voting machine.
Answer: LIMIT SWITCH
3. Where do you find RGB in the Designer interface?
Answer: QTPI MEGA BLOCKS
4. Limit Switch is also known as a touch sensor. Mention 2 uses of a Touch Sensor.
Answer: Touch lamp
Robot start/stop button
5. Why is the RGB LED range from 0–255?
Answer: Because 0 means OFF and 255 means maximum brightness for each
colour.
RGB brightness is stored in 8-bit number.
8-bit values = 256 total values
So it goes from: 0 to 255
6. What is the purpose of using Variable in the above Project code?
Answer: To store and count votes for each candidate.
Components identification and definition
❖ Qbrick (or) Mother Board:
Q-brick or a motherboard is the brain of the robot.
It contains 6 programmable RJ ports to connect sensors and actuators and 2
programmable motor ports to connect DC/Pump motors, also one non-
programmable motor port for testing motors.
❖ Qbits (or) Building Blocks
Q-bits are also known as building blocks.
They are used to create a structure for the robots
❖ IR Sensor
IR Sensor (Infrared Sensor) is a sensor that helps a robot detect objects near it.
It works like a smart eye.
The IR sensor has two parts:
• Transmitter (sends invisible IR light)
• Receiver (receives the reflected IR light)
When an object comes in front of the sensor, the IR light reflects back and the
sensor detects it.
IR sensors are used in robots for obstacle detection, automatic doorbells, and
security alarms.
❖ Buzzer
A Buzzer is an electronic device that makes a sound like “beep beep”.
It is used in projects to give an alert or warning.
A buzzer mainly contains a piezoelectric material inside it.
This material vibrates when electricity is given, and that vibration makes the
“beep beep” sound.
❖ Servo Motor
Servo motor is a motor that rotates to a fixed angle like 0°, 90°, 180°.
It is used for opening doors, moving arms, or turning parts.
Servo motor’s range is between 0° and 180° degree.
❖ Limit Switches
A Limit Switch is a type of input switch that works when we press it.
It is used to detect touch/press like a button.
❖ RGB LED
An RGB LED is a light that can glow in Red, Green, and Blue colours.
By mixing these 3 colours, it can make many different colours.
❖ RJ Cable
It is a wire used to connect sensors and actuators to the Qbrick.
❖ Android Device
An android device is a smartphone or tablet that uses Android software. In
robotics, it can be used to control robots, give commands, run robotic apps, and
connect with sensors or Bluetooth devices.
Non - Visible Components
1. List-picker:
List-picker is a visible component that shows a list of elements to the user and user
can make selection from the list.
Note:
In our projects these elements are bluetooth devices.
2. Bluetooth-Client:
Bluetooth client is a non-visible component that provides the functionality of
bluetooth for our application.
Functions of Bluetooth-Client:
a) Detects nearby bluetooth devices and maintains a list of addresses and names
of these bluetooth devices.
b) Helps in bluetooth connection.
3. Notifier:
Notifier is a non-visible component that notifies or alerts the user with a
custom(changeable) message.
4. Label:
A tool used to display text on the app screen.
5. Button:
A tool that we press to perform an action (like ON/OFF).
6. Textbox:
• A textbox is used to type text or numbers.
• Example: entering name, password, or input value.
7. Image:
An Image component is used to show a picture on the app screen.
It makes the app look beautiful and easy to understand.
Uses of Image in app:
• Show logo, robot picture, ON/OFF icons and buttons like arrow keys (⬆⬇⬅➡)