Go to advanced search

by Grumpy Mike
Fri Oct 27, 2017 8:03 pm
Forum: Python
Topic: Eval function in Python
Replies: 7
Views: 222

Eval function in Python

In the old BBC BASIC their was a function called Eval. It would take a string and evaluate it as if it were a typed in program line. This allowed you amongst other things to type in a formula from the keyboard and have a program use it as if it were a written part of the program. It could only do th...
by Grumpy Mike
Fri Aug 25, 2017 7:42 pm
Forum: Code Club
Topic: Raspberry PI 3 GPIO
Replies: 2
Views: 1641

Re: Raspberry PI 3 GPIO

I currently have a raspberry pi 3 and trying to get it interfaced to 4 5volt single relays. You can not do that without an interface of some sorts. The signals from the GPIO pins are only 3V3 and trying to connect them to a 5V signal could damage your Pi. How are you wiring up the relays to the Pi?...
by Grumpy Mike
Tue Aug 08, 2017 9:48 am
Forum: Python
Topic: Installing aubio for Python3
Replies: 4
Views: 372

Re: Installing aubio for Python3

Thanks scruss, that did the trick instantly. I guess it was all the previous efforts of loading stuff in. I'm not sure what could possibly be confusing about the installation instructions. Well their are too many options for a start, you need experience to know what options you want to ignore and as...
by Grumpy Mike
Mon Aug 07, 2017 2:25 pm
Forum: Python
Topic: Installing aubio for Python3
Replies: 4
Views: 372

Installing aubio for Python3

After a full day's frustration does anyone know a way to install aubio for Python3?
Sadly all the aubio.org pages are very confusing and don't actually work.
Anyone done this?
by Grumpy Mike
Wed Jun 28, 2017 6:11 pm
Forum: RISCOS
Topic: Is it possible to install RISC OS on a Pi Zero?
Replies: 19
Views: 4361

Re: Is it possible to install RISC OS on a Pi Zero?

Thanks a lot Etcher worked a treat.
Cheers
by Grumpy Mike
Wed Jun 28, 2017 4:12 pm
Forum: RISCOS
Topic: Is it possible to install RISC OS on a Pi Zero?
Replies: 19
Views: 4361

Re: Is it possible to install RISC OS on a Pi Zero?

Supported method is probably to run the latest NOOBS install on a network connected pi3 , select and install riscos I tried that and riscos does not come up as an option. Iv'e just tried R15 as I read this. Stock SD w/RiscOS wont boot on Pi0 but boots fine on original Pi Can you be a bit more speci...
by Grumpy Mike
Thu May 25, 2017 8:24 pm
Forum: Troubleshooting
Topic: wrong i2c address
Replies: 6
Views: 2241

Re: wrong i2c address

Any ideas on if it is possible to get this potentially fake device to give me something more useful than 0? If so, how? I would go with the links posted by @dpouw I have not had time to try it but I have downloaded the data sheet it looks like it might be the answer. The data sheet shows that it is...
by Grumpy Mike
Thu May 18, 2017 12:12 pm
Forum: Troubleshooting
Topic: wrong i2c address
Replies: 6
Views: 2241

Re: wrong i2c address

Yes I just got taken in with a fake HMC5883 board from eBay. On the fake board the chip is marked DA 5883 xxx those last four digits look like a manufacturing date code because mine said 5012. There is a thread in German discussing this:- http://www.forum-raspberrypi.de/Thread-magnetometer-hmc5883l-...
by Grumpy Mike
Tue Apr 04, 2017 10:47 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C not reliable on a Pi3
Replies: 10
Views: 1498

Re: I2C not reliable on a Pi3

Just to wrap things up. I put a sticking plaster over the problem to trap the error and re initialise the I2C when ever this error occurred, using a try: ... except.. structure. The code then did not crash. Now today upgrading to NOBOS V 2.3.0 fixed the problem, and one created I think by applying t...
by Grumpy Mike
Tue Apr 04, 2017 10:39 pm
Forum: Python
Topic: What ever happend to WiringPi?
Replies: 18
Views: 1160

Re: What ever happend to WiringPi?

Thanks for all the input, I have finally resolved the issue. The original I2C problem I had is in this link. https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=178000&p=1137681#p1137681 In it I was informed by notro that:- Phil recently added a commit to fix the i2c bus clock on 4.9: clk-bcm283...
by Grumpy Mike
Tue Apr 04, 2017 9:52 am
Forum: Python
Topic: What ever happend to WiringPi?
Replies: 18
Views: 1160

Re: What ever happend to WiringPi?

Thanks for your observations. But yes designed to take the faff out of just doing, it's not for you I guess. Well I would suggest it is not for beginners either. It is heading in the way that killed software writing on mainstream computers. By doing it all, sure you get things done, but you have to ...
by Grumpy Mike
Tue Apr 04, 2017 8:00 am
Forum: Python
Topic: What ever happend to WiringPi?
Replies: 18
Views: 1160

Re: What ever happend to WiringPi?

Thanks for your reply. However:- That and put up the code up with what you are doing and see if anyone can spot what's causing the problems. The problem is that the new operating system is not working, the old stuff worked fine, the code was fine and was published in the last 12 months in The MagPi ...
by Grumpy Mike
Mon Apr 03, 2017 7:46 pm
Forum: Python
Topic: What ever happend to WiringPi?
Replies: 18
Views: 1160

