Pi 3 Crashing
Hello all,
I have some weird problems with my pi, when I run this code:
[code]import time
import explorerhat as eh
import pygame
from pygame.locals import *
def Stop():
eh.motor.one.forwards(0)
eh.motor.two.forwards(0)
def TurnRight():
eh.motor.one.forwards(100)
eh.motor.two.forwards(0)
def TurnLeft():
eh.motor.one.forwards(0)
eh.motor.two.forwards(100)
def Forwards():
eh.motor.one.forwards(100)
eh.motor.two.forwards(100)
def Backwards():
eh.motor.one.backwards(100)
eh.motor.two.backwards(100)
pygame.init()
## pygame.key.set_repeat(100, 100)
screen = pygame.display.set_mode((200,200))
print ('Let's start!')
while 1:
for event in pygame.event.get():
if (event.type == KEYDOWN):
if (event.key == K_w):
Forwards()
if (event.key == K_s):
Backwards()
if (event.key == K_a):
TurnLeft()
if (event.key == K_d):
TurnRight()
if (event.key == K_UP):
Forwards()
if (event.key == K_DOWN):
Backwards()
if (event.key == K_LEFT):
TurnLeft()
if (event.key == K_RIGHT):
TurnRight()
if event.type == pygame.KEYUP:
Stop()
[/code]
The pi crashes for some weird reason. A day ago it did it all fine, but somehow it stops when I press enter. Maybe some of you smart guys can tell the N00B how to fix it.
Thanks
:D
Printer won't start
I have tried to print from my new Pi 3, using Libre Office Writer and an HP 5100 series inkjet which works OK with other Linux machines. It won't print: I get an error message saying "could not start printer" and suggesting that I check the printer settings. When I do that, I find that they treat my printer as a generic printer, SGENPRT, and I cannot change some of the settings, while those that I can change are already what I normally use.
OSMC
I am trying to install Kodie via instructions in Raspberry Pi Tricks mag. It says to install OSMC on an SD card that has the os on it. So I installed Noobs and loaded Rhaspian. Then inserted the same SD card to install OSMC but am getting an error. I previously installed on a clean sd card and it all worked. I thought I had made an error though as I never put the OS on first. I hope this makes sense. It's all very new to me but I am trying.
OpenGl Tinkercad
I am interested in using Tinkercad with my students on the raspberry pi. I came across this
https://www.raspberrypi.org/blog/another-new-raspbian-release/ which talks about installing the drivers. Will this allow me to use webgl on Tinkercad? Or will it slow raspberry pis down to a crawl? Just not sure if I want to install these drivers? Thanks for any help
Is my Pi dead?
Long story short, I got my new 7" screen for the RPi and I accidentally attached the connectors to the RPi incorrectly. I fired it up and obviously the screen didn't work. Turned the RPi off. Looked into what was wrong and realized I crossed my wires. Well, now the processor instantly gets hot and smells like burning and USB ports don't work when I plug into the power supply. This is a bad sign right?
pigpio Libraries for Eclipse PyDev on Windows
Hi Everyone,
I'm new working with RasPi3.
For development running Python with Eclipse but can't find any library for pigpio. Is there a way to install a library?
It's easiest for me to write code on Eclipse.
Setting up Raspberry Pi 3 B
Hi, I'm a super noob
:mrgreen:
I actually have many questions, but will focus on 1 at a time.
I got my Raspberry Pi 3 B today as well as an A/V cable.
This is the cable I bought:
http://www.ebay.com/itm/201649641892
Is this supposed to work with the 3 B?
There are other cables from China, which have a little extra adapter, and are shorter... but those do say 3 B in their description.
It was my understanding from what I have read that the Raspberry Pi should output automatically when using this cable and no HDMI cable is connected, but I just get a black screen (with a short reaction on the TV that looks like it's about to show something when the RPi 3 B starts, but stays black)
Pi Zero W and OSMC
Hello...me again....sorry.
I have downloaded and installed a 'clean' image of OSMC for the Pi Zero.
However, it does not seem to connect to the internet via the built-in wireless.
Being a total newbie, and, having looked, but cannot find any info on here, I am wondering if someone could offer some advice/assistance with this matter.
The image was downloaded via the official OSMC website, and I chose the option for Pi Zero.
Many thanks, again, for all your help.
Beginners Hardware per Instructions
"Build a LAMP Web Server with WordPress" does not have the specific requirements for hardware listed because they are expected to be known. Can you please specify the hardware here that satisfies the general equipment requirement as I have selected this as my first project. I am going to start with a CanaKit Raspberry Pi Zero Starter Kit from Amazon. Can a wireless mini keyboard (such as the iPazzPort Wireless Mini Keyboard) work with it? What else do I need for this project? Thank you.
GPIO.output (x, False) Doesn't work
I need help troubleshooting this. I am trying to get my relay working using a very simple Python codes. Here it is:
[code]import RPi.GPIO as GPIO
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
GPIO.setup(37, GPIO.OUT)
import time
for x in range (0,3):
GPIO.output(37, True)
print "Lights on"
time.sleep(3)
GPIO.output(37, False) <<<here where it is supposed to turn off but doesn't
print "Lights off"
GPIO.cleanup() <<< Relay's green light turn off here[/code]