SlideShare a Scribd company logo
Menggunakan Breadboard
 Breadboard adalah papan khusus yang digunakan untuk membuat
prototype atau rangkaian elektronik yang bersifat percobaan.
Bagaimana menggunakannya?
Menggunakan Sensor Sederhana
DHT 11
 The DHT11 is a basic, ultra low-cost digital temperature and humidity sensor. It uses a
capacitive humidity sensor and a thermistor to measure the surrounding air, and spits
out a digital signal on the data pin (no analog input pins needed). Its fairly simple to
use, but requires careful timing to grab data. The only real downside of this sensor is
you can only get new data from it once every 2 seconds, so when using our library,
sensor readings can be up to 2 seconds old.
 Low cost
 3 to 5V power and I/O
 2.5mA max current use during conversion (while requesting data)
 Good for 20-80% humidity readings with 5% accuracy
 Good for 0-50°C temperature readings ±2°C accuracy
 No more than 1 Hz sampling rate (once every second)
 Body size 15.5mm x 12mm x 5.5mm
 4 pins with 0.1" spacing
DS18B20
 Usable temperature range: -55 to 125°C (-67°F to
+257°F)
 9 to 12 bit selectable resolution
 Uses 1-Wire interface- requires only one digital pin
for communication
 Unique 64 bit ID burned into chip
 Multiple sensors can share one pin
 ±0.5°C Accuracy from -10°C to +85°C
 Temperature-limit alarm system
 Query time is less than 750ms
 Usable with 3.0V to 5.5V power/data
Adafruit Python DHT Sensor Library
 Python library to read the DHT series of humidity and temperature sensors
on a Raspberry Pi or Beaglebone Black.
 Designed specifically to work with the Adafruit DHT series sensors
apt-get update
sudo apt-get install build-essential python-dev
git clone https://github.com/adafruit/Adafruit_Python_DHT.git
sudo python setup.py install
Test Sensor
sudo python examples/AdafruitDHT.py 11 4
WEBIOPI
 Control, debug, and use your Pi's GPIO, sensors and converters from a web
browser or any app
 WebIOPi is the perfect Swiss-knife to make connected things
 Developed and provided by Eric PTAK (trouch)
 Runs on Raspberry Pi
GPIO header web app
Device monitor web app
 WebIOPi is developed and tested on Raspbian. You only need Python,
either 2.7 or 3.2. Download, then extract and install WebIOPi. The setup
script will automatically download and install required dependencies using
apt-get. You may have to manually install GCC and Python development
headers if you are not using Raspbian.
Installasi
$ tar xvzf WebIOPi-x.y.z.tar.gz
$ cd WebIOPi-x.y.z
$ sed -i 's/ python3//' setup.sh
$ sudo ./setup.sh
$ sudo webiopi-passwd
$ sudo service webiopi restart
Python side
import webiopi
import Adafruit_DHT
import json
SENSOR = Adafruit_DHT.DHT11
PIN = 24
@webiopi.macro
def temperature():
humidity, temperature = Adafruit_DHT.read_retry(SENSOR, PIN)
if humidity is not None and temperature is not None:
fahrenheit = 9.0 / 5.0 * temperature + 32
return json.dumps({
"temperature": fahrenheit,
"humidity": humidity
})
else:
return False
Html side

More Related Content

Similar to Raspberry Pi 2 pertemuan 14(pengenalan breadboard).pptx

ESP32 WiFi & Bluetooth Module - Getting Started Guide
ESP32 WiFi & Bluetooth Module - Getting Started GuideESP32 WiFi & Bluetooth Module - Getting Started Guide
ESP32 WiFi & Bluetooth Module - Getting Started Guide
handson28
 
Arduino: Arduino starter kit
Arduino: Arduino starter kitArduino: Arduino starter kit
Arduino: Arduino starter kit
SANTIAGO PABLO ALBERTO
 
SMART WIRELESS TEMPERATURE SENSOR
SMART WIRELESS TEMPERATURE SENSORSMART WIRELESS TEMPERATURE SENSOR
SMART WIRELESS TEMPERATURE SENSOR
Smart Binary Technology LLC
 
Raspberry Pi Logger with LCD
Raspberry Pi Logger with LCDRaspberry Pi Logger with LCD
Raspberry Pi Logger with LCD
Imperial College, London
 
Uvais
Uvais Uvais
Android Things - The IoT platform from Google
Android Things - The IoT platform from GoogleAndroid Things - The IoT platform from Google
Android Things - The IoT platform from Google
Emmanuel Obot
 
