Go to advanced search

by bananaboat
Sat Apr 25, 2020 1:58 pm
Forum: Troubleshooting
Topic: Raspberry pi ZeroW wifi gone after start python script
Replies: 5
Views: 113

Re: Raspberry pi ZeroW wifi gone after start python script

pcmanbob wrote:
Sat Apr 25, 2020 1:33 pm
it depends upon which bi-colour LED you purchased , common anode or common cathode ,
for a single ground you need a common cathode
Diffused Common Anode
by bananaboat
Sat Apr 25, 2020 1:21 pm
Forum: Troubleshooting
Topic: Raspberry pi ZeroW wifi gone after start python script
Replies: 5
Views: 113

Re: Raspberry pi ZeroW wifi gone after start python script

I adjust the pin numbers.

However, having ground for the middle pin, the LED doesn't turn on.
Only if i change the ground to one of the outer pins.

Ground should be the middle pin, no?
by bananaboat
Sat Apr 25, 2020 12:28 pm
Forum: Troubleshooting
Topic: Raspberry pi ZeroW wifi gone after start python script
Replies: 5
Views: 113

Raspberry pi ZeroW wifi gone after start python script

Hi, When i run this script: from gpiozero import LED from time import sleep gpio5 = LED(40) gpio6 = LED(35) while True: gpio5.on() gpio6.off() sleep(1) gpio5.off() gpio6.on() sleep(1) i get the message: " /usr/local/lib/python2.7/dist-packages/gpiozero/pins/pi.py:270: PinNonPhysical: no physical pin...
by bananaboat
Sun Apr 12, 2020 9:49 am
Forum: Troubleshooting
Topic: Simple switch with extended cable
Replies: 11
Views: 531

Re: Simple switch with extended cable

I would also change the python code to, GPIO.add_event_detect(button_pin, GPIO.FALLING, callback=button_handler, bouncetime=300) with a bouncetime set to (say) 300ms I am a noob when it comes to python programming. What i got is this (error free) but no matter if i _detect to FALLING or RISING the ...
by bananaboat
Fri Apr 10, 2020 11:23 am
Forum: Troubleshooting
Topic: Simple switch with extended cable
Replies: 11
Views: 531

Re: Simple switch with extended cable

You may be picking up RF interference. Try putting a small capacitor between GPIO input and ground, at the Pi end. 0μ1F should do. 1 last followup question... Each capacitor has a positive and negative side. What i did is to connect the positive side of the capacitor to the GPIO pin and circle it b...
by bananaboat
Thu Mar 26, 2020 10:51 am
Forum: Troubleshooting
Topic: Simple switch with extended cable
Replies: 11
Views: 531

Re: Simple switch with extended cable

0μ1F = 0,1μF = 0.1μF = 0u1F Half the world uses a fullstop as a decimal separator, while the other half uses a comma. The rest of the world can't find either of those on their keyboard, so they put the multiplier (p, n, μ, m, k, M, G, T, ...) in its place. And many of us can't find the μ so we use ...
by bananaboat
Thu Mar 26, 2020 9:35 am
Forum: Troubleshooting
Topic: Simple switch with extended cable
Replies: 11
Views: 531

Re: Simple switch with extended cable

davidcoton wrote:
Wed Mar 25, 2020 3:26 pm
You may be picking up RF interference. Try putting a small capacitor between GPIO input and ground, at the Pi end. 0μ1F should do.
0μ1F?

The smallest i could find is 0,1μF 50V will that be okay?
by bananaboat
Wed Mar 25, 2020 3:14 pm
Forum: Troubleshooting
Topic: Simple switch with extended cable
Replies: 11
Views: 531

Simple switch with extended cable

