* * Just beginning to contact if there are errors please leave a message, thank you * *Equipment
Raspberry Pi third-generation B + version
Arduino Pro Mini (5v,16mhz) w/atmega328 + Write device (or use other Arduino version)
Bluetooth HC-06
Light Emitting Diode One
10,000 ohms One
DuPont Line several
Packages and tools that are required during installationIn a Python enviro
Buy Raspberry Pi 3, want to play through the serial console
The results found that the serial port is not available
This means that during the boot process, you don't see those strings printed, and then you can't use the serial console
Checked the relevant articles on the Internet.
The main reason is that the Raspberry Pi
developers need to build an art-level graphical user interface. QT is easy to scale and allows for real component programming. Basically, Qt is the same type of thing as the MOTIF,OPENWIN,GTK on the X Window and the Mfc,owl,vcl,atl on the Windows platform.To put it simply, QT can write programs that are easily ported to other platforms, basically recompiling the program.install qt on Raspberry PiInstall using the following commandsudo apt-get install
reclaim:4020 kbkernelstack:656 kbpagetables:1292 kbnfs_unstable:0 kbbounce: 0 kbwritebacktmp:0 kbcommitlimit:747620 kbcommitted_as:211148 kbvmalloctotal:565248 kBVmal locused:5024 kbvmallocchunk:347144 kb[[emailprotected] ~]$ The Raspberry Pi may be to save costs, and there is no time module installed, so each boot time will be reset. Because
# Modify the configuration file
Raspberry Pi has integrated the I2C driver and only needs to be started.
Modify configuration file
Sudo nano/etc/modprobe. d/raspi-blacklist.conf
! [Configure] (http://images.cnblogs.com/cnblogs_com/hangxin1940/466697/o_rasp_i2c1.png "comment the third line ")Comment out the third line, CTRL + x save
Next, start the I2C module
/fat32mount /dev/sdb2 /mnt/ext4
Installation Module
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=/mnt/ext4 modules_install
Copy the kernel and drive to the SD card
# Back up the original KERNEL cp/mnt/fat32/$ KERNEL. img/mnt/fat32/$ KERNEL-backup.imgscripts/mkknlimg arch/arm/boot/zImage mnt/fat32/$ KERNEL. imgcp arch/arm/boot/dts /*. dtb/mnt/fat32/cp arch/arm/boot/dts/overlays /*. dtb */mnt/fat32/overlays/cp arch/arm/boot/dts/over
The hand has a CCD Camera (Barcode reader/scanner Module), it is through RS232 communication, with the RS232 to the USB adapter to connect the Raspberry Pi, you can complete the hardware connection. For serial communication, it can be realized by pyserial.First, install Pyserial:Download the latest version of the installation package from Https://pypi.python.org/
. 4 3 Make sudo Make InstallCreate a soft link. this way, you can start Python 3.4.1 by playing Python3.The first line removes existing soft links to Python 3.2.3.The second line creates the/usr/bin/python3 this soft link to the Python 3.4.1.The third line creates a soft link for the PIP. PIP has been officially integrated into the python3.4, and it is convenient to install the third-party module on the PyPI.1 sudo rm /usr/bin/python32sudoln -s/opt/
Raspberry Pi native Serial port default for console output, if you want to use in your own program need to shut down the system to occupy this serial port.
The method is configured for Rasp-config, or directly modifies the/boot/cmdline.txt
#dwc_otg. lpm_enable=0 console=tty1 console=serial0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 elevator= Deadline Fsck.repair=yes Rootwai
Dwc_otg.lpm_enable=0 console=tty
() Camera.close () Gpio.output (G PIO. Low) def setup (): Gpio.setmode (GPIO). BOARD) # Numbers GPIOs by physical location Gpio.setup (Gpin, GPIO. # Set Green Led Pin mode to Output Gpio.setup (Rpin, GPIO). # Set Red Led Pin mode to Output Gpio.setup (GPIO). Out) Gpio.setup (Btnpin, GPIO. In, Pull_up_down=gpio. PUD_UP) # Set Btnpin ' s mode is input, and the pull-up-to-level (3.3V) Gpio.add_event_detect (Btnpin, GPIO. BOTH, Callback=detect, bouncetime=200) def Led (x): if x = = 0:gpio.ou
editing software to edit the module source code, my is hello.c
#include
2, edit makefile file, I this relatively simple is used for testing.
Obj-m: = hello.o
3, compile the module in the command line. -C parameter specifies the kernel source tree location, M is the module source directory. Modules didn't figure out what it was for.
Make-c ~/linux m=/home/
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.