SlideShare a Scribd company logo
1 of 12
 BY:
 VIVEK PATEL
 CWID: 10404232
 SUBJECT - CPE555
1
# Use of Raspberry Pi
# Sensor
#ADC convertor
#LED
# UBUNTU OS – RASPBIAN
# PYTHON GPIO
2
3
Model B+
Memory- SDRAm 512 mb
USB port 2.0 – 2
Video output – hdmi 680x350 t0 1920
x 1200
Network – Ethernet cable
Storage – sd/mmc cards
Power Rating – 750ma = 3.5w
4
# For microcontrollers without an
analog-to-digital converter or when
you want a higher-precision ADC, the
ADS1015 provides 12-bit precision at
3300 samples/second over I2C.
The chip can be configured as 4
single-ended input channels, or two
differential channels.
# Includes a programmable gain
amplifier, up to x16, to help boost up
smaller single/differential signals to
the full range.
5
# We like this ADC because it can run from 2V to 5V power/logic, can measure a
large range of signals and its super easy to use.
# It is a great general purpose 12 bit converter.
# To get you started, we have example code for both the Raspberry Pi (in our
Adafruit Pi Python library) and Arduino (in our ADS1X15 Arduino library
repository) Simply connect GND to ground, VDD to your logic power supply, and
SCL/SDA to your microcontroller's I2C port and run the example code to start
reading data.
6
WIDE SUPPLY RANGE: 2.0V to 5.5V
LOW CURRENT CONSUMPTION: Continuous Mode: Only 150µA Single-Shot
Mode: Auto Shut-Down
PROGRAMMABLE DATA RATE: 128SPS to 3.3kSPS
INTERNAL LOW-DRIFT VOLTAGE REFERENCE
INTERNAL OSCILLATOR
INTERNAL PGA
I2C INTERFACE: Pin-Selectable Addresses
FOUR SINGLE-ENDED OR TWO DIFFERENTIAL INPUTS
PROGRAMMABLE COMPARATOR
This board/chip uses I2C 7-bit addresses between 0x48-0x4B, selectable with jumpers
7
# Elements come in handy when you need to detect vibration or a knock. You can
use these for tap or knock sensors pretty easily by reading the voltage on the
output. They can also be used for a very small audio transducer such as a buzzer.
8
import pygame.mixer
from time import sleep
import RPi.GPIO as GPIO
from sys import exit
GPIO.setmode(GPIO.BCM)
GPIO.setup(11, GPIO.IN)
GPIO.setup(13, GPIO.IN)
GPIO.setup(15, GPIO.IN)
pygame.mixer.init(48000, -16, 1, 1024)
sndA = pygame.mixer.Sound("buzzer.wav")
sndB = pygame.mixer.Sound("clap.wav")
sndC = pygame.mixer.Sound("laugh.wav")
soundChannelA = pygame.mixer.Channel(1)
soundChannelB = pygame.mixer.Channel(2)
9
soundChannelC = pygame.mixer.Channel(3)
print "Soundboard Ready." while True:
try:
if (GPIO.input(11) == True):
soundChannelA.play(sndA)
if (GPIO.input(13) == True):
soundChannelB.play(sndB)
if (GPIO.input(15) == True):
soundChannelC.play(sndC)
sleep(.01)
except KeyboardInterrupt:
exit()
10
11
12

More Related Content

What's hot

Digital to Analog Converter by LDCE students
Digital to Analog Converter by LDCE studentsDigital to Analog Converter by LDCE students
Digital to Analog Converter by LDCE studentsMitul Lakhani
 
Analog to Digital converter in ARM
Analog to Digital converter in ARMAnalog to Digital converter in ARM
Analog to Digital converter in ARMAarav Soni
 
Interfacing adc
Interfacing adcInterfacing adc
Interfacing adcPRADEEP
 
Raspberry Pi - Lecture 3 Embedded Communication Protocols
Raspberry Pi - Lecture 3 Embedded Communication ProtocolsRaspberry Pi - Lecture 3 Embedded Communication Protocols
Raspberry Pi - Lecture 3 Embedded Communication ProtocolsMohamed Abdallah
 
