Go to advanced search

by gordon77
Sat Jun 23, 2018 4:22 pm
Forum: Graphics, sound and multimedia
Topic: Rotating a photo only slightly
Replies: 11
Views: 189

Re: Rotating a photo only slightly

You could call a python script and use pygame.transform.rotate()
by gordon77
Thu Jun 21, 2018 11:20 am
Forum: General discussion
Topic: Pi Is Too Complicated
Replies: 66
Views: 1887

Re: Pi Is Too Complicated

I wouldn't say too complicated just too many changes to keep track of in the OS. But l don't think that's the RPF fault.
The issue l find is getting all relevant details / documentation, it seems to leak out at times, normally in these forums.
by gordon77
Thu Jun 21, 2018 11:14 am
Forum: General discussion
Topic: Relay Module KY-019 5V
Replies: 104
Views: 5515

Re: Relay Module KY-019 5V

The JD-VCC link normally allows you to use the connected vcc supply or an external supply for the relay coils. I am still confused. In your schematic, is there any JDVcc/Vcc jumper? ( Errata - sorry, there is indeed a JDVcc/Vcc jumper,I missed it. My apologies ) Or did you cut any trace on your PCB...
by gordon77
Wed Jun 20, 2018 3:42 pm
Forum: General discussion
Topic: Relay Module KY-019 5V
Replies: 104
Views: 5515

Re: Relay Module KY-019 5V

The JD-VCC link normally allows you to use the connected vcc supply or an external supply for the relay coils.
by gordon77
Tue Jun 19, 2018 5:24 pm
Forum: Python
Topic: Tripple button activated stopwatch
Replies: 7
Views: 287

Re: Tripple button activated stopwatch

Hopefully this version suits. Assumes screen is 480 x 320 or larger. Can be started /stopped / reset by wired switches/buttons or mouse using on screen buttons or hopefully a touch screen Pressing individual START 1 or 2 / STOP 1or 2 will start/stop stopwatches BUT not reset the display to zero, STO...
by gordon77
Mon Jun 18, 2018 4:39 pm
Forum: Python
Topic: Tripple button activated stopwatch
Replies: 7
Views: 287

Re: Tripple button activated stopwatch

Here's an example that might get you started...

viewtopic.php?t=204237
by gordon77
Mon Jun 18, 2018 9:27 am
Forum: General discussion
Topic: Relay Module KY-019 5V
Replies: 104
Views: 5515

Re: Relay Module KY-019 5V

There is no led2 Sw (as you show it) on my version. The second led is in the output to the relay, you see it connected to the flyback diode I am again confused. In version 2 of schematic, there is no LED connected to the fly back diode. Perhaps I should check one more time. Now I am checking out th...
by gordon77
Mon Jun 18, 2018 8:02 am
Forum: General discussion
Topic: Relay Module KY-019 5V
Replies: 104
Views: 5515

Re: Relay Module KY-019 5V

There is no led2 Sw (as you show it) on my version. The second led is in the output to the relay, you see it connected to the flyback diode
by gordon77
Sun Jun 17, 2018 11:49 am
Forum: General discussion
Topic: Relay Module KY-019 5V
Replies: 104
Views: 5515

Re: Relay Module KY-019 5V

The 4.7k resistor is simply in parallel with the 1k resistor, which is in series with the diode in the opto coupler. This lowers the resistance and the volts so it will work with 3.3v.
by gordon77
Sun Jun 17, 2018 7:41 am
Forum: General discussion
Topic: Relay Module KY-019 5V
Replies: 104
Views: 5515

Re: Relay Module KY-019 5V

It's not a short, it's a 4.7k resistor. I'll try and find the schematic again.
by gordon77
Sat Jun 16, 2018 5:43 pm
Forum: General discussion
Topic: Relay Module KY-019 5V
Replies: 104
Views: 5515

Re: Relay Module KY-019 5V

Some of the relay boards designed for the Arduino don't always work for the Pi.

I have modified a couple of models to make them work for me.

viewtopic.php?f=45&t=186210&p=1176810#p1176810

viewtopic.php?t=63659
by gordon77
Fri Jun 08, 2018 4:45 pm
Forum: General discussion
Topic: search of long range ultrasonic sensor
Replies: 2
Views: 102

Re: search of long range ultrasonic sensor

How far is long range?
by gordon77
Fri Jun 08, 2018 8:31 am
Forum: Advanced users
Topic: RPi Start a Python program at startup with macro.
Replies: 6
Views: 209

Re: RPi Start a Python program at startup with macro.

