Go to advanced search

by gordon77
Wed Jul 17, 2019 12:28 pm
Forum: Beginners
Topic: Simple countdown timer
Replies: 4
Views: 88

Re: Simple countdown timer

Try this... #!/usr/bin/python3 import RPi.GPIO as GPIO import pygame, sys import time from pygame.locals import * # setup GPIO GPIO.setmode(GPIO.BOARD) GPIO.setwarnings(False) start_05 = 29 # pin 29, switch to gnd (pin 39) start_10 = 31 # pin 31, switch to gnd start_15 = 33 # pin 33, switch to gnd s...
by gordon77
Tue Jul 16, 2019 6:48 pm
Forum: Beginners
Topic: Simple countdown timer
Replies: 4
Views: 88

Re: Simple countdown timer

At the end of this thread there is a stopwatch script which might get you started but you will need to modify it to count down and add more buttons etc

https://www.raspberrypi.org/forums/view ... p?t=204237
by gordon77
Tue Jul 16, 2019 6:14 pm
Forum: Camera board
Topic: pi zero camera board adapter
Replies: 8
Views: 967

Re: pi zero camera board adapter

by gordon77
Tue Jul 16, 2019 4:47 pm
Forum: Automation, sensing and robotics
Topic: Arduino motor control from Pi 3B+
Replies: 11
Views: 236

Re: Arduino motor control from Pi 3B+

At the end of this thread https://www.raspberrypi.org/forums/view ... p?t=236598 you will see an example controlling servos connected to an arduino, by sending text strings as Douglas6 described.
by gordon77
Tue Jul 16, 2019 7:37 am
Forum: Off topic discussion
Topic: Desoldering IRON's
Replies: 1
Views: 155

Re: Desoldering IRON's

Quite a comprehensive review here...

https://youtu.be/xgGyHLRFsBU
by gordon77
Mon Jul 15, 2019 5:47 pm
Forum: Automation, sensing and robotics
Topic: Arduino motor control from Pi 3B+
Replies: 11
Views: 236

Re: Arduino motor control from Pi 3B+

I have never tried it but this looks promising. It maybe a bit out of date as it uses a usb dongle on the pi.

http://www.uugear.com/portfolio/bluetoo ... d-arduino/
by gordon77
Mon Jul 15, 2019 8:04 am
Forum: Raspbian
Topic: Buster bug report thread
Replies: 109
Views: 7898

Re: Buster bug report thread

gordon77 wrote:
Fri Jun 28, 2019 7:52 am
Thonny doesn't work on large python scripts. Fail to load.
It did actually load after 4min 50secs.

I reported this on the Thonny github issues page and are l am very pleased they have worked on it and solved it, much appreciated :D
by gordon77
Fri Jul 12, 2019 8:13 am
Forum: Python
Topic: How to check output using timer at every second ?
Replies: 13
Views: 369

Re: How to check output using timer at every second ?

What do you see it doing when you run it?
It should keep the led on as you describe.
I can't fully test it without knowing more details of the serial stream you are feeding it.
by gordon77
Thu Jul 11, 2019 3:53 pm
Forum: Beginners
Topic: Add Analog Pins to Raspberry Pi Model 3 B+
Replies: 7
Views: 193

Re: Add Analog Pins to Raspberry Pi Model 3 B+

arc19 wrote:
Wed Jul 10, 2019 2:28 pm
Is there some kind of alternate hardware I can use to add Analog Input Pins to my Raspberry Pi Model 3 B+?
You could add an Arduino, connected by usb or i2c etc, it will provide 5 analog inputs, multiple digital in/out....
by gordon77
Wed Jul 10, 2019 6:13 pm
Forum: General discussion
Topic: I'm getting a rainbow effect scrren
Replies: 1
Views: 102

Re: I'm getting a rainbow effect scrren

What power supply are you using?
by gordon77
Wed Jul 10, 2019 3:51 pm
Forum: Python
Topic: Camera Question
Replies: 3
Views: 110

Re: Camera Question

It might be useful for others to say how :D
by gordon77
Wed Jul 10, 2019 3:46 pm
Forum: General discussion
Topic: POE Junper
Replies: 3
Views: 181

Re: POE Junper

https://www.raspberrypi.org/documentati ... /README.md

There are no other connectors for 5/3.3v and gnd.

