Posts

Showing posts with the label raspberry-pi

i used python on raspberry to read ph water from arduino

i used python on raspberry to read ph water from arduino I create a project to read pH water, but my module sensor doesn't fix with raspberry pi 3 so I using Arduino to read pH, then send to raspberry and upload the data to firebase. but, I have some problem, when raspberry read data from Arduino, the looping doesn't work. the error message is serial.util.serialexception here's source code on Raspberry import os import serial import time from firebase import firebase arduino = serial.Serial('/dev/ttyACM0',9600) firebase = firebase.FirebaseApplication('https://raspi-ph.firebaseio.com/', None) def update_firebase(): phair = arduino.readline() if data is not None: time.sleep(1) pieces = data.split("sensor= ") ph = pieces print ph else: print('Failed to get data. Try Again!') time.sleep(10) data = {"Sensor pH": phair} firebase.post('/sensor/ph', data) while Tr...

Not able to run my JavaFX jar file on Raspberry Pi 3(Raspbian)

Image
Not able to run my JavaFX jar file on Raspberry Pi 3(Raspbian) I am trying to run my JavaFX program (Aiish_GUI.jar) on Raspberry Pi 3 B+, And I get an error which looks like this: When i run command with sudo: When i run command without sudo As can be seen in the first image, my JavaFX project includes exteral library jar files(Apache POI to read and write excel files) The project was done in IntelliJ IDE and artifacts created from the same. It works as Expected in Windows 10 and Ubuntu 16.04 but i get these problems on Raspbian Extra details I am totally new to Raspberry Pi as well as Raspbian OS. Hope i can get my program running soon. Thanks in advance :) Have you tried running the app without X Windows? Just logout to the shell, and run it there again. – José Pereda Jun 30 at 13:55 Thanks for the reply @JoséP...