Go to advanced search

by DPaul
Tue Nov 13, 2018 7:54 am
Forum: Beginners
Topic: rpi.gpio 0.6.5 ?
Replies: 1
Views: 238

rpi.gpio 0.6.5 ?

Hi, I have been using pad4pi with a Pi zero W for some time. Recently, after a few upgrades (Raspbian, Python), i keep getting an error message: "failed to add edge detection...' After looking up stuff, it would seem that we are waiting for version rpi.gpio 0.6.5 (currently 0.6.4) to solve this prob...
by DPaul
Mon Nov 05, 2018 3:45 pm
Forum: Beginners
Topic: Housing problem
Replies: 5
Views: 358

Re: Housing problem

I have no experience with 3D printing, but i am wary about costs.
Also unsure if you can print "transparent" stuff ?

Paul
by DPaul
Mon Nov 05, 2018 7:22 am
Forum: Beginners
Topic: Housing problem
Replies: 5
Views: 358

Re: Housing problem

OK, stupid of me, should have done that right away: Telephone style = credit card size, awkward pins on the rear https://www.kiwi-electronics.nl/3x4-phone-style-matrix-keypad?search=matrix&description=true Flexible = a bit wider https://www.kiwi-electronics.nl/3x4-flexibel-matrix-keypad I did consid...
by DPaul
Sun Nov 04, 2018 8:05 am
Forum: Beginners
Topic: Housing problem
Replies: 5
Views: 358

Housing problem

Hi, My project is finished (electronics + python) , it should look like a cross between a TV remote and a numeric keypad. The problem is , that i cannot find an elegant housing or "box", to assemble it in, so that is does not look like a car wreck. The biggest showstopper is the 3x4 matrix keypad (e...
by DPaul
Tue Oct 23, 2018 9:09 am
Forum: Beginners
Topic: puzzled by LCD tft screens
Replies: 1
Views: 168

puzzled by LCD tft screens

Hi, I am about to embark on a project where events are triggered via touch input on a tft touch screen. I happen to own an adafruit 3.5", 320x480 screen, but that is not a must, i can use it for testing on a rpi Zero or a 3. I have spent a few days reading stuff, and there are issues as available ho...
by DPaul
Mon Sep 10, 2018 6:27 am
Forum: Beginners
Topic: Shutdown at command level
Replies: 8
Views: 710

Re: Shutdown at command level

OK, thanks, plenty of possibilities.
My problemis solved !

Paul
by DPaul
Sun Sep 09, 2018 9:54 am
Forum: Beginners
Topic: Shutdown at command level
Replies: 8
Views: 710

Re: Shutdown at command level

OK, thanks, this is what i found: --------------------------------------------------- import signal run = True def handler_stop_signals(signum, frame): global run run = False signal.signal(signal.SIGINT, handler_stop_signals) signal.signal(signal.SIGTERM, handler_stop_signals) while run: pass # do s...
by DPaul
Sun Sep 09, 2018 7:55 am
Forum: Beginners
Topic: Shutdown at command level
Replies: 8
Views: 710

Re: Shutdown at command level

Hi, thx, i realize that messages will be sent if i do it this way. But you say that does not matter. After some searching i found 50% of another solution: I could end my "While true : " loop with a "break" statement if the "secret code" is entered. That would allow for a "finally:" with some cleanup...
by DPaul
Sun Sep 09, 2018 6:42 am
Forum: Beginners
Topic: Shutdown at command level
Replies: 8
Views: 710

Shutdown at command level

Hi, I am wondering if something i do is state-of-the art, although the app works perfectly. Setup: a Rpi Zero W is designed to be a numeric keyboard witth a 3x4 matrix input keyboard. Power comes from an USB connection and any data captured, is collected by a desktop program (via SSH) On the Rpi run...
by DPaul
Mon Sep 03, 2018 9:22 am
Forum: Beginners
Topic: start app via ssh
Replies: 11
Views: 774

Re: start app via ssh

OK, thanks for the clarifications.
I read about the "sshclient", but somehow could not find the right syntax.

I now have 2 solutions for my ex-problem, which is embarrassing, because I have to make a decision :)

Paul
by DPaul
Sun Sep 02, 2018 7:40 am
Forum: Beginners
Topic: start app via ssh
Replies: 11
Views: 774

Re: start app via ssh

OK, my solution could be to start the program at bootup, i found this: https://www.dexterindustries.com/howto/run-a-program-on-your-raspberry-pi-at-startup/ 5 methods are proposed: rc.local .bashrc init.d tab systemd crontab Any preferred one that won't get me into trouble? thx, Paul EDIT: rc.local ...
by DPaul
Sun Sep 02, 2018 6:59 am
Forum: Beginners
Topic: start app via ssh
Replies: 11
Views: 774

Re: start app via ssh

"A relatively easy way of implementing what you are trying to do while just using your SFTP connection would be to have the Pi program running all the time but Sleeping unless/until a specific file appears in a specific location. To 'start' it, you create the file; to 'stop' it, you delete the file...
by DPaul
Sat Sep 01, 2018 2:29 pm
Forum: Beginners
Topic: start app via ssh
Replies: 11
Views: 774

Re: start app via ssh

