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
Raspberry Pi assembly and operating system installationFirst, the original Raspberry Pi1, Raspberry Pi 2 Model B Development Board2, SD card (this experiment project selects memory 8G SD card)3, network cable a root4, HDMI cable 1
tts_main(filename, words):
token = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
text = 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 obtaining the audio file, you can use the mpg123 player to play the video.
Mpg123 test.pdf
Integration
Finally, combine the three parts.
You can first integrate python-related code into main. py, as shown below:
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
Make full use of the SD card space in Raspberry Pi
Generally, a 4g sd or TF card is required to create a system image for Raspberry Pi, but do you know if your SD card is 8g or 16g or larger, after various types of Linux are created and started to enter the system, only SD cards within 4 GB can be used, while the other
the remote control back ah, after all, is playing in the pool, remote control distance of 500 meters AH6.9g Steering Gear 2Key technology points------1. Respberry Pi Brushless motor control, at present, there is little information on the network, I experiment for 2 nights, basically found out the law of PWM brushless ESC2. Fp-v video scheme, this piece is also more headache, MJPEG plan feel very card, only a few frames a second, motion is mainly to d
= 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
without your password. In this way, even if someone copies your key, they cannot impersonate you for access. If you want to use a password, enter the password, press enter, and then enter the password again as prompted. If you press enter without entering anything, the password is not used.
Now you should be able to see files such as id_ras and id_ras.pub in the. Ssh folder in your home directory:
ls ~/.sshauthorized_keys id_rsa id_rsa.pub known_hosts
HereId_rsaThe file is your private key,
Raspberry Pi is a magical machine, the CPU and memory are poor, but small volume of low power consumption, on the above to engage in some of the West is actually very interesting, quite fun. is Pidara, basic service is not streamlined how much, first cat CPU and RAM. [[emailprotected] ~]$ cat/proc/cpuinfo processor:armv6-compatible Processor Rev 7 (v6l) bogomips:46 4.48FEATURES:SWP half thumb fastmult vfp
Http://conanwhf.gitcafe.io/2016/01/30/rpi-protocol/?hmsr=toutiao.ioutm_medium=toutiao.ioutm_source= Toutiao.io
implementation of several simple protocols on Raspberry Pi posted on 2016-01-30 | Categories in Raspberrypi | No Comments
The procrastination of his own is really disciplining, this is a delay to abandon the article. Fast New Year, how can not be dragged into the years after the spirit, clear the
To telnet to the Raspberry Pi GUI via vnc, the Raspberry Pi must have a VNC Server service installed on one side, and a few simple configurations are required to make the operation more convenient, as detailed steps below.1. Installing the VNC server component--tightvncserversudo Install Tightvncserver2. Set up a VNC p
Method one, software search: such as Ipscan or IpscannerIpscan is used here.The green sign is the Raspberry Pi that you can find in use.Second, find the IP address of the Raspberry Pi.Run the DOS window and enter Arp–a. The Raspberry Pi is one of the dynamic addresses.、Third
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
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
xtightvncviewer package:
sudo apt-get install xtightvncviewer
-For other platforms, you can download TightVNC from tightvnc.com.
Automation and run at boot (Automatic startup)
You can create a simple file on Raspberry Pi and save some commands to run the VNC service. Save the commands so that you do not need to remember them again:
-Create a file containing the following shell script:
#!/bin/shvncserver :
As small as you can't imagine a computer with a USB flash drive sold by Raspberry Pi _ love alive evolife.cn
As small as you can't imagine Raspberry Pi selling USB flash disks
Date: 17:58:26
Author: AI live temporary worker
Source: aliyun.com
Comment (3)
Th
the files.Step 3: Install the flight control module
Time: 5 minutes
Install the flight control part (Raspberry Pi Zero + PXFmini) and connect the jst gh line to the power module and PXFmini on the drone. In this way, the power can be supplied to the flight control part.
Next, you need to install the PWM modulation in the flight control system, connect your ESC
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
website has been suspended, but other images can be used.
sudo wget "http://downloads.sourceforge.net/project/vim-n4n0/sakis3g.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fvim-n4n0%2Ffiles%2Fts=1363537696use_mirror=tene~t" -O sakis3g.tar.gzsudo tar -xzvf sakis36.tar.gzsudo chmod +x sakis3g
3. dial-up Internet access
sudo ./sakis3g --interactive "connect"
Enter the interaction interface as follows:
(If an error occurs during dialing, rest
to the Raspberry Pi, then execute the LSUSB command on the Raspberry Pi, this time the list is connected to all the USB devices, as follows:
Bus 005 device 001:id 0000:0000
bus 001 device 001:id 0000:0000
bus 004 device 001:id 0000:0000
bus 003 Dev Ice 001:id 0000:0000
bus 002 device 006:id 15d9:0a37
Bus 002 Device 00
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.