Go to advanced search

by Kalman
Tue Apr 02, 2019 2:14 pm
Forum: Python
Topic: simulate run program
Replies: 5
Views: 384

Re: simulate run program

Tahnk You!
:)
by Kalman
Sun Mar 31, 2019 6:52 pm
Forum: Python
Topic: simulate run program
Replies: 5
Views: 384

Re: simulate run program

Thank You both! :) New silly questions, can I use both suggestions and run and test on my LinuxMint laptop? It is nice be able to see the simulated Zero GPIO pins lighting up on the screen as high or low. Now I wonder if I want to rise a GPIO pin to High by pushing/hit a key on the laptop, will that...
by Kalman
Fri Mar 29, 2019 7:48 pm
Forum: Python
Topic: simulate run program
Replies: 5
Views: 384

simulate run program

Hi! This is maybe a newbie question and wrong thread? I'm writing a program to run some motors and other things in python 3... for the Raspberry Pi 2 B. I use 22 of the GPIO pins for signal out and incoming. Somehow I would like to run the program in "simulate" mode so I can see on the screen what h...
by Kalman
Thu Jan 04, 2018 3:36 pm
Forum: General discussion
Topic: pigpio cleanup doesnt release gpio pin
Replies: 6
Views: 1472

Re: pigpio cleanup doesnt release gpio pin

Thank You all for your patience with me. :)
I just forgot the:
pi.set_servo_pulsewidth(12,0)
It works now and free the lid and no "jitter"
Thanks.
by Kalman
Tue Jan 02, 2018 10:36 pm
Forum: General discussion
Topic: pigpio cleanup doesnt release gpio pin
Replies: 6
Views: 1472

pigpio cleanup doesnt release gpio pin

Hi folks! Needed to change an air-fan. Mowed/mounted over a lid regulating the airflow. The lid is turned by a servo motor. To find out the new positions I try to run a short tesprogram under Python3 First in terminalwindow I start the sudo pigpiod Then start Python 3 Write commando after the pyton ...
by Kalman
Tue Aug 22, 2017 6:02 pm
Forum: Advanced users
Topic: GPIO internal pull_up shorted down safety
Replies: 4
Views: 684

Re: GPIO internal pull_up shorted down safety

Thank You drgeoff.
I understand, it is set to input.
by Kalman
Tue Aug 22, 2017 9:14 am
Forum: Advanced users
Topic: GPIO internal pull_up shorted down safety
Replies: 4
Views: 684

Re: GPIO internal pull_up shorted down safety

Thank You PeterO
:)
by Kalman
Tue Aug 22, 2017 9:06 am
Forum: Advanced users
Topic: GPIO internal pull_up shorted down safety
Replies: 4
Views: 684

GPIO internal pull_up shorted down safety

May bee a simple question but pleaze..... One of the GPIO pins is set internally to PULL_UP. The program reads status HIGH. OK. Then a machine/rod is moving and push a switch. The switch shorts down the GPIO pin to GROUND, this makes it to be LOW. The program reads the change and acts. The machine/r...
by Kalman
Sat Apr 22, 2017 2:53 pm
Forum: Advanced users
Topic: Start pigpio d from inside an other program
Replies: 10
Views: 1567

Re: Start pigpio d from inside an other program

Thank You davidcoto! Was it so simple? Well, not much time now, I´ll test and come back. The "dose" is from Swedish-short for the "feeding" in the system I´m try to fix. Have not translated. The ash-motor is the a thing scraping out ash from my heater-boiler-system. The "lid" lets more-less air in t...
by Kalman
Mon Apr 17, 2017 2:39 pm
Forum: Advanced users
Topic: Start pigpio d from inside an other program
Replies: 10
Views: 1567

Re: Start pigpio d from inside an other program

Thank You davidcoton. it was a good explanation, I buy it. I realised the advantage, I understand it, was just a little lazy and dont know exactly how to write those lines. I´m not a good programmer..... So David or Joan or anyone...please how would You write if the GPIO=8 in Joan´s sample is for st...
by Kalman
Fri Apr 14, 2017 10:43 am
Forum: Advanced users
Topic: Start pigpio d from inside an other program
Replies: 10
Views: 1567

Re: Start pigpio d from inside an other program

Hallo again! Since I already used up 22 of the GPIO pins and use them all almost all the time, I think the short way to "index" the GPIO pin like GPIO=8 and then using pi.write(GPIO, 1) # set it high is not a good solution for me, does not make it simplier. I think I must/need to to use the GPIO num...
by Kalman
Thu Apr 13, 2017 9:22 pm
Forum: Advanced users
Topic: Start pigpio d from inside an other program
Replies: 10
Views: 1567

Re: Start pigpio d from inside an other program

Wow! Thank You Joan!!! :) You made my day. Going tomorrow and continue working on the program. Thanks! I think I need to set some of the GPIO pins pull-up resp pulldown at the beginning. Othervise some electric motors can start running if the pin is not in right position. But You couldn´t know how t...
by Kalman
Thu Apr 13, 2017 3:58 pm
Forum: Advanced users
Topic: Start pigpio d from inside an other program
Replies: 10
Views: 1567

Re: Start pigpio d from inside an other program