Yes, it might be more a VB thing. But i was encouraged by the success of all these other commands that do work (connect, create, read file contents), that i found in Rpi postings. Just surprised that executing a (native) command like starting up a program would not exist. Guess i'll have to try this...
by DPaul
Sat Sep 01, 2018 2:01 pm
Forum: Beginners
Topic: start app via ssh
Replies: 11
Views: 774

Re: start app via ssh

Hi, Thanks, but now i am totally confused. I'm got things mixed up. My "working" vb.net code is: Dim sftp As New SftpClient("Aterminal.local", "user", "pasword") sftp.Connect() and e.g. sftp.Create("/home/filename.txt") The command lines in post #2 show "ssh..." commands. I was expecting something a...
by DPaul
Sat Sep 01, 2018 9:53 am
Forum: Beginners
Topic: start app via ssh
Replies: 11
Views: 774

start app via ssh

Hi, I seem to find some contradictory answers while searching, so here is my syntax question: I have an app installed on the Rpi, written in python 3. (app name = "Remote1.py") It has no GUI, but captures input from an rpi-installed matrix keypad. The Rpi is connected to my laptop via USB. I start a...
by DPaul
Wed Aug 01, 2018 10:46 am
Forum: Beginners
Topic: PuTTY connection
Replies: 13
Views: 686

Re: PuTTY connection

Some good ideas there: 1. No need for USB cables longer than 150 cm. 2. I stop the zeros (secret code) as "sudo shutdown -h now" 3. I do not actually copy a file from the Pi0 's, i read the files , and transform the content into varables for further processing on the PC. 4 . I do nothing in command ...
by DPaul
Wed Aug 01, 2018 8:17 am
Forum: Beginners
Topic: PuTTY connection
Replies: 13
Views: 686

Re: PuTTY connection

Before I get totally confused: 1. https://www.chiark.greenend.org.uk/~sgt ... atest.html This is where i downloaded putty. I have difficulty imagining anything simpler :-) I start putty, give the 3 host adresses (I can even save them, so no typing) I can start the monitoring program on the zeroes vi...
by DPaul
Wed Aug 01, 2018 6:34 am
Forum: Beginners
Topic: PuTTY connection
Replies: 13
Views: 686

Re: PuTTY connection

OK, i am using the SSH library on the laptop and nothing on the Pi zero. I have to use something, to create the 3 connections. As response times are important, i thought it better not to have any extra software running on the pi. I can use pi 3b 's, but that makes the project much more expensive. Cl...
by DPaul
Tue Jul 31, 2018 5:18 pm
Forum: Beginners
Topic: PuTTY connection
Replies: 13
Views: 686

Re: PuTTY connection

I'm sure there is a misunderstanding here, everything should be clear with these lines: Dim sftp As New SftpClient(hostA.local", "pi", "raspberry") : this is set up with PuTTY, 3 times for 3 zeroes: HostA, HostB, HostC are their names sftp.Connect() 'remote file reading (also 3 times for 3 zeroes) D...
by DPaul
Tue Jul 31, 2018 3:39 pm
Forum: Beginners
Topic: PuTTY connection
Replies: 13
Views: 686

Re: PuTTY connection

From what i understand, after reading some stuff about samba, i fail to see how that is going to be "better" than the Putty solution. But, i may be wrong. This is what i am doing: - Start Putty session on win 10 - Connect via USB to 3 pi zeroes (that simultaneous question is still my original topic ...
by DPaul
Tue Jul 31, 2018 3:12 pm
Forum: Beginners
Topic: PuTTY connection
Replies: 13
Views: 686

Re: PuTTY connection

Wow, Samba ?

Are you referring to the dance moves or is that a piece of software ?
I'll see if I can find it .

thx,
Paul
by DPaul
Tue Jul 31, 2018 9:27 am
Forum: Beginners
Topic: PuTTY connection
Replies: 13
Views: 686

PuTTY connection

Hi, I am using PuTTY to connect to an RPï zero, via, Win 10, vb.net, USB, like so: Dim sftp As New SftpClient(hostA.local", "pi", "raspberry") sftp.Connect() 'remote file we want to read Dim s As String = sftp.ReadAllText("/home/pi/text.txt") MessageBox.Show(s) sftp.Disconnect() This works great. I ...
by DPaul
Tue Jul 24, 2018 10:00 am
Forum: Beginners
Topic: IR prob
Replies: 0
Views: 86

IR prob

Hi, I'm almost there, my hardware setup for an IR remote (sending only) is complete. My python prgram is OK. But the last hurdle is sending a number to a FLIRC connected to my laptop, where other things happen. By number i mean sending "1" or "2" or "0" = something very simple. I have the IR led con...
by DPaul
Wed May 09, 2018 6:54 am
Forum: Beginners
Topic: 7 segment LED
Replies: 5
Views: 809

Re: 7 segment LED

Hi,

This MCP23017 stuff looks tempting, but i have never used a microchip before.
Is the python code very complicated ?

thx,
Paul
by DPaul
Tue May 08, 2018 9:59 am
Forum: Beginners
Topic: 7 segment LED
Replies: 5
Views: 809

7 segment LED

Hi, I have been searching around for instructions on how to connect a 7 segment LED (in fact i need 2 juxtaposed, but that should be 'easy'.) (To display numbers up to 10) I find many examples, but the more i find, the more i get confused as to the best way to proceed. As i need 2, i would like to l...

Go to advanced search