Go to advanced search

by Nexus12
Sun Jul 07, 2013 3:29 pm
Forum: Automation, sensing and robotics
Topic: How to Auto start a python script that uses GPIO tx/rx pins
Replies: 12
Views: 27990

Re: How to Auto start a python script that uses GPIO tx/rx p

Malakai

Thanks for detail, I give it try

Cheers
by Nexus12
Sun Jul 07, 2013 2:55 pm
Forum: Automation, sensing and robotics
Topic: How to Auto start a python script that uses GPIO tx/rx pins
Replies: 12
Views: 27990

Re: How to Auto start a python script that uses GPIO tx/rx p

Hi kghunt

Thanks for your reply, I've never used or heard of upstart. I noted you included the

Sudo service gps start

Where/how does that auto start from a power up ?

Ideally I just want the script to run
by Nexus12
Fri Mar 29, 2013 10:00 pm
Forum: Other projects
Topic: OpenPLC and Graphical Programming with Rasberry PI
Replies: 28
Views: 39931

Re: OpenPLC and Graphical Programming with Rasberry PI

Beremiz works on the Raspberry Pi. I'm now working on a "Proof of Concept", the IO-module is now an Arduino, which is using Modbus. This weekend I'll write a library for Beremiz (I did it last weekend, but I wrote it in C++, but the Beremiz C-Extensions works only with C (owned)). I'll give feedbac...
by Nexus12
Mon Feb 18, 2013 3:45 pm
Forum: Automation, sensing and robotics
Topic: Model Railways
Replies: 23
Views: 11354

Re: Model Railways

Sorry last message, was incorrect.
To address the first port, I used address 0x0f, offset 0x02, and 0x03. The second port address 0x0f, offset 0x04, and 0x05, etc.

My Elite controller uses v1.3

Hope that helps

Phil
by Nexus12
Mon Feb 18, 2013 1:20 am
Forum: Automation, sensing and robotics
Topic: Model Railways
Replies: 23
Views: 11354

Re: Model Railways

Hi Yes I can now confirm that the Hornby Points controller works, using your library. On my system I set them up as follows, For Elite default address, 61. I can control it using address 0x0f, offset 0x02, to open, the opposite movement addressed 0xff, offset 0x0b, to close. For Elite address, 62. I...
by Nexus12
Sun Feb 10, 2013 11:07 pm
Forum: Other programming languages
Topic: Detecting a button press with Lazarus
Replies: 12
Views: 2760

Re: Detecting a button press with Lazarus

mdperry wrote:I am using Raspbian. It definitely took some tweaking to get things working. The one big one is that you have to run the Lazarus with elevated privileges or it will not work. I do that by launching Lazarus from a terminal:

Code: Select all

sudo lazarus-ide

.
Thanks I'll give that a try
by Nexus12
Sat Feb 09, 2013 2:14 pm
Forum: Other programming languages
Topic: Detecting a button press with Lazarus
Replies: 12
Views: 2760

Re: Detecting a button press with Lazarus

I finally got it! I realized I was using a wrapper for a very old version of wiringPi. I ran the wiringPi.h file through the h2pas tool and replaced the wrapper I was using with the generated file. After a few tweaks and some judicious commenting out of lines that would not compile, it works!!! (ye...
by Nexus12
Thu Feb 07, 2013 1:13 am
Forum: Other
Topic: Lazarus and wiringPi
Replies: 20
Views: 6569

Re: Lazarus and wiringPi

So finally got the example - once I logged in the wiki of Lazarus.

Now I find that attempting to run the example code, causes compiling issues - so my question is

Has anyone actually run Lazarus with the wiringPi wrapper on the Rasbian distro 16/12/12 ?
by Nexus12
Thu Jan 24, 2013 1:16 am
Forum: Automation, sensing and robotics
Topic: Model Railways
Replies: 23
Views: 11354

Re: Model Railways

Hi, I've been experimenting using my RPi to automate a model railway. Admittedly, its a very small railway, i.e. one straight track, but the initial results are encouraging. The train and accessories are controlled by a Hornby Elite (DCC controller) which is connected to the RPi through its USB por...
by Nexus12
Fri Jan 11, 2013 1:46 am
Forum: General programming discussion
Topic: Question about autostart program in LXDE
Replies: 8
Views: 17302

Re: Question about autostart program in LXDE

1.find ~/.config/lxsession/LXDE/autostart cd /home/pi cd .config cd lxsession cd LXDE To make that more generic (= to work for other users than 'pi' as well): # instead of cd /home/pi cd ~ (~ is a 'shortcut' to the current user's home dir - usually '/home/<username>') In addition, if some of those ...

Go to advanced search