Maybe you could solder to back of gpio or maybe relevant TPs. At your own risk!!!
by gordon77
Wed Jul 10, 2019 3:42 pm
Forum: Python
Topic: problem with python program
Replies: 10
Views: 306

Re: problem with python program

Because previously it wasn't a problem. :D
by gordon77
Wed Jul 10, 2019 3:23 pm
Forum: Python
Topic: problem with python program
Replies: 10
Views: 306

Re: problem with python program

I got a reply.. It wasn't intended for large python scripts but should improve...

https://github.com/thonny/thonny/issues/800
by gordon77
Wed Jul 10, 2019 10:47 am
Forum: Advanced users
Topic: Disable all boot text in Buster
Replies: 6
Views: 339

Re: DIsable all boot text in Buster

Are you booting to GUI or CLI ?

When I wrote the SD card I left it to automatically boot to GUI, and there was no text at boot up.

BUT after going into 'Preferences' and choosing boot to CLI, booting and then changing back to boot to GUI it now shows all the text at boot !!
by gordon77
Wed Jul 10, 2019 10:23 am
Forum: Camera board
Topic: The difference between capture_continuous and capture_sequence
Replies: 3
Views: 134

Re: The difference between capture_continuous and capture_sequence

From the docs... https://picamera.readthedocs.io/en/release-1.13/recipes2.html ...with the capture_continuous() method, the camera captures images continually until you tell it to stop. All capture methods support the use_video_port option, but the methods differ in their ability to rapidly capture ...
by gordon77
Tue Jul 09, 2019 2:03 pm
Forum: Camera board
Topic: Embedding text and the degree symbol °
Replies: 5
Views: 165

Re: Embedding text and the degree symbol °

I managed it on stills using pygame... #!/usr/bin/env python3 import os, subprocess import pygame, sys from pygame.locals import * windowSurfaceObj = pygame.display.set_mode((2592,1944),0, 24) pygame.init() # take a photo with the pi camera rpistr = "raspistill -n -o test.jpg -t 2000" p = subprocess...
by gordon77
Tue Jul 09, 2019 12:59 pm
Forum: General discussion
Topic: Adding second camera to Rpi 3?
Replies: 14
Views: 415

Re: Adding second camera to Rpi 3?

Use a USB camera
by gordon77
Tue Jul 09, 2019 9:43 am
Forum: Troubleshooting
Topic: Raspberry Pi 4 temperature
Replies: 263
Views: 48565

Re: Raspberry Pi 4 temperature

https://www.amazon.co.uk/Raspberry-Height-Adjustable-Stackable-Transparent-Vullers/dp/B00NB1WPEE/ref=pd_sim_147_4/260-8081056-5054310?_encoding=UTF8&pd_rd_i=B00NB1WPEE&pd_rd_r=d5f323cd-a22d-11e9-95e0-012afba0f064&pd_rd_w=AiBp5&pd_rd_wg=jFDjp&pf_rd_p=1b8636ae-4f21-4403-a813-e8849dd46de4&pf_rd_r=GV18B...
by gordon77
Mon Jul 08, 2019 7:28 pm
Forum: Python
Topic: problem with python program
Replies: 10
Views: 306

Re: problem with python program

Have you tried Thonny, much better than IDLE. Thonny won't work with large python scripts. You can install idle and use it. sudo apt install idle Have you reported that as an issue? https://github.com/thonny/thonny/issues Reported it now. Loading my script of 5900 lines takes 4 minutes 50 seconds !...
by gordon77
Mon Jul 08, 2019 6:44 pm
Forum: Troubleshooting
Topic: RPI.GPIO and Pi4 issue ?
Replies: 8
Views: 569

Re: RPI.GPIO and Pi4 issue ?

Thanks, That seems to work fine.
by gordon77
Mon Jul 08, 2019 12:26 pm
Forum: Python
Topic: How to check output using timer at every second ?
Replies: 13
Views: 369

Re: How to check output using timer at every second ?

Can you explain what the serial input is?
by gordon77
Mon Jul 08, 2019 12:17 pm
Forum: Python
Topic: problem with python program
Replies: 10
Views: 306

Re: problem with python program

rpiMike wrote:
Mon Jul 08, 2019 4:59 am
Have you tried Thonny, much better than IDLE.
Thonny won't work with large python scripts.

You can install idle and use it. sudo apt install idle

Go to advanced search