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
Pi. Http://sourceforge.net/projects/win32diskimager/
After the image is complete, you can insert it to the PI to start.
Connect to the power supply, display start, crash, actually need a keyboard. Otherwise, initialization fails.
Fortunately, you can use SSH to connect to the previous stage and quickly open the direct router to view the newly allocated DHCP users. Copy these MAC addresses and configure a s
Install a lamp environment for Raspberry Pi in the past two days, but there are too many things installed on it, and the default system space is occupied. But the SD card itself is 16 GB. What if I want to extend the Raspberry Pi to a larger space? I can continue to install the software only after the expansion. After
Tags: Raspberry Pi CPU Temperature0 PrefaceThis article through the Python SQLite query Raspberry Pi CPU temperature history data, in the previous blog post has introduced the Raspberry Pi CPU temperature acquisition, SQLite opera
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 son
Requirement
Without a network, a keyboard, or a monitor, controlling Raspberry Pi becomes a problem. I accidentally saw an article today.ArticleThat is, you can directly control the Raspberry Pi through the serial port. Give a decisive try. The effect is good. Share it with others!Pai_^ Preparation
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
One: Perform an upgrade on the Raspberry Pi:
1 : Updating the software source
$ sudo apt-get update
2 : Replace the old package
$ sudo apt-getupgrade
3 : Perform a Raspberry Pi firmware upgrade:
1, Raspberry
who says you can't play the Raspberry Pi graphical interface without a monitor. Don't forget Vncserver Oh! VNC (Virtual network Computing) is a networked display system, which means that it can transfer the complete form interface over the network to a single Computer screen, the implementation of a graphical interface to operate, view the remote computer. VNC is divided into Vncserver (VNC Server) and vncc
0 PrefaceThis article describes how to control the Raspberry Pi gpio port through the file IO sysfs. Control gpio through sysfs, first access the/sys/class/gpio directory, write the gpio number to the export file, so that the operation interface of this gpio is exposed from the kernel space to the user space, gpio operation interfaces include ction and value. Direction controls the gpio direction, while val
Windows Ten for Raspberry Pi 2Raspberry Pi 2 generation on Windows 10We ' re excited to announce that we're expanding our Windows Developer program for IoT by delivering a version of Windows 1 0 that supports Raspberry Pi 2. This release of Windows would be free for the Make
Sometimes it is not convenient to directly operate Raspberry Pi. You may want to use other computers to remotely control Raspberry Pi.
VNC is a graphical interface shared by the system. It allows you to remotely control the desktop interfaces of another computer. It sends keyboard and mouse events from the computer and
, Raspberry Pi uses 700 MHz arm11 CPU, 128 mb sdram memory, and supports USB 2.0 and SD card slots. It doesn't matter from the perspective of cost and power consumption, but arm11 is a elimination technology on mobile phones. Raspberry Pi, you can get an arm A9 ~
(If
Connect to Raspberry Pi's X-Windows GUI on OS X
It took me a few minutes to install the Raspberry Pi. the installation process is simple. connect the mouse, keyboard, Wi-Fi adapter (dongle), and power supply. select the operating system in the pop-up menu after startup. I chose Raspian. wait until it enters the system.
I am not a cold-blooded animal-dare to put
= Urllib.parse.quote (words)
UUID = "xxxx"
RESP = baidu_tts_by_post (text, uuid, token)
f = open ("Test.mp3", "WB")
F.write (RESP)
F.close ()
After you get the audio file, you can play it using the mpg123 player.
mpg123 Test.mp3
Integration
Finally, put together these three parts.
You can first integrate Python-related code into main.py, as follows:
Import ASR
Import TTS
Import Robot
Wor
follow this lesson, you need the following devices or software: Hardware section Raspberry Pi Adafruit Control Cable The logic level of this cable is 3.3V so it is safe, but not all kinds of cables are 3.3v! Only use the Adafruit control cable in this tutorial to avoid damaging the gpio pins on the small faction. Software Installation (MAC) OSX has its own terminal emulation software that you can use for
Raspberry Pi B + timing to IoT Yeelink uploading CPU GPU temperatureHardware platform: Raspberry Pi B +Software platform:1 Installing the Requests LibraryFirst we have to solve the requests library, when we send to Yeelink POST message will use: R = Requests.post (Apiurl, Headers=apiheaders, Data=json.dumps (payload))I
The first blog gave me a long course design, that is, the topic "3G wireless router. The development platform used in this development project is the Raspberry Pi Development Board. The following is the question .....
Objective: To set Raspberry Pi as a 3G wireless router and access the Internet through Huawei's e261.
Create a wireless route for Raspberry Pi
OpenVPN is a private protocol and requires proprietary clients. Therefore, it is difficult to use OpenVPN on Android (CM9 supports OpenVPN), iOS, and WP8. Combining Raspberry Pi and OpenVPN to build a soft AP can easily solve these problems.
Why is this combination selected?
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.