Interfacing to the analog world
Interfacing to the analog worldInterfacing to the analog world
Interfacing to the analog worldIslam Samir
 
Raspberry Pi - Lecture 4 Hardware Interfacing Special Cases
Raspberry Pi - Lecture 4 Hardware Interfacing Special CasesRaspberry Pi - Lecture 4 Hardware Interfacing Special Cases
Raspberry Pi - Lecture 4 Hardware Interfacing Special CasesMohamed Abdallah
 
SENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATIONSENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATIONsoma saikiran
 
Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalTony Olsson.
 
Serial communication in LPC2148
Serial communication in LPC2148Serial communication in LPC2148
Serial communication in LPC2148sravannunna24
 
I2c protocol - Inter–Integrated Circuit Communication Protocol
I2c protocol - Inter–Integrated Circuit Communication ProtocolI2c protocol - Inter–Integrated Circuit Communication Protocol
I2c protocol - Inter–Integrated Circuit Communication ProtocolAnkur Soni
 
Interfacing bluetooth with arduino
Interfacing bluetooth with arduinoInterfacing bluetooth with arduino
Interfacing bluetooth with arduinoJairaj Jangle
 
Lcd interfacing with microprocessor 8051
Lcd interfacing with microprocessor 8051Lcd interfacing with microprocessor 8051
Lcd interfacing with microprocessor 8051Hasnain Yaseen
 
An application of 8085 register interfacing with LCD
An application  of 8085 register interfacing with LCDAn application  of 8085 register interfacing with LCD
An application of 8085 register interfacing with LCDTaha Malampatti
 
SC28C94: Quad Universal Asynchronous Receiver/Transmitter (QUART)
SC28C94: Quad Universal Asynchronous Receiver/Transmitter (QUART)SC28C94: Quad Universal Asynchronous Receiver/Transmitter (QUART)
SC28C94: Quad Universal Asynchronous Receiver/Transmitter (QUART)Premier Farnell
 
Rf module interfacing without microcontrollers
Rf module interfacing without microcontrollersRf module interfacing without microcontrollers
Rf module interfacing without microcontrollersTauseef khan
 

What's hot (20)

Digital to Analog Converter by LDCE students
Digital to Analog Converter by LDCE studentsDigital to Analog Converter by LDCE students
Digital to Analog Converter by LDCE students
 
Analog to Digital converter in ARM
Analog to Digital converter in ARMAnalog to Digital converter in ARM
Analog to Digital converter in ARM
 
Interfacing adc
Interfacing adcInterfacing adc
Interfacing adc
 
Raspberry Pi - Lecture 3 Embedded Communication Protocols
Raspberry Pi - Lecture 3 Embedded Communication ProtocolsRaspberry Pi - Lecture 3 Embedded Communication Protocols
Raspberry Pi - Lecture 3 Embedded Communication Protocols
 
Interfacing to the analog world
Interfacing to the analog worldInterfacing to the analog world
Interfacing to the analog world
 
Smart home arduino
Smart home   arduinoSmart home   arduino
Smart home arduino
 
Raspberry Pi - Lecture 4 Hardware Interfacing Special Cases
Raspberry Pi - Lecture 4 Hardware Interfacing Special CasesRaspberry Pi - Lecture 4 Hardware Interfacing Special Cases
Raspberry Pi - Lecture 4 Hardware Interfacing Special Cases
 
SENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATIONSENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATION
 
Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digital
 
I2 c
I2 cI2 c
I2 c
 
Gcc 4 15-16
Gcc 4 15-16Gcc 4 15-16
Gcc 4 15-16
 
Serial communication in LPC2148
Serial communication in LPC2148Serial communication in LPC2148
Serial communication in LPC2148
 
I2c protocol - Inter–Integrated Circuit Communication Protocol
I2c protocol - Inter–Integrated Circuit Communication ProtocolI2c protocol - Inter–Integrated Circuit Communication Protocol
I2c protocol - Inter–Integrated Circuit Communication Protocol
 
