SlideShare a Scribd company logo
1a) Write the code using CircuitPython (in Python). Create an alarm system using the Raspberry
Pi Pico (RP2-B2) with the elements below. The window/doors and movement sensors are not
needed yet.
1b) Make a circuit schematic of the placement of added resistors, the 5 push buttons and
elements on the diagram.
- Passcode System (PS) - This is the hardware used to input a passcode to activate, deactivate, or
control the security alarm system. - Core: Switches - Five mini push buttons that represent the
symbols 0 thru 2 , , and #. - Other than the initial program setup that is done using the host
computer's keyboard, all other input operations must be handled using the PS as the primary user
interface. - Passcode - A three (3) digit number that is used for securely accessing the alarm
system Entry of a passcode is complete when it is followed by a # (hash) symbol. - Zone - A
specific area that can be protected (e.g., one or more windows, doors, or hallways) - A zone can
be independently set to be either monitored or not. For example, if the entire structure is
unoccupied, then all zones are monitored doors windows, and motion sensors. If someone is
legitimately in the structure at night, then the doors/windows can be monitored, while the inside
motion sensor is deactivated to prevent false alarms. - DISENGAGED mode - The alarm system is
turned OFF: sensors are not monitored at all; audio/visual alarms are deactivated (turned off) -
These user operations are allowed via the PS: - Enable or disable zone #1 (door/window sensor) -
This works like a toggle: Enter * 1 to enable, enter * 1 again to disable. Have a space for the code
for the sensors later, just have the code for enabling and disabling the zones. - Enable or disable
zone #2 (movement sensor) - This works like a toggle: Enter 2 to enable, enter 2 again to disable.
Have a space for the code for the sensors later, just have the code for enabling and disabling the
zones. - Enable ARMED mode by entering the proper passcode - ENGAGED mode - The alarm
system is turned ON: sensors are monitored; audio/visual alarms are activated if a security breach
is detected - This user operation is allowed via the PS: - Enter DISARMED mode by entering the
proper passcode - If an intrusion has been detected: - The system emits a warning (e.g., one
flashing LED or a beep sound) and gives the user up to ten (10) seconds to enter the disarm
passcode. - If more than 10 seconds have elapsed with no passcode entered, or if the passcode is
entered incorrectly more than three times in a row, then audio/visual alarms are activated (e.g., all
lights flashing, continuous buzzer sound). When the CircuitPython program starts running, display
a menu (e.g., as text in the Mu serial window) from which the user can pick one of these options: -
Ref passcode - Asks the user to enter a reference passcode for testing - If none is entered, use a
default passcode (e.g., 000). - Run - Executes the alarm system module - The program puts the
system into the DISENGAGED mode and waits for further PS input. - Exit - Quits the program 2.
The program should display status messages that alert you of significant system events, like when
a sensor trips. For example, you could write a message to the console window.Passcode:
Separate push buttons For the core project, you are to use mini push button switches to enter the
passcode and to control the security zone system. If you do not have enough inputs available on
the Raspberry Pi Pico you can connect all the code entry buttons to a single GPIO pin using the
following method. Procedure for connecting multiple switches to a single analog input channel: -
Construct a voltage divider ladder for the number of switches you want to use. For example, see
Figure 10 for a three-switch version. Select resistors that give a good separation in VaIN. Note:
You can expand the network to handle more switches. See if you can derive the general equations
for the measured AIN voltage. - Connect the circuit to an available GPIO pin on the LabJack. -
Configure the channel for analog input (AIN) mode. SW1 pressed: VAIN=0 SW2 pressed: VAIN=R
1+R2R2VS SW3 pressed: VAIN=R1+R2+R3R2+R3VS No switch pressed: VAIN=VS Figure 10:
Voltage divider ladder for three switches You can use an if-elif selection statement to determine
which switch was pressed. Since the measured input voltage is analog, so you will need to test
whether the voltage falls within a small range that brackets the desired test value.PWM pins on R-
PI PICURaspberry Pi PICO Pinout

More Related Content

Similar to 1a Write the code using CircuitPython in Python Create a.pdf

Z-Wave Keypad Manual - PoPP
Z-Wave Keypad Manual - PoPPZ-Wave Keypad Manual - PoPP
Z-Wave Keypad Manual - PoPP
Domotica daVinci
 
IRJET- Centralised Status alert system for industrial machines
IRJET-  	  Centralised Status alert system for industrial machinesIRJET-  	  Centralised Status alert system for industrial machines
IRJET- Centralised Status alert system for industrial machines
IRJET Journal
 
