Go to advanced search

by gordon77
Fri Sep 20, 2019 6:43 pm
Forum: Python
Topic: Send datas to an arduino with pySerial
Replies: 5
Views: 101

Re: Send datas to an arduino with pySerial

Take a look at the end of this thread. https://www.raspberrypi.org/forums/view ... p?t=236598

Or here https://www.raspberrypi.org/forums/view ... p?t=246079

It may give you some ideas.
by gordon77
Wed Sep 18, 2019 2:17 pm
Forum: Advanced users
Topic: Increase sampling rate in rpi zero W for micro usb communiction
Replies: 4
Views: 137

Re: Increase sampling rate in rpi zero W for micro usb communiction

I've never used one of those sensors but reading https://learn.sparkfun.com/tutorials/9dof-razor-imu-m0-hookup-guide#introduction it says it 'spouts data' and the table shows a reading every 9mS which is 111Hz. I can't see if that is adjustable. Maybe the Pi0 can't deal with 111Hz ? Can you read it ...
by gordon77
Wed Sep 18, 2019 10:44 am
Forum: Beginners
Topic: Control my shutters with a radio emitter?
Replies: 7
Views: 132

Re: Control my shutters with a radio emitter?

I think it would useful to know..

Make and Model of blinds.
Frequency and protocol the blinds use.
Do you have a remote for the blinds.
Could the remote be modified to interface to the RPi.
What you have bought.
by gordon77
Wed Sep 18, 2019 8:38 am
Forum: Troubleshooting
Topic: rc.local won't load images as part of python script
Replies: 2
Views: 48

Re: rc.local won't load images as part of python script

Can you show us your python script ?

Is "images/backup_icon.png" the full path ?
by gordon77
Wed Sep 18, 2019 8:36 am
Forum: Beginners
Topic: Control my shutters with a radio emitter?
Replies: 7
Views: 132

Re: Control my shutters with a radio emitter?

Your link just directs me to a page to sign in...
by gordon77
Wed Sep 18, 2019 8:00 am
Forum: Off topic discussion
Topic: A modest (passive) suggestion
Replies: 10
Views: 477

Re: A modest (passive) suggestion

with 1 in each usb socket , bent upwards, you could make a drone ;)
by gordon77
Mon Sep 16, 2019 9:41 am
Forum: Beginners
Topic: Soldering
Replies: 22
Views: 477

Re: Soldering

Let me try to better clarify. I have a perforated board and say I want to solder an LED to the board. I can easily solder the two poles of the LED onto the board. Now I need to attach a pos and ground to the LED. What I did was bend the wires coming through the bottom of the board so they were touc...
by gordon77
Sun Sep 15, 2019 5:50 pm
Forum: Beginners
Topic: Raspberry Pi 4 Fan
Replies: 7
Views: 250

Re: Raspberry Pi 4 Fan

I used a 12v fan on 5v with no issues, and practically no noise
by gordon77
Sun Sep 15, 2019 9:12 am
Forum: General discussion
Topic: Laptop speakers with Raspberry PI
Replies: 25
Views: 564

Re: Laptop speakers with Raspberry PI

Are they simply 2 speakers, each with 2 wires going to a 4 pin connector ? You will need an amplifier HAT or external amplifier. Maybe something like this https://thepihut.com/products/adafruit-stereo-bonnet-pack-for-raspberry-pi-zero-w-includes-pi-zero-w?variant=31955947985 but I a not sure its the...
by gordon77
Sat Sep 14, 2019 6:28 pm
Forum: Beginners
Topic: Music player
Replies: 11
Views: 317

Re: Music player

You might like to try this python script l've been working on...

https://github.com/Gordon999/Pi-MP3_Player

It will work on a pi and desktop monitor.
by gordon77
Tue Sep 10, 2019 5:40 pm
Forum: Raspbian
Topic: bad symbol in keyboard
Replies: 2
Views: 128

Re: bad symbol in keyboard

Which language is the keyboard set as?

choose Preferences > Raspberry Pi Configuration > Localisation > Keyboard
by gordon77
Tue Sep 10, 2019 3:39 pm
Forum: Beginners
Topic: it there any way to know if I my speaker is connected?
Replies: 2
Views: 90

