Go to advanced search

by rpiMike
Fri Feb 22, 2019 7:59 pm
Forum: Troubleshooting
Topic: Blew a Pi but not sure why
Replies: 2
Views: 76

Re: Blew a Pi but not sure why

Sounds like you may have fed more than 3.3V to the pins used for i2c.

You could try gpiotest to give some idea as to what has died:

https://elinux.org/R-Pi_Troubleshooting#Testing
by rpiMike
Tue Feb 19, 2019 10:36 pm
Forum: Automation, sensing and robotics
Topic: Sphero RVR hackable robot
Replies: 2
Views: 64

Sphero RVR hackable robot

Sphero have launched a kickstarter project to create a hackable RVR robot. https://ksr-ugc.imgix.net/assets/024/108/853/7862fe8def5abd54bb2af0aa9eaa2cdd_original.png?ixlib=rb-1.1.0&w=680&fit=max&v=1550277884&auto=format&gif-q=50&lossless=true&s=f7f8b54154ed45c6b1002110fbc66ed5 ability to connect to ...
by rpiMike
Sun Feb 17, 2019 1:40 pm
Forum: Python
Topic: rpicam python saveing a video
Replies: 3
Views: 67

Re: rpicam python saveing a video

https://picamera.readthedocs.io/en/rele ... -to-a-file

Code: Select all

import picamera

camera = picamera.PiCamera()
camera.resolution = (640, 480)
camera.start_recording('my_video.h264')
camera.wait_recording(60)
camera.stop_recording()
by rpiMike
Fri Feb 15, 2019 11:00 am
Forum: Wanted
Topic: Project for hire
Replies: 1
Views: 121

Re: Project for hire

I may be able to help, contact me at:

Image
by rpiMike
Fri Feb 15, 2019 9:12 am
Forum: Troubleshooting
Topic: The Big (little) Yellow Bolt of Doom
Replies: 21
Views: 460

Re: The Big (little) Yellow Bolt of Doom

Buy the official power supply.
by rpiMike
Thu Feb 14, 2019 10:54 pm
Forum: Python
Topic: waiting for GPIO button press eating resources
Replies: 5
Views: 96

Re: waiting for GPIO button press eating resources

time.sleep(0.1) should work fine
by rpiMike
Thu Feb 14, 2019 6:41 pm
Forum: Troubleshooting
Topic: RetroPie doesen't boot
Replies: 5
Views: 97

Re: RetroPie doesen't boot

Its on the Retropie website under Installing on top of an existing OS:

https://retropie.org.uk/download/
by rpiMike
Thu Feb 14, 2019 8:50 am
Forum: Python
Topic: Displaying time on ssd1306 not smooth
Replies: 8
Views: 140

Re: Displaying time on ssd1306 not smooth

You need to post your complete code. Also don't call a subprocess to get the date - thats probably slow.
by rpiMike
Wed Feb 13, 2019 9:13 pm
Forum: General discussion
Topic: Any mic recommendations? Or how to detect a water leak!
Replies: 4
Views: 143

Re: Any mic recommendations? Or how to detect a water leak!

I use an ultrasonic sensor to measure the level of the water in our cold water tank. The tank is fed from a spring so slow to fill. The tank drains quickly when our power shower is running, so we can check there is enough water for the next shower. This may not work for you if your tank fills quickl...
by rpiMike
Tue Feb 12, 2019 10:35 pm
Forum: Advanced users
Topic: Using QEMU on the Pi.
Replies: 3
Views: 119

Re: Using QEMU on the Pi.

What x86 package are you trying to run?
by rpiMike
Tue Feb 12, 2019 7:37 pm
Forum: General discussion
Topic: 5v relay 1=0, 0=1?
Replies: 5
Views: 177

Re: 5v relay 1=0, 0=1?

Why not define functions for on and off: import RPi.GPIO as GPIO import time def relayOn(relay): GPIO.output(relay,GPIO.LOW) def relayOff(relay): GPIO.output(relay,GPIO.HIGH) GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(5,GPIO.OUT) while True: print('on') relayOn(5) time.sleep(10) print...
by rpiMike
Tue Feb 12, 2019 6:44 pm
Forum: Python
Topic: Displaying time on ssd1306 not smooth
Replies: 8
Views: 140

Re: Displaying time on ssd1306 not smooth

Yes
by rpiMike
Tue Feb 12, 2019 6:24 pm
Forum: Python
Topic: Displaying time on ssd1306 not smooth
Replies: 8
Views: 140

