SlideShare a Scribd company logo
 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 ARM
Aarav 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 Protocols
Mohamed Abdallah
 
Interfacing to the analog world
Interfacing to the analog worldInterfacing to the analog world
Interfacing to the analog worldIslam Samir
 
Smart home arduino
Smart home   arduinoSmart home   arduino
Smart home arduino
Santosh Kumar Kar
 
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
Mohamed Abdallah
 
SENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATIONSENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATION
soma saikiran
 
Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digital
Tony Olsson.
 
Gcc 4 15-16
Gcc 4 15-16Gcc 4 15-16
Gcc 4 15-16
Kayla Leung
 
Serial communication in LPC2148
Serial communication in LPC2148Serial communication in LPC2148
Serial communication in LPC2148
sravannunna24
 
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
Ankur Soni
 
GCC 3-18-16
GCC 3-18-16GCC 3-18-16
GCC 3-18-16
Kayla Leung
 
Interfacing bluetooth with arduino
Interfacing bluetooth with arduinoInterfacing bluetooth with arduino
Interfacing bluetooth with arduino
Jairaj Jangle
 
LCD Interacing with 8051
LCD Interacing with 8051LCD Interacing with 8051
LCD Interacing with 8051
Sudhanshu Janwadkar
 
Lcd interfacing with microprocessor 8051
Lcd interfacing with microprocessor 8051Lcd interfacing with microprocessor 8051
Lcd interfacing with microprocessor 8051
Hasnain 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 LCD
Taha 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 microcontrollers
Tauseef 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 news
Adem AKÇAY
 
AVEUMM quality foods - SHOWROOM 2016
AVEUMM quality foods - SHOWROOM 2016AVEUMM quality foods - SHOWROOM 2016
AVEUMM quality foods - SHOWROOM 2016
DANIEL MARQUES
 
Chowmarket logo presentation
Chowmarket logo presentationChowmarket logo presentation
Chowmarket logo presentation
Adedoyin Philip-Ladipo
 
Trabajo de-equipis
Trabajo de-equipisTrabajo de-equipis
Trabajo de-equipis
Asclepio Zukso Diaz
 
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/OFFICE
ASHOKKUMAR RAMAR
 
Slt overview ppt
Slt overview pptSlt overview ppt
Slt overview ppt
Moiz Khan Malik
 
Trend Report: Mini shoppers
Trend Report: Mini shoppersTrend Report: Mini shoppers
Trend Report: Mini shoppers
CULTUS INNOVACIÓN
 
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
WV Assocation of Geospatial Professionals
 

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

bacnet
bacnetbacnet
ARDUINO AND ITS PIN CONFIGURATION
 ARDUINO AND ITS PIN  CONFIGURATION ARDUINO AND ITS PIN  CONFIGURATION
ARDUINO AND ITS PIN CONFIGURATION
soma 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 recording
MR Selamet
 
Monitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcdMonitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcd
siti_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 recording
Yuda Wardiana
 
Monitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcdMonitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcd
mukhammadimam
 
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
MR Selamet
 
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
 
Chapter 2.doc
Chapter 2.docChapter 2.doc
Electronics Microcontrollers for IoT applications
Electronics Microcontrollers for IoT applicationsElectronics Microcontrollers for IoT applications
Electronics Microcontrollers for IoT applications
Leopoldo Armesto
 
ARDUINO AND RASPBERRYPI.pptx
ARDUINO AND RASPBERRYPI.pptxARDUINO AND RASPBERRYPI.pptx
ARDUINO AND RASPBERRYPI.pptx
vennetikiran1
 
Embedded & pcb design
Embedded & pcb designEmbedded & pcb design
Embedded & pcb design
Tanveer Behl
 
Parth xyz
Parth xyzParth xyz
Parth xyz
ParthBabariya15
 
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 ADCs
Premier Farnell
 
EEE UNIT-2 PPT.pdf
EEE UNIT-2 PPT.pdfEEE UNIT-2 PPT.pdf
EEE UNIT-2 PPT.pdf
VishalPatil57559
 
Thesis power theft detection ch 3
Thesis power theft detection ch 3Thesis power theft detection ch 3
Thesis power theft detection ch 3
Faraz 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 ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcdMonitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcd
 
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
 
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 security
ViVek Patel
 
Report on wireless System CDMA security
Report on wireless System CDMA securityReport on wireless System CDMA security
Report on wireless System CDMA security
ViVek 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 system
ViVek 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

PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
anoopmanoharan2
 
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABSDESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
itech2017
 
Fundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptxFundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptx
manasideore6
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
digital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdfdigital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdf
drwaing
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Soumen Santra
 
An Approach to Detecting Writing Styles Based on Clustering Techniques
An Approach to Detecting Writing Styles Based on Clustering TechniquesAn Approach to Detecting Writing Styles Based on Clustering Techniques
An Approach to Detecting Writing Styles Based on Clustering Techniques
ambekarshweta25
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
heavyhaig
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
zwunae
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
dxobcob
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 

Recently uploaded (20)

PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
 
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABSDESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
 
Fundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptxFundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptx
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
digital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdfdigital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdf
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
 
An Approach to Detecting Writing Styles Based on Clustering Techniques
An Approach to Detecting Writing Styles Based on Clustering TechniquesAn Approach to Detecting Writing Styles Based on Clustering Techniques
An Approach to Detecting Writing Styles Based on Clustering Techniques
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 

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