We have explained in detail the Raspberry Pi control ultrasonic module ranging (http://www.cnblogs.com/yuemo/p/8888342.html) and ultrasonic control buzzer module audible (http://www.cnblogs.com/ yuemo/p/8906111.html).Today we'll see how to apply all two modules and make an anti-theft device.First look at the connection of each pin (requires seven mother-to-female DuPont line):Ultrasonic module:1.VCC: Connec
Is Raspberry Pi able to use the serial port? The answer is yes. The specific method is as follows:
1. The third, fourth, and fifth ports in the first row of Raspberry Pi are respectively, that is, ports 6, 8, and 10 are respectively, TX and RX, respectively, and connected to the connected device. Note that the TX of
0. PrefaceWhy do you want to use cross-compilation for "1"
The speed at which the cross-compilation tool is developed faster. The Raspberry Pi has already installed the GCC toolchain, which can be compiled directly from the Raspberry Pi source code to generate the executable
it's Cool (library):sudo apt-get-y install python-serialThen do one more step: Raspberry Pi default console is the UART output, get rid of (remember to change with sudo).Open /boot/cmdline.txt, inside the content "dwc_otg.lpm_enable=0 console=ttyama0,115200 console=tty1 root=/dev/ MMCBLK0P2 ROOTFSTYPE=EXT4 Elevator=deadlineFsck.repair=yes rootwait ", the bold pa
Main references:0.https://www.raspberrypi.org/forums/viewtopic.php?p=462982#p4629821.https://www.maketecheasier.com/set-up-raspberry-pi-as-wireless-access-point/2.http://www.jenssegers.be/43/realtek-rtl8188-based-access-point-on-raspberry-pi3.https://www.embbnux.com/2015/02/08/setup_raspberry_to_wifi_access_point_with_
") while1: Time.sleep (120) Get_webservertime ("www.baidu.com")3. Giving permissionsudo chmod 777 date.py4. Test procedureChange the system time to an expiration time first' 2016-02-03 10:00:00 'To see if the system time has been modified successfullysudo dateExecute a well-written Python program and use the date command after 20 seconds to see if the system time is synchronized successfully!sudo python date.py5. Add Python program to bootEdit the system startup filesudo nano/etc/rc.localAdd a s
In this article you can learn: Berryboot use, Kali installation, open-hung mobaxterm, and tips on mounting via label and UUID. This article defaults to the Linux Foundation you have, and also for the level of just getting started, because this is my toss record. Do not know can leave a message or email. The first thing to be clear is that now is not completely out of the SD card method, because PI is the default from the SD card boot. Just realized pu
Tags: Raspberry Pi ifconf auto start apt CTI no log art tarStart a Raspberry Pi 3B installed ubuntu 16.04 need to use the SSH record0. Get the Raspberry Pi IP firstRaspberry Pi uses a n
0. PrefaceRaspberry Pi can be painless starter Linux, which controls the Raspberry Pi gpio through command and shell scripting. With this article you can familiarize yourself with multiple Linux commands and familiarize yourself with the shell scripting methods and have a basic understanding of IO redirection. I lea
/ Designsparkrs/dump1090$ CD dump109 0$ make Then edit the/etc/rc.local file and add the following line before" Exit 0 ": cd ~pi/dump1090; ./dump1090 --net --net-http-port 80 --interactive Run
Now that we need to reboot to configure the kernel for the TFT display, the configuration will be blocked if the default TV tuner support is not loaded for t
Color control for RGB LEDs with Raspberry Pi RGBColor Modeis a color standard for industry. is through theRed (R),Green (G),Blue (B)Three ColorsChanneland they overlap each other to get a variety of colors, RGB is the representativeRed,Green,Bluethree channels of color. This standard almost contains all the colors that human vision can perceive, and is now the most widely usedColor System one of them. Th
Docker is a good thing, thinking that Raspbian is a Debian-based system, and that certainly supports Docker.With Docker, there is an extremely simple way to install Home assistant on the Raspberry Pi.1. Installing Docker on the Raspberry PiCurl-ssl https://get.docker.com | shReference: https://www.raspberrypi.org/blog/docker-comes-to-
Raspberry PI Series--bare metal illuminated LED lightsBackgroundRecently just bought Raspberry PI B +, configured to run the official Raspbian system, tossing a week Linux system, feel no meaning, so try to understand the bottom of the start process, through a few days of research, It is found that the boot of the lowe
Today when I tried to connect the Raspberry Pi with SSH, I found that the Raspberry Pi did not open the SSH service.I don't have a monitor, I don't have an external keyboard.So, I pulled the Raspberry Pi hard drive (memory card) a
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
. "; }}if($data = file_get_contents ($file)) {;//This function supports version (PHP 4 >= 4.3.0, PHP 5)Echo"the content written to the file is: $data";} ?>5. Code parsingThe Python version number used here is 2.7.13Import Timeimport serialReference Python's 2 class library time and the serial Port debug library serial, in order to implement the program debugging can be written, before using the serial serial debugging library, to achieve the Raspberry
Beginner Python , try to change the program that was previously written in C on the Raspberry Pi. Python version of the. Four-bit common yin digital tube and Raspberry Pi Circuit connection method is as follows:A ~ p-------------------------------GPIO0 ~ GPIO7D1 ~ d4-----------------------------GPIO11 ~gpio8Here is the
not possible to have a pi3-miniuart-bt-overlay, this can also, probably because the raspberry dispatched factory date different module name different , I found someone on the internet to provide Pi3-miniuart-bt-overlay module)Comment out the other UART settings in/boot/config.txt, this is best commented out, uart_enable=1 also commented out! remember!sudo apt-get updatesudo apt-get upgradesudo rebootThe UART from the start of the
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#*********************************************************import Rpi.gpio as GPIOimport timecolors = [0xFF0000, 0x00FF00, 0x0000
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.