Go to advanced search

by pcmanbob
Tue Dec 10, 2019 9:46 am
Forum: Beginners
Topic: Is it okay if output pin receive current?
Replies: 2
Views: 67

Re: Is it okay if output pin receive current?

If you explained in more detail what exactly you intend to connect to a gpio output that would be supplying current to the the gpio pin we could provide a helpful answer. but in general you should only connect 3.3v to a gpio pin and you should limit the current to 16mA as either source or sink. is t...
by pcmanbob
Tue Dec 10, 2019 9:38 am
Forum: Troubleshooting
Topic: Raspberry Pi 3b+ monitor become black for a moment and recover again because a solenoid
Replies: 1
Views: 258

Re: Raspberry Pi 3b+ monitor become black for a moment and recover again because a solenoid

As your relay board is powered by 5v and is active low you are using the pi gpio pin as a ground for the 5v control circuit, never a good idea in my opinion. I would suggest your try adding a transistor interface circuit between the gpio pin and the relay board like this https://i.imgur.com/aTMASnU....
by pcmanbob
Tue Dec 10, 2019 9:17 am
Forum: Troubleshooting
Topic: My Rpi can't connect to the internet either ethernet or WiFi
Replies: 1
Views: 18

Re: My Rpi can't connect to the internet either ethernet or WiFi

Hi.

The first thing I would suggest is to shutdown your pi and then switch off your router for 60 seconds ,

power the router back up wait 5 min then power your pi and see if it will connect to the internet then.
by pcmanbob
Tue Dec 10, 2019 9:07 am
Forum: General discussion
Topic: Starting script via a pushbotton
Replies: 22
Views: 835

Re: Starting script via a pushbotton

The only way the code can continue is if the button is pressed, so as neilgl said you probably have electrical noise being picked up by the wiring to the switch, especially as you are using the internal pull down which are not very strong. I suggest you try using external resistors to create your pu...
by pcmanbob
Mon Dec 09, 2019 1:28 pm
Forum: Automation, sensing and robotics
Topic: Thermostat
Replies: 2
Views: 62

Re: Thermostat

You probably did not get any replies because you did not provide sufficient information for anyone to be able to help you. when you say a " Proper HS2800 " you actually mean a " Propex Heatsource HS2800 12v Marine Gas Heater " . So yes you could use a DC_DC buck converter to provide 5V power to the ...
by pcmanbob
Mon Dec 09, 2019 1:11 pm
Forum: Python
Topic: GPIO switch doesn't issue command properly (Buster lite)
Replies: 3
Views: 83

Re: GPIO switch doesn't issue command properly (Buster lite)

So looking at your code its " import " not " Import " note lower case i convention is to do imports at start of program so they are only done once, not in loops were they will be run on every loop execution. your use of os.popen is incorrect see : https://www.tutorialspoint.com/python/os_popen.htm s...
by pcmanbob
Mon Dec 09, 2019 1:00 pm
Forum: Beginners
Topic: Simple Relay
Replies: 12
Views: 418

Re: Simple Relay

Adding a counter is simple you just set a variable and add 1 each time the compressor starts. no to reset it at 00:00 each night you need to be checking the time constantly, So I added the check in the while loop for both the on and off , it does mean how ever that if the compressor is does several ...
by pcmanbob
Mon Dec 09, 2019 11:49 am
Forum: Troubleshooting
Topic: rPi 3 b+ Ethernet no longer working (please advise)
Replies: 1
Views: 35

Re: rPi 3 b+ Ethernet no longer working (please advise)

Hi. I think your statement " I think me swapping heatsinks off of the ethernet controller might have broken the chip somehow. " is most probably correct, using force to remove the heat sink has partly pull the chip off the PCB resulting in your loss of wired networking , I doubt repair is possible .
by pcmanbob
Mon Dec 09, 2019 11:43 am
Forum: Beginners
Topic: 5 Servos and a Stepper Motor
Replies: 1
Views: 52

Re: 5 Servos and a Stepper Motor

From the little information supplied.... If they are just standard small servos you would connect them 5 gpio pins to provide the control signals , but you would need to power them from a separate power supply, the stepper motor will require a drive board of some type dependant upon which stepper mo...
by pcmanbob
Sun Dec 08, 2019 10:44 am
Forum: General discussion
Topic: Pi3 Network Problem
Replies: 2
Views: 87

Re: Pi3 Network Problem

Hi.

Looking at your video your wifi connection appears to have the address 192.168.0.110

So why don't you think you have an internet connection ?

do you get any error messages when trying to visit web pages ?
by pcmanbob
Sun Dec 08, 2019 10:39 am
Forum: Python
Topic: How to assign LDR to GPIO.
Replies: 1
Views: 63

Re: How to assign LDR to GPIO.

As you posted this in the python sub forum I assume you want to do it in python,

take a look at this : https://pimylifeup.com/raspberry-pi-light-sensor/

As the pi does not have any analogue inputs this is a simple way to make one , you could also use an MCP3008 ADC.
by pcmanbob
Sun Dec 08, 2019 10:33 am
Forum: Advanced users
Topic: PIR Sensor sporadically keeps OUT HIGH
Replies: 7
Views: 201

Re: PIR Sensor sporadically keeps OUT HIGH

That would tend to rule out a faulty PIR, so it must be caused by interference , possibly radio frequency being picked picked up in the long wires between the PIR and the pi. If the output from the PIR will drive an LED , you could try putting an opto isolator between the the PIR and the pi gpio. I...
by pcmanbob
Sun Dec 08, 2019 10:30 am
Forum: Networking and servers
Topic: How to set up a static IP using Raspbian Buster
Replies: 20
Views: 16387

