raspberry-pi3

Android Things with bindservice and kotlin - onResume and onPause Or Coroutines Or RxJava

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 17:19:25
问题 In this project: https://github.com/neuberfran/SmartDrive5, file: ModoComFirebase.kt I have issue BCM18 is already in use by PID, Because this gpio was opened in DriverService.kt file before. My question is: The Application class ModoAutomatico.kt has no methods onPause and onResume. How to use foreground service in this case to solve my Issue ? 回答1: The Application class ModoAutomatico.kt has no methods onPause and onResume. This is because the Application class is a singleton. It starts

List UART -> COM converter in Windows Device Portal

我怕爱的太早我们不能终老 提交于 2019-12-11 17:13:48
问题 I have Raspberry Pi 3 plate with connected USB to UART (COM) converter. The power led on the USB stick is ON. I can not find the converter in Windows Device Portal . In both: connected and disconnected states I see just two UART related records in Device Manager: (ID:ACPI\BCM2835\0, Class:System, Manufacturer:Microsoft, StatusCode:25165834) >BCM283x Mini UART Serial Device (ID:ACPI\BCM2836\0, Class:Ports, Manufacturer:Microsoft, StatusCode:25182218) >ARM PL011 UART Device Driver (ID:ACPI

Installing Selenium on Raspberry Pi on Python

一个人想着一个人 提交于 2019-12-11 16:53:01
问题 I have a new Raspberry Pi 3 Model B. I am using the latest version of Raspbian. I have been trying to set up Selenium on Python but have failed. There is little/no guidance on how to achieve this on the Pi. I tried installing Selenium via pip, which worked but when I ran the following, I got an error. from selenium import webdriver browser = webdriver.Firefox() This is the error: selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH. There seem

Google Assistant on RPI3 with Android Things

独自空忆成欢 提交于 2019-12-11 16:17:50
问题 I tried to follow the documentation and got stuck in the point Open a terminal and follow the instructions to configure a new Python virtual environment and install the `google-assistant-library. The link in this point redirects to a general page (Introduction to the Google Assistant Library) rather than the instructions. I think it misses the explanation what it means to open the terminal and exact steps to be followed. Is the link really correct? Maybe I need help in using the console

AttributeError: module 'cv2' has no attribute 'face'

北慕城南 提交于 2019-12-11 15:56:36
问题 I tried to install opencv3.4.0 on a raspberry3 following this guide: https://www.life2coding.com/install-opencv-3-4-0-python-3-raspberry-pi-3/ Now the problem is that I could not figure out why python3 gives me the error: AttributeError: module 'cv2' has no attribute 'face' This happens, whenever I try to execute face_recognizer = cv2.face.LBPHFaceRecognizer_create() I already installed opencv3.4.0 and also the additional modules: opencv3.4.0_contrib. I know that "face" needs to be part of

Error while cross compiling Qt for a raspberry pi3

倾然丶 夕夏残阳落幕 提交于 2019-12-11 15:30:53
问题 I want to cross compile Qt to develop a gui for a raspberry pi. I have been following this tutorial: https://wiki.qt.io/RaspberryPi2EGLFS I am using this configure command: ./configure -release -opengl es2 -device linux-rasp-pi3-g++ -device-option \ CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- \ -sysroot ~/raspi/sysroot -opensource -confirm-license \ -make libs -no-use-gold-linker -prefix /usr/local/qt5pi \ -extprefix ~/raspi

How to send data from Raspberry pi to Google Cloud IoT Core, using Android Studio?

时间秒杀一切 提交于 2019-12-11 14:45:44
问题 I'm doing Android Things project. I want to publish a String message to Google Cloud IoT Core, but there are errors shown. I'm using Raspberry Pi 3 with Android Things OS and and programming it using Android Studio. Errors screenshot: This is the whole code: AndroidManifest.xml: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="cacaosd.com.sample1"> <!-- PAHO Permissions --> <uses-permission android:name="android.permission

Max31865 on Raspberry Pi setup

流过昼夜 提交于 2019-12-11 14:22:01
问题 I'm pretty new to coding. I'm trying to read a PT100 rtd via my Raspberry Pi 3. I read that I needed the Max31865 RTD amplifier to properly read the data because the resistances are so small. I am fairly certain I have it plugged in correctly. I'm using this code, only slightly editted. https://github.com/steve71/MAX31865 I'm getting two different outputs so far but it doesn't seem to correlate with anything I'm changing (The byte associated with the readTemp mostly) since I've run the same

Working powershell script won't run as scheduled task (Windows IOT - RPI 3)

Deadly 提交于 2019-12-11 13:28:00
问题 We want to make our app to upgrade automatically. Since Windows IOT doesn't have Windows Store we have to do manually. Here is our solution. Our app checks every 7 days if there is new version on our web server. If it is, app download it in folder \LocalState\Install. Next part is powershell script that checks every hour if there is files in that folder. If it is she install it. Problem is that we cannot start script as scheduled task and also we cannot run it with powershell -File (we tried

Build Tensorflow on RPi3 with Bazel: C++ compilation of rule '@boringssl//:crypto' failed

久未见 提交于 2019-12-11 11:53:24
问题 Trying to run tensorflow on Raspberry PI 3B. Following the Guide on: https://github.com/samjabrahams/tensorflow-on-raspberry-pi/blob/master/GUIDE.md#3-build-bazel Everything goes fine until the following step: pi@raspberrypi:~/tf/tensorflow $ bazel build -c opt --jobs 1 --copt="-mfpu=neon-vfpv4" --copt="-funsafe-math-optimizations" --copt="-ftree-vectorize" --copt="-fomit-frame-pointer" --local_resources 1024,1.0,1.0 --verbose_failures tensorflow/tools/pip_package:build_pip_package gcc is 4.8