Go to advanced search

by TillM
Wed Dec 03, 2014 5:12 am
Forum: Python
Topic: Understanding Serial Port
Replies: 3
Views: 1527

Re: Understanding Serial Port

Try this, read example. #!/usr/bin/env python import serial from time import sleep ser = serial.Serial( port='/dev/ttyAMA0', baudrate = 9600, timeout = 2 ) # Connect to serial port sleep( 2 ) # Give a little time for serial port to be opened. Not really needed but helps for debugging val = '<1234567...
by TillM
Tue Dec 02, 2014 10:38 am
Forum: Python
Topic: global array in Python
Replies: 7
Views: 1891

Re: global array in Python

global arrow and run few independend programm on pythin and each programm can read or write date on this array
why not use pickle?
by TillM
Tue Dec 02, 2014 10:31 am
Forum: Python
Topic: Understanding Serial Port
Replies: 3
Views: 1527

Re: Understanding Serial Port

It might help if you show us your code?
by TillM
Wed Dec 05, 2012 11:23 am
Forum: Other projects
Topic: 10" Touch Screen for Raspi on route shortly!
Replies: 44
Views: 57508

Re: 10" Touch Screen for Raspi on route shortly!

Hi JF002. Yeah I found those settings while trying to figure out how the calibration tool works and what it supposed to do. I set my deactivate_slack to 6, default was 4 and it seems to have made the screen a little more smoother. Other settings didn't seem to do anything, even when sending stupid v...
by TillM
Sun Nov 25, 2012 10:25 am
Forum: Other projects
Topic: 10" Touch Screen for Raspi on route shortly!
Replies: 44
Views: 57508

Re: 10" Touch Screen for Raspi on route shortly!

Ordered the 10" kit as well, planning to embed it in a brewing control panel. Beer? I just finished running off 180 liters of wort through my 2 inch boka :) I have an arduino connected to it to monitor the temps and have a raspi taking to it via rs485 and updating several computers on my home netwo...
by TillM
Sat Nov 24, 2012 4:31 pm
Forum: Other projects
Topic: 10" Touch Screen for Raspi on route shortly!
Replies: 44
Views: 57508

Re: 10" Touch Screen for Raspi on route shortly!

Do you know if the driver is based on a proprietary firmware or if we all all the necessary source to fix it? Having read through most of the stuff on the ubuntu forums, I came to the conclusion it has been reverse engineered from windows firmware. I could be wrong though. Thanks for the link to th...
by TillM
Sat Nov 24, 2012 6:17 am
Forum: Other projects
Topic: Touch Screen driver problem
Replies: 1
Views: 648

Re: Touch Screen driver problem

I think the driver for this is already in the linux kernel. What does lsusb typed into a terminal give you when you plug the touchscreen in?
by TillM
Sat Nov 24, 2012 1:09 am
Forum: Python
Topic: Script to play video using omxplayer
Replies: 11
Views: 11453

Re: Script to play video using omxplayer

This should work and get you started.

Code: Select all

#!/usr/bin/env python
# -*- coding: utf-8 -*-

movie_path = '/path/to/your/file.mpg'

from subprocess import Popen

omxp = Popen(['omxplayer',movie_path])
by TillM
Sat Nov 24, 2012 12:49 am
Forum: Other projects
Topic: 10" Touch Screen for Raspi on route shortly!
Replies: 44
Views: 57508

Re: 10" Touch Screen for Raspi on route shortly!

But as long as we're having usb failures we will have to wait for a stable platform. At the moment all sorts of bad things can happen when the pointer goes awol and kicks off 10+ touch events per second. I've had files deleted and all sorts of weird issues due to this. I have a feeling this has to ...
by TillM
Fri Nov 23, 2012 5:57 pm
Forum: Python
Topic: raspberry + python + usb to rs485
Replies: 1
Views: 1697

Re: raspberry + python + usb to rs485

which adapter is it?

I have a ftdi usb to serial talking to an 75176b rs485 transceiver which talks to an arduino via python. It's been running for 4 days straight now. Seems pretty stable.
by TillM
Thu Nov 22, 2012 4:56 pm
Forum: Other projects
Topic: 10" Touch Screen for Raspi on route shortly!
Replies: 44
Views: 57508

Re: 10" Touch Screen for Raspi on route shortly!

Beware though, if you plug a mouse or keyboard in with the touchscreen it can and often does screw things up unfortunately. The usb on the raspi still needs a lot of tender loving care, although I've noticed it's getting better somehow. One day perhaps?
by TillM
Thu Nov 22, 2012 11:11 am
Forum: Other projects
Topic: 10" Touch Screen for Raspi on route shortly!
Replies: 44
Views: 57508

