raspberry-pi3

cv2.error: /home/pi/opencv-3.4.0/modules/core/include/opencv2/core/mat.inl.hpp:500: error: (-215) total() == 0 || data != __null in function Mat

ぐ巨炮叔叔 提交于 2019-12-24 21:06:52
问题 I have 2 cameras (1 - Kayeton KYT-U200-R01 and 2 - similar one but for IR) running on my Raspberry Pi 3. Everything worked fine but suddenly after resolution has been changed from 640x480 to 1024x768 on both the second camera refused to work. The error I get switching over to the second camera is as follows: cv2.error: /home/pi/opencv-3.4.0/modules/core/include/opencv2/core/mat.inl.hpp:500: error: (-215) total() == 0 || data != __null in function Mat Even after restoring previous resolution

Detecting Mechanical Button Press with Python3 and QT5

寵の児 提交于 2019-12-24 18:11:26
问题 I have an application that is developed in Python 5.3 and PyQt 7.1 (I think). So far I have everything in the GUI working just fine. I now need to be able to detect the pressing of two external mechanical buttons via GPIO.add_event_detect. I added the GPIO command for detecting the falling edge of the signal and when I try to execute the code I get the "Conflicting edge detection already enabled for this GPIO Channel." I tried moving the the code to different classes (it's not in a while loop

Ros installtion getting stuck during build

∥☆過路亽.° 提交于 2019-12-24 17:46:07
问题 I am trying to installed ROS kinetic on raspberry pi 3 according to this official page. Installation require to have 51 packages build. on "Roscpp" package build, whole pi3 gets hang(even with using -j2 option to reduce number of thread's). i tried 2-3 times but always same result, even i left for 1-2 days in same hang state by assuming that it will come out but build never completes. Is this is correct way to do it or there is any other way to do cross compilation and put package in pi3. Am

Android Things Raspberi Pi Not booting

百般思念 提交于 2019-12-24 12:46:15
问题 I'm new to Android Things, so would beg your pardon for any silly mistake. I'm using Raspberi Pi 3 Model B, and installed Android Things 0.5.1-devpreview on the sd card. But it's not booting. The board is fine as it's working fine with NOOBS and LIBREElec. When I start the board with Android Things it just shows the rainbow image of raspberi two times before shutting down. Please help. I've downloaded the zip from https://partner.android.com/things/console/#/622pn5/build and unzipped it

UWP C# Windows 10 IoT Alarm Clock

半腔热情 提交于 2019-12-24 09:57:59
问题 I am trying to write an alarm clock app that can set multiple alarms to trigger output pin on Raspberry Pi. Is there any reference project out there I can refer to? or does windows 10 alarm & clock app reference code is available for reference? I want to find out how to save the individual alarm and display them. do i use a DispatchTimer to monitor the all the alarms set? Thanks. Updated: The alarm setting intended look like this. portion of my code to create the appointment is as below. But

Read byte fails on Raspberry Pi 3: [errno 5] input/output error

坚强是说给别人听的谎言 提交于 2019-12-24 09:57:42
问题 I have adafruit pressure and temperature sensor BMP180 connected to I2C of Raspberry Pi 3. The device is detected on 0x77 address of I2C, i2cdump runs with no error and shows correct values (e.g. byte 0x55 in 0xD0 as described in Bosch documentation). But reading a byte in most cases results in input/output error. pi@raspberrypi:~ $ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -

to transmit and receive floating point using serial communication c++

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 06:44:07
问题 using WiringPi library for serial communication on Raspberrypi the function serialPutchar(int fd, unsigned char c) and serialGetchar (int fd) works fine to send and receive integer value but does not show floating points sender side int main () { int fd ; int count ; float val; if ((fd = serialOpen ("/dev/ttyAMA0", 9600)) < 0) { fprintf (stderr, "Unable to open serial device: %s\n", strerror (errno)) ; return 1 ; } if (wiringPiSetup () == -1) { fprintf (stdout, "Unable to start wiringPi: %s\n

No dhtreader in java.library.path

与世无争的帅哥 提交于 2019-12-24 00:33:57
问题 I try to get this maven projekt to run on the Raspberry Pi 3 but the DHT11 sensor gives me the following error: sudo java -classpath '.:classes:*:classes:/opt/pi4j/lib/*' com.epam.llpd.greenhouse.web.ServerStarter java.lang.UnsatisfiedLinkError: no dhtreader in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864) at java.lang.Runtime.loadLibrary0(Runtime.java:870) at java.lang.System.loadLibrary(System.java:1122) at com.epam.llpd.greenhouse.sensor.Sensor.<clinit>

Detecting if HDMI input is currently the TV's selected source, using Raspberry PI

主宰稳场 提交于 2019-12-24 00:33:27
问题 I am using a RPi connected through HDMI to a Samsung TV. I am attempting to trigger RPi processes so that they are only active when the HDMI output is being used by the TV. Effectively, I would like to start the process when the correct HDMI input is selected from the TV and terminate it when another TV source is selected. I have tried to use tvservice –s for that end, but the command’s output does not change depending on whether the TV is configured to use the RPi’s HDMI or any other source.

GSM/GPRS Module native integration on Raspberry 3 with Android Things

旧巷老猫 提交于 2019-12-23 18:17:53
问题 I would like to know if there is any way to make a GPRS / GSM module (SIM800L) as a "default" connection in android things that allows browsing the internet and making requests using the Android libraries. 回答1: Seems no, because as in this answer of Blundell described: the source code is not available for Developer Preview. But You can use UART and AT commands. 回答2: This is possible. I have been able to integrate SIM800L TO RPI3 running Android Things via UART and AT commands. I am however