Re: it there any way to know if I my speaker is connected?

How is the speaker connected?

What about a microphone to listen to the speaker and connect back to the Pi, with suitable interface, then send a sound and listen.

Microswitch on the speaker cone connected to the Pi?
by gordon77
Sun Sep 08, 2019 9:57 am
Forum: Python
Topic: MP3 player
Replies: 12
Views: 439

Re: MP3 player

by gordon77
Fri Sep 06, 2019 8:36 am
Forum: Python
Topic: MP3 player
Replies: 12
Views: 439

Re: MP3 player

Removed
by gordon77
Fri Sep 06, 2019 7:30 am
Forum: Python
Topic: MP3 player
Replies: 12
Views: 439

Re: MP3 player

cmrincon wrote:
Fri Sep 06, 2019 7:22 am
Have you thought about add m3u song lists?

It would be a very nice feature.
What features would you like from m3u?
by gordon77
Wed Sep 04, 2019 4:56 pm
Forum: Troubleshooting
Topic: Is this normal missing P?
Replies: 4
Views: 185

Re: Is this normal missing P?

Who's taking the P? ;)
by gordon77
Wed Sep 04, 2019 3:21 pm
Forum: Python
Topic: MP3 player
Replies: 12
Views: 439

Re: MP3 player

I have implemented most of scotty101's suggestions, except using .grid which still confuses me when I try to get the required layout !, and fixed a few issues.
by gordon77
Mon Sep 02, 2019 4:06 pm
Forum: Python
Topic: MP3 player
Replies: 12
Views: 439

Re: MP3 player

Thanks scotty101.

All taken in good faith, always useful to learn.

I'll get these suggestions included.

Gordon
by gordon77
Mon Sep 02, 2019 1:27 pm
Forum: Python
Topic: MP3 player
Replies: 12
Views: 439

Re: MP3 player

scotty101 wrote:
Mon Sep 02, 2019 1:16 pm
Would you be open to some constructive feedback on your code?
There are a few things that could help improve your code and make it more "pythonic"
No problem.

Isn't that what github is about ?
by gordon77
Mon Sep 02, 2019 1:00 pm
Forum: Python
Topic: MP3 player
Replies: 12
Views: 439

MP3 player

To replace my ageing PC which is used to play my mp3 music l wrote a python script for the Pi.

If you want to try it it's on github

https://github.com/Gordon999/Pi-MP3_Player
by gordon77
Sat Aug 31, 2019 12:48 pm
Forum: General discussion
Topic: Strange GPIO behavior - need advise please
Replies: 11
Views: 390

Re: Strange GPIO behavior - need advise please

as asked, several meters of cable, and 1k resistors.. I used GPIO 12 and 16 as convenient for me. 5 second polling. BOTH operated independently Sat Aug 31 13:44:42 2019 cyclic poll. Pin 12 is: 1 Pin 16 is: 1 Sat Aug 31 13:44:47 2019 cyclic poll. Pin 12 is: 1 Pin 16 is: 1 Sat Aug 31 13:44:49 2019 cal...
by gordon77
Sat Aug 31, 2019 11:42 am
Forum: General discussion
Topic: Strange GPIO behavior - need advise please
Replies: 11
Views: 390

Re: Strange GPIO behavior - need advise please

Nothing wrong with your code works fine on my Pi with switches.

How have you wired them ?
by gordon77
Sat Aug 31, 2019 9:45 am
Forum: Python
Topic: Reading + writing a Queue
Replies: 17
Views: 650

Re: Reading + writing a Queue

I'd store that stuff in an SQLite3 database. INSERT, SELECT, DELETE is easier than fread, fwrite, fseek. Only rule with SQLite3 is one writer, multiple readers. You can't update a database from two tasks or it rapidly goes badly wrong with a locked database. Nice to know. I only read once at startu...
by gordon77
Sat Aug 31, 2019 9:28 am
Forum: Python
Topic: Reading + writing a Queue
Replies: 17
Views: 650

Re: Reading + writing a Queue

I decided to have a go at writing a python3 MP3 Player.

Now at https://github.com/Gordon999/Pi-MP3_Player

Go to advanced search