Raspberry Pi 3 Study notes (3): Chinese environment setting and input Method installation
If you are installing a Raspbian system, for friends who are not accustomed to English, you need to set up Chinese and install the corresponding Chinese input method, if you install Ubuntu mate, you do not need to set up Chinese
This scheme is suitable for the Raspberry Pi hardware, do not want to make changes in the router friends, this is a network can be all over, but also according to the destination IP (domestic and non-domestic routing, not all data go ss), of course, if there is a better solution or error please point out.Preparatory work:1:raspberry B + (recommended A + +, this v
Preparation: 1. Raspberry Pi (this is necessary)2. A laptop computer (you have two?) I have nothing to do with it.3. One cable (used to connect the Raspberry Pi and laptop)4. Power cord (Why do you use it?) Of course it's powering the Ra
Pi B +: less than 2 minutes
Raspberry Pi 2: less than 30 secondsStep 6:
Install pip:
$ wget https://bootstrap.pypa.io/get-pip.py$ sudo python get-pip.py
Time consumed:
Raspberry Pi B +: less than 2 minutes
Raspberry
-pip.py
Time consumed:
Raspberry Pi B +: less than 2 minutes
Raspberry Pi 2: less than 30 secondsStep 7:
Install virtualenv and virtualenvwrapper
$ sudo pip install virtualenv virtualenvwrapper
Then, update ~ The/. profile file is as follows:
export WORKON_HOME=$HOME/.virtualenvssource /usr/local/bin/virtualenvwrapper.
Raspberry Pi uses python+pyserial to realize serial communicationExt.: http://blog.csdn.net/homeway999/article/details/8642353Directory (?) [+]
Raspberry Pi uses pythonpyserial to realize serial communication
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
tube. The pin is also attached to any of the Raspberry Pi's gpio ports.
OE is the output enable PIN, which is also common in other chips. The function is to control whether the data in the latch is ultimately output to the Q0-Q7 output pin. Low-power output, high-power normally not output (neither high-level, nor low-level but high-impedance state, no power). In order to facilitate direct connection to GND, this example keeps the output data low.
Tags: where prompt ima start update als/etc allow accessDemandInstall the MySQL service on the Raspberry Pi and turn on remote accessSteps to install MySQL server$ sudo apt-get install Mysql-serverI thought the middle will let me prompt input database root password, did not think smooth sailing, direct completion, I am going crazy, the password is what. Search found, you can use the following command, blank
Raspberry Pi Hardware version:Second-generation B +Raspberry Pi System version[Email protected] @raspberrypi: ~# Lsb_release-ano LSB modules is available. Distributor ID:RaspbianDescription:Raspbian Gnu/linux 8.0 (Jessie) Release:8.0codename:jessieModified files: vim/boot/cmdline.txtChange it to the following [email pr
Raspberry Pi advanced GPIO library, wiringpi2 for python Use note (3) GPIO operations, gpiowiringpi2
The core function of the GPIO library is to operate GPIO. GPIO is the "general input/output" interface, such as lighting up an LED or relay, or using iic spi 1-wire and other protocols, reading and writing data are all useful for GPIO. It can be said that without
. Net Core uses Socket to communicate with Raspberry Pi for details, coresocket
Preface
Last year, I bought Raspberry Pi, which had been put in a drawer for gray purposes. A few days ago, Debian 9 was released, and I was not surprised to support
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
Front-facing:1. hostname Please change from default Raspberrypi to test.comsudo nano /etc/hostnamePlease change the raspberrypi in the file to test.com2. Change the IP address of the Raspberry Pi to static, in this case 172.16.0.68, the gateway exits to 172.16.0.1sudo nano /etc/dhcpcd.confAt the bottom of the document, add the following settings:interface eth0static ip_address=172.16.0.68/24static routers=1
. (Due to Bo Master lazy, detailed wiring method did not.) )Once the wiring is complete, ssh into the Raspberry Pi Input command via the network method: (Copy the service-side code)sudo nano start.pyThen ctrl+x enter y plus carriage return.Enter the command:sudo python start.pyCan run!With the car service side control code: (Do not use for other purposes, please specify the reprint place and
Unpopular things, search today, it is really useful to share with youRemember the first time to play Raspberry Pi, no monitor can not live, what information to monitorLater a little better, find a router, plug the network cable up, and then into the router interface to get the Raspberry Pi IPThen SSH login to
sudo apt-get update
Input sudo apt-get install Tightvncserver
then enter Tightvncserver
After that, the following screen will be required to set the VNC password, which is used when the client connects.After entering the password can also be as needed, and then enter a view-only password, use this password can only view the desktop, but can not operate.So all is done, then you can open Vncviewer, enter your own Raspberry
Google has finally released its Fuchsia/magenta kernel of the Raspberry Pi version, the following describes how to compile and run
Ready to work, first need to have an HDMI screen, I'm here is the 800x480 HDMI screen, then the keyboard
Download Magenta code from Google src or github
Https://fuchsia.googlesource.com/magenta
In the running directory
Scripts/download-toolchain Download the tools needed, I am h
Buy Raspberry Pi 3, want to play through the serial console
The results found that the serial port is not available
This means that during the boot process, you don't see those strings printed, and then you can't use the serial console
Checked the relevant articles on the Internet.
The main reason is that the Raspberry
it here."2" Installation Wiringpi, previously mentioned, check the Gpio pin assignment after installation. The PIN diagram is as follows:"3" according to the figure line, TXD is 8 feet connected to the MAX232 Rx Rxd on the TX, the TTL level to RS232 level so that the computer can recognize.Writing code in "4" Eclipse#include intMainvoid){ intFD; if(FD = Serialopen ("/dev/ttyama0",9600)) 0) {printf ("Serial err\n"); } while(1) {uartbuff[0]=Seri
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.