IoT Aquarium
IoT AquariumIoT Aquarium
IoT Aquarium
Benjamin Chodroff
 
Temperature sensor with raspberry pi
Temperature sensor with raspberry piTemperature sensor with raspberry pi
Temperature sensor with raspberry pi
Santosh Kumar Kar
 
Industrial Hazard Monitoring using IOT
Industrial Hazard Monitoring using IOTIndustrial Hazard Monitoring using IOT
Industrial Hazard Monitoring using IOT
Ayush Chhangani
 
DHT11 & DHT22.pptx
DHT11 & DHT22.pptxDHT11 & DHT22.pptx
DHT11 & DHT22.pptx
BinuKG1
 
Multipilot pres-ufficiale alpago 2011
Multipilot pres-ufficiale alpago 2011Multipilot pres-ufficiale alpago 2011
Multipilot pres-ufficiale alpago 2011
Roberto Navoni
 
DHT11 with Arduino
DHT11 with ArduinoDHT11 with Arduino
DHT11 with Arduino
yeokm1
 
Solving Common Sensor Application Problems
Solving Common Sensor Application ProblemsSolving Common Sensor Application Problems
Solving Common Sensor Application Problems
Design World
 
IRJET - IoT based Anti Theft Detection and Alerting System using Raspberry Pi
IRJET - IoT based Anti Theft Detection and Alerting System using Raspberry PiIRJET - IoT based Anti Theft Detection and Alerting System using Raspberry Pi
IRJET - IoT based Anti Theft Detection and Alerting System using Raspberry Pi
IRJET Journal
 
C70T Thermometry Mobile Data Terminal
C70T Thermometry Mobile Data TerminalC70T Thermometry Mobile Data Terminal
C70T Thermometry Mobile Data Terminal
Ankit Kumar
 
IOT beginnners
IOT beginnnersIOT beginnners
IOT beginnners
udhayakumarc1
 
IOT beginnners
IOT beginnnersIOT beginnners
IOT beginnners
udhayakumarc1
 
Getting started with Intel IoT Developer Kit
Getting started with Intel IoT Developer KitGetting started with Intel IoT Developer Kit
Getting started with Intel IoT Developer Kit
Sulamita Garcia
 
Python-in-Embedded-systems.pptx
Python-in-Embedded-systems.pptxPython-in-Embedded-systems.pptx
Python-in-Embedded-systems.pptx
TuynLCh
 
IRJET- Measurement of Temperature and Humidity by using Arduino Tool and DHT11
IRJET- Measurement of Temperature and Humidity by using Arduino Tool and DHT11IRJET- Measurement of Temperature and Humidity by using Arduino Tool and DHT11
IRJET- Measurement of Temperature and Humidity by using Arduino Tool and DHT11
IRJET Journal
 

Similar to Raspberry Pi 2 pertemuan 14(pengenalan breadboard).pptx (20)

ESP32 WiFi & Bluetooth Module - Getting Started Guide
ESP32 WiFi & Bluetooth Module - Getting Started GuideESP32 WiFi & Bluetooth Module - Getting Started Guide
ESP32 WiFi & Bluetooth Module - Getting Started Guide
 
Arduino: Arduino starter kit
Arduino: Arduino starter kitArduino: Arduino starter kit
Arduino: Arduino starter kit
 
SMART WIRELESS TEMPERATURE SENSOR
SMART WIRELESS TEMPERATURE SENSORSMART WIRELESS TEMPERATURE SENSOR
SMART WIRELESS TEMPERATURE SENSOR
 
Raspberry Pi Logger with LCD
Raspberry Pi Logger with LCDRaspberry Pi Logger with LCD
Raspberry Pi Logger with LCD
 
Uvais
Uvais Uvais
Uvais
 
Android Things - The IoT platform from Google
Android Things - The IoT platform from GoogleAndroid Things - The IoT platform from Google
Android Things - The IoT platform from Google
 
IoT Aquarium
IoT AquariumIoT Aquarium
IoT Aquarium
 
Temperature sensor with raspberry pi
Temperature sensor with raspberry piTemperature sensor with raspberry pi
Temperature sensor with raspberry pi
 
Industrial Hazard Monitoring using IOT
Industrial Hazard Monitoring using IOTIndustrial Hazard Monitoring using IOT
Industrial Hazard Monitoring using IOT
 
DHT11 & DHT22.pptx
DHT11 & DHT22.pptxDHT11 & DHT22.pptx
DHT11 & DHT22.pptx
 
