TargetPress the button in the mobile app to open the bedroom door.Basic principleRaspberry Pi as a control device: It runs a Linux system, so it is powerful and provides a GPIO interface, so it is easy to control the physical door mechanism.Yeelink Platform as a cloud provider: it is very difficult to build your own Web server, Yeelink provides free internet of things cloud services, and open APIs that can
Recently want to use Raspberry Pi control model of the ESC, so studied the next PWM, seemingly control the ESC is troublesome, because the ESC needs to send a few specific signals to start, and then to enter the control mode, today first understand PWM, slowly toss. The following program pro-test is available, I use the Raspberry
relatively inexpensive components to help DIY Raspberry Pi.Parts
Erle Robotics PXFmini
Raspberry Pi Zero (Raspberry Pi Zero)
HobbyKing Spec FPV250
Erle Robotics PXFmini Power Supp
Tags: Raspberry Pi wiringpi Zookeeper
1. Void pinmode (INT pin, int mode );
This function sets the Input and Output Modes of the pin and the input and output modes of PWM. InWiringpi onlyPin 1 (bcm_gpio 18) supports PWM output.
2. Void digitalwrite (INT pin, int value );
This function is used to set the level of the pin. When we write high or low (1 or 0), the mode of the pin must be the output mode.
Prepare
Raspberry Pi Development Board ( Click here to purchase ) (has been brushed into the official Raspbian system )
USB to Serial board ( click here to buy )
DuPont Line (4 root)
Connection
串口板 树莓派--------------------VCC +5V(非必须)RX TXD(GPIO15)TX RXD(GPIO14)GND Ground Raspberry
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
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
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
Original Address: Portal. NET Core on Raspberry PiArm32 builds is available as community supported builds for. NET Core 2.0. There is no SDK this runs on ARM32 if you can publish an application that would run on a Raspberry Pi.These steps has been tested on a RPI 2 and RPI 3 with Linux and Windows.Note:pi Zero supported because the. NET Core JIT depends on ARMV7
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 digital tube. The correspondence depends on the order in which you send the data when you wire and write the code.
DS is a serial input pin, so-called serial is to make the data on a signal line in order to transmit one by one, like a string of candied fruit. This pin we received from the Raspberry Pi at any one of the Gpio ports (output mode). The
The simplest of a Raspberry Pi Gpio operation Getting started, here is a record of the followingFirst on the connection diagram:Horizontal slots. Figure Akzent The BigUsing the Gpio gnd and #18 pins, this is not, the red wire is 18 pins, the dark line is the GND pin, the following Python code:1 #Coding:utf-82 ImportGpi
project, the entire framework of the program has been set up, we directly compile the program to tryCompile no problem, below we expand the left side of the forms file directory, double-click the Mainwindow.ui file, and then we add two buttons on this interface, two buttons respectively control the Raspberry Pi one pin output high and low level, as shown in:Modify the name of the button control on the righ
Before the text
Because recently busy review exam, so did not pick up the Raspberry Pi car, until yesterday, finally empty time to put the code down and share with you.
BodyIn the second of the Raspberry Pi Trolley series, there are two ways to define the pin of the R
linux applications. the reason is very simple. perl is fading out, ruby is not powerful, shell is not enough, php is not suitable, and java is not explained.
I remember that the Redhat 7 character interface installer was written in python, which was almost the first time I heard about python. it was very powerful, easy to use, and easy to modify and adjust.
Don't waste time and energy on things unrelated to business logic
Yesterday, my wife read the RPi. G
) {});});
Yes, just the three lines of code ...
1th, 2 line to all the buttons (button) bound a click of the event, the third line calls the jquery post method to send This.id (the ID of the clicked button), sent to "/cmd" This path, at this time, our Python code of the second route to work, Received the ID of the clicked button on the webpage, and printed out the "pressed button: XXX"
Of course, here are a few if statements to judge, you can follow the actual needs to do some real control, wel
First, the previous figure:
Accessories used:
1. Main Character: Raspberry Pi
2. secondary role: Infrared Detection
3. Miscellaneous: bread, DuPont wire, buzzer, led, resistor
The infrared detection has three pins. The power supply at both ends and the signal output in the middle directly connect the signal to a gpio of
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.