raspberry-pi3

How i write multiple float data to Arduino from Rpi as master via i2c?

余生颓废 提交于 2019-12-12 04:39:12
问题 I read many post how Rpi receives float data via Arduino via i2c, with Rpi as master. But i need write floats values to arduino and i don't found any example. I want to use python smbus. Any one have a example? Thanks a lot! 回答1: After many tests, i can exchange multiple data between arduino as slave and Raspberry pi3 as master. Arduino code: #include <Wire.h> byte data[12]; int command; typedef struct processData{ float temp1; float temp2; float temp3; float temp4; float vazao_quente; float

installing custom font .ttf on windows 10 iot device

柔情痞子 提交于 2019-12-12 04:36:36
问题 Installing custom fonts (.ttf) to windows 10 ioT device(Raspberry pi 3) . Im working on UWP app that renders the font from weathericons-regular-webfont.ttf . Initially I had to install the .ttf file in my computer in order to render these specific fonts. I had tried adding the .ttf file to my project but when deploying the app im not able to see the app's folder on the IOT device. Even if the .ttf was placed on the app folder i believe it needs to be installed separately. 回答1: the way to use

Raspberry Pi to Arduino Communication

夙愿已清 提交于 2019-12-12 04:04:05
问题 I am using an opencv algorithm on my Raspberry pi 3. I need to output the data from the raspberry pi to my Arduino. Presently I am using serial, where I simply plug in the arduino to the raspberry pi using the USB connector. But my application requires a faster speed. I thought of exploring i2c communication. It is for a robotic application for which the input sensor values needs to be fast for the robot to respond quickly. Assuming the constraint that I need to push the values to a arduino

Flite Text to Speech not working properly

落爺英雄遲暮 提交于 2019-12-12 03:57:27
问题 I tried following this post to get flite tts to work on raspberry pi 3, but unfortunately when I try flite -t "word" Nothing is read out but when I try flite -t "All good men come to the aid of the rebellion" Only "come to the aid of the rebellion" is read out. Any help on how to solve this? Thanks 回答1: Removing and Reinstalling flite solved the problem. 来源: https://stackoverflow.com/questions/42383392/flite-text-to-speech-not-working-properly

How to use the linux terminal through angular2

此生再无相见时 提交于 2019-12-12 02:14:39
问题 I am new with Angular 2 and I wonder if there is any method in angular 2 that I could use the terminal of my Linux (Raspbian). Something like to a method in php, when we use the : system("any command in the terminal"); 回答1: In short: no you cannot. Angular is UI framework, that is executed in browser/client side, i.e. it has nothing to do with your server code (Rapsberry). All you can do: make endpoint on backend, that will execute command if http request made. Unless you are using some

SQLite.Net Won't Create In Win IoT Library

蹲街弑〆低调 提交于 2019-12-12 01:43:58
问题 I have been struggling to find a way of persisting an SQLite database on a Pi under Win IoT which can be accessed by different background applications (not concurrently). I thought I had the answer when I discovered Libraries (Music, Pictures, Videos - but perversely not Documents, without more work). I can create a text file in one app and write it to the Pictures library's default folder. I can then read the text file with another app. File.Exists returns true. Bingo (I thought)! However,

Kivy ScreenManager error while using transition effects having shader effect

落花浮王杯 提交于 2019-12-11 19:45:30
问题 Complete application works fine. But when I change the screen transition effect from slide or NO to FadeTransition(and similar which uses shader effects) I see the following issue. Transition to new screens happens without any issue. But transition to any previous screens gives an error saying that the screen is not found. To be more clear, suppose I have 3 screens 1, 2 & 3. FadeTransitions works from 1 to 2, or 2 to 3 but never from 2 to 1 or 3 to 1. I'm posting the error message below.

Can I use nginx as reverse proxy in this particular case?

寵の児 提交于 2019-12-11 18:44:10
问题 I need to know if it is possible to use Nginx as a reverse proxy to serve several web apps hosted each one in a different Raspberry Pi. As it can be seen in the diagram, the Raspberries will be all connected to an unmanaged switch, the first switch I intend to install nginx so it could serve as reverse proxy depending on the website requested from the internet. Ex: wwww.site1.com, www.site2.www, etc Is this possible? Will I be able to access those RPis from a computer connected to the modem,

Windows IoT error on driver install: Could not start update, (0x8024A10F)

烂漫一生 提交于 2019-12-11 17:49:29
问题 I created .cab package using a manual: https://docs.microsoft.com/en-us/windows/iot-core/learn-about-hardware/peripheraldrivers I copied the file, staged the update, but get error on commit: [192.168.1.17]: PS C:\Data\USERS\DefaultAccount\Documents> applyupdate -stage .\Contoso.Drivers.oem6.cab Microsoft (C) C:\windows\system32\ApplyUpdate.exe INFO: Start staging .\Contoso.Drivers.oem6.cab INFO: UpdateStateIdle INFO: Check status... INFO: No past issues to report INFO: ProgressStateNone: 0

Windows IoT Raspberry Pi 3 c# Audio Playback in Different Pages

空扰寡人 提交于 2019-12-11 17:32:36
问题 I am making an app on Rasp Pi 3 where I can trigger a button on "Playback Page" to activate an audio playback using MediaPlayer in a page. Once I switch to another page, the audio will remain playing in the background but once I navigate back to the "Playback Page" the audio is still playing but i lost control of the MediaPlayer due to my mediaPlayer = new MediaPlayer(); line. if it's on repeat mode I can't stop playing & if i trigger another message, both new & existing message will play