Multipilot pres-ufficiale alpago 2011
Multipilot pres-ufficiale alpago 2011Multipilot pres-ufficiale alpago 2011
Multipilot pres-ufficiale alpago 2011
 
DHT11 with Arduino
DHT11 with ArduinoDHT11 with Arduino
DHT11 with Arduino
 
Solving Common Sensor Application Problems
Solving Common Sensor Application ProblemsSolving Common Sensor Application Problems
Solving Common Sensor Application Problems
 
IRJET - IoT based Anti Theft Detection and Alerting System using Raspberry Pi
IRJET - IoT based Anti Theft Detection and Alerting System using Raspberry PiIRJET - IoT based Anti Theft Detection and Alerting System using Raspberry Pi
IRJET - IoT based Anti Theft Detection and Alerting System using Raspberry Pi
 
C70T Thermometry Mobile Data Terminal
C70T Thermometry Mobile Data TerminalC70T Thermometry Mobile Data Terminal
C70T Thermometry Mobile Data Terminal
 
IOT beginnners
IOT beginnnersIOT beginnners
IOT beginnners
 
IOT beginnners
IOT beginnnersIOT beginnners
IOT beginnners
 
Getting started with Intel IoT Developer Kit
Getting started with Intel IoT Developer KitGetting started with Intel IoT Developer Kit
Getting started with Intel IoT Developer Kit
 
Python-in-Embedded-systems.pptx
Python-in-Embedded-systems.pptxPython-in-Embedded-systems.pptx
Python-in-Embedded-systems.pptx
 
IRJET- Measurement of Temperature and Humidity by using Arduino Tool and DHT11
IRJET- Measurement of Temperature and Humidity by using Arduino Tool and DHT11IRJET- Measurement of Temperature and Humidity by using Arduino Tool and DHT11
IRJET- Measurement of Temperature and Humidity by using Arduino Tool and DHT11
 

More from BudiHsnDaulay

security_sevice_keamanan sistem informasi.ppt
security_sevice_keamanan sistem informasi.pptsecurity_sevice_keamanan sistem informasi.ppt
security_sevice_keamanan sistem informasi.ppt
BudiHsnDaulay
 
Computer forensics intro(Pendahuluan Komputer Forensik).ppt
Computer forensics intro(Pendahuluan Komputer Forensik).pptComputer forensics intro(Pendahuluan Komputer Forensik).ppt
Computer forensics intro(Pendahuluan Komputer Forensik).ppt
BudiHsnDaulay
 
embedded-sistem-pertemuan_kedua(Pengenalan Embedded System).pptx
embedded-sistem-pertemuan_kedua(Pengenalan Embedded System).pptxembedded-sistem-pertemuan_kedua(Pengenalan Embedded System).pptx
embedded-sistem-pertemuan_kedua(Pengenalan Embedded System).pptx
BudiHsnDaulay
 
Pertemuan Kedua_Pengenalan Komputer Grafika.ppt
Pertemuan Kedua_Pengenalan Komputer Grafika.pptPertemuan Kedua_Pengenalan Komputer Grafika.ppt
Pertemuan Kedua_Pengenalan Komputer Grafika.ppt
BudiHsnDaulay
 
Pertemuan 7_Jaringan Komputer_Data link layer.pptx
Pertemuan 7_Jaringan Komputer_Data link layer.pptxPertemuan 7_Jaringan Komputer_Data link layer.pptx
Pertemuan 7_Jaringan Komputer_Data link layer.pptx
BudiHsnDaulay
 
Pertemuan 13_Mengelola Pekerjaan dalam Proyek TI.pdf
Pertemuan 13_Mengelola Pekerjaan dalam Proyek TI.pdfPertemuan 13_Mengelola Pekerjaan dalam Proyek TI.pdf
Pertemuan 13_Mengelola Pekerjaan dalam Proyek TI.pdf
BudiHsnDaulay
 
03datastructure-141022030535-conversion-gate01.pptx
03datastructure-141022030535-conversion-gate01.pptx03datastructure-141022030535-conversion-gate01.pptx
03datastructure-141022030535-conversion-gate01.pptx
BudiHsnDaulay
 
materi-ppt-algortima-dan-stuktur-data.pptx
materi-ppt-algortima-dan-stuktur-data.pptxmateri-ppt-algortima-dan-stuktur-data.pptx
materi-ppt-algortima-dan-stuktur-data.pptx
BudiHsnDaulay
 