Ad830 user manual
Ad830 user manualAd830 user manual
Ad830 user manual
Hai Andre Boukris
 
I need help with this assignment, using atmel studio 7.0Place a l.pdf
I need help with this assignment, using atmel studio 7.0Place a l.pdfI need help with this assignment, using atmel studio 7.0Place a l.pdf
I need help with this assignment, using atmel studio 7.0Place a l.pdf
michaelazach6427
 
Home security with Raspberry Pi
Home security with Raspberry PiHome security with Raspberry Pi
Home security with Raspberry Pi
Bogusz Jelinski
 
Solar powered gps tracker for pets and hidden cost user manual
Solar powered gps tracker for pets and hidden cost user manualSolar powered gps tracker for pets and hidden cost user manual
Solar powered gps tracker for pets and hidden cost user manual
robin huang
 
publish manual
publish manualpublish manual
publish manual
John Webster
 
Outdoor LED Billboard IPC --- function introduction
Outdoor LED Billboard IPC --- function introductionOutdoor LED Billboard IPC --- function introduction
Outdoor LED Billboard IPC --- function introduction
Max Dan
 
Paxton Access 337-967-US Instruction Manual
Paxton Access 337-967-US Instruction ManualPaxton Access 337-967-US Instruction Manual
Paxton Access 337-967-US Instruction Manual
JMAC Supply
 
Paxton Access 337-957-US Instruction Manual
Paxton Access 337-957-US Instruction ManualPaxton Access 337-957-US Instruction Manual
Paxton Access 337-957-US Instruction Manual
JMAC Supply
 
Paxton Access 337-937-US Instruction Manual
Paxton Access 337-937-US Instruction ManualPaxton Access 337-937-US Instruction Manual
Paxton Access 337-937-US Instruction Manual
JMAC Supply
 
Embedded systems presentation
Embedded systems presentationEmbedded systems presentation
Embedded systems presentation
RAJBALA PURNIMA PRIYA
 
Arduino based home automation using tv remote
Arduino based home automation using tv remoteArduino based home automation using tv remote
Arduino based home automation using tv remote
Mahbub Alam Himel
 
Arduino intro.pptx
Arduino intro.pptxArduino intro.pptx
Arduino intro.pptx
SanthanaMari11
 
D05111923
D05111923D05111923
D05111923
IOSR-JEN
 
AOS Chapter 6 for internal.docx
AOS Chapter 6 for internal.docxAOS Chapter 6 for internal.docx
AOS Chapter 6 for internal.docx
KomlikaTaru
 
4G Mini GPS Tracker FA29 User Manual (Huatenglobal).pdf
4G Mini GPS Tracker FA29 User Manual (Huatenglobal).pdf4G Mini GPS Tracker FA29 User Manual (Huatenglobal).pdf
4G Mini GPS Tracker FA29 User Manual (Huatenglobal).pdf
Huaten Global
 
Introduction to Embedded systems
Introduction to Embedded systems  Introduction to Embedded systems
Introduction to Embedded systems
UthraSowrirajan1
 
Remote ashok
Remote ashokRemote ashok
Remote ashok
Ashokkumar sekar
 
Home Automation Using Arduino and ESP8266
Home Automation Using Arduino and ESP8266Home Automation Using Arduino and ESP8266
Home Automation Using Arduino and ESP8266
INFOGAIN PUBLICATION
 

Similar to 1a Write the code using CircuitPython in Python Create a.pdf (20)

Z-Wave Keypad Manual - PoPP
Z-Wave Keypad Manual - PoPPZ-Wave Keypad Manual - PoPP
Z-Wave Keypad Manual - PoPP
 
IRJET- Centralised Status alert system for industrial machines
IRJET-  	  Centralised Status alert system for industrial machinesIRJET-  	  Centralised Status alert system for industrial machines
IRJET- Centralised Status alert system for industrial machines
 
Ad830 user manual
Ad830 user manualAd830 user manual
Ad830 user manual
 
I need help with this assignment, using atmel studio 7.0Place a l.pdf
I need help with this assignment, using atmel studio 7.0Place a l.pdfI need help with this assignment, using atmel studio 7.0Place a l.pdf
I need help with this assignment, using atmel studio 7.0Place a l.pdf
 
Home security with Raspberry Pi
Home security with Raspberry PiHome security with Raspberry Pi
Home security with Raspberry Pi
 
