8.1 light LED
Hardware connection diagram,
According to the hardware diagram, when the output of the 175-pin gpio [0] is 0, the LED is on. When the output of gpio [0] is 1, the LED is off, the base address of the gpio register is 0x8000d000, which is the offset address of the used registers.
First, select the gpio p
0 PrefaceAugust 2014 Yeelink launched the MQTT protocol-based switch type device Control API, compared to the HTTP restful rotation approach, by subscribing to related topic messages, you can remotely control the real-time application of class applications better. This article uses two ways to realize the remote control of the switch type device, one is based on the Nodejs mqtt.js Extension Library, the other is the Python-based PAHO-MQTT extension library. "Related blog--mqtt" "Mqtt Learning n
Ismanager:noHere we have a set of interesting but still empty swarm clusters.We also need to understand the new abstract definition of service in Docker 1.12. You may have noticed the Docker Service command in the previous output. A docker service is a piece of software that runs in a container and is responsible for providing the outside world with a "service" running within a swarm cluster.Such a service can consist of a single or multiple sets of containers. In the latter case, we can ensure
installation method. What does it do? It's easy. He downloads a series of packages we put on GitHub to your machine and installs them. There aren't many packages, just right.
Simplified steps1. Insert the SD card and install arch Linux on the SD card.
2. start your Raspberry Pi, find its IP address (how to set the [set Raspberry Pi IP address]), and log on to the root account through SSH. The default root password of arch Linux is root, if you have modified the root password, use the modified
BoardThe following command compiles the firmware that generates the Raspbian (posix_pi2_release) version.cd Firmwaremake posix_rpi2_release # for cross-compiler buildThe "Mainapp" executable file is located under directory Build_posix_rpi2_release/src/firmware/posix. Copy it to RPI (replace YOUR_PI with your RPI's IP or hostname, about how to access your RPI, see the introduction)Then use the following com
version, right clone or Download, click Download Zip to download.can also be installed directly online:sudo Install build-essential Gitgit clone git://github.com/raspberrypi/tools.gitCross-compiling tools for other platforms please Google yourself.3. Install the cross-compilation tool3.1 DecompressionDownload the completed file for Tools-master.zip, you can directly right-click Extract decompression, you can also unzip decompression to the new RPI fo
serial port, you can view Neo's IP address from the router. Assuming the IP address is 192.168.100.106, we can telnet to Nanopi neo via SSH. I use the SECURECRT 7.3 login Here, this time we log in with the root account, and the login is shown in Figure 1.12 after success.
Figure 1.12 Nanopi neo via ssh login Ubuntu Core
2.6 View System Status
We can use the top command to view the operation of the system, press "1" to expand CPU statistics. As shown in Figure 1.13, you can see that the CPU is r
1. Preparatory work:
1.1 Development environment System Ubuntu 16 (64-bit)
1.2 Download Source: Https://github.com/raspberrypi
Linux: Raspberry Pi kernel source
Tools: Raspberry Pi cross-compilation tool
Download mode:
(1) Web download
Download zip directly
(2) Command download
git clone--depth=1 Https://github.com/raspberrypi/linux
git clone https://github.com/raspberrypi/tools
Save path is ~/raspberry/under 2. Determine version
2.1 View information about the current Raspberry Pi compiler
root
"1" Get the source codeDownload the SQLite source package and unzip it in the free user folder. "SQLite Download Link" July 2014 the latest SQlite3 source package name is sqlite-autoconf-3080500.tar.gz."2" Create a new folderCreate a new directory Opt/sqlite-rpi in the user directory. This directory is used to store files that are obtained after cross-compilation mkdir-p Opt/sqlite-rpi"3" Write an installat
A requirement for a work item is to monitor the frequency of a certain gpio input square wave! Popular speaking is a most simple oscilloscope to measure the frequency of the square wave! But just the frequency of the square wave! The frequency range is 0~200hz, and the frequency square wave is not always 200HZ, most of the time it may have been 0 or a lower frequency square wave! At the same time to take into account that the square wave may have been
Original: http://www.cnblogs.com/hangxin1940/archive/2013/04/04/2999015.htmlPreviously described how to enable the I²c device http://www.cnblogs.com/hangxin1940/archive/2013/04/02/2997077.html and build a Python development environment HTTP// Www.cnblogs.com/hangxin1940/archive/2013/04/03/2997094.htmlQuick2wire is a Python library for i²c communication on Raspberry Pi, which makes it easy to read and write Gpio pins with non-root users.Why do you use
How to enable I2C device http://www.cnblogs.com/hangxin1940/archive/2013/04/02/2997077.html and build a python I2C Development Environment http://www.cnblogs.com/hangxin1940/archive/2013/04/03/2997094.html
Quick2wire is a python library used for I2C communication on Raspberry Pi. It allows non-root users to read and write gpio pins conveniently.
Why use it?
Some hardware devices have high permissions for Linux and can only be operated by the root use
Yesterday made the control led, played the first, the rest of the feeling is very simple, here recordJust a couple of photos.Play the honey module only to find the law, generally this module, there will be three pins, VCC (3.3V or 5V power supply output PIN), GNC (for Gpio pin of GNC), out/(I/O) (corresponding to the gpio number of pins), if it is necessary to send information to the Raspberry Pi, This modu
struct S3c24xx_led_platdata Mini2440_led1_pdata = {. Name= "led1",. gpio= S3C2410_GPB (5),. flags= s3c24xx_ledf_ACTLOW | S3c24xx_ledf_tristate,.def_trigger= "Heartbeat",};Look at the struct type of the mini2440_led1_pdata variable struct s3c24xx_led_platdatastruct S3c24xx_led_platdata {unsigned int gpio;unsigned int flags;char*name;char*def_trigger;};This is a data structure type that is defined by itself,
Author InformationAuthor: PengdonglinEmail: [email protected]qq:405728433Platform IntroductionDevelopment Board: TINY4412ADK + S700 + 4GB FlashKernel version to port: Linux-4.4.0 (Support device tree)U-boot version: Friendly arm comes with U-boot 2010.12 (for support uimage boot, made a little change)BusyBox version: BusyBox 1.25Cross-compilation Toolchain: ARM-NONE-LINUX-GNUEABI-GCC(gcc version 4.8.3 20140320 (prerelease) (Sourcery codebench Lite 2014.05-29))SummaryThe last blog post on the ti
TargetPress the button in the mobile app to open the bedroom door.Basic principleRaspberry Pi as a control device: It runs a Linux system, so it is powerful and provides a GPIO interface, so it is easy to control the physical door mechanism.Yeelink Platform as a cloud provider: it is very difficult to build your own Web server, Yeelink provides free internet of things cloud services, and open APIs that can be used to write mobile apps.Register a switc
hardware involved : Raspberry Pi and related kits, LED traffic lightsknowledge : Circuit Test Board, CanakitWhen you're ready, we can start. Use Raspberry Pi for LED prototype control.The first thing to understand is that access to all of the wires, resistors, and the lights that come with the kit need to be handled with care, after all, if you set the operation improperly, it could damage your hardware.To simplify the contact with the Raspberry Pi and the LED, and to facilitate the writing of t
pins (of course, I/O physical addresses cannot be operated like hosts, and I/O memory operations need to be achieved through memory ing of the kernel! The kernel orchestrates the arm I/O pin address according to a linear address)
Static int led_gpios [] = {s5pv210_gpj2 (0), s5pv210_gpj2 (1), s5pv210_gpj2 (2), s5pv210_gpj2 (3), };# define led_numarray_size (led_gpios) // determine the number of led_gpio instances
S5pv210_gpj2 (*) is defined as follows:
# Define s5pv210_gpj2 (_ nR) (s5pv210_gpi
detailed in the following example.
3. A simple instanceThis example describes the development process of an Embedded Processor System Based on the e-element-based digital sword series Firefox 3 evaluation board, focusing on application programming. For other evaluation boards, you only need to slightly modify the user constraint file (3. UCF. For simplicity, compared to a complete system shown in figure 2, the system described in this example only hangs the MDM (hardware debugging module) and
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.