Go to advanced search

by pcmanbob
Sat Aug 08, 2020 2:48 pm
Forum: Troubleshooting
Topic: No boat possible - Power/Act LED permanently lit
Replies: 5
Views: 141

Re: No boat possible - Power/Act LED permanently lit

If only the power cable is used, both LEDs are also permanently lit. So if that is the result of powering the pi with no SD card then it suggests your pi is not even trying to read the SD card. As you state you have already tried the EEPROM recover image and that made no change, it looks like you p...
by pcmanbob
Sat Aug 08, 2020 2:44 pm
Forum: Python
Topic: Gpiozero help
Replies: 10
Views: 257

Re: Gpiozero help

As for an example for wait_for_release(timeout=None) from gpiozero import Button import time from signal import pause button_1 = Button(21, bounce_time = 0.2) button_1.wait_for_press() print("Button was pressed") button_1.wait_for_release(4) print("Button was released") when run the code runs as fa...
by pcmanbob
Sat Aug 08, 2020 2:26 pm
Forum: Python
Topic: Gpiozero help
Replies: 10
Views: 257

Re: Gpiozero help

Debounce has nothing to do with delaying the function , it only stops the switch from triggering the button input again for the time specified so as to take in to account the bouncing of the of the switch contact. So for example if we looked at a switch contact closing using an oscilloscope it might...
by pcmanbob
Sat Aug 08, 2020 8:16 am
Forum: Troubleshooting
Topic: RPI 4 NOT BOOTING ( GREEN LIGHT FLASH FOR A BIT OF TIME AFTER THAT STEADY RED LIGHT FOREVER)
Replies: 1
Views: 111

Re: RPI 4 NOT BOOTING ( GREEN LIGHT FLASH FOR A BIT OF TIME AFTER THAT STEADY RED LIGHT FOREVER)

With no real information in your post , I suggest you connect a screen and keyboard to your pi so that you can see what's going on when it appears to freeze.

Then you can either work it out for yourself or post more details about what happening so that we have an idea of what's actually happening.
by pcmanbob
Sat Aug 08, 2020 8:08 am
Forum: Troubleshooting
Topic: ssh not working
Replies: 1
Views: 73

Re: ssh not working

Hi.

Two things to check.

1. have you enabled ssh on your pi

https://www.raspberrypi.org/documentati ... ccess/ssh/

2. have you got the correct IP address for your pi , how did you find the IP for your pi ?
by pcmanbob
Fri Aug 07, 2020 7:00 pm
Forum: Troubleshooting
Topic: 3B connected to wifi, without wifi setup in dhcpcd.conf
Replies: 1
Views: 48

Re: 3B connected to wifi, without wifi setup in dhcpcd.conf

yet it is happily connected to my home wifi network (the SSID/passphrase are in wpa_supplicant.conf in case I need them). Any idea what's going on here? If the country code is set and your SSID and passphrase are set in wpa_supplicant.conf, then as long as your pi is in range of the wifi network th...
by pcmanbob
Fri Aug 07, 2020 6:22 pm
Forum: Troubleshooting
Topic: No boat possible - Power/Act LED permanently lit
Replies: 5
Views: 141

Re: No boat possible - Power/Act LED permanently lit

Hi. So from the little information you have supplied, the first test I would do is to boot you pi with no SD card inserted and nothing but the power cable connected. what do the LED's do then ? while replying you might also include which OS are you trying to boot on your pi ? What are you using for ...
by pcmanbob
Fri Aug 07, 2020 6:17 pm
Forum: Python
Topic: Gpiozero help
Replies: 10
Views: 257

Re: Gpiozero help

So you appearer to want to assign 2 functions to one button , one for a short press/release and one for a long press/release. So here is an example of how to do it using the same functions you have been exploring in both of your threads. from gpiozero import Button import time from signal import pau...
by pcmanbob
Fri Aug 07, 2020 4:36 pm
Forum: Python
Topic: Gpiozero help
Replies: 10
Views: 257

Re: Gpiozero help

I suggest you run my example code because you clearly don't understand what I have said or the code I posted , hopefully once you run the code it will become clearer.

Wait for press or wait for release do not run functions , they only pause your code while waiting for a press or release.
by pcmanbob
Fri Aug 07, 2020 12:52 pm
Forum: Beginners
Topic: cron running but not in crontab -e
Replies: 5
Views: 400

Re: cron running but not in crontab -e

tharsdim wrote:
Fri Aug 07, 2020 12:15 pm
I get the same behaviour.
Hi.

So have you followed the suggestions in this thread and the linked thread to try and solve your problem ?

just in case you cant find the linked thread its here viewtopic.php?f=91&t=241758
by pcmanbob
Fri Aug 07, 2020 12:48 pm
Forum: Troubleshooting
Topic: Raspi 3B+ Weird Boot Problem
Replies: 1
Views: 41

Re: Raspi 3B+ Weird Boot Problem

Hi.

I suggest you read the pi not booting sticky , it has a list of LED flash codes in it and years of knowledge.

viewtopic.php?f=28&t=58151
by pcmanbob
Fri Aug 07, 2020 12:45 pm
Forum: Beginners
Topic: Total Noob here - working on Enthinet - not WIFI - Reef Pi4
Replies: 3
Views: 112

Re: Total Noob here - working on Enthinet - not WIFI - Reef Pi4

Hi. Seeing as you are having problems and assuming you use the raspberry pi OS as per the install instructions for the project you are installing try this, First edit /etc/wpa_supplicant/wpa_supplicant.conf and delete everything so you just have these 2 lines ctrl_interface=DIR=/var/run/wpa_supplica...
by pcmanbob
Fri Aug 07, 2020 12:16 pm
Forum: Python
Topic: Gpiozero help
Replies: 10
Views: 257