Solar powered gps tracker for pets and hidden cost user manual
Solar powered gps tracker for pets and hidden cost user manualSolar powered gps tracker for pets and hidden cost user manual
Solar powered gps tracker for pets and hidden cost user manual
 
publish manual
publish manualpublish manual
publish manual
 
Outdoor LED Billboard IPC --- function introduction
Outdoor LED Billboard IPC --- function introductionOutdoor LED Billboard IPC --- function introduction
Outdoor LED Billboard IPC --- function introduction
 
Paxton Access 337-967-US Instruction Manual
Paxton Access 337-967-US Instruction ManualPaxton Access 337-967-US Instruction Manual
Paxton Access 337-967-US Instruction Manual
 
Paxton Access 337-957-US Instruction Manual
Paxton Access 337-957-US Instruction ManualPaxton Access 337-957-US Instruction Manual
Paxton Access 337-957-US Instruction Manual
 
Paxton Access 337-937-US Instruction Manual
Paxton Access 337-937-US Instruction ManualPaxton Access 337-937-US Instruction Manual
Paxton Access 337-937-US Instruction Manual
 
Embedded systems presentation
Embedded systems presentationEmbedded systems presentation
Embedded systems presentation
 
Arduino based home automation using tv remote
Arduino based home automation using tv remoteArduino based home automation using tv remote
Arduino based home automation using tv remote
 
Arduino intro.pptx
Arduino intro.pptxArduino intro.pptx
Arduino intro.pptx
 
D05111923
D05111923D05111923
D05111923
 
AOS Chapter 6 for internal.docx
AOS Chapter 6 for internal.docxAOS Chapter 6 for internal.docx
AOS Chapter 6 for internal.docx
 
4G Mini GPS Tracker FA29 User Manual (Huatenglobal).pdf
4G Mini GPS Tracker FA29 User Manual (Huatenglobal).pdf4G Mini GPS Tracker FA29 User Manual (Huatenglobal).pdf
4G Mini GPS Tracker FA29 User Manual (Huatenglobal).pdf
 
Introduction to Embedded systems
Introduction to Embedded systems  Introduction to Embedded systems
Introduction to Embedded systems
 
Remote ashok
Remote ashokRemote ashok
Remote ashok
 
Home Automation Using Arduino and ESP8266
Home Automation Using Arduino and ESP8266Home Automation Using Arduino and ESP8266
Home Automation Using Arduino and ESP8266
 

More from adamsapparels

1Given the function Gtexpt where tgt0 a If .pdf
1Given the function Gtexpt where tgt0  a If .pdf1Given the function Gtexpt where tgt0  a If .pdf
1Given the function Gtexpt where tgt0 a If .pdf
adamsapparels
 
1a scientific technical operational and economic are the.pdf
1a scientific technical operational and economic are the.pdf1a scientific technical operational and economic are the.pdf
1a scientific technical operational and economic are the.pdf
adamsapparels
 
1Es la economa una ciencia social fra y despiadada que c.pdf
1Es la economa una ciencia social fra y despiadada que c.pdf1Es la economa una ciencia social fra y despiadada que c.pdf
1Es la economa una ciencia social fra y despiadada que c.pdf
adamsapparels
 
17 The output of this C code is presented below Please exp.pdf
17 The output of this C code is presented below Please exp.pdf17 The output of this C code is presented below Please exp.pdf
17 The output of this C code is presented below Please exp.pdf
adamsapparels
 
1Daha az yaplandrlmtr bu da almay zorlatrr Bu zellik .pdf
1Daha az yaplandrlmtr bu da almay zorlatrr Bu zellik .pdf1Daha az yaplandrlmtr bu da almay zorlatrr Bu zellik .pdf
1Daha az yaplandrlmtr bu da almay zorlatrr Bu zellik .pdf
adamsapparels
 
1964 PasswordReport and IPasswordReport interface You have .pdf
1964 PasswordReport and IPasswordReport interface You have .pdf1964 PasswordReport and IPasswordReport interface You have .pdf
1964 PasswordReport and IPasswordReport interface You have .pdf
adamsapparels
 
1A Description Computer security protects computer system.pdf
1A Description Computer security protects computer system.pdf1A Description Computer security protects computer system.pdf
1A Description Computer security protects computer system.pdf
adamsapparels
 
17 You Explain It Quartiles Violent crimes include rape r.pdf
17 You Explain It Quartiles Violent crimes include rape r.pdf17 You Explain It Quartiles Violent crimes include rape r.pdf
17 You Explain It Quartiles Violent crimes include rape r.pdf
adamsapparels
 