pengantar_keamanan_sistem_informasi_pptx.pptx
pengantar_keamanan_sistem_informasi_pptx.pptxpengantar_keamanan_sistem_informasi_pptx.pptx
pengantar_keamanan_sistem_informasi_pptx.pptx
BudiHsnDaulay
 
Interaksi Manusia Komputer (Pertemuan 5).ppt
Interaksi Manusia Komputer (Pertemuan 5).pptInteraksi Manusia Komputer (Pertemuan 5).ppt
Interaksi Manusia Komputer (Pertemuan 5).ppt
BudiHsnDaulay
 
Interaksi Manusia Komputer (Pertemuan 3).ppt
Interaksi Manusia Komputer (Pertemuan 3).pptInteraksi Manusia Komputer (Pertemuan 3).ppt
Interaksi Manusia Komputer (Pertemuan 3).ppt
BudiHsnDaulay
 
Pertemuan 13_Mengelola Pekerjaan dalam Proyek TI.ppt
Pertemuan 13_Mengelola Pekerjaan dalam Proyek TI.pptPertemuan 13_Mengelola Pekerjaan dalam Proyek TI.ppt
Pertemuan 13_Mengelola Pekerjaan dalam Proyek TI.ppt
BudiHsnDaulay
 
Pertemuan 6_Melakukan Pekerjaan Bersama TIM(Objektif 3).ppt
Pertemuan 6_Melakukan Pekerjaan Bersama TIM(Objektif 3).pptPertemuan 6_Melakukan Pekerjaan Bersama TIM(Objektif 3).ppt
Pertemuan 6_Melakukan Pekerjaan Bersama TIM(Objektif 3).ppt
BudiHsnDaulay
 
4. mekanik.pptx
4. mekanik.pptx4. mekanik.pptx
4. mekanik.pptx
BudiHsnDaulay
 

More from BudiHsnDaulay (14)

security_sevice_keamanan sistem informasi.ppt
security_sevice_keamanan sistem informasi.pptsecurity_sevice_keamanan sistem informasi.ppt
security_sevice_keamanan sistem informasi.ppt
 
Computer forensics intro(Pendahuluan Komputer Forensik).ppt
Computer forensics intro(Pendahuluan Komputer Forensik).pptComputer forensics intro(Pendahuluan Komputer Forensik).ppt
Computer forensics intro(Pendahuluan Komputer Forensik).ppt
 
embedded-sistem-pertemuan_kedua(Pengenalan Embedded System).pptx
embedded-sistem-pertemuan_kedua(Pengenalan Embedded System).pptxembedded-sistem-pertemuan_kedua(Pengenalan Embedded System).pptx
embedded-sistem-pertemuan_kedua(Pengenalan Embedded System).pptx
 
Pertemuan Kedua_Pengenalan Komputer Grafika.ppt
Pertemuan Kedua_Pengenalan Komputer Grafika.pptPertemuan Kedua_Pengenalan Komputer Grafika.ppt
Pertemuan Kedua_Pengenalan Komputer Grafika.ppt
 
Pertemuan 7_Jaringan Komputer_Data link layer.pptx
Pertemuan 7_Jaringan Komputer_Data link layer.pptxPertemuan 7_Jaringan Komputer_Data link layer.pptx
Pertemuan 7_Jaringan Komputer_Data link layer.pptx
 
Pertemuan 13_Mengelola Pekerjaan dalam Proyek TI.pdf
Pertemuan 13_Mengelola Pekerjaan dalam Proyek TI.pdfPertemuan 13_Mengelola Pekerjaan dalam Proyek TI.pdf
Pertemuan 13_Mengelola Pekerjaan dalam Proyek TI.pdf
 
03datastructure-141022030535-conversion-gate01.pptx
03datastructure-141022030535-conversion-gate01.pptx03datastructure-141022030535-conversion-gate01.pptx
03datastructure-141022030535-conversion-gate01.pptx
 
materi-ppt-algortima-dan-stuktur-data.pptx
materi-ppt-algortima-dan-stuktur-data.pptxmateri-ppt-algortima-dan-stuktur-data.pptx
materi-ppt-algortima-dan-stuktur-data.pptx
 
pengantar_keamanan_sistem_informasi_pptx.pptx
pengantar_keamanan_sistem_informasi_pptx.pptxpengantar_keamanan_sistem_informasi_pptx.pptx
pengantar_keamanan_sistem_informasi_pptx.pptx
 
Interaksi Manusia Komputer (Pertemuan 5).ppt
Interaksi Manusia Komputer (Pertemuan 5).pptInteraksi Manusia Komputer (Pertemuan 5).ppt
Interaksi Manusia Komputer (Pertemuan 5).ppt
 
