Go to advanced search

by PolarBear123
Tue Feb 18, 2020 10:53 pm
Forum: Python
Topic: Function Repeats itself 10 Times Instead of Once!
Replies: 4
Views: 321

Re: Function Repeats itself 10 Times Instead of Once!

Yeah, a little typo there. Also, I figured out the problem. I have to add the score % 100 thingy in the make_track() before score += 1, not in draw, as draw is executed more often.
by PolarBear123
Tue Feb 18, 2020 6:26 pm
Forum: Python
Topic: Function Repeats itself 10 Times Instead of Once!
Replies: 4
Views: 321

Function Repeats itself 10 Times Instead of Once!

I have written a simple racing game in Pygame Zero. This comes from the MagPi "Retro Gaming with Raspberry Pi" Book. I am a beginner programmer so I might be asking an obvious question. I want to make levels. For every 100 score, level + 1. Win at 10 levels. areas of interest might be my `draw()` fu...
by PolarBear123
Wed Feb 05, 2020 12:29 pm
Forum: Gaming
Topic: Code own ROMs for Arcade Cabinet?
Replies: 6
Views: 1047

Re: Code own ROMs for Arcade Cabinet?

That solves it, thanks!
by PolarBear123
Wed Feb 05, 2020 1:28 am
Forum: Gaming
Topic: Code own ROMs for Arcade Cabinet?
Replies: 6
Views: 1047

Re: Code own ROMs for Arcade Cabinet?

Thank you all for your replies. I've looked at the 2D engine, that sounds good. Regarding the book, I don't seem to find instructions for programming something 'understandable' for the RetroPie, but I did find some interesting projects indeed. Now, do you guys know if I could program a simple game i...
by PolarBear123
Mon Feb 03, 2020 12:06 am
Forum: Gaming
Topic: Code own ROMs for Arcade Cabinet?
Replies: 6
Views: 1047

Code own ROMs for Arcade Cabinet?

Hello everyone. I made an Arcade Cabinet and I'm loving it. I can lay PacMan, Space Invaders, and even the newer homebrew games such as Nova the Squirrel and Alter Ego. It's a Pi 3B running RetroPie. A few ROMs, I must say, I downloaded from random websites, others I got from the Steam Atari pack, t...
by PolarBear123
Mon Oct 07, 2019 11:47 pm
Forum: AIY Projects
Topic: Spotify playlist in a Python Script?
Replies: 3
Views: 2911

Re: Spotify playlist in a Python Script?

Do not attempt to write this into your python script. They will be completely pointless and would only confuse the assistant. What you need to do: 1) get the assistant running correctly with your credentials. 2) on the same Wi-Fi using the same Google account as the credentials, open the Google hom...
by PolarBear123
Mon Sep 30, 2019 10:14 pm
Forum: Python
Topic: Detect keypress in Python in a simple way?
Replies: 6
Views: 2133

Re: Detect keypress in Python in a simple way?

Ok. Thank you very much!
by PolarBear123
Mon Sep 30, 2019 9:36 pm
Forum: Python
Topic: Detect keypress in Python in a simple way?
Replies: 6
Views: 2133

Re: Detect keypress in Python in a simple way?

rpiMike wrote:
Mon Sep 30, 2019 8:41 pm
Why are you using sudo - shouldn't need it.

I would probably use the Pygame library to detect key presses.
Ok. How would that translate into the original code I posted above?
Thank you.
by PolarBear123
Mon Sep 30, 2019 9:34 pm
Forum: Python
Topic: Detect keypress in Python in a simple way?
Replies: 6
Views: 2133

Re: Detect keypress in Python in a simple way?

joelostinspace wrote:
Mon Sep 30, 2019 8:25 pm
are you running it in python2.7???
try:

Code: Select all

sudo python3 motor_test.py
show complete error output
No, I'm using Python 3.
by PolarBear123
Mon Sep 30, 2019 8:11 pm
Forum: Python
Topic: Detect keypress in Python in a simple way?
Replies: 6
Views: 2133

Detect keypress in Python in a simple way?

Hey guys, I have been online for such a long time now and I really can't seem to find a working option. My plan is to run a program on BrickPi3 using Python which is very simple - move the robot forward when pressing 'w', stop it when 's' is pressed. I'm new to BrickPi3 and this is just to test. I k...
by PolarBear123
Mon Jun 24, 2019 9:03 pm
Forum: AIY Projects
Topic: Stream music from YouTube?
Replies: 0
Views: 1676

Stream music from YouTube?

Hello! In my AIY project, I want to stream music from YouTube. For this, I used the guide here: https://www.raspberrypi.org/forums/viewtopic.php?f=114&t=182665 and here: https://ktinkerer.co.uk/update-new-version-google-aiy-project-write-basic-mods/ , I tried to adjust the YouTube music streamer to ...
by PolarBear123
Mon Jun 24, 2019 8:33 pm
Forum: AIY Projects
Topic: Spotify playlist in a Python Script?
Replies: 3
Views: 2911

Spotify playlist in a Python Script?

Hello! I am firing up the AIY Voice Kit I got with the MagPi a while ago... It works great, added a few of my own commands, just to test it out (in the assistant_library_local_commands.py (or so) file). But now comes the harder part of this project: adding the ability to play music. I've tried this ...
by PolarBear123
Mon Jun 24, 2019 8:30 pm
Forum: AIY Projects
Topic: Running Google Assistant alongside own voice commands
Replies: 2
Views: 1772

Re: Running Google Assistant alongside own voice commands

