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...
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....
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...
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 ...
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...
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 ...
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 .
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...
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...
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...
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.
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.
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...
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.
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...
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...
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 ...
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...