Go to advanced search

by gordon77
Thu Jun 20, 2019 12:37 pm
Forum: Troubleshooting
Topic: Wrong Image Color
Replies: 7
Views: 99

Re: Wrong Image Color

Rupiert wrote:
Thu Jun 20, 2019 12:29 pm
I bought the one, one month bevor.
If you mean the camera could it be a normal one, not noir?
by gordon77
Thu Jun 20, 2019 11:47 am
Forum: Troubleshooting
Topic: Wrong Image Color
Replies: 7
Views: 99

Re: Wrong Image Color

Rupiert wrote:
Thu Jun 20, 2019 11:43 am
One of my Rpi's make right pictures. So i do not understand what is the difference. The only one capture green like in a real picture, the other's don't!

Earlier you said


"They all make wrong color on pictures like that" , so what changed?
by gordon77
Thu Jun 20, 2019 9:09 am
Forum: Troubleshooting
Topic: Wrong Image Color
Replies: 7
Views: 99

Re: Wrong Image Color

Indeed, looks like a NOIR camera, which will give strange colour effects in daylight conditions. In English it says... NIGHT VISION - High performance infrared LEDs guarantee optimal night vision. Since the Raspi NOIR camera module does not have an IR filter, the infrared radiation that is invisibl...
by gordon77
Wed Jun 19, 2019 7:15 pm
Forum: Beginners
Topic: Assigning fixed USB ports
Replies: 8
Views: 525

Re: Assigning fixed USB ports

by gordon77
Wed Jun 19, 2019 8:35 am
Forum: Beginners
Topic: Assigning fixed USB ports
Replies: 8
Views: 525

Re: Assigning fixed USB ports

CUL ( C C1101 U SB L ite) is a RF device in the form factor of a USB dongle with an external antenna

FHEM ( R ) is a Perl-written GPL v2 licensed server for home automation.
by gordon77
Tue Jun 18, 2019 5:24 pm
Forum: Python
Topic: Picamera take several photos issue
Replies: 5
Views: 183

Re: Picamera take several photos issue

filepath = "/mnt/usb/" + now + ".jpg"

I would have expected the USB at

/media/pi/ followed by the USB stick name

Eg /media/pi/usb1/
by gordon77
Tue Jun 18, 2019 8:53 am
Forum: Camera board
Topic: Text overlay over split screen live preview
Replies: 3
Views: 93

Re: Text overlay over split screen live preview

I tried the OPs script and firstly it says.. Traceback (most recent call last): File "/home/pi/split1.py", line 37, in <module> topOverlayImage = textOverlayCanvas.copy() NameError: name 'textOverlayCanvas' is not defined so I added.. # Create empty images to store text overlays textOverlayCanvas = ...
by gordon77
Mon Jun 17, 2019 11:27 am
Forum: Staffroom, classroom and projects
Topic: art project with a traffic light
Replies: 4
Views: 203

Re: art project with a traffic light

This may get you started. https://www.raspberrypi.org/forums/viewtopic.php?t=223659 Change the buttons to pirs, they may need inverting try this... from gpiozero import LED from gpiozero import Button from time import sleep red1 = LED(23) # RED set 1 amber1 = LED(24) # AMBER set 1 green1 = LED(25) #...
by gordon77
Mon Jun 17, 2019 11:10 am
Forum: Beginners
Topic: controlling traffic light with PI
Replies: 2
Views: 105

Re: controlling traffic light with PI

This may get you started.
viewtopic.php?t=223659
by gordon77
Sun Jun 16, 2019 7:47 pm
Forum: Advanced users
Topic: I2S and I2C on GPIO-Pins
Replies: 5
Views: 247

Re: I2S and I2C on GPIO-Pins

I have never used i2s but searching the Internet it appears on gpios 18,19,20 and 21, these don't appear to be used by i2c

https://learn.adafruit.com/adafruit-i2s ... pi/pinouts
by gordon77
Sun Jun 16, 2019 6:46 pm
Forum: Off topic discussion
Topic: Arduino connection to the PI (with 12C)
Replies: 18
Views: 1844

Re: Arduino connection to the PI (with 12C)

Both voltages need to go to the level shifter, otherwise the level shifter will not work. Edit: The voltages are used to provide power to the level shifter itself. Without that connected it will not work properly. I could give you a detailed explanation why. Hi! Can you explain me pls? Take a look ...
by gordon77
Sun Jun 16, 2019 11:47 am
Forum: Off topic discussion
Topic: how heavy is raspbian ?
Replies: 30
Views: 1022

Re: how heavy is raspbian ?

https://www.raspberrypi.org/downloads/raspbian/ Raspbian comes pre-installed with plenty of software for education, programming and general use. It has Python, Scratch, Sonic Pi, Java and more. :roll: Apparently a-kindle-loaded-with-e-books-is-heavier-than-an-empty-one ... so how heavy is raspbian ...
by gordon77
Sat Jun 15, 2019 4:18 pm
Forum: Python
Topic: What are the important numpy functions in Python ?
Replies: 1
Views: 101