Re: What ever happend to WiringPi?

Thank you, that is helpful. I was talking to Gordon at the Pi Birthday party last month, I have known him for several years. As he is not a Python programmer he knows little about the python wrappers. First I would check what was updated since you last knew it worked. It was a kernel update to the n...
by Grumpy Mike
Mon Apr 03, 2017 5:38 pm
Forum: Python
Topic: What ever happend to WiringPi?
Replies: 18
Views: 1160

Re: What ever happend to WiringPi?

Let me try another tack. The contents of file os-release.txt is:- PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)" NAME="Raspbian GNU/Linux" VERSION_ID="8" VERSION="8 (jessie)" ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_U...
by Grumpy Mike
Mon Apr 03, 2017 4:53 pm
Forum: Python
Topic: What ever happend to WiringPi?
Replies: 18
Views: 1160

Re: What ever happend to WiringPi?

Odd how the "gcc compiler guys" seem to manage to do a decent job.
by Grumpy Mike
Mon Apr 03, 2017 2:35 pm
Forum: Python
Topic: What ever happend to WiringPi?
Replies: 18
Views: 1160

Re: What ever happend to WiringPi?

I think you meant to write

"One of the more frustrating aspects of computers is the way stuff stops working for no obvious reason."
Nop, it never happens with other operating systems, because the writes actually test new releases. Intriguing concept that Linux authors should investigate.
by Grumpy Mike
Mon Apr 03, 2017 10:10 am
Forum: Python
Topic: What ever happend to WiringPi?
Replies: 18
Views: 1160

What ever happend to WiringPi?

One of the more frustrating aspects of Linux is the way stuff stops working for no obvious reason. It has happens to WiringPi over the last month. At the Cambridge birthday parts it was working on all three Pis I had. Now when setting up for the Maker Fair this weekend it suddenly would not work on ...
by Grumpy Mike
Sat Mar 25, 2017 9:27 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C not reliable on a Pi3
Replies: 10
Views: 1498

Re: I2C not reliable on a Pi3

Thanks a lot of that. You can switch back to the old driver with: /boot/config.txt dtoverlay=i2c-bcm2708 Sadly the only thing that was achieved is that the error number went back to being 5. As this only happens after a minute or so there must be thousands of correct accesses so to me it sounds like...
by Grumpy Mike
Fri Mar 24, 2017 7:13 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C not reliable on a Pi3
Replies: 10
Views: 1498

Re: I2C not reliable on a Pi3

The change was present in rpi-update three commits ago:
Thanks.

So I did a rpi-update but sadly it did not fix the problem. It did however change the error message, now I get:-

Code: Select all

[Errno 121] Remote I/O Error
by Grumpy Mike
Mon Mar 20, 2017 9:53 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C not reliable on a Pi3
Replies: 10
Views: 1498

Re: I2C not reliable on a Pi3

Thanks for that however:-
1) New Power supply 2.5A from Pimoroni, voltage checked at 5V pin and 3V3 pin on both P2 and P3 and it is the same. Also tried an Apple 2.5A psu from my iPad and the Pi3 still falls over.

2) The wires soldered onto a header and plugged into the GPIO socket, very solid.
by Grumpy Mike
Mon Mar 20, 2017 6:12 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Driving 5v relay coil using GPIO
Replies: 4
Views: 796

Re: Driving 5v relay coil using GPIO

My gut tells me I should use an optoisolator. Ignore it, it is wrong. I want to control its relay using the GPIO port of my Raspberry Pi Zero. I'm confused if I can drive the 5 volt coil directly with the 3.3 volt GPIO pin No you can't. You will need a transistor to drive the relay from the signal ...
by Grumpy Mike
Mon Mar 20, 2017 6:04 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C not reliable on a Pi3
Replies: 10
Views: 1498

I2C not reliable on a Pi3

I have an I2C interface to a DJ Hero turntable. I have written an application in Python and run it on a Pi2 and all is well. However when I run the same code and same hardware on a Pi3 it works for a time and then gives an error bus.write_byte(0x52,0) IOError: [Errno 5] Input/output error I have use...
by Grumpy Mike
Thu Mar 16, 2017 11:31 am
Forum: Python
Topic: Installing OSC
Replies: 21
Views: 2488

Re: Installing OSC

Thanks for the offer but unfortunately I have a deadline fast approaching for this so I am going to have to switch tack, and move over from Python to Processing. It has a much simpler, and it seems more reliable, interface to OSC than Python. It also allows partial matching of the OSC message so you...
by Grumpy Mike
Tue Mar 14, 2017 11:06 pm
Forum: Python
Topic: Installing OSC
Replies: 21
Views: 2488

Re: Installing OSC

Hi ktb, Thanks for that it is great. Sorry for not responding sooner but I did not get the email that said you had replied. I was going to do an update on what I found when using pyosc. I got it working sort of but it was a bit crap. Basically I am moving graphics around the screen with the OSC mess...
by Grumpy Mike
Fri Feb 24, 2017 11:51 pm
Forum: Python
Topic: Installing OSC
Replies: 21
Views: 2488

Re: Installing OSC

Small breakthrough, I got pyosc to work on receive. Basically, unlike the Mac, when the Pi is receiving OSC messages you have to set the IP address, not to the address of the device sending the OSC to you, but to the IP address of the Pi itself. By doing that I could get pyosc to receive OS messages...

Go to advanced search