GCC 3-18-16
GCC 3-18-16GCC 3-18-16
GCC 3-18-16
 
Interfacing bluetooth with arduino
Interfacing bluetooth with arduinoInterfacing bluetooth with arduino
Interfacing bluetooth with arduino
 
LCD Interacing with 8051
LCD Interacing with 8051LCD Interacing with 8051
LCD Interacing with 8051
 
Lcd interfacing with microprocessor 8051
Lcd interfacing with microprocessor 8051Lcd interfacing with microprocessor 8051
Lcd interfacing with microprocessor 8051
 
An application of 8085 register interfacing with LCD
An application  of 8085 register interfacing with LCDAn application  of 8085 register interfacing with LCD
An application of 8085 register interfacing with LCD
 
SC28C94: Quad Universal Asynchronous Receiver/Transmitter (QUART)
SC28C94: Quad Universal Asynchronous Receiver/Transmitter (QUART)SC28C94: Quad Universal Asynchronous Receiver/Transmitter (QUART)
SC28C94: Quad Universal Asynchronous Receiver/Transmitter (QUART)
 
Rf module interfacing without microcontrollers
Rf module interfacing without microcontrollersRf module interfacing without microcontrollers
Rf module interfacing without microcontrollers
 

Viewers also liked

PRUEBA COLEREDA (COMPRENSIÓN LECTORA CON RECURSOS DIGITALES ABIERTOS)
PRUEBA COLEREDA (COMPRENSIÓN LECTORA CON RECURSOS DIGITALES ABIERTOS)PRUEBA COLEREDA (COMPRENSIÓN LECTORA CON RECURSOS DIGITALES ABIERTOS)
PRUEBA COLEREDA (COMPRENSIÓN LECTORA CON RECURSOS DIGITALES ABIERTOS)Ana Reyes
 
Daily morning news
Daily morning newsDaily morning news
Daily morning newsAdem AKÇAY
 
AVEUMM quality foods - SHOWROOM 2016
AVEUMM quality foods - SHOWROOM 2016AVEUMM quality foods - SHOWROOM 2016
AVEUMM quality foods - SHOWROOM 2016DANIEL MARQUES
 
Better night’s sleep
Better night’s sleepBetter night’s sleep
Better night’s sleepkuskasmom
 
SMS BASED BURGLAR ALARM SYSTEM-SECURITY SYSTEM FOR HOME/OFFICE
SMS BASED BURGLAR ALARM SYSTEM-SECURITY SYSTEM FOR HOME/OFFICESMS BASED BURGLAR ALARM SYSTEM-SECURITY SYSTEM FOR HOME/OFFICE
SMS BASED BURGLAR ALARM SYSTEM-SECURITY SYSTEM FOR HOME/OFFICEASHOKKUMAR RAMAR
 

Viewers also liked (12)

PRUEBA COLEREDA (COMPRENSIÓN LECTORA CON RECURSOS DIGITALES ABIERTOS)
PRUEBA COLEREDA (COMPRENSIÓN LECTORA CON RECURSOS DIGITALES ABIERTOS)PRUEBA COLEREDA (COMPRENSIÓN LECTORA CON RECURSOS DIGITALES ABIERTOS)
PRUEBA COLEREDA (COMPRENSIÓN LECTORA CON RECURSOS DIGITALES ABIERTOS)
 
Daily morning news
Daily morning newsDaily morning news
Daily morning news
 
AVEUMM quality foods - SHOWROOM 2016
AVEUMM quality foods - SHOWROOM 2016AVEUMM quality foods - SHOWROOM 2016
AVEUMM quality foods - SHOWROOM 2016
 
Chowmarket logo presentation
Chowmarket logo presentationChowmarket logo presentation
Chowmarket logo presentation
 
Trabajo de-equipis
Trabajo de-equipisTrabajo de-equipis
Trabajo de-equipis
 
Presentación1
Presentación1Presentación1
Presentación1
 
Presentacion clase 1
Presentacion clase 1Presentacion clase 1
Presentacion clase 1
 