1Incluidas las primeras empresas digitales Seleccione una.pdf
1Incluidas las primeras empresas digitales Seleccione una.pdf1Incluidas las primeras empresas digitales Seleccione una.pdf
1Incluidas las primeras empresas digitales Seleccione una.pdf
adamsapparels
 
1Strawberries have four times as much DNA as humans How do.pdf
1Strawberries have four times as much DNA as humans How do.pdf1Strawberries have four times as much DNA as humans How do.pdf
1Strawberries have four times as much DNA as humans How do.pdf
adamsapparels
 
1Ekonomik teori A Ekonomik olaylar aklamaya alr B e.pdf
1Ekonomik teori  A Ekonomik olaylar aklamaya alr  B e.pdf1Ekonomik teori  A Ekonomik olaylar aklamaya alr  B e.pdf
1Ekonomik teori A Ekonomik olaylar aklamaya alr B e.pdf
adamsapparels
 
1Mitoz ve mayoz blnme arasndaki farklarla ilgili aadaki .pdf
1Mitoz ve mayoz blnme arasndaki farklarla ilgili aadaki .pdf1Mitoz ve mayoz blnme arasndaki farklarla ilgili aadaki .pdf
1Mitoz ve mayoz blnme arasndaki farklarla ilgili aadaki .pdf
adamsapparels
 
1Need help drawing penile tissue and Uterus penile tissue.pdf
1Need help drawing penile tissue and Uterus penile tissue.pdf1Need help drawing penile tissue and Uterus penile tissue.pdf
1Need help drawing penile tissue and Uterus penile tissue.pdf
adamsapparels
 
1Sre modelleme ynergeleri hangi hedeflere katkda bulunm.pdf
1Sre modelleme ynergeleri hangi hedeflere katkda bulunm.pdf1Sre modelleme ynergeleri hangi hedeflere katkda bulunm.pdf
1Sre modelleme ynergeleri hangi hedeflere katkda bulunm.pdf
adamsapparels
 
1Research the data amount of spending by Torontonians What.pdf
1Research the data amount of spending by Torontonians What.pdf1Research the data amount of spending by Torontonians What.pdf
1Research the data amount of spending by Torontonians What.pdf
adamsapparels
 
1a Cmo termina la sntesis en la transcripcin a secu.pdf
1a  Cmo termina la sntesis en la transcripcin  a secu.pdf1a  Cmo termina la sntesis en la transcripcin  a secu.pdf
1a Cmo termina la sntesis en la transcripcin a secu.pdf
adamsapparels
 
1Social media has become more important to brand managers t.pdf
1Social media has become more important to brand managers t.pdf1Social media has become more important to brand managers t.pdf
1Social media has become more important to brand managers t.pdf
adamsapparels
 
1How can you predict whether a BCL protein is proapoptotic.pdf
1How can you predict whether a BCL protein is proapoptotic.pdf1How can you predict whether a BCL protein is proapoptotic.pdf
1How can you predict whether a BCL protein is proapoptotic.pdf
adamsapparels
 
1In the short story of The Lesson By Toni Cade Bambara what.pdf
1In the short story of The Lesson By Toni Cade Bambara what.pdf1In the short story of The Lesson By Toni Cade Bambara what.pdf
1In the short story of The Lesson By Toni Cade Bambara what.pdf
adamsapparels
 
1Qu recursos subyacen a la posicin competitiva de Southw.pdf
1Qu recursos subyacen a la posicin competitiva de Southw.pdf1Qu recursos subyacen a la posicin competitiva de Southw.pdf
1Qu recursos subyacen a la posicin competitiva de Southw.pdf
adamsapparels
 

More from adamsapparels (20)

1Given the function Gtexpt where tgt0 a If .pdf
1Given the function Gtexpt where tgt0  a If .pdf1Given the function Gtexpt where tgt0  a If .pdf
1Given the function Gtexpt where tgt0 a If .pdf
 
1a scientific technical operational and economic are the.pdf
1a scientific technical operational and economic are the.pdf1a scientific technical operational and economic are the.pdf
1a scientific technical operational and economic are the.pdf
 
1Es la economa una ciencia social fra y despiadada que c.pdf
1Es la economa una ciencia social fra y despiadada que c.pdf1Es la economa una ciencia social fra y despiadada que c.pdf
1Es la economa una ciencia social fra y despiadada que c.pdf
 