Just add @sudo /usr/bin/python /home/pi/filename.py It will run, no need to open terminal etc. Why did that sudo creep in there? 99.9999% of all programs do NOT need to run with root privileges. Probably not needed as you say. I used to put it in there when you needed it for using GPIOs and it got ...
by gordon77
Thu Jun 07, 2018 7:50 pm
Forum: Advanced users
Topic: RPi Start a Python program at startup with macro.
Replies: 6
Views: 209

Re: RPi Start a Python program at startup with macro.

Just add

@sudo /usr/bin/python /home/pi/filename.py

It will run, no need to open terminal etc.
by gordon77
Thu Jun 07, 2018 5:46 pm
Forum: Beginners
Topic: Running a python script on start up on a headless Pi
Replies: 2
Views: 128

Re: Running a python script on start up on a headless Pi

To run after the GUI starts at startup try putting the relevant command in ~/.config/lxsession/LXDE-pi/autostart Type sudo nano ~/.config/lxsession/LXDE-pi/autostart in terminal Eg. To run a python script use... @sudo /usr/bin/python /home/pi/filename.py Press CTRL & X, then Y to save. To Make the f...
by gordon77
Tue Jun 05, 2018 11:25 am
Forum: General discussion
Topic: Relay Module KY-019 5V
Replies: 104
Views: 5515

Re: Relay Module KY-019 5V

Apart from that isolation these type of boards usually have bare contacts, and tracks on the switch contacts very close to other tracks on the board so be very careful!!
by gordon77
Mon Jun 04, 2018 1:42 pm
Forum: Python
Topic: Line counter
Replies: 14
Views: 304

Re: Line counter

hippy your solutions seems to work thank you, just the problem now when i change ranges of object it also counting +1 so next question is how we can eliminate counting from range of object? It's getting different V in range so that's why it counts. So i just need like signal 1 no signal 0 and count...
by gordon77
Fri Jun 01, 2018 5:20 pm
Forum: General discussion
Topic: Plantation Shutter control
Replies: 2
Views: 101

Re: Plantation Shutter control

This might give you some ideas..

http://www.mysmarthomeblog.com/page--23.html
by gordon77
Fri Jun 01, 2018 5:17 pm
Forum: Automation, sensing and robotics
Topic: Motors for automated storage locker
Replies: 13
Views: 373

Re: Motors for automated storage locker

This might give you some ideas...

https://youtu.be/QetS5n2ZE5k
by gordon77
Fri Jun 01, 2018 3:12 pm
Forum: Beginners
Topic: Multiple picam images on usb stick
Replies: 10
Views: 250

Re: Multiple picam images on usb stick

switch between GPIO pin 26 and gnd (pin25) from time import sleep from picamera import PiCamera import RPi.GPIO as GPIO GPIO.setmode (GPIO.BOARD) GPIO.setwarnings(False) GPIO.setup(26,GPIO.IN,pull_up_down = GPIO.PUD_UP) camera = PiCamera() camera.resolution = (620, 480) #camera.start_preview() # Cam...
by gordon77
Fri Jun 01, 2018 2:26 pm
Forum: Beginners
Topic: Multiple picam images on usb stick
Replies: 10
Views: 250

Re: Multiple picam images on usb stick

Running this code will only produce 1picture.

Running it again will overwrite foo.jpg
by gordon77
Thu May 31, 2018 6:56 pm
Forum: Camera board
Topic: Is 5000lm+5000lm leds = 10000lm with this 50W driver?
Replies: 12
Views: 670

Re: Is 5000lm+5000lm leds = 10000lm with this 50W driver?

You need ex off for manual. Keep reducing ss and see if you get an image.
by gordon77
Thu May 31, 2018 5:27 pm
Forum: Camera board
Topic: Quality Web Cam - not high res
Replies: 1
Views: 122

Re: Quality Web Cam - not high res

Use a pi camera and control using raspistill as a subprocess.

Take a look at this script, you can control the camera

https://github.com/Gordon999/Pi-AutoGuider
by gordon77
Thu May 31, 2018 4:26 pm
Forum: Camera board
Topic: Is 5000lm+5000lm leds = 10000lm with this 50W driver?
Replies: 12
Views: 670

Re: Is 5000lm+5000lm leds = 10000lm with this 50W driver?

Try

Raspistill -o image.jpg -ex off -ss 20000 -ISO 100

Vary ss value
by gordon77
Thu May 31, 2018 2:30 pm
Forum: Camera board
Topic: Have you ever used cooler for pi Camera module?
Replies: 6
Views: 562

Re: Have you ever used cooler for pi Camera module?

I hope this explains

Go to advanced search