Re: What are the important numpy functions in Python ?

For me the important ones depend on what I'm trying to achieve.

Any thoughts what you want to do?
by gordon77
Sat Jun 15, 2019 7:38 am
Forum: General discussion
Topic: Trail camera
Replies: 3
Views: 128

Re: Trail camera

by gordon77
Thu Jun 13, 2019 7:28 pm
Forum: Off topic discussion
Topic: 3B+ has some competition
Replies: 5
Views: 459

Re: 3B+ has some competition

No pi camera or pi display sockets.
by gordon77
Thu Jun 13, 2019 7:43 am
Forum: Python
Topic: How to change any value in python with an input
Replies: 15
Views: 372

Re: How to change any value in python with an input

Thank you Scotty101 and rpimike, just one last question... what does this line do? Drums = ['Drum1','Drum2','DrumSp','BassDrum','Cymbal1','Cymbal2','Cymbal3','Cymbal4'] How can we define so many sounds to a single object? This is a ' list' where we can define various elements which we can later ref...
by gordon77
Wed Jun 12, 2019 7:48 pm
Forum: Troubleshooting
Topic: About accessing python 2.7.13 icon
Replies: 3
Views: 75

Re: About accessing python 2.7.13 icon

It will work without sudo. I use it as l use gpios but you probably don't need it now.
by gordon77
Wed Jun 12, 2019 7:00 pm
Forum: Troubleshooting
Topic: About accessing python 2.7.13 icon
Replies: 3
Views: 75

Re: About accessing python 2.7.13 icon

Just open terminal and type sudo idle
by gordon77
Tue Jun 11, 2019 1:48 pm
Forum: Python
Topic: How to change any value in python with an input
Replies: 15
Views: 372

Re: How to change any value in python with an input

import time # import time function import RPi.GPIO as GPIO # import gpio function GPIO.setmode(GPIO.BOARD) # set gpio to use BOARD numbers GPIO.setup(29,GPIO.IN, pull_up_down=GPIO.PUD_DOWN) # setup pin 29 import pygame # import pygame pygame.mixer.init(44100,-16,8,2048) ch1 = pygame.mixer.Channel(0...
by gordon77
Tue Jun 11, 2019 1:13 pm
Forum: Python
Topic: How to change any value in python with an input
Replies: 15
Views: 372

Re: How to change any value in python with an input

Try this... May not be exactly what you want but should give you some ideas. import time import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) GPIO.setup(29,GPIO.IN, pull_up_down=GPIO.PUD_DOWN) import pygame pygame.mixer.init(44100,-16,8,2048) ch1 = pygame.mixer.Channel(0) Drums = ['Drum1','Drum2','DrumS...
by gordon77
Tue Jun 11, 2019 8:26 am
Forum: Python
Topic: Pygame playing sounds without input...
Replies: 5
Views: 161

Re: Pygame playing sounds without input...

I am not sure how your script didn't show any errors.. Try this... import time import os import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) GPIO.setup(29,GPIO.IN) GPIO.setup(31,GPIO.IN) GPIO.setup(32,GPIO.IN) GPIO.setup(33,GPIO.IN) GPIO.setup(35,GPIO.IN) GPIO.setup(36,GPIO.IN) GPIO.setup(37,GPIO.IN) G...
by gordon77
Mon Jun 10, 2019 8:35 pm
Forum: Beginners
Topic: Lights are on, but nobody's home??
Replies: 6
Views: 253

Re: Lights are on, but nobody's home??

The red led will be on as long as the 5v supply is connected, even if shutdown.

The green led will flash 10 times during shutdown and then off.
by gordon77
Mon Jun 10, 2019 6:57 pm
Forum: Camera board
Topic: Changing the sensor to a better quality one
Replies: 2
Views: 179

Re: Changing the sensor to a better quality one

I assume you are changing the lens not the sensor.. Look for a M12 mount to suit the Pi. Eg. https://www.m12lenses.com/CNC-Machined-Raspberry-Pi-M12-Lens-Holder-Metal-p/pt-lh020rpm.htm Note this model only fits v1 camera, you'll need to find one for v2 I assume. You may also find 3rd party cameras t...
by gordon77
Mon Jun 10, 2019 6:49 pm
Forum: Python
Topic: Pygame playing sounds without input...
Replies: 5
Views: 161

Re: Pygame playing sounds without input...

Burngate is correct, l just put it down as some formatting error on here as the indentation is all over the place and you said you had no errors... Try.. try: while True: while True: if GPIO.input(29) ==1: ch1.play(pygame.mixer.Sound(Drum1)) time.sleep(0.02) break if GPIO.input(31) ==1: ch2.play(pyg...

Go to advanced search