17 The output of this C code is presented below Please exp.pdf
17 The output of this C code is presented below Please exp.pdf17 The output of this C code is presented below Please exp.pdf
17 The output of this C code is presented below Please exp.pdf
 
1Daha az yaplandrlmtr bu da almay zorlatrr Bu zellik .pdf
1Daha az yaplandrlmtr bu da almay zorlatrr Bu zellik .pdf1Daha az yaplandrlmtr bu da almay zorlatrr Bu zellik .pdf
1Daha az yaplandrlmtr bu da almay zorlatrr Bu zellik .pdf
 
1964 PasswordReport and IPasswordReport interface You have .pdf
1964 PasswordReport and IPasswordReport interface You have .pdf1964 PasswordReport and IPasswordReport interface You have .pdf
1964 PasswordReport and IPasswordReport interface You have .pdf
 
1A Description Computer security protects computer system.pdf
1A Description Computer security protects computer system.pdf1A Description Computer security protects computer system.pdf
1A Description Computer security protects computer system.pdf
 
17 You Explain It Quartiles Violent crimes include rape r.pdf
17 You Explain It Quartiles Violent crimes include rape r.pdf17 You Explain It Quartiles Violent crimes include rape r.pdf
17 You Explain It Quartiles Violent crimes include rape r.pdf
 
1Incluidas las primeras empresas digitales Seleccione una.pdf
1Incluidas las primeras empresas digitales Seleccione una.pdf1Incluidas las primeras empresas digitales Seleccione una.pdf
1Incluidas las primeras empresas digitales Seleccione una.pdf
 
1Strawberries have four times as much DNA as humans How do.pdf
1Strawberries have four times as much DNA as humans How do.pdf1Strawberries have four times as much DNA as humans How do.pdf
1Strawberries have four times as much DNA as humans How do.pdf
 
1Ekonomik teori A Ekonomik olaylar aklamaya alr B e.pdf
1Ekonomik teori  A Ekonomik olaylar aklamaya alr  B e.pdf1Ekonomik teori  A Ekonomik olaylar aklamaya alr  B e.pdf
1Ekonomik teori A Ekonomik olaylar aklamaya alr B e.pdf
 
1Mitoz ve mayoz blnme arasndaki farklarla ilgili aadaki .pdf
1Mitoz ve mayoz blnme arasndaki farklarla ilgili aadaki .pdf1Mitoz ve mayoz blnme arasndaki farklarla ilgili aadaki .pdf
1Mitoz ve mayoz blnme arasndaki farklarla ilgili aadaki .pdf
 
1Need help drawing penile tissue and Uterus penile tissue.pdf
1Need help drawing penile tissue and Uterus penile tissue.pdf1Need help drawing penile tissue and Uterus penile tissue.pdf
1Need help drawing penile tissue and Uterus penile tissue.pdf
 
1Sre modelleme ynergeleri hangi hedeflere katkda bulunm.pdf
1Sre modelleme ynergeleri hangi hedeflere katkda bulunm.pdf1Sre modelleme ynergeleri hangi hedeflere katkda bulunm.pdf
1Sre modelleme ynergeleri hangi hedeflere katkda bulunm.pdf
 
1Research the data amount of spending by Torontonians What.pdf
1Research the data amount of spending by Torontonians What.pdf1Research the data amount of spending by Torontonians What.pdf
1Research the data amount of spending by Torontonians What.pdf
 
1a Cmo termina la sntesis en la transcripcin a secu.pdf
1a  Cmo termina la sntesis en la transcripcin  a secu.pdf1a  Cmo termina la sntesis en la transcripcin  a secu.pdf
1a Cmo termina la sntesis en la transcripcin a secu.pdf
 
1Social media has become more important to brand managers t.pdf
1Social media has become more important to brand managers t.pdf1Social media has become more important to brand managers t.pdf
1Social media has become more important to brand managers t.pdf
 
1How can you predict whether a BCL protein is proapoptotic.pdf
1How can you predict whether a BCL protein is proapoptotic.pdf1How can you predict whether a BCL protein is proapoptotic.pdf
1How can you predict whether a BCL protein is proapoptotic.pdf
 
1In the short story of The Lesson By Toni Cade Bambara what.pdf
1In the short story of The Lesson By Toni Cade Bambara what.pdf1In the short story of The Lesson By Toni Cade Bambara what.pdf
1In the short story of The Lesson By Toni Cade Bambara what.pdf
 
