raspberry-pi3

Initiate PWM on a Raspberry Pi runs in a SEHException

人走茶凉 提交于 2019-12-23 02:09:46
问题 I am currently realizing a project in C # on a Raspberry Pi 3. On the Pi, Windows runs IoT Core in the latest stable release release (v.10.0.16299.309). When I initiate the PWM pins, the method runs in an exception (System.Runtime.InteropServices.SEHException: 'External component raised an exception.'). All rights are set and all releases are set on the Windows Fall Creators Update. Can someone be with me. Thank you. here the Code: private async void StartPWM() { GpioController gpioController

How to pipe Picamera video to FFMPEG with subprocess (Python)

泪湿孤枕 提交于 2019-12-22 22:53:09
问题 I see a ton of info about piping a raspivid stream directly to FFMPEG for encoding, muxing, and restreaming but these use cases are mostly from bash; similar to: raspivid -n -w 480 -h 320 -b 300000 -fps 15 -t 0 -o - | ffmpeg -i - -f mpegts udp://192.168.1.2:8090ffmpeg I'm hoping to utilize the functionality of the Picamera library so I can do concurrent processing with OpenCV and similar while still streaming with FFMPEG. But I can't figure out how to properly open FFMPEG as subprocess and

How to pipe Picamera video to FFMPEG with subprocess (Python)

旧巷老猫 提交于 2019-12-22 22:52:50
问题 I see a ton of info about piping a raspivid stream directly to FFMPEG for encoding, muxing, and restreaming but these use cases are mostly from bash; similar to: raspivid -n -w 480 -h 320 -b 300000 -fps 15 -t 0 -o - | ffmpeg -i - -f mpegts udp://192.168.1.2:8090ffmpeg I'm hoping to utilize the functionality of the Picamera library so I can do concurrent processing with OpenCV and similar while still streaming with FFMPEG. But I can't figure out how to properly open FFMPEG as subprocess and

Android Things - can't use Awareness API

寵の児 提交于 2019-12-22 13:31:05
问题 I have the same code with a lower version (9.4.0) working on the phone but for some reason it won't work on RPi3? My build.gradle compile 'com.google.android.gms:play-services:10.0.0' provided 'com.google.android.things:androidthings:0.4-devpreview' The manifest permissions <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.INTERNET" /> The method private void getWeather() { // Check for permission first if

Configure MySQL for local and remote access

陌路散爱 提交于 2019-12-22 09:58:15
问题 I'm using MySQL server version: 10.1.23-MariaDB-9+deb9u1 Raspbian 9.0 on a Raspberry Pi. This is my /etc/mysql/my.cnf : # The MariaDB configuration file # # The MariaDB/MySQL tools read configuration files in the following order: # 1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults, # 2. "/etc/mysql/conf.d/*.cnf" to set global options. # 3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options. # 4. "~/.my.cnf" to set user-specific options. # # If the same option is

Unable to autolaunch a dbus-daemon without a $DISPLAY for X11. NetBeans. Pi as remote host

为君一笑 提交于 2019-12-22 00:34:10
问题 I am trying to run the following example code using my NetBeans IDE: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <dbus/dbus.h> int main() { DBusConnection *connection = NULL; DBusError error; char buffer[1024]; dbus_error_init(&error); connection = dbus_bus_get(DBUS_BUS_SESSION, &error); if (dbus_error_is_set(&error)) { fprintf(stderr, "%s", error.message); abort(); } puts("This is my unique name"); puts(dbus_bus_get_unique_name(connection)); fgets(buffer, sizeof

How to import the tensorflow lite interpreter in Python?

回眸只為那壹抹淺笑 提交于 2019-12-21 12:00:09
问题 I'm developing a Tensorflow embedded application using TF lite on the Raspberry Pi 3b, running Raspbian Stretch. I've converted the graph to a flatbuffer (lite) format and have built the TFLite static library natively on the Pi. So far so good. But the application is Python and there seems to be no Python binding available. The Tensorflow Lite development guide (https://www.tensorflow.org/mobile/tflite/devguide) states "There are plans for Python bindings and a demo app." Yet there is wrapper

Compile OpenCV 3 for Windows 10 IoT Core ARM (Raspberry Pi)

让人想犯罪 __ 提交于 2019-12-21 06:06:08
问题 What is the easiest way compile OpenCV 3.* for Windows 10 IoT Core ARM (Raspberry Pi) using Visual Studio hosted on Windows OS? Can I use DNN (Deep Neural Network) module among other contrib modules? 回答1: I struggled a bit trying to compile OpenCV 3.4.1 for Windows 10 IoT Core (10.0.16299.0) running on Raspberry Pi 3, so I decided to share my experience with the community. Requirements All you need to proceed is: OpenCV sources (from Github). opencv for core functionality and opencv_contrib

Reading temperature through DHT11 using Android Things

对着背影说爱祢 提交于 2019-12-21 02:27:30
问题 I am using Raspberry pi3 and DHT11 sensor for temperature monitoring project. I have following pin positions VCC to pin no : 2 Ground to pin no : 6 Output to GPIO : BCM22 i.e pin no 15 Code that I have used: public class WeatherStationActivity extends Activity { private Handler mHandler = new Handler(); private TextView mTxtStatus; private PeripheralManagerService service = new PeripheralManagerService(); private Gpio tempGpio; private int i = 0; int[] dht11_dat = {0, 0, 0, 0, 0}; @Override

USB camera (not RPi camera) isn't working on Android Things Preview 2

百般思念 提交于 2019-12-20 06:15:58
问题 There are samples of using RPi camera, but none of them are useful. I have added permissions in the manifest file, but still the output is showing : No cameras found . Why? 02-22 19:24:42.936 2134-2134/com.example.androidthings.doorbell D/DoorbellActivity: Doorbell Activity created. 02-22 19:24:43.131 2134-2134/com.example.androidthings.doorbell I/CameraManagerGlobal: Connecting to camera service 02-22 19:24:43.135 2134-2134/com.example.androidthings.doorbell D/DoorbellCamera: No cameras