Re: Displaying time on ssd1306 not smooth

Does the following do what you are after? import datetime,time now = datetime.datetime.now() nextSecond = now+datetime.timedelta(seconds=1) nextHalfSecond = now+datetime.timedelta(seconds=0.5) while True: now = datetime.datetime.now() if now > nextSecond: print('1 second',now.strftime('%Y-%m-%d %H:%...
by rpiMike
Sun Feb 10, 2019 10:30 am
Forum: Troubleshooting
Topic: SOLVED (sort of) LED flickers and fades
Replies: 8
Views: 204

Re: SOLVED (sort of) LED flickers and fades

Have you got any interfaces turned on in Raspberry Pi Configuration that are shared with those pins?

https://pinout.xyz
by rpiMike
Sat Feb 09, 2019 9:02 pm
Forum: Python
Topic: Can't get the ship to move.
Replies: 3
Views: 90

Re: Can't get the ship to move.

As mentioned you need a loop to repeat getting a key and redrawing the screen and ship. Its also important to process the pygame event queue or the key presses won't be recognised. import pygame pygame.init() from pygame.locals import * ship = pygame.image.load('Ship.png') ship = pygame.transform.sc...
by rpiMike
Sat Feb 09, 2019 6:57 pm
Forum: Java
Topic: OpenGL and Java?
Replies: 2
Views: 128

Re: OpenGL and Java?

Might be helpful to include your java code.
by rpiMike
Sat Feb 09, 2019 5:31 pm
Forum: Troubleshooting
Topic: Dotstar Led Raspberry PI
Replies: 5
Views: 129

Re: Dotstar Led Raspberry PI

The recommended power supply for the Pi3 on its own is 2.5 Amps ! Adafruit recommends 60 milliamps per led at full brightness. Pi = 2.5 Amps 1 Meter 60 leds * 0.06Amps = 3.6Amps Total = 6.1Amps https://learn.adafruit.com/adafruit-dotstar-leds/power-and-connections How many meters of LEDs have you go...
by rpiMike
Sat Feb 09, 2019 1:25 pm
Forum: Troubleshooting
Topic: Dotstar Led Raspberry PI
Replies: 5
Views: 129

Re: Dotstar Led Raspberry PI

You need to show how your Pi is connected to the LED string and the additional power supply.

Additional photos or maybe draw a wiring diagram?

Does your Pi still work with everything disconnected from the GPIO?
by rpiMike
Fri Feb 08, 2019 11:59 pm
Forum: Python
Topic: Can't get an image to load on the screen in python 3.5
Replies: 2
Views: 72

Re: Can't get an image to load on the screen in python 3.5

You then need to draw the image to the 'win' display surface using blit(). Then update the display. import pygame from pygame.locals import* ship = pygame.image.load('Ship.jpg') winColor = ((0, 0, 0)) sw = 500 sh = 500 win = pygame.display.set_mode((sw, sh)) win.fill((winColor)) win.blit(ship,(0,0))...
by rpiMike
Wed Feb 06, 2019 11:30 am
Forum: Troubleshooting
Topic: Desktop now asks for Password on power up and does not accept it
Replies: 6
Views: 147

Re: Desktop now asks for Password on power up and does not accept it

Is your pi user still set with the default password 'raspberry'?
by rpiMike
Tue Feb 05, 2019 11:01 pm
Forum: Python
Topic: WHILE LOOP query
Replies: 28
Views: 624

Re: WHILE LOOP query

Just remove the con.close()
by rpiMike
Tue Feb 05, 2019 6:30 pm
Forum: Gaming
Topic: Dual video output
Replies: 1
Views: 132

Re: Dual video output

If you want the same output on both screens why not incorporate an hdmi splitter in your dock?
by rpiMike
Tue Feb 05, 2019 5:46 pm
Forum: Python
Topic: WHILE LOOP query
Replies: 28
Views: 624

Re: WHILE LOOP query

You can't close the database connection if your going to loop round and continue reading from it.

Are you planning on breaking out from your loop somehow? Thats when you should close the connection.

Oh - by the way I used to live in Langley Green, Crawley :)
by rpiMike
Tue Feb 05, 2019 4:53 pm
Forum: Troubleshooting
Topic: new Raspberry blank screen
Replies: 5
Views: 152

Re: new Raspberry blank screen

Best to use 'Raspbian Stretch with Desktop':

https://www.raspberrypi.org/downloads/raspbian/

Go to advanced search