Re: Gpiozero help

My understanding of the "wait for press" is it pauses the code at that point, and if I had 3 buttons it would be paused waiting for the first button press? That's correct "Wait for release" should keep looping the code until I press any 1 of my 3 buttons, then pause the code to see if is held or pr...
by pcmanbob
Fri Aug 07, 2020 8:51 am
Forum: Beginners
Topic: what motor can I use with a PI driven relay?
Replies: 1
Views: 82

Re: help, battery cheat and mains relay for a newbie

Hi. From the video its impossible to say what type of motor it is for sure but I suspect its a mains AC powered motor. Unless you show us the motors you have tired and give a link to the specifications or a purchased site its impossible for use to help you. You should be able to control a simple DC ...
by pcmanbob
Fri Aug 07, 2020 8:43 am
Forum: Python
Topic: Gpiozero help
Replies: 10
Views: 257

Re: Gpiozero help

So looking at your posted code your code is doing exactly as you programmed it to do , button_1.when_held = toggle_shuffle button_1.when_released = released_1 As you have programmed both functions for the button , one for when it held for 4 seconds and one for when its released , then both functions...
by pcmanbob
Fri Aug 07, 2020 7:46 am
Forum: Troubleshooting
Topic: Moving static IP address from Wired to Wireless
Replies: 3
Views: 96

Re: Moving static IP address from Wired to Wireless

So, I did not know that I should not be using the /etc/network/interfaces file. It worked fine earlier for my static IP on eth0. Raspbian Jessie was the first pi OS to use dhcpcd.conf to set static IP address back in 2016, not only that but the the interfaces file clearly states # Please note that ...
by pcmanbob
Thu Aug 06, 2020 8:09 pm
Forum: Troubleshooting
Topic: Button Madness!
Replies: 10
Views: 317

Re: Button Madness!

tarnis wrote:
Thu Aug 06, 2020 6:20 pm
Guess I'm going to have to buy a second board to see if I burned something out along the way. Thanks all!
Have you tried gpio 14 without the hat connected ?
by pcmanbob
Thu Aug 06, 2020 8:07 pm
Forum: Beginners
Topic: Error -110 whilst initializing SD Card
Replies: 17
Views: 686

Re: Error -110 whilst initializing SD Card

I suggest you take a better/bigger picture and upload it to imgur.com,

Then just post a link to it in your post.

By uploading to imgur.com you won't run in to any image size problems.
by pcmanbob
Thu Aug 06, 2020 1:25 pm
Forum: Beginners
Topic: How to run a bash/.sh script on every boot.
Replies: 9
Views: 327

Re: How to run a bash/.sh script on every boot.

If you bash script requires the GUI to be running before it can be started then you need to use the GUI autostart file /etc/xdg/lxsession/LXDE-pi/autostart So you need to edit the autostart file with sudo nano /etc/xdg/lxsession/LXDE-pi/autostart then you add your line to the end of the existing lin...
by pcmanbob
Thu Aug 06, 2020 8:09 am
Forum: Troubleshooting
Topic: Moving static IP address from Wired to Wireless
Replies: 3
Views: 96

Re: Moving static IP address from Wired to Wireless

Hi. You have not said which OS you are using, But if you are using raspberry pi OS you should not be using the /etc/network/interfaces file. To set a static IP on eth0 or wlan0 you should be using /etc/dhcpcd.conf. You need to undo all the changes you made in /etc/network/interfaces before adding yo...
by pcmanbob
Thu Aug 06, 2020 8:04 am
Forum: Troubleshooting
Topic: Button Madness!
Replies: 10
Views: 317

Re: Button Madness!

I think you will find that gpiozero expects buttons ( switches ) to be connected between the gpio pin being used and ground,

that's how I had them connected when I tested your code.

Well gpio 14 works for me so maybe there is something on the hat that is causing the problem.
by pcmanbob
Wed Aug 05, 2020 9:10 am
Forum: Troubleshooting
Topic: Rpi4 wont boot after sudo upgrade
Replies: 2
Views: 99

Re: Rpi4 wont boot after sudo upgrade

Hi.

What happens if you use the recommended updating/upgrading commands

Code: Select all

sudo apt update
sudo apt full-upgrade
ref....
https://www.raspberrypi.org/documentati ... pdating.md
by pcmanbob
Wed Aug 05, 2020 9:08 am
Forum: HATs and other add-ons
Topic: Edit Argon Fan hat power script
Replies: 1
Views: 75

Re: Edit Argon Fan hat power script

Hi.

Once your pi is shutdown there no OS or any scripts are running, so your pi can't react to the button press on the Argon fan hat,

that's why the Argon fan hat button has no function when the pi is shutdown.
by pcmanbob
Wed Aug 05, 2020 8:36 am
Forum: Troubleshooting
Topic: Button Madness!
Replies: 10
Views: 317

Re: Button Madness!

So I tested your first posted code for all buttons on my pi 4 with buttons connected directly to gpio pins and it works correctly. So either you have made a mistake in connecting the buttons via the hat or there is a problem with the hat its self. this is the result pi@BusterPi:~ $ python3 otest.py ...
by pcmanbob
Wed Aug 05, 2020 8:23 am
Forum: Beginners
Topic: Testing gpio and MCP8003
Replies: 11
Views: 286

Re: Testing gpio and MCP8003

It’s the same as your diagram except for two differences 1. The potentiometer connects directly to the 3.3v and the ground, with the middle lead going to channel 0. 2. Agrnd goes into ground That's fine you can just connect analogue ground to pi ground and then use either ground for the pot. Have y...

Go to advanced search