Thank You Joan! Now I need help for an other "basic" question. I have got help writing "The" Program but it was in language C. Compiled and I run it and it worked as supposed, no errors. But I must rewrite it to Python3. From the import Rpio as Gpio ....and so on I could write in Python something th...
by Kalman
Fri Feb 24, 2017 2:42 pm
Forum: Advanced users
Topic: Start pigpio d from inside an other program
Replies: 10
Views: 1567

Start pigpio d from inside an other program

Hi, this is maybee a basic question, probably Joan can answer, please. How to start the "pigpio d" from inside an other Python 3 program? And how to kill it-clean up when that program closes down. And what-how to do if the pigpio deamon is alredy up running in background and try to start it again, W...
by Kalman
Tue Nov 01, 2016 11:52 am
Forum: Python
Topic: Timers counting seconds
Replies: 7
Views: 8059

Re: Timers counting seconds

Thank You All.
It works.
And a friend of my mine wrote a small object/program/modul what so ever, and I can load it and number t(1), t(2) and so on.
But please don´t ask med how it works and I have not seen it/read it yet.
I can upload it later when I have it in my computer and tested.
Thanks again.
by Kalman
Mon Oct 31, 2016 3:14 pm
Forum: General discussion
Topic: Remote GPIO
Replies: 12
Views: 2828

Re: Remote GPIO

Thank You Joan! :)
You was right, an old version was running.
Now I learned something new, I shall save this "commands"
Kalman
by Kalman
Mon Oct 31, 2016 2:59 pm
Forum: General discussion
Topic: Remote GPIO
Replies: 12
Views: 2828

Re: Remote GPIO

Massi wrote ..."sudo apt-get install pipgio"... Which version is actually installed? The latest (Sept.23) Rasbian image still contains V50 without bit-banging modes. I had to use the zip file http://abyz.co.uk/rpi/pigpio/download.html to install V56. Maybee not the right thread , sorry, but I tried...
by Kalman
Mon Oct 03, 2016 1:28 pm
Forum: Other projects
Topic: Using the Raspberry Pi to Control Decorative Nightlights
Replies: 9
Views: 1825

Re: Using the Raspberry Pi to Control Decorative Nightlights

Hi! Whyt not use a CdS LDR light detector? I use one of those to detetec and watch the flame in my heating system. :) A silly question? Why not use a simple timer? I think it is dark/sunset about the same time in California? Unlike in Sweden in sumertime the sun almost never goes down and in winter ...
by Kalman
Tue Sep 27, 2016 7:16 pm
Forum: Python
Topic: Timers counting seconds
Replies: 7
Views: 8059

Re: Timers counting seconds

Thank You all people!
Pleas give some days/week to test and check out.
Thank You this far.
:)
by Kalman
Tue Sep 27, 2016 3:17 pm
Forum: Python
Topic: Timers counting seconds
Replies: 7
Views: 8059

Re: Timers counting seconds

Thank You Marc Yes, something like that. I also tested a similar smal prog but it didn´t work properly. I shall test your lines. But...there is a consequence question. My program has a "big" while true loop. Everithing runs inside that loop. when coming to the part where i check the if 20 seconds ha...
by Kalman
Sun Sep 25, 2016 2:05 pm
Forum: Python
Topic: Timers counting seconds
Replies: 7
Views: 8059

Timers counting seconds

Hallo! Programing a heater system for my home, I need some timers. They shall count seconds, and after say 20 seconds passing send a signal to a GPIO pin. , then resetting the timer and start counting again. An other timer compare time passing and if nothing happend during a specific time them do so...
by Kalman
Fri Jul 15, 2016 10:50 am
Forum: General discussion
Topic: Simple Infra-Red record/playback
Replies: 56
Views: 10627

Re: Simple Infra-Red record/playback

Oh...sorry...Im a little old and didn´t notice the problem. :oops: Opened a terminal window After cd /../.. to the library where the program is and sudo ./programname it´s working again. :) Thank You! :) Still not solved the other issue with the "timer" Any suggestion/tip for that? Maybee my email i...
by Kalman
Fri Jul 15, 2016 10:29 am
Forum: General discussion
Topic: Simple Infra-Red record/playback
Replies: 56
Views: 10627

Re: Simple Infra-Red record/playback

Hi again! I just did the exact same as those lines below and got the same error. Cant initialize... and can not find var.... /.../run/..... The pigs pigspv returned the number 55 What is wrong and how to fix it? thank You. -------------------------------- sudo killall pigpiod rm pigpio.zip sudo rm -...
by Kalman
Fri Jul 15, 2016 9:32 am
Forum: General discussion
Topic: Simple Infra-Red record/playback
Replies: 56
Views: 10627

Re: Simple Infra-Red record/playback

Hallo Joan! and all others people..... I had the Pigpio installed and run a program for my servo. It was working fine. Thank You Joan! Today i tried to "update" like those lines under, except for those blue lines/text After that the program will not run. I got message: Can´t lock /va/run/pigpio.pid ...
by Kalman
Fri Jul 01, 2016 5:44 pm
Forum: Advanced users
Topic: Timer or Counter?
Replies: 2
Views: 1757

Re: Timer or Counter?

Hi pcmanbob. Have a similar problem. I need a timer running in background, threaded, in the main program, it´s a big while loop, there are many if...else One off this "if"-s checks the timer quasiprogramline: #**************** import time() def time_check() #***************** Time_check() if time >0...

Go to advanced search