motion #counterlastuploaded =timestamp Motioncounter=0#Otherwise, the hostel is not occupied Else: Motioncounter=0#Check to see if the frames should is displayed to screen ifconf["Show_video"]: #Display the security feedCv2.imshow ("Security Feed", frame) key= Cv2.waitkey (1) 0xFF#if the ' Q ' key is pressed, break from the Lop ifKey = = Ord ("Q"): Break #clear the stream in preparation for the next frameRawcapture.truncate (0)Conf.json{ "Sh
Recently began to learn Python, the teacher let the deployment of the Python environment, deployed on the x86 platform is no pressure, think can not be a set of Raspberry Pi. Because using the Raspbian system and Debian is almost a problem when installing Mysql-python. Now r
The content of this article is Raspberry Pi python get GY-85 nine axis module information example, here using Python curses package development cli window program, used to refresh the sensor reading in real time, see the code first
GY-85.py:
The code is as follows:
#! /Usr/bin/python3#-*-
The hand has a CCD Camera (Barcode reader/scanner Module), it is through RS232 communication, with the RS232 to the USB adapter to connect the Raspberry Pi, you can complete the hardware connection. For serial communication, it can be realized by pyserial.First, install Pyserial:Download the latest version of the installation package from Https://pypi.python.org/pypi/pyserial and complete the installation w
The DHT11 is a temperature and humidity sensor with calibrated digital signal output. Precision humidity +-5%RH, temperature +-2℃, range humidity 20-90%rh, temperature 0~50℃. I bought a good package of modules, the top with a pull-up resistor, directly to the Raspberry Pi can be gray, purple, blue respectively represents data, 3.3V, 0V, to the Raspberry
please refer to the other blog post for the circuit connection method: "Color control for RGB LEDs with Raspberry Pi--c language version"Python code:#!/usr/bin/env python#********************************************************* #File Name:rgb.py#author:jason Dai #Date: 2015/02/04#*************************************
On-line tutorials, general Python with Rpi.gpio to control the Raspberry Pi Gpio, and C + + generally use WRINGPI library to operate Gpio,rpi.gpio too simple, many advanced features do not support, such as I2C/SPI library, etc., but also lack of high-precision timing and other advanced features. In contrast, WIRINGPI is rich in functionality, but in fact WRINGPI
Arrange reprint, original link http://www.eeboard.com/bbs/thread-5191-1-1.htmlThis post I intend to use qa way to write, so it is easier for everyone to see clearly the content of the entire post, hierarchical, clear conditioning, the following are my personal to the Raspberry Pi after the actual use of problems and solutions.1. Q: How does the Raspberry
Introduced
The DHT11 is a cheap accessory that includes temperature and humidity sensors, and the code is easy to use. This article describes if you use DHT11 in a Raspberry Pi, the code is python. If you have any questions, please leave a comment below.
Wiring
VCC Connection 5V or 3.3V
Data is connected to the Gpio (I'm picking up the B
does nothing. # print the IP address_ip =$ (hostname-I) | trueif ["$ _ IP"]; then printf "my IP address is % s \ n" "$ _ IP" fi # upload Raspberry Pi CPU temperature/home/PI/Python-Works/yeelink-temp/auto-start.sh to yeelink startexit 0[Necessary verification] You can use the ps command to check whether the script is
1#!/bin/Bash2#/etc/init.d/service_name3 4 # # # BEGIN INIT INFO5 # Provides:provider6# required-Start: $remote _fs $syslog7# required-Stop: $remote _fs $syslog8# Default-start:2 3 4 59# Default-stop:0 1 6Ten# short-description:example Initscript One # Description:this Service is a test A # # # END INIT INFO - - the Case " $" inch - start) - Echo "starting service_name" -cd/home/Pi + suPi
user's password, press ENTER after entering will require two times the new password, and then re-confirm the password to modify the success.3 Start Interface settingsThis is also a good understanding, that is, when the Raspberry Pi launched after the way the display, terminal or graphical interface, automatic login or manual login.B1 terminal startup, users need
0 PrefaceThis article reads Raspberry Pi CPU temperature through file operations. In Linux, any device operations are abstracted as file read/write, read the content in the/sys/class/thermal/thermal_zone0/Temp File to get the Raspberry Pi CPU temperature. This article describes how to read and apply the temperature par
First, pre-preparationReach the goal:Using Rapberry Pi to drive MQ-2 smoke Alarm module, the information is collected and extracted, and then Zabbix monitoring system to collect and process information collected.1. Prepare the Raspberry Pi (Raspberry Pi) One2.MQ-2 Harmful ga
. Inside it, there are system partitions A and B that we installed.
when we swipe the card, we need to pay attention to the matter:
1) When we swipe, if our card has been mount (usually when the card is inserted, our file browser will automatically open and display the content), we need to be umount these drive. We can do this with the following commands:
$ sudo umount/media/$USER/system-a
$ sudo umount/media/$USER/system-b
$ sudo umount/media/$USER/writable
$ sudo umount/media/$USER/system-
After buying the Raspberry Pi, what can I do with it? There are a few ideas to share with the beginner's teaching film, which is well worth a visit. Http://www.youtube.com/user/RaspberryPiBeginners 1.Plug in the expansion card, DIY or teaching.The main usage, of course, is to plug in a GPIO card, put on a noodle board, pull some electrical circuit, control what the LEDs are showing, or produce beer (http://
Maynard: a GTK-written desktop environment Scratch: A simple, visual programming environment noobs: A Raspberry Pi image management tool, He can let you deploy multiple mirrors on a Raspberry Pi Weston: One application Target_fs: Raspberry
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.