Interaksi Manusia Komputer (Pertemuan 3).ppt
Interaksi Manusia Komputer (Pertemuan 3).pptInteraksi Manusia Komputer (Pertemuan 3).ppt
Interaksi Manusia Komputer (Pertemuan 3).ppt
 
Pertemuan 13_Mengelola Pekerjaan dalam Proyek TI.ppt
Pertemuan 13_Mengelola Pekerjaan dalam Proyek TI.pptPertemuan 13_Mengelola Pekerjaan dalam Proyek TI.ppt
Pertemuan 13_Mengelola Pekerjaan dalam Proyek TI.ppt
 
Pertemuan 6_Melakukan Pekerjaan Bersama TIM(Objektif 3).ppt
Pertemuan 6_Melakukan Pekerjaan Bersama TIM(Objektif 3).pptPertemuan 6_Melakukan Pekerjaan Bersama TIM(Objektif 3).ppt
Pertemuan 6_Melakukan Pekerjaan Bersama TIM(Objektif 3).ppt
 
4. mekanik.pptx
4. mekanik.pptx4. mekanik.pptx
4. mekanik.pptx
 

Recently uploaded

Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Things to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUUThings to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUU
FODUU
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
Mariano Tinti
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 

Recently uploaded (20)

Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Things to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUUThings to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUU
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 

Raspberry Pi 2 pertemuan 14(pengenalan breadboard).pptx

  • 2.  Breadboard adalah papan khusus yang digunakan untuk membuat prototype atau rangkaian elektronik yang bersifat percobaan.
  • 4.
  • 7.  The DHT11 is a basic, ultra low-cost digital temperature and humidity sensor. It uses a capacitive humidity sensor and a thermistor to measure the surrounding air, and spits out a digital signal on the data pin (no analog input pins needed). Its fairly simple to use, but requires careful timing to grab data. The only real downside of this sensor is you can only get new data from it once every 2 seconds, so when using our library, sensor readings can be up to 2 seconds old.  Low cost  3 to 5V power and I/O  2.5mA max current use during conversion (while requesting data)  Good for 20-80% humidity readings with 5% accuracy  Good for 0-50°C temperature readings ±2°C accuracy  No more than 1 Hz sampling rate (once every second)  Body size 15.5mm x 12mm x 5.5mm  4 pins with 0.1" spacing
  • 8.
  • 9. DS18B20  Usable temperature range: -55 to 125°C (-67°F to +257°F)  9 to 12 bit selectable resolution  Uses 1-Wire interface- requires only one digital pin for communication  Unique 64 bit ID burned into chip  Multiple sensors can share one pin  ±0.5°C Accuracy from -10°C to +85°C  Temperature-limit alarm system  Query time is less than 750ms  Usable with 3.0V to 5.5V power/data
  • 10.
  • 11. Adafruit Python DHT Sensor Library  Python library to read the DHT series of humidity and temperature sensors on a Raspberry Pi or Beaglebone Black.  Designed specifically to work with the Adafruit DHT series sensors
  • 12. apt-get update sudo apt-get install build-essential python-dev git clone https://github.com/adafruit/Adafruit_Python_DHT.git sudo python setup.py install
  • 13. Test Sensor sudo python examples/AdafruitDHT.py 11 4
  • 15.  Control, debug, and use your Pi's GPIO, sensors and converters from a web browser or any app  WebIOPi is the perfect Swiss-knife to make connected things  Developed and provided by Eric PTAK (trouch)  Runs on Raspberry Pi
  • 16.
  • 19.  WebIOPi is developed and tested on Raspbian. You only need Python, either 2.7 or 3.2. Download, then extract and install WebIOPi. The setup script will automatically download and install required dependencies using apt-get. You may have to manually install GCC and Python development headers if you are not using Raspbian.
  • 20. Installasi $ tar xvzf WebIOPi-x.y.z.tar.gz $ cd WebIOPi-x.y.z $ sed -i 's/ python3//' setup.sh $ sudo ./setup.sh $ sudo webiopi-passwd $ sudo service webiopi restart
  • 21. Python side import webiopi import Adafruit_DHT import json SENSOR = Adafruit_DHT.DHT11 PIN = 24 @webiopi.macro def temperature(): humidity, temperature = Adafruit_DHT.read_retry(SENSOR, PIN) if humidity is not None and temperature is not None: fahrenheit = 9.0 / 5.0 * temperature + 32 return json.dumps({ "temperature": fahrenheit, "humidity": humidity }) else: return False