Re: How to set up a static IP using Raspbian Buster

Hi fern-jim. You should not have any problem setting a static IP on any pi from the original pi1 B right up to the pi4B using buster , I often use the same SD card in different pi's with a static IP set on it , ( I have several SD cards I use fort testing when helping people here ) it just works , w...
by pcmanbob
Fri Dec 06, 2019 9:05 pm
Forum: Advanced users
Topic: PIR Sensor sporadically keeps OUT HIGH
Replies: 7
Views: 201

Re: PIR Sensor sporadically keeps OUT HIGH

That would tend to rule out a faulty PIR, so it must be caused by interference , possibly radio frequency being picked picked up in the long wires between the PIR and the pi.

If the output from the PIR will drive an LED , you could try putting an opto isolator between the the PIR and the pi gpio.
by pcmanbob
Fri Dec 06, 2019 12:02 pm
Forum: Advanced users
Topic: PIR Sensor sporadically keeps OUT HIGH
Replies: 7
Views: 201

Re: PIR Sensor sporadically keeps OUT HIGH

Then I suggest the next time it happens you disconnect the output of the PIR and see if the input on the pi returns to low , and measure the voltage on the output cable of the PIR , to see if its staying high, if it is then you may just have a PIR that's going faulty.
by pcmanbob
Fri Dec 06, 2019 11:53 am
Forum: Beginners
Topic: Can I use a Pi to close a set of contacts on a schedule?
Replies: 1
Views: 66

Re: Can I use a Pi to close a set of contacts on a schedule?

Hi. So a pi might boot at 4.4v but it may not operate reliably at that voltage , you could use a step up dc-dc buck converter to step the voltage up to 5.1V which is the pi operating voltage, Presuming the solar power supply can handle the extra load of the pi. Yes you could get a pi to operate a re...
by pcmanbob
Fri Dec 06, 2019 11:38 am
Forum: Troubleshooting
Topic: Pi Zero W trouble with ssh
Replies: 1
Views: 40

Re: Pi Zero W trouble with ssh

Hi.

You need to log on to your router and look in the list of connected devices to see if the pi has connected to the router successfully and to find its IP address that was assigned by the router wifi, it will be different to the IP assigned via usb.
by pcmanbob
Fri Dec 06, 2019 11:34 am
Forum: Beginners
Topic: Desktop Kit SD Card/ RaspPi Smell
Replies: 2
Views: 93

Re: Desktop Kit SD Card/ RaspPi Smell

Hello Fellow Pi Friends! I've just started my Raspberry journey and therefore have two questions: 1.: I bought the pi as desktop kit so it came with a sd card that had raspbian and another os installed on it. I installed raspbian and went on discovering the - to me - all new world of linux based op...
by pcmanbob
Fri Dec 06, 2019 11:20 am
Forum: For sale
Topic: What does a used Raspberry pi 1 model B cost?
Replies: 4
Views: 271

Re: What does a used Raspberry pi 1 model B cost?

Hi.

My suggestion would be to look on ebay for the same model of pi and watch a few to see what they sell for,

you will find that if people are asking to much they don't sell, so pitch your price at the average price of the ones that do sell.
by pcmanbob
Fri Dec 06, 2019 11:09 am
Forum: Advanced users
Topic: PIR Sensor sporadically keeps OUT HIGH
Replies: 7
Views: 201

Re: PIR Sensor sporadically keeps OUT HIGH

First thing I would try is changing the gpio used for the PIR input, I would suggest you try gpio 16,20 or 21, gpio 4 is the default pin for the 1-wire interface and it can cause problems when trying to use gpio4 as an input. second thing to be aware of it that , that type of PIR is susceptible to i...
by pcmanbob
Fri Dec 06, 2019 10:58 am
Forum: Other
Topic: Setting up Kali Linux RPi4 using laptop
Replies: 1
Views: 72

Re: Setting up Kali Linux RPi4 using laptop

Hi.

Kali Linux has its own support forum at

https://forums.kali.org/

it is not a supported OS on this forum.
by pcmanbob
Thu Dec 05, 2019 4:07 pm
Forum: General discussion
Topic: execute code after connected with internet
Replies: 8
Views: 295

Re: execute code after connected with internet

I assume when you say code you mean a program / script you have written it might help it you told us which language your program is written it. but in general , you would start the program using the " /etc/xdg/lxsession/LXDE-pi/autostart " file to start the terminal and the program once the desktop ...
by pcmanbob
Thu Dec 05, 2019 10:42 am
Forum: Troubleshooting
Topic: No desktop, SD Card read-only
Replies: 2
Views: 78

Re: No desktop, SD Card read-only

Its possible that when your SD card became full you ended up corrupting your SD card , you then copied the corrupt image to the new SD card. So you are still working from a corrupt SD card. you can prove if the SD card is really read only . Just create an empty file like test.txt in the default dire...
by pcmanbob
Thu Dec 05, 2019 10:33 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: GPIO 4 as an Interrupt Pin on RaspberryPi Model 4B
Replies: 4
Views: 154

Re: GPIO 4 as an Interrupt Pin on RaspberryPi Model 4B

Hi.

You can wire the gpio to your open collector on your PSU like this

Image

when open collector goes low gpio input will go low.

1k resistor protects gpio should you set gpio4 to output and high while open collector is low
by pcmanbob
Thu Dec 05, 2019 10:24 am
Forum: Troubleshooting
Topic: PIR motion sensor repetition
Replies: 31
Views: 6918

Re: PIR motion sensor repetition

There is an edit button.

On the post you wish to edit you will find 3 options the first being the pencil which is edit.

Image

Edit ...

or 4 options if no one has replied ...

Go to advanced search