/gpio$1/direction
echo setting pi high
echo 1 >/sys/clas S/gpio/gpio$1/value
A few notes"1" If you write a shell script on windows (and then transfer to the Raspberry Pi using the FTP tool), you must save it in UNIX format. The shell script ends with \ n per line, not \ r \ n in Windows. You can use the notepad++ format conversion feature to complete the chan
To make it easier to connect and control the Raspberry Pi over the network, use SECURECRT to connect the Raspberry Pi over the network. 1, on the Raspberry Pi through the terminal command Ifconfig to view the current
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
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
-linaro-arm-linux-gnueabihf-raspbian-x64 are used for 64-bit machines.
Each cross-compilation tool has a bin directory in the directory to enter, execute./arm-linux-gnueabihf-gcc-v to view the GCC version.
I use ARM-RPI-4.9.3-LINUX-GNUEABIHF here because the GCC version on the board is now 4.9.3 3. Start compiling
3.1 Enter the Linux kernel directory:
$ CD ~/RASPBERRY/LINUX-RPI-4.4.Y
$ kernel=kernel7
$ make
Environment: Raspbian-stretch (2018-06-27)Raspberry Pi: 3 generation B Type1, Raspberry Pi equipment, need to be in the field can also have independent networking capabilities, it is necessary to use the Internet of Things module.The SIM868 communication module for micro-sno
Raspberry Pi ------For Windows
Step 1:in Order to write the image for sd,we should download and install image Writer for Windows
Step 2:download and install putty and connected to serial port
Step 3:plug in the power then start Raspberry Pi and
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
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
If you're bored with a smart home that just has to download a specific app to control a light, here's the good news: Openhab can give you the most flexible control of smart home, Openhab is a mature, open source home automation platform that can run a lot of software, There is no agreement, which means it can now be connected to almost all of the home automation hardware on the market.Here we will show you how to install and launch the free smart home system.We first use
The latest version of the 2017-03-02 version of the Raspberry Pi system does not directly SSH login issues
Last night when installing the latest Raspbian system using Raspberry Pi 3 (2017-03-02), there was a problem:
There is no HDMI monitor on hand, so you can only use SS
1,apache Introduction:Apache is the world's first-ranking Web Server software . It can run on almost all of the widely used computers platform Because of its cross-platform and security is widely used, is the most popular Web server-side software. For more information, see: " Baidu Encyclopedia- Apache" " Wikipedia -apache HTTP Server "2, install Apache to Raspberry Pi:Apt-get Install Apache2Want to continue[y/n]? When entering Y,
downside is that no matter how big your card is, its partitioning depends on the operating system, which wastes some space. The command is as follows: DD if=raspybin bs=1kb count=4000 of=/dev/sdxx here xx is your SD card, don't make a mistake! Otherwise lose hard drive data at your own risk. I purchased a 8G SD card, after installing the raspybin image of Pi, insert the SD card slot, connect the mouse, keyboard and HDMI to power up. The firs
What you need to know before installing1. Coolpy is a Nodejs-based IoT platform (official website http://icoolpy.com). Note: The domestic IoT platform has the LEGO network , Yeelink and so on, but only coolpy is open-source. 2. Node. JS is a platform built on the chrome JavaScript runtime to easily build fast, easy-to-scale Web applications Note: Therefore, to run coolpy, you must first install the Nodejs. 3. The new coolpy does not use a database bu
Maker‘‘state‘ : GPIO.LOW} }3. Writing HTML filesUnder the directory where weblight.py is located, create a subdirectory named templates. In the Templates subdirectory, create a directory namedmain.html the file and enter the following code:All of the brackets in this HTML page template are parsed into variable names, which are replaced by actual data when the Python script calls the Render_template function.head>title>Home Intelligent Controltitle
first, the simplest method on the Raspberry Pi is to use apt-get and then give control to the Openhab user.sudo apt-get install openhab-addon-binding--hr Openhab:openhab/usr/share/openhabNext, you need to tell Openhab to load the binding and configure all the required variables. go to the configuration folder, copy a copy of Openhab-default.cfg, and name it openhab.cfg. Open the file, search for hue, and r
July 3, 2016 20:32:07After the Raspberry Pi successfully connected to the console interface via SSHNext is the Raspberry Pi that connects the GUI, but SSH does not support the graphical interface, after learning to understand, choose to use VNCRequired tools: VNC, TightVNCLo
running at 1 Ghz and stable, but I am trying not to work here.
Now, you can modify your configuration and restart the device, but the modified configuration does not always work. For example, I cannot do it here. Then I find some suggestions in Stack Overflow and need to execute the following command:
Sudo syncSudo sh-c "echo 3>/proc/sys/vm/drop_caches"Sudo cp config.txt. saveSudo cp config.txt. save.1Sudo sync; exit
This will cause you to exit the t
"
12
sudomodprobe bcm2708_wdogsudonano/etc/modules
Add a line "Bcm2708_wdog"2. Installing the System configuration software and the watchdog program
1
sudoapt-getinstallchkconfig watchdog
3. Configure the watchdog program and edit the "/etc/watchdog.conf" file
1
sudonano/etc/watchdog.conf
Remove the # Watchdog-device =/dev/watchdog before the watchdog devic
you do not understand the operation of 2, want to look at the detailed steps here, in another blog:3. After connecting the Raspberry Pi to the WiFi, the installation method has a tutorial. It should be noted that if the WiFi signal is above 10 channels, it is likely not recognized, then the router's channel to tune not more than 10.4. To install the Remote Deskt
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.