1Qu recursos subyacen a la posicin competitiva de Southw.pdf
1Qu recursos subyacen a la posicin competitiva de Southw.pdf1Qu recursos subyacen a la posicin competitiva de Southw.pdf
1Qu recursos subyacen a la posicin competitiva de Southw.pdf
 

Recently uploaded

The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
MysoreMuleSoftMeetup
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
ssuser13ffe4
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
spdendr
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
BoudhayanBhattachari
 

Recently uploaded (20)

The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
 

1a Write the code using CircuitPython in Python Create a.pdf

  • 1. 1a) Write the code using CircuitPython (in Python). Create an alarm system using the Raspberry Pi Pico (RP2-B2) with the elements below. The window/doors and movement sensors are not needed yet. 1b) Make a circuit schematic of the placement of added resistors, the 5 push buttons and elements on the diagram. - Passcode System (PS) - This is the hardware used to input a passcode to activate, deactivate, or control the security alarm system. - Core: Switches - Five mini push buttons that represent the symbols 0 thru 2 , , and #. - Other than the initial program setup that is done using the host computer's keyboard, all other input operations must be handled using the PS as the primary user interface. - Passcode - A three (3) digit number that is used for securely accessing the alarm system Entry of a passcode is complete when it is followed by a # (hash) symbol. - Zone - A specific area that can be protected (e.g., one or more windows, doors, or hallways) - A zone can be independently set to be either monitored or not. For example, if the entire structure is unoccupied, then all zones are monitored doors windows, and motion sensors. If someone is legitimately in the structure at night, then the doors/windows can be monitored, while the inside motion sensor is deactivated to prevent false alarms. - DISENGAGED mode - The alarm system is turned OFF: sensors are not monitored at all; audio/visual alarms are deactivated (turned off) - These user operations are allowed via the PS: - Enable or disable zone #1 (door/window sensor) - This works like a toggle: Enter * 1 to enable, enter * 1 again to disable. Have a space for the code for the sensors later, just have the code for enabling and disabling the zones. - Enable or disable zone #2 (movement sensor) - This works like a toggle: Enter 2 to enable, enter 2 again to disable. Have a space for the code for the sensors later, just have the code for enabling and disabling the zones. - Enable ARMED mode by entering the proper passcode - ENGAGED mode - The alarm system is turned ON: sensors are monitored; audio/visual alarms are activated if a security breach is detected - This user operation is allowed via the PS: - Enter DISARMED mode by entering the proper passcode - If an intrusion has been detected: - The system emits a warning (e.g., one flashing LED or a beep sound) and gives the user up to ten (10) seconds to enter the disarm passcode. - If more than 10 seconds have elapsed with no passcode entered, or if the passcode is entered incorrectly more than three times in a row, then audio/visual alarms are activated (e.g., all lights flashing, continuous buzzer sound). When the CircuitPython program starts running, display a menu (e.g., as text in the Mu serial window) from which the user can pick one of these options: - Ref passcode - Asks the user to enter a reference passcode for testing - If none is entered, use a default passcode (e.g., 000). - Run - Executes the alarm system module - The program puts the system into the DISENGAGED mode and waits for further PS input. - Exit - Quits the program 2. The program should display status messages that alert you of significant system events, like when a sensor trips. For example, you could write a message to the console window.Passcode: Separate push buttons For the core project, you are to use mini push button switches to enter the passcode and to control the security zone system. If you do not have enough inputs available on the Raspberry Pi Pico you can connect all the code entry buttons to a single GPIO pin using the following method. Procedure for connecting multiple switches to a single analog input channel: - Construct a voltage divider ladder for the number of switches you want to use. For example, see Figure 10 for a three-switch version. Select resistors that give a good separation in VaIN. Note:
  • 2. You can expand the network to handle more switches. See if you can derive the general equations for the measured AIN voltage. - Connect the circuit to an available GPIO pin on the LabJack. - Configure the channel for analog input (AIN) mode. SW1 pressed: VAIN=0 SW2 pressed: VAIN=R 1+R2R2VS SW3 pressed: VAIN=R1+R2+R3R2+R3VS No switch pressed: VAIN=VS Figure 10: Voltage divider ladder for three switches You can use an if-elif selection statement to determine which switch was pressed. Since the measured input voltage is analog, so you will need to test whether the voltage falls within a small range that brackets the desired test value.PWM pins on R- PI PICURaspberry Pi PICO Pinout