Go to advanced search

by Grumpy Mike
Mon Apr 03, 2017 2:35 pm
Forum: Python
Topic: What ever happend to WiringPi?
Replies: 18
Views: 3229

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: 3229

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: 12
Views: 8637

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: 12
Views: 8637

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: 12
Views: 8637

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: 2093

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: 12
Views: 8637

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: 22
Views: 5799

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: 22
Views: 5799

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: 22
Views: 5799

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...
by Grumpy Mike
Fri Feb 24, 2017 8:25 pm
Forum: Python
Topic: Installing OSC
Replies: 22
Views: 5799

Re: Installing OSC

Hi elParaguayo , thanks for your input. Yes it looked like it was installed for Python 2, but then as the module was written for Python 3 then it would not run because of syntax errors in the module. Luckily I have it installed under Python 3 now. The main problem I am having now is that the module ...
by Grumpy Mike
Fri Feb 24, 2017 10:29 am
Forum: Python
Topic: Installing OSC
Replies: 22
Views: 5799

Re: Installing OSC

Thanks, their are some free OSC apps for the iPad although the app store does not seem to be searching capable at the moment. However, the problem is before you actually get to communicate with the iPad. It boils down to that error message being given for any IP address except one that starts 127, a...
by Grumpy Mike
Fri Feb 24, 2017 8:32 am
Forum: Python
Topic: Installing OSC
Replies: 22
Views: 5799

Re: Installing OSC

Thanks for the offer of help:- provided I don't need any additional special devices/equipment. Ah, as Shakespeare said "There's the rub". The device I am using is an iPad running TouchOSC, it allows you to build interface screens on the iPad and send and receive OSC messages. I have used this many t...
by Grumpy Mike
Fri Feb 24, 2017 7:37 am
Forum: Python
Topic: Installing OSC
Replies: 22
Views: 5799

Re: Installing OSC

Thank you ktb that did install correctly all be it only on a second attempt. Any idea why the official page https://pypi.python.org/pypi/python-osc has the installation instructions wrong? However I am back to the same problem as before, the send works but the receive doesn't. Trying the simple serv...
by Grumpy Mike
Thu Feb 23, 2017 9:35 pm
Forum: Python
Topic: Installing OSC
Replies: 22
Views: 5799

Re: Installing OSC

Well ... I found out I could send OSC messages but it was no dice with receiving. I got the following error message:- Traceback (most recent call last): File "/home/pi/MagPi_projects/Osc/oscRX.py", line 21, in <module> s = OSC.OSCServer(receive_address) # basic File "/home/pi/pyosc/OSC.py", line 176...
by Grumpy Mike
Thu Feb 23, 2017 1:53 pm
Forum: Python
Topic: Installing OSC
Replies: 22
Views: 5799

Re: Installing OSC

That seems to work except I have to do

Code: Select all

import sys
sys.path.insert(1, '/home/pi/pyosc')
import OSC
But I have not had time to actually send any OSC messages yet, I will try that later this afternoon.
Thanks
by Grumpy Mike
Thu Feb 23, 2017 11:57 am
Forum: Python
Topic: Installing OSC
Replies: 22
Views: 5799

Re: Installing OSC

Thanks.
However I get the "no commands supplied error" when I do.
by Grumpy Mike
Sun Feb 19, 2017 9:25 pm
Forum: Troubleshooting
Topic: Their must be a better way - switching sound output
Replies: 0
Views: 224

Their must be a better way - switching sound output

Their must be a better way said the little princess ... So started a kids book on potty training. I am forced to think when playing with sound on the Pi. I installed a USB sound card and it worked, however the internal PWM for the headphone socket stopped working. I have found that if I do:- sudo na...
by Grumpy Mike
Thu Feb 16, 2017 11:38 am
Forum: Python
Topic: Installing OSC
Replies: 22
Views: 5799

Installing OSC

I have been trying to install PyOSC but without success. The method here https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=59714 no longer works and the method here https://ianshelanskey.com/2014/08/11/raspberry-pi-and-osc-part-1/ doesn't either. for example sudo ./setup.py install returns " ....
by Grumpy Mike
Mon Jan 30, 2017 9:56 am
Forum: Python
Topic: GPIO Zero called functions puzzel
Replies: 2
Views: 692

GPIO Zero called functions puzzel

I am trying to give the GPIO zero module a spin. One thing it can do is call a function from a button press and I wondered how long this would take. However the results left me puzzled. On a Pi2 I tried this code:- from gpiozero import Button import time push = Button(4) def firstPress(): print("fir...
by Grumpy Mike
Fri Jan 06, 2017 5:06 pm
Forum: Camera board
Topic: Camara not comming out of sleep
Replies: 1
Views: 377

Re: Camara not comming out of sleep

OK my fault, finger trouble, forgot the () on the end of the stop_preview.
Sorry
by Grumpy Mike
Fri Jan 06, 2017 4:26 pm
Forum: Camera board
Topic: Camara not comming out of sleep
Replies: 1
Views: 377

Camara not comming out of sleep

I just downloaded the latest version of Pixel and am going through the Getting started worksheet https://www.raspberrypi.org/learning/getting-started-with-picamera/worksheet/ But the sample code never comes out of the sleep instruction. Has something changed? I am using the camera version 1.3 Thanks
by Grumpy Mike
Fri Oct 07, 2016 11:23 am
Forum: Automation, sensing and robotics
Topic: Zizzle Zoundz, Open CV, Sonic Pi Live Coding?
Replies: 1
Views: 681

Re: Zizzle Zoundz, Open CV, Sonic Pi Live Coding?

and each with an embedded mfid tag (magnetic pre-cursor to rfid?). No they are actually RFID tags. You can get the full works, circuit diagram, photos and test results here https://fccid.io/T5706007 I initially thought about using rfid tags but I have not been able to find a 3-location rfid reader ...
by Grumpy Mike
Fri Sep 23, 2016 3:35 pm
Forum: Python
Topic: Reading two MCP3008 A/Ds
Replies: 7
Views: 1343

Re: Reading two MCP3008 A/Ds

Just for completeness if anyone wants to know you can do this with PiZero as well. The problem was that the documentation is not very comprehensive. To read all the channels from two converters then you need this code:- #!/usr/bin/env python import gpiozero d1= [ gpiozero.MCP3008(channel=ch, device=...
by Grumpy Mike
Fri Sep 23, 2016 11:15 am
Forum: Python
Topic: Reading two MCP3008 A/Ds
Replies: 7
Views: 1343

Re: Reading two MCP3008 A/Ds

Thanks joan,
that did the trick. It was the ord function I was forgetting about.
Cheers
:D

Go to advanced search