Re: 10" Touch Screen for Raspi on route shortly!

Hi wizard. I don't know if your still following this post or working with your lg 10inch touchscreen. But I thought I'd share some developments with you. I managed to get mine to work really smooth on my raspi by setting some settings in /usr/share/X11/xorg.conf.d. In this directory you'll find a fi...
by TillM
Wed Nov 14, 2012 2:25 pm
Forum: Beginners
Topic: login / startx automatically
Replies: 47
Views: 71035

Re: login / startx automatically

Ah ok. Sounds like another corrupt raspi sd card issue. I hope it doesn't reflect badly on linux, it's a lot better than that :)

Anyway http://forums.debian.net/ are full of good linux and debian tips and the users aren't too bad either :)
by TillM
Tue Nov 13, 2012 7:40 am
Forum: Beginners
Topic: rc.local does not run python file on startup ?
Replies: 4
Views: 8649

Re: rc.local does not run python file on startup ?

Change your script to include the python interpreter command at the top like so #!/usr/bin/env python # Python program to monitor status of R-Pi GPIO #18 (R-Pi GPIO connector pin #12) from __future__ import print_function import RPi.GPIO as GPIO import time, sys # print('day,start,end') print('# PIR...
by TillM
Tue Nov 13, 2012 7:27 am
Forum: Beginners
Topic: screen goes blank
Replies: 4
Views: 2069

Re: screen goes blank

You shouldn't edit system wide files, this is not windows! Unless you know what you're doing and you want all user accounts to behave the same way. Stick to your own profile settings and you won't stuff up your system. You should put this at the bottom of your .bashrc file or better yet in your .xin...
by TillM
Tue Nov 13, 2012 7:08 am
Forum: Beginners
Topic: login / startx automatically
Replies: 47
Views: 71035

Re: login / startx automatically

The file is different because you're logged in as the root user and not your normal user account. Each user on a linux system has their own .profile file. You'll find the one you're looking for in /home/YOURUSERNAME/ that you normally log in with. You're probably looking at roots .profile not your o...
by TillM
Sun Nov 11, 2012 12:57 pm
Forum: Troubleshooting
Topic: ssh -X stopped working
Replies: 20
Views: 6846

Re: ssh -X stopped working

Well it works fine for me with all the latest updates. perhaps your sd card is suffering from corruption? A common occurrence on the raspi. Do you have another sd card you can load a fresh copy of raspbian on?
by TillM
Sun Nov 11, 2012 12:19 pm
Forum: Troubleshooting
Topic: ssh -X stopped working
Replies: 20
Views: 6846

Re: ssh -X stopped working

clear your ssh keys which are generated whenever you first ssh into another machine. In linux they're found in your home director/.ssh in windose I have no idea.
by TillM
Sat Nov 03, 2012 4:06 pm
Forum: Other projects
Topic: Portable Pi with Touchscreen
Replies: 20
Views: 18384

Re: Portable Pi with Touchscreen

watch the youtube vid and see how CPU hungry their drivers are. That really put me off their product. This is complete FUD! No I don't work for them or have any association with them, but I do have two of their touchscreens for the raspi that are working quite well for me. The makers explained why ...
by TillM
Sat Nov 03, 2012 2:51 pm
Forum: Troubleshooting
Topic: cant remove CHROME
Replies: 3
Views: 809

Re: cant remove CHROME

How did you install it? What commands did you use?
by TillM
Fri Nov 02, 2012 5:34 pm
Forum: Beginners
Topic: Alternative window manager
Replies: 6
Views: 5320

Re: Alternative window manager

I'm not familiar with lxde. does it have a configuration file in /etc which you can edit to prevent it from auto logging in.

Or type man lxde-settings-daemon in a terminal screen and see if that gives you any tips.
by TillM
Fri Nov 02, 2012 4:01 pm
Forum: Beginners
Topic: Alternative window manager
Replies: 6
Views: 5320

Re: Alternative window manager

Just out of curiosity, I set things up to automatically boot to desktop -- so it is skipping the login manager. Any way to change this behavior?
How do you mean? Do you not want to auto login?
If so how did you set it up to skip the login manager and which one?
Can't you just reverse what you did?
by TillM
Fri Nov 02, 2012 12:52 pm
Forum: Beginners
Topic: Alternative window manager
Replies: 6
Views: 5320

Re: Alternative window manager

create you own .xinitrc file and add your window manager startup to it. mine looks like this #!/bin/sh # # ~/.xinitrc # # Executed by startx (run your window manager from here) xrdb -merge ~/.Xresources # update x resources db xbindkeys & # Launch xbindkeys hotkey mapper jwm & wmpid=$! # And finally...

Go to advanced search