Better night’s sleep
Better night’s sleepBetter night’s sleep
Better night’s sleep
 
SMS BASED BURGLAR ALARM SYSTEM-SECURITY SYSTEM FOR HOME/OFFICE
SMS BASED BURGLAR ALARM SYSTEM-SECURITY SYSTEM FOR HOME/OFFICESMS BASED BURGLAR ALARM SYSTEM-SECURITY SYSTEM FOR HOME/OFFICE
SMS BASED BURGLAR ALARM SYSTEM-SECURITY SYSTEM FOR HOME/OFFICE
 
Slt overview ppt
Slt overview pptSlt overview ppt
Slt overview ppt
 
Trend Report: Mini shoppers
Trend Report: Mini shoppersTrend Report: Mini shoppers
Trend Report: Mini shoppers
 
High Accuracy Data Collection with Esri's Collector App
High Accuracy Data Collection with Esri's Collector AppHigh Accuracy Data Collection with Esri's Collector App
High Accuracy Data Collection with Esri's Collector App
 

Similar to Any Surface Drum Kit

ARDUINO AND ITS PIN CONFIGURATION
 ARDUINO AND ITS PIN  CONFIGURATION ARDUINO AND ITS PIN  CONFIGURATION
ARDUINO AND ITS PIN CONFIGURATIONsoma saikiran
 
Monitoring temperature rumah dengan display lcd dan recording
Monitoring temperature rumah dengan display lcd dan recordingMonitoring temperature rumah dengan display lcd dan recording
Monitoring temperature rumah dengan display lcd dan recordingMR Selamet
 
Monitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcdMonitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcdsiti_haryani
 
Monitoring temperature rumah dengan display lcd dan recording
Monitoring temperature rumah dengan display lcd dan recordingMonitoring temperature rumah dengan display lcd dan recording
Monitoring temperature rumah dengan display lcd dan recordingYuda Wardiana
 
Monitoring Temperature Room With Display LCD and Data Recording
Monitoring Temperature Room With Display LCD and Data RecordingMonitoring Temperature Room With Display LCD and Data Recording
Monitoring Temperature Room With Display LCD and Data RecordingMR Selamet
 
Monitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcdMonitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcdmukhammadimam
 
This Document gives a complete understanding of the I3C protocol which is int...
This Document gives a complete understanding of the I3C protocol which is int...This Document gives a complete understanding of the I3C protocol which is int...
This Document gives a complete understanding of the I3C protocol which is int...rohitvasanad
 
Precision microcontrolleroverview
Precision microcontrolleroverviewPrecision microcontrolleroverview
Precision microcontrolleroverviewGhazi BEN HMIDA
 
Electronics Microcontrollers for IoT applications
Electronics Microcontrollers for IoT applicationsElectronics Microcontrollers for IoT applications
Electronics Microcontrollers for IoT applicationsLeopoldo Armesto
 
ARDUINO AND RASPBERRYPI.pptx
ARDUINO AND RASPBERRYPI.pptxARDUINO AND RASPBERRYPI.pptx
ARDUINO AND RASPBERRYPI.pptxvennetikiran1
 
Embedded & pcb design
Embedded & pcb designEmbedded & pcb design
Embedded & pcb designTanveer Behl
 
Smart LED Notice Board
Smart LED Notice BoardSmart LED Notice Board
Smart LED Notice Boardswarnimmaurya
 
Industrys Lowest Power Dual-Channel 10-Bit ADCs
Industrys Lowest Power Dual-Channel 10-Bit ADCsIndustrys Lowest Power Dual-Channel 10-Bit ADCs
Industrys Lowest Power Dual-Channel 10-Bit ADCsPremier Farnell
 
Thesis power theft detection ch 3
Thesis power theft detection ch 3Thesis power theft detection ch 3
Thesis power theft detection ch 3Faraz Ahmed
 

Similar to Any Surface Drum Kit (20)

bacnet
bacnetbacnet
bacnet
 
