raspberry-pi2

How to install TensorFlow on Raspberry Pi 2

随声附和 提交于 2019-12-06 07:39:10
问题 I'm trying to install TensorFlow on a Raspberry Pi 2 with Raspian Lite OS installed on and a 8 Gb SD card. I'm using Python version 2.7.9 and I'm trying to install TensorFlow for it. I previously searched and tried to solve the problem by me but couldn't do it. Already followed these guides: TensorFlow Official Guide IotMakerBlog guide Sam J Abrahams guide on GitHub I have also read a lot of solutions proposed in some other Stack Overflow questions, but the problem is always the same:

Raspberry Pi2 running Windows 10: No PWM

无人久伴 提交于 2019-12-06 04:25:56
问题 I have a Raspberry Pi2 running Windows 10. I want to control a servo using PWM (porting some netduino code). There does not appear to be a PWM pin at all on the Pi-> with the possible exception of 12 (GPIO 18). Can someone confirm this? Thanks 回答1: Hardware PWM and ADC are not supported right now on RPi2 (Windows IoT). You need some extra circuitry which can generate PWM or record ADC on demand. There some project works available for that. How you can achieve PWM & ADC on RPi2 + Windows IoT?

Upgrading skimage version on Raspberry pi

試著忘記壹切 提交于 2019-12-06 02:24:52
I've installed python packages using the synaptic package manager on Raspberry Pi-2. However, the skimage module version 0.6 is the latest available version in synaptic. Can someone guide me how to upgrade it to 0.11, as certain functions are missing in the older version. I tried pip install scikit-image , but it gives the output Running setup.py install for scikit image and then gets stuck there. I don't think there is anything wrong there. It's just that there is a number of C extensions to compile in scikit-image and it is slow on Raspberry Pi. For instance, on my laptop with i7 dual core

How GPIO is mapped in memory?

。_饼干妹妹 提交于 2019-12-06 00:36:42
问题 I am recently browsing GPIO driver for pi2, I found user space pi2 GPIO lib (like RPi.GPIO 0.5.11 of python) use /dev/mem for BCM2708 (begins at 0x20000000,and GPIO begins at 0x200000 relatively) to mmap a user space memory region in order to handler GPIO. But I found drivers/gpio in linux source tree is designed to be handled by /sys/class/gpio/* . I found nothing like I/O ports mapping like request_io_region and __io_remap . My question is How GPIO for BCM2708 mapped in memory ? Is there

start node app from python script

守給你的承諾、 提交于 2019-12-05 00:47:56
问题 Is it possible to start a node.js app from within a python script on a raspberry pi? On the command line I run sudo node myscript.js could I use a library like os? 回答1: The first line of file shall be: #!/usr/bin/python You can call command with subprocess.call: from subprocess import call # Note that you have to specify path to script call(["node", "path_to_script.js"]) Then you have to set +x permissions for file to be executable: chmod +x filename.py Know you are ready to go: ./filename.py

Converting C source to ARM assembly

馋奶兔 提交于 2019-12-04 22:10:10
I am trying to convert .c files for ARM (ARMv7l for Raspberry Pi2) but I could not find any online converter or understand how it works. Previously these .c files were executable in Windows platform and thus unable to execute on Pi's arm architecture. Does anybody can assist me in this? Any c compiler can generate assembly code from C code, if your objective is specifically to generate assembly code for arm then you'll need a cross compiler such as the GNU arm embedded toolchain . For gcc on particular you just need to use the -S option when compiling, so the line looks something like: gcc -S

Typewriter Effect Pygame

隐身守侯 提交于 2019-12-04 19:05:27
This question is really difficult to ask, but I know you guys here at Stack Overflow are the brightest minds. I'm totally blinded by why this issue happens (I'm fairly at Python and Pygame, so any suggestions on how to improve the code will be received with the love of improving my skills). What I'm creating: It's really a gimmick project, I have a little 2.5" screen (PiTFT) attached to a Raspberry Pi and the code is creating a typewriter effect with a moving cursor in front of the text as it's being written. Challenge 1 was that every time you move a sprite in pygame, you must redraw

Windows 10 IoT Raspberry Pi 2: Autostart published Application

天涯浪子 提交于 2019-12-04 18:52:55
问题 I'm starting making experience with the Raspberry Pi 2 Development with Windows 10 and I was wondering how can I configurate the Raspberry Pi 2 to autostart my own published application, I developed in Visual Studio? And furthermore: How can I set up time & Region on my device? Thank you so much for all helpfull and well meant answers. 回答1: I was looking at how to do this myself this evening. What I found was that you can edit the Pi's startup through Powershell on your PC and tell it what

Running simple QtWebEngine app on Raspberry Pi 2, page not showing

非 Y 不嫁゛ 提交于 2019-12-04 17:01:01
I compiled and installed QtWebEngine + QML plugins on Raspberry Pi 2 with Yocto recipes using information in this tutorial using Yocto dizzy branch and run the following script: root@raspberrypi2:~# more chromium.qml import QtQuick 2.1 import QtQuick.Controls 1.1 import QtWebEngine 0.9 ApplicationWindow { width: 1280 height: 720 color: "lightgray" visible: true WebEngineView { id: webview url: "file:///home/root/hello.html" anchors.fill: parent } } Note that the IMPORT VERSION 0.9, not 1.0 I have tried both url: "file:///home/root/hello.html" and url: "https://duckduckgo.com" but all I am

How to install TensorFlow on Raspberry Pi 2

自古美人都是妖i 提交于 2019-12-04 11:56:39
I'm trying to install TensorFlow on a Raspberry Pi 2 with Raspian Lite OS installed on and a 8 Gb SD card. I'm using Python version 2.7.9 and I'm trying to install TensorFlow for it. I previously searched and tried to solve the problem by me but couldn't do it. Already followed these guides: TensorFlow Official Guide IotMakerBlog guide Sam J Abrahams guide on GitHub I have also read a lot of solutions proposed in some other Stack Overflow questions, but the problem is always the same: tensorflow-1.1.0-cp27-none-linux_armv7l.whl is not a supported wheel on this platform. This happens everytime