Thanks. My bad for not looking properly.
by PolarBear123
Sat Jun 22, 2019 2:28 pm
Forum: AIY Projects
Topic: Running Google Assistant alongside own voice commands
Replies: 2
Views: 1772

Running Google Assistant alongside own voice commands

Hi! I've set up (again) my old voice kit I got some time ago with the MagPi. I've followed Google's online instructions and it works well. Now I can run the assistant, or run my own commands. But I got a question: is it possible to run the assistant, while also listening for own commands which can b...
by PolarBear123
Mon Jan 21, 2019 1:38 pm
Forum: General discussion
Topic: DIY Webcam in Finland
Replies: 17
Views: 1119

Re: DIY Webcam in Finland

Thanks. I don't know everyone, but on the part of this particular island in Finland near Helsinki, I'd probably have some relatives checking on it for free, once a month or twice. Now, is it safe? Well, now that the Pi will be powering on every day for a minute, well, I think that should do, but I m...
by PolarBear123
Sun Jan 20, 2019 8:06 pm
Forum: General discussion
Topic: DIY Webcam in Finland
Replies: 17
Views: 1119

Re: DIY Webcam in Finland

So will powering it on every day at noon work, is noon the time when it is day regardless of the time of year?
by PolarBear123
Sun Jan 20, 2019 5:59 pm
Forum: General discussion
Topic: DIY Webcam in Finland
Replies: 17
Views: 1119

Re: DIY Webcam in Finland

Yeah, so I was thinking instead of detecting when it's dark or taking a picture every hour I would power the Pi at noon every day, take a snap, and shut down. I might be using a car battery, but I would still need to look at some details. Main thing is, the battery has to be totally safe and also re...
by PolarBear123
Sat Jan 19, 2019 10:33 pm
Forum: General discussion
Topic: DIY Webcam in Finland
Replies: 17
Views: 1119

Re: DIY Webcam in Finland

Thank you for your very detailed reply. As I don't live in Finland and am only there one month a year, nearly all the time in July/August. I've never been there in the winter and I know how dark it is. My idea is it sends me a picture just for fun in the few daylight hours to spare. To come to think...
by PolarBear123
Sat Jan 19, 2019 8:28 pm
Forum: General discussion
Topic: DIY Webcam in Finland
Replies: 17
Views: 1119

DIY Webcam in Finland

Hello everyone! In short: I will try making a webcam in Finland. I need all the help I can get because this will be a very hard project and there are many factors I have to consider. Let me start with introducing myself. I live in New York State, in Westchester County to be exact. (In USA). In Finla...
by PolarBear123
Sun Jan 06, 2019 9:35 pm
Forum: Python
Topic: Running Pygame Zero in Thonny
Replies: 3
Views: 892

Running Pygame Zero in Thonny

Hello! Is it possible to run a game in Python using Pygame Zero in the Thonny Python IDE?
When I do:

Code: Select all

import pgzrun
...
pgzrun.go()
it gives me an import error, you can't run this code from an interactive interpreter.
by PolarBear123
Thu Nov 22, 2018 1:34 pm
Forum: Raspberry Pi Desktop for PC and Mac
Topic: Speed up x86 Debian on Eee PC
Replies: 9
Views: 2556

Re: Speed up x86 Debian on Eee PC

Yep, I'd rather not throw in some RAM because I have another computer, a really good one actually. So the Eee PC wouldn't be a replacement, just a fun little project. Not sure if you'd want to spend $40-$50 upgrading an old Netbook, though... So I will have to investigate what's going on there. Is t...
by PolarBear123
Thu Nov 22, 2018 1:41 am
Forum: Raspberry Pi Desktop for PC and Mac
Topic: Speed up x86 Debian on Eee PC
Replies: 9
Views: 2556

Speed up x86 Debian on Eee PC

So I'm running the x86 Debian distribution (I heard I shouldn't be calling it 'Rasbian for PC') and it's really laggy. Specs are: Eee PC ASUS R101D CPU: Intel Atom N455 / 1.66 GHz RAM: 1GB DDR3 SDRAM Graphics: Intel GMA 3150 Storage: HDD, 227 GB Running latest release of x86 Debian I'm not a pro or ...
by PolarBear123
Mon Nov 12, 2018 3:56 pm
Forum: AIY Projects
Topic: The old version of the Voice Kit SD Card?
Replies: 1
Views: 2424

The old version of the Voice Kit SD Card?

I just fixed up my Voice Kit and it seems to be working perfectly fine, the Google Assistant, at least. But now I'm thinking about adding a few more mods, to make it like a music station or something else. I will be using this guide/repo of mods: https://ktinkerer.co.uk/list-mods-raspberry-pi-aiy-pr...
by PolarBear123
Mon Nov 12, 2018 2:47 pm
Forum: Troubleshooting
Topic: How to fix a ripped wire?
Replies: 5
Views: 563

Re: How to fix a ripped wire?

When I solder it (I've practiced!) should I remove part of the plastic covering and then carefully 'glue' the wire part to the terminal / metal thing?
by PolarBear123
Mon Nov 12, 2018 2:38 pm
Forum: Troubleshooting
Topic: How to fix a ripped wire?
Replies: 5
Views: 563

How to fix a ripped wire?

So I was working on my AIY voice project (the box, the one you get from the MagPi) and suddenly the black wire to the arcade button ripped! WIN_20181112_09_35_57_Pro.jpg Yes, I admit it was quite old, dating back to May 2017. But I really want to continue making and I don't see an option in buying a...

Go to advanced search