ARDUINO AND ITS PIN CONFIGURATION
 ARDUINO AND ITS PIN  CONFIGURATION ARDUINO AND ITS PIN  CONFIGURATION
ARDUINO AND ITS PIN CONFIGURATION
 
Monitoring temperature rumah dengan display lcd dan recording
Monitoring temperature rumah dengan display lcd dan recordingMonitoring temperature rumah dengan display lcd dan recording
Monitoring temperature rumah dengan display lcd dan recording
 
Monitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcdMonitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcd
 
Monitoring temperature rumah dengan display lcd dan recording
Monitoring temperature rumah dengan display lcd dan recordingMonitoring temperature rumah dengan display lcd dan recording
Monitoring temperature rumah dengan display lcd dan recording
 
Monitoring Temperature Room With Display LCD and Data Recording
Monitoring Temperature Room With Display LCD and Data RecordingMonitoring Temperature Room With Display LCD and Data Recording
Monitoring Temperature Room With Display LCD and Data Recording
 
Monitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcdMonitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcd
 
This Document gives a complete understanding of the I3C protocol which is int...
This Document gives a complete understanding of the I3C protocol which is int...This Document gives a complete understanding of the I3C protocol which is int...
This Document gives a complete understanding of the I3C protocol which is int...
 
Precision microcontrolleroverview
Precision microcontrolleroverviewPrecision microcontrolleroverview
Precision microcontrolleroverview
 
Chapter 2.doc
Chapter 2.docChapter 2.doc
Chapter 2.doc
 
Electronics Microcontrollers for IoT applications
Electronics Microcontrollers for IoT applicationsElectronics Microcontrollers for IoT applications
Electronics Microcontrollers for IoT applications
 
ARDUINO AND RASPBERRYPI.pptx
ARDUINO AND RASPBERRYPI.pptxARDUINO AND RASPBERRYPI.pptx
ARDUINO AND RASPBERRYPI.pptx
 
Embedded & pcb design
Embedded & pcb designEmbedded & pcb design
Embedded & pcb design
 
Parth xyz
Parth xyzParth xyz
Parth xyz
 
Arduino Programming Basic
Arduino Programming BasicArduino Programming Basic
Arduino Programming Basic
 
Wds
WdsWds
Wds
 
Smart LED Notice Board
Smart LED Notice BoardSmart LED Notice Board
Smart LED Notice Board
 
Industrys Lowest Power Dual-Channel 10-Bit ADCs
Industrys Lowest Power Dual-Channel 10-Bit ADCsIndustrys Lowest Power Dual-Channel 10-Bit ADCs
Industrys Lowest Power Dual-Channel 10-Bit ADCs
 
EEE UNIT-2 PPT.pdf
EEE UNIT-2 PPT.pdfEEE UNIT-2 PPT.pdf
EEE UNIT-2 PPT.pdf
 
Thesis power theft detection ch 3
Thesis power theft detection ch 3Thesis power theft detection ch 3
Thesis power theft detection ch 3
 

More from ViVek Patel

Cdma wireless security
Cdma wireless securityCdma wireless security
Cdma wireless securityViVek Patel
 
Report on wireless System CDMA security
Report on wireless System CDMA securityReport on wireless System CDMA security
Report on wireless System CDMA securityViVek Patel
 
Code Division Multiple Access- CDMA
Code Division Multiple Access- CDMA Code Division Multiple Access- CDMA
Code Division Multiple Access- CDMA ViVek Patel
 
E-town Banking system
E-town Banking systemE-town Banking system
E-town Banking systemViVek Patel
 
Programming 8051 Timers
Programming 8051 Timers Programming 8051 Timers
Programming 8051 Timers ViVek Patel
 
Introduction to Strategic Managment
Introduction to Strategic ManagmentIntroduction to Strategic Managment
Introduction to Strategic ManagmentViVek Patel
 

More from ViVek Patel (7)

Cdma wireless security
Cdma wireless securityCdma wireless security
Cdma wireless security
 
Report on wireless System CDMA security
Report on wireless System CDMA securityReport on wireless System CDMA security
Report on wireless System CDMA security
 
