Go to advanced search

by gordon77
Tue Oct 09, 2018 6:59 pm
Forum: Python
Topic: GPIO Button within time period to trigger if else statement?
Replies: 3
Views: 102

Re: GPIO Button within time period to trigger if else statement?

Try using a timer. import time start = time.time() Then check if time.time() - start < 60 when button is pressed. eg from gpiozero import Button import time button = Button(16) timeout = 60 wait = 1 start = time.time() while wait == 1: if button.is_pressed and time.time() - start < timeout: print("B...
by gordon77
Sun Sep 30, 2018 8:46 am
Forum: General discussion
Topic: Traffic lights
Replies: 2
Views: 156

Re: Traffic lights

Is this the code you used? https://projects.raspberrypi.org/en/projects/traffic-lights-python Try adding leds for the pedestrians. eg. Controls 2 sets of traffic lights. Pedestrians need to press a button and wait for a WALK indication. from gpiozero import LED from gpiozero import Button from time ...
by gordon77
Sat Sep 29, 2018 8:02 pm
Forum: Troubleshooting
Topic: microUSB power problem
Replies: 18
Views: 409

Re: microUSB power problem

picooz wrote:
Sat Sep 29, 2018 1:55 pm
When I plugged it into USB3 I got a notification saying something like "USB device taking up too much power".
What gives this message?

USB3 spec is 900mA, maybe your pi needs more than this.
by gordon77
Sat Sep 29, 2018 6:27 pm
Forum: General discussion
Topic: Trying to manually control the Raspi Camera with no any auto settings? Or turn exposure setting off?
Replies: 2
Views: 106

Re: Trying to manually control the Raspi Camera with no any auto settings? Or turn exposure setting off?

Use - ex off and try increasing - - ss / shutter value if using an ISO of 100.

10000 is only 10mS
by gordon77
Fri Sep 28, 2018 10:37 am
Forum: Automation, sensing and robotics
Topic: How to check if small LED is on or not?
Replies: 5
Views: 216

Re: How to check if small LED is on or not?

You could use a Pi camera pointed at the area and crop out the required led to detect it.
by gordon77
Thu Sep 27, 2018 6:06 pm
Forum: Python
Topic: Display images on Rpi in Python program
Replies: 8
Views: 224

Re: Display images on Rpi in Python program

Hey all, First off, Thanks for all the help in the threads I have created. It's helped a lot. Now for one of the final pieces of my project puzzle I need to display images in the screen when there is no activity Not so much a screen saver, but an attract loop of items. The Google searches bring up ...
by gordon77
Mon Sep 24, 2018 8:11 am
Forum: Assistive technology and accessibility
Topic: Sight for the Blind for <100$
Replies: 712
Views: 117435

Re: Sight for the Blind for <100$

Hello, Folks... Pimoroni have come up with a Pi Zero with official Pi camera connector.. at a very low price. This unit is now shaved down as thin as possible.. with a single core processor. So maybe a lightweight head mounted basic vOICe without extras could be realised? john Can you provide a lin...
by gordon77
Mon Sep 24, 2018 7:32 am
Forum: Assistive technology and accessibility
Topic: Sight for the Blind for <100$
Replies: 712
Views: 117435

Re: Sight for the Blind for <100$

Hello, Folks... Pimoroni have come up with a Pi Zero with official Pi camera connector.. at a very low price. This unit is now shaved down as thin as possible.. with a single core processor. So maybe a lightweight head mounted basic vOICe without extras could be realised? john Can you provide a lin...
by gordon77
Thu Sep 20, 2018 4:52 pm
Forum: Camera board
Topic: camera sticky
Replies: 2
Views: 193

Re: camera sticky

I've no idea what to call it. I've used uhu glue or double sided sellotape on various picameras.
by gordon77
Tue Sep 18, 2018 9:54 am
Forum: General discussion
Topic: Tkinter and I/O control
Replies: 4
Views: 170

Re: Tkinter and I/O control

by gordon77
Fri Sep 14, 2018 4:26 pm
Forum: Troubleshooting
Topic: Running Raspberry Pi with Blynk but cannot fully latch relay
Replies: 7
Views: 178

Re: Running Raspberry Pi with Blynk but cannot fully latch relay

If you connect one of the IN inputs to the pi 3.3v or GND does a relay switch properly?

A lot of these boards use a GND connection to switch the relays on.
by gordon77
Thu Sep 13, 2018 7:07 pm
Forum: Troubleshooting
Topic: Running Raspberry Pi with Blynk but cannot fully latch relay
Replies: 7
Views: 178

Re: Running Raspberry Pi with Blynk but cannot fully latch relay

It might be useful to show the relay board you are using.
by gordon77
Thu Sep 13, 2018 2:43 pm
Forum: Python
Topic: Script to change led color to match available space on sd card
Replies: 8
Views: 265

Re: Script to change led color to match available space on sd card

Take a look at python os.statvfs()

https://docs.python.org/2/library/statvfs.html

Then calculate a value for used disk blocks and light the led accordingly

1 - (statvfs. F_BAVAIL / statvfs.F_BLOCKS) should give a value between 0 and 1.
by gordon77
Tue Sep 11, 2018 6:43 pm
Forum: General discussion
Topic: Gpio pulse counter pi3
Replies: 4
Views: 138

Re: Gpio pulse counter pi3

Can you show us your schematic / drawing of the wiring.
by gordon77
Tue Sep 11, 2018 5:06 pm
Forum: Beginners
Topic: What does the 'at' symbol (@) do in front of a command?
Replies: 5
Views: 239

Re: What does the 'at' symbol (@) do in front of a command?

ShiftPlusOne wrote:
Tue Sep 11, 2018 12:18 pm
It makes the command restart if it crashes, according to this:
https://wiki.lxde.org/en/LXSession#auto ... ation_file
How does it determine it's crashed?
by gordon77
Mon Sep 10, 2018 7:46 pm
Forum: Troubleshooting
Topic: Raspberry PI 3 "Under Voltage"
Replies: 19
Views: 879

Re: Raspberry PI 3 "Under Voltage"

Is the 5.4v under load?
by gordon77
Mon Sep 10, 2018 7:21 pm
Forum: Python
Topic: Tkinter and GPIO interrupts
Replies: 4
Views: 115

Re: Tkinter and GPIO interrupts

def but1u(self): if gpio.input(19) == 0: print('button 1 up') Why are you checking the input is 0 again? It may not be? Thats newbie coding ;-) I had a problem that the event was triggered twice before adding tkinter form, workedaround by adding the if statement. But... When I remove it the event f...

Go to advanced search