software package is ready and can be released;
Iii. Cross-compiling source code
1. Environment
Ubuntu
2. Install Raspberry Pi cross compiling tool
Step1. download Raspberry Pi cross compiler tool https://github.com/raspberrypi/tools
Step 2: place the source code in a folder that users can share, such as/usr/tools.
Ste
Environment: Raspberry Pi, System Raspbian, System comes with two versions of Python and Pygame.1. ArtboardsThe procedure is as follows:1! /home/pi/game_1.py2 ImportPygame3 4width = 6405Height = 4806RADIUS = 1007Fill = 18 9Pygame.init ()#Initialize PygameTen Onewindow =Pygame.display.set_mode ((window, height)) AWindow.fill (Pygame. Color (255, 255, 255))#fill 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
Use Raspberry Pi to implement chatbots. Raspberry Pi is used to implement a conversation robot. recently, Raspberry Pi is used to implement a robot that can communicate with people. RaspberryPi is the world's most popular micro-co
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
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
Raspberry PI 3 to create a music player
1. Software Environment
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mplayer2//music playback software
sudo apt-get install Alsamixergui//volume control
2. Prepare the song
Find a song. MP3 Songs
Here is a: wget Http://blog.lxx1.com/wp-content/uploads/2016/07/shero.mp3
3, set the Raspberry
Implementing a dialogue robot with Raspberry Pi
Recently, we have implemented a robot that can talk to people with Raspberry Pi, a brief introduction.
Raspberry Pi is the world's most popular micro-computer motherboard, is the le
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
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
Github:https://github.com/hicrater/raspberry-dht11-temperature.gitFirst, look at the wiring
Wiring diagram
Vcc
Cathode
Pick up the Raspberry Pi 3.3v power supply (choose one on the line)
GND
Negative
Pick up the Raspberry
of the machine, install the Chinese font, and then change back to ZH_CN. UTF-8, otherwise the first boot will appear square)Change_timezone – because the Raspberry Pi does not have an internal clock, is the time taken over the network to select Asia–shanghai.
Memory_split – The video memory configured for the desktop display.
SSH – whether to activate the sshd service.
Boot_behaviour – Set
the wireless module will be high when the aux is initialized.Note: minicom communication or use other serial port programming library must pay attention to some details, 8N1 8 = 8 bytes, n= invalid verification bit, 1 = stop bit, these must be set the same, there are hardware flow control and software flow control all shut down (minicom has this option, If you do not set the hardware flow control is turned on by default)onxoff=false, rtscts=false, d
Reference: http://programmingadvent.blogspot.hk/2012/12/raspberry-pi-uart-with-pyserial.htmlRaspberry Pi UART with pyserial os:occidentalis v0.2Hardware:raspberry Pi Revision B with CobblerSetup:serial Loopback (Connect RX and TX pins on GPIO pins)Linux attempts to treat all
Conscience sponsor: willing to help Raspberry Pi install Backdoor programs
Last Wednesday, the Raspberry Pi Foundation announced that it was willing to invest money to install a malware on its device.Information from emailRaspberry Pi was once referred to as "a card-type co
) {});});
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
Raspberry Pi (Raspberry Pi) is a mini computer that is about the size of a credit card. It was originally designed for students to design a low-cost computer programming aids, because of its rich diversity people to apply it to a variety of projects.As a DIY King
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.