Code Division Multiple Access- CDMA
Code Division Multiple Access- CDMA Code Division Multiple Access- CDMA
Code Division Multiple Access- CDMA
 
E-town Banking system
E-town Banking systemE-town Banking system
E-town Banking system
 
Programming 8051 Timers
Programming 8051 Timers Programming 8051 Timers
Programming 8051 Timers
 
INPUT BOX- VBA
INPUT BOX- VBAINPUT BOX- VBA
INPUT BOX- VBA
 
Introduction to Strategic Managment
Introduction to Strategic ManagmentIntroduction to Strategic Managment
Introduction to Strategic Managment
 

Recently uploaded

chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 

Recently uploaded (20)

chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 

Any Surface Drum Kit

  • 1.  BY:  VIVEK PATEL  CWID: 10404232  SUBJECT - CPE555 1
  • 2. # Use of Raspberry Pi # Sensor #ADC convertor #LED # UBUNTU OS – RASPBIAN # PYTHON GPIO 2
  • 3. 3
  • 4. Model B+ Memory- SDRAm 512 mb USB port 2.0 – 2 Video output – hdmi 680x350 t0 1920 x 1200 Network – Ethernet cable Storage – sd/mmc cards Power Rating – 750ma = 3.5w 4
  • 5. # For microcontrollers without an analog-to-digital converter or when you want a higher-precision ADC, the ADS1015 provides 12-bit precision at 3300 samples/second over I2C. The chip can be configured as 4 single-ended input channels, or two differential channels. # Includes a programmable gain amplifier, up to x16, to help boost up smaller single/differential signals to the full range. 5
  • 6. # We like this ADC because it can run from 2V to 5V power/logic, can measure a large range of signals and its super easy to use. # It is a great general purpose 12 bit converter. # To get you started, we have example code for both the Raspberry Pi (in our Adafruit Pi Python library) and Arduino (in our ADS1X15 Arduino library repository) Simply connect GND to ground, VDD to your logic power supply, and SCL/SDA to your microcontroller's I2C port and run the example code to start reading data. 6
  • 7. WIDE SUPPLY RANGE: 2.0V to 5.5V LOW CURRENT CONSUMPTION: Continuous Mode: Only 150µA Single-Shot Mode: Auto Shut-Down PROGRAMMABLE DATA RATE: 128SPS to 3.3kSPS INTERNAL LOW-DRIFT VOLTAGE REFERENCE INTERNAL OSCILLATOR INTERNAL PGA I2C INTERFACE: Pin-Selectable Addresses FOUR SINGLE-ENDED OR TWO DIFFERENTIAL INPUTS PROGRAMMABLE COMPARATOR This board/chip uses I2C 7-bit addresses between 0x48-0x4B, selectable with jumpers 7
  • 8. # Elements come in handy when you need to detect vibration or a knock. You can use these for tap or knock sensors pretty easily by reading the voltage on the output. They can also be used for a very small audio transducer such as a buzzer. 8
  • 9. import pygame.mixer from time import sleep import RPi.GPIO as GPIO from sys import exit GPIO.setmode(GPIO.BCM) GPIO.setup(11, GPIO.IN) GPIO.setup(13, GPIO.IN) GPIO.setup(15, GPIO.IN) pygame.mixer.init(48000, -16, 1, 1024) sndA = pygame.mixer.Sound("buzzer.wav") sndB = pygame.mixer.Sound("clap.wav") sndC = pygame.mixer.Sound("laugh.wav") soundChannelA = pygame.mixer.Channel(1) soundChannelB = pygame.mixer.Channel(2) 9
  • 10. soundChannelC = pygame.mixer.Channel(3) print "Soundboard Ready." while True: try: if (GPIO.input(11) == True): soundChannelA.play(sndA) if (GPIO.input(13) == True): soundChannelB.play(sndB) if (GPIO.input(15) == True): soundChannelC.play(sndC) sleep(.01) except KeyboardInterrupt: exit() 10
  • 11. 11
  • 12. 12