collaborative research. Not only is the calculation of the display appealing to children of all ages, you can also make cool things yourself.# # #附录When programming Gpio, there are two ways to point them out: GPIO encoding and real-time codingThe encoding of the GpioThe computer uses this method to recognize the GPIO
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
Gpio Library core function, of course, is the operation of Gpio, Gpio is the "general input/Output" interface, such as lighting a LED, relays, or through the IIC SPI 1-wire and other protocols, read, write data, this is the use of Gpio, can say no gpio,
Raspberry Pi Raspberry the GpioRaspberry PI versions hardware schematic diagram: https://www.raspberrypi.org/documentation/hardware/raspberrypi/README.md configuration
Two x 5v,3.3v output ports
IO input/output voltage 0-3.3v
Output PWM Support
Two-way SPI bus
Two-way IIC bus
Serial
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 oper
Raspberry Pi advanced GPIO library, wiringpi2 for python using notes (4) practice DHT11 decoding, gpiodht11
DHT11 is a temperature and humidity sensor with calibrated digital signal output. Precision humidity +-5% RH, temperature +-2 ℃, range humidity 20-90% RH, temperature 0 ~ 50 deg C.
The encapsulated modules I bought contain the pull-up resistor. After che
0. PrefaceRaspberry Pi can be painless starter Linux, which controls the Raspberry Pi gpio through command and shell scripting. With this article you can familiarize yourself with multiple Linux commands and familiarize yourself with the shell scripting methods and have a basic understanding of IO redirection. I lea
General Purpose Input Output (Universal input/output) abbreviated as GPIO, or bus extender, simplifies the expansion of I/O ports with industry standard I²C, SMBus, or SPI interfaces. GPIO products provide additional control and monitoring capabilities when the microcontroller or chipset does not have enough I/O ports or when the system requires remote serial communication or control.This article has nothin
Have done some works of the internet of things, because do not want to always do the app to control, because not everyone to download your own app, browser everyone is there, then everyone through the browser Web to access our server, it is not very simple and convenient, using Flask+python.Flask is a lightweight WEB application framework written in Python that is simple to use and easy to get started with.Install Flask:sudo apt-get install Python-pipsudo pip install flaskThen a simple server is
40 Gpio on a Raspberry Pi is the best thing to play.They can be directly controlled by c,/c++, Python, Java and other languages.Now, let's see how to do the same thing with node. js.Before you try, install node. js, and move to: 1. Prepare the Test foldermkdir/home/pi/documents/test-
to scan the register for the interrupt number of the interrupt, and call the corresponding callback function if the interrupt occurs.1.for_each_set_bit (i, EDSR, + ) //cycle to find a bit in the EDSR that is 1 is interrupted 2.Generic_handle_irq (Gpio_to_irq (GPIO));//interrupt callback function that calls the interrupt vector (will be filled in when the driver requests an IRQ resource) GPIO_TO_IRQ (GPIO
The DHT11 is a temperature and humidity sensor with calibrated digital signal output. Precision humidity +-5%RH, temperature +-2℃, range humidity 20-90%rh, temperature 0~50℃. I bought a good package of modules, the top with a pull-up resistor, directly to the Raspberry Pi can be gray, purple, blue respectively represents data, 3.3V, 0V, to the Raspberry
On-line tutorials, general Python with Rpi.gpio to control the Raspberry Pi Gpio, and C + + generally use WRINGPI library to operate Gpio,rpi.gpio too simple, many advanced features do not support, such as I2C/SPI library, etc., but also lack of high-precision timing and other advanced features. In contrast, WIRINGPI i
Raspberry Pi-Sonic Pi (sound programming), sonicpi
Sonic Pi is an open-source programming environment designed to explore and teach programming concepts by creating sound production mus
sleep 0.5 play 62 sleep 0.5 play 64 sleep 0.5 play 60 sleep 0.5end
You can enter frere to call this method later. For example, call in a loop:
4.times do frereend
6. Synths (synthesizer)
The synthesizer enables the play method to make different sound effects. The default synthesizer is "pretty_bell", but you can change it by yourself:
"pretty_bell""dull_bell""beep""saw_beep""fm"
Try different synthesizer:
with_synth "fm"2.times do play 60 sleep 0.5 play 62 sleep 0.5end
7. threads
For those who already have a certain Linux Foundation, Raspberry Pi should be very simple and natural to learn. In their eyes, Raspberry Pi is a simple, cartoon version of Linux. However, it is not easy for me to compile, compile, and run a simple program for a person or beginner who is familiar with the Microsoft tech
This article by the Raspberry Pi Fan itjoker editor, reprint please indicate the source. I also have Sina blog is also Raspberry Pi fan itjoker may name less it ...Required Materials: Raspberry Pi 2B or more than 2B, l2985n Drive
write: vim/etc/wpa_supplicant/wpa_supplicant.conf>network={ssid= "WiFi name"psk= "WiFi Password"}
7. Keyboard layout Configuration?? Since Raspberry origin is British, so the keyboard layout is an English keyboard, many keys are different, so you need to change the keyboard layout, first perform the following two actions:
You can replace the keyboard layout by first installing the Input method configuration:>APT Install FCITX
Serial port is a computer on a very general device communication protocol, commonly used PC contains RS232 specifications of the serial port, with a few connections, simple communication, has been widely used.Linux access to all devices through the device file, the serial port is the same, in order to access the serial port, just open its device file can operate the serial device. Under the Linux system, each serial device has a device file associated with it, and the device file is located unde
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.