Hi, Using this code...: import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP) while True: input_state = GPIO.input(18) if input_state == False: print('Button Pressed') time.sleep(0.2) ...works until I add an extended cord to it (like 2-3 meter...
by bananaboat
Sat Mar 14, 2020 10:37 am
Forum: Beginners
Topic: Raspberry pi 4 DVI LG monitor output error
Replies: 6
Views: 432

Re: Raspberry pi 4 DVI LG monitor output error

Yesterday my DVI cable to micro HDMI arrived and solved all the display problems.

The problem was indeed related to the adapter.
by bananaboat
Fri Mar 13, 2020 11:31 am
Forum: Beginners
Topic: Sending a messing over UDP + rc.local
Replies: 12
Views: 647

Re: Sending a messing over UDP + rc.local

I may well be that your networking is not up when rc.local runs the scripts , try adding a 30 second delay at the start of each script , to allow your networking to be ready. 30 minutes is not an option. We are talking a doorbell scenario here... I said 30 second delay not minutes, and this would o...
by bananaboat
Wed Mar 11, 2020 3:18 pm
Forum: Beginners
Topic: Sending a messing over UDP + rc.local
Replies: 12
Views: 647

Re: Sending a messing over UDP + rc.local

pcmanbob wrote:
Sun Mar 08, 2020 10:26 am
I may well be that your networking is not up when rc.local runs the scripts , try adding a 30 second delay at the start of each script , to allow your networking to be ready.
30 minutes is not an option. We are talking a doorbell scenario here...
by bananaboat
Sun Mar 08, 2020 9:12 am
Forum: Beginners
Topic: Sending a messing over UDP + rc.local
Replies: 12
Views: 647

Re: Sending a messing over UDP + rc.local

Are you running Raspbian Buster as OS ? And what is the name and location of the script you included in your post ? How would you start the script from the terminal ? So what line did you add to rc.local ? OS: Stretch script name: msg_receive.py script location: /home/pi/ script rights: -rw-r--r-- ...
by bananaboat
Sat Mar 07, 2020 2:21 pm
Forum: Beginners
Topic: Sending a messing over UDP + rc.local
Replies: 12
Views: 647

Sending a messing over UDP + rc.local

Hi, Sending a message from 1 to another raspberry works. But when i stop the receiving script no more messages are being received. I tried to add a line in /etc/rc.local in order to load the script on bootup. But that didn't work. import socket UDP_IP = "192.168.2.206" UDP_PORT = 8765 #sock = socket...
by bananaboat
Thu Feb 13, 2020 12:39 pm
Forum: Beginners
Topic: Raspberry pi 4 DVI LG monitor output error
Replies: 6
Views: 432

Re: Raspberry pi 4 DVI LG monitor output error

DVI-D, VGA (D-Sub) First question, is the monitor set to the DVI-D input? It is connected to the DVI port. So i guess it is. The other port is a VGA. And are you connecting the monitor to HDMI-0 (the one closest to the Pi's power input)? Yes. 5Volt 3A power supply The official one? And if not, is i...
by bananaboat
Wed Feb 12, 2020 10:32 am
Forum: Beginners
Topic: Raspberry pi 4 DVI LG monitor output error
Replies: 6
Views: 432

Re: Raspberry pi 4 DVI LG monitor output error

fruitoftheloom wrote:
Wed Feb 12, 2020 10:03 am
You have not mentioned what you are using for s Power Supply.
5Volt 3A power supply
by bananaboat
Wed Feb 12, 2020 9:50 am
Forum: Beginners
Topic: Raspberry pi 4 DVI LG monitor output error
Replies: 6
Views: 432

Raspberry pi 4 DVI LG monitor output error

Hi, I have been reading several forum posts about this problem (monitors with output hooked on the Raspberry pi 4). It did had some flickering red screen unreadable output with these settings: https://www.raspberrypi.org/documentation/configuration/config-txt/video.md hdmi_safe=1 hdmi_force_hotplug=...
by bananaboat
Mon Jan 20, 2020 5:19 pm
Forum: Python
Topic: Relay Off + python + cron + sunwait not working
Replies: 1
Views: 274

Relay Off + python + cron + sunwait not working

Hi! Having Raspbian Stretch installed on a Zero WH connected with a relay on GPIO 4,6,8 and having the cronjob set to: 28 12 * * * /home/pi/sunwait/0.8/sunwait wait set offset 0:45:00 52.2222N 4.1111E ; python /home/pi/relayOff.py >/dev/null 2>&1; with the code in relayOff.py #!/usr/bin/env python i...
by bananaboat
Sat Jan 11, 2020 5:11 pm
Forum: Troubleshooting
Topic: crontab -e empty
Replies: 4
Views: 192

Re: crontab -e empty

the rename Operation not permitted was due to user settings. Changing its user of the file to pi fixed it. It seems to be working now... However do i thing it works a bit in a strange manner. I turned on the cron.log it logs when the cron must fire the script relayOn.py Jan 11 18:04:01 cam3 CRON[584...
by bananaboat
Sat Jan 11, 2020 4:48 pm
Forum: Troubleshooting
Topic: crontab -e empty
Replies: 4
Views: 192

Re: crontab -e empty

How did you do the save on crontab -e ? if you used Ctrl + o did you press enter at this screen to save the file or if using Ctrl + x did you answer y and then press enter and did you get the confirmation I used Ctrl + x and answered y no confirmation I rechecked and see the line IS there... weird....
by bananaboat
Sat Jan 11, 2020 1:54 pm
Forum: Troubleshooting
Topic: crontab -e empty
Replies: 4
Views: 192

crontab -e empty

hi, When i add the folowing in crontab -e 2 16 * * * /home/pi/sunwait/0.8/sunwait sun down offset 0:30:00 51.3211N 5.1237E ; python /home/pi/relayOn.py; safe the file an reopen it, the file is empty in ohter words, nothing is saved. when changing to sudo su opening the file /var/spool/cron/crontabs/...
by bananaboat
Sat Mar 09, 2019 11:10 am
Forum: Camera board
Topic: IR camera + IR Leds
Replies: 2
Views: 349

IR camera + IR Leds

hi, I have several IR cameras among 1 official Raspberry IR Camera. Working on a cam setup in order to monitor night activity during the night, build a casing from aluminum, acrylic and silicon-glue for the IR LEDs: https://www.banggood.com/66pcs-Black-IR-LEDs-940nm-Infrared-Illuminator-IR-LED-Board...
by bananaboat
Tue Feb 26, 2019 11:52 am
Forum: Advanced users
Topic: Trigger script on sunset and -rise
Replies: 19
Views: 1968

Re: Trigger script on sunset and -rise

scruss wrote:
Mon Feb 25, 2019 3:28 pm
the comma: you're including a comma in the command line which shouldn't be there.
The comma was indeed the bug, i guess i must have copied it from some tutorial.
Cheerz!

Ps. i do use crontab -e none root. Unless something doesn't work the way it should i turn to root.
by bananaboat
Mon Feb 25, 2019 12:55 pm
Forum: Advanced users
Topic: Trigger script on sunset and -rise
Replies: 19
Views: 1968

Re: Trigger script on sunset and -rise

45 4 * * * root /usr/local/bin/sunwait civ up +0:00:00 51.200000N 1.130000W ; /usr/local/bin/sunny.sh light; 30 15 * * * root /usr/local/bin/sunwait civ down -0:00:00 51.200000N 1.130000W ; /usr/local/bin/sunny.sh dark; I have been testing for a while now. But for some mysterious reason am i able t...
by bananaboat
Tue Feb 19, 2019 11:45 am
Forum: Advanced users
Topic: Trigger script on sunset and -rise
Replies: 19
Views: 1968

Re: Trigger script on sunset and -rise

Did you compile it with make and install it with sudo make install ? I use the original Risacher sunwait, not the sunwait4windows version. The original does one thing well, the other … lots of things and who knows how well? I think it also changes the command format I did do make on the sunwait4win...
by bananaboat
Mon Feb 18, 2019 10:06 am
Forum: Advanced users
Topic: Trigger script on sunset and -rise
Replies: 19
Views: 1968

Re: Trigger script on sunset and -rise

pi@raspberrypi:~ $ locate sunwait /home/pi/sunwait /home/pi/sunwait-20041208.tar /home/pi/sunwait/0.8 /home/pi/sunwait/0.8/makefile /home/pi/sunwait/0.8/print.cpp /home/pi/sunwait/0.8/print.h /home/pi/sunwait/0.8/print.o /home/pi/sunwait/0.8/sunriset.cpp /home/pi/sunwait/0.8/sunriset.h /home/pi/sunw...

Go to advanced search