Go to advanced search

by SteveSpencer
Mon Aug 22, 2016 9:02 am
Forum: Raspbian
Topic: Is the source code for /opt/vc/bin/edidparser available?
Replies: 6
Views: 1952

Re: Is the source code for /opt/vc/bin/edidparser available?

Give the man a break! :)
As he says, there are interdependencies on the GPU side, so it's not a trivial task.
by SteveSpencer
Tue Jun 28, 2016 2:58 pm
Forum: Other projects
Topic: 7" touchscreen - Modular Case
Replies: 2
Views: 1477

Re: 7" touchscreen - Modular Case

As an alternative, why not use something like the pHat DAC, but fitted with a tall header to pass through the "unused" GPIO pins. I've done this successfully with Zero, B+, 2 and 3 models. A small amp board and speakers could be connected to it relatively easily.
by SteveSpencer
Tue Jun 28, 2016 2:55 pm
Forum: Other projects
Topic: Pi3 Fan connection options
Replies: 5
Views: 7602

Re: Pi3 Fan connection options

If you are careful, it is possible to solder a small wire-wrap at the base of either 5v pin; use a small gauge enamel insulated copper wire normally used for magnet windings--works well. I assume this is on the tall header, not the Pi, since the idea is that if a board dies, I can just swap it out,...
by SteveSpencer
Tue Jun 28, 2016 1:12 pm
Forum: Other projects
Topic: Pi3 Fan connection options
Replies: 5
Views: 7602

Pi3 Fan connection options

[Originally mis-posted in beginners, sorry!] I would like my Pi 3 in a case. I also want it cool, so want to put a 5v fan mounted over the SOC. (Should airflow be away from the SOC, or towards it?) However, I also want to (a) not modify the board in any way and (b) be able to use 40-pin IDC connecto...
by SteveSpencer
Mon Jun 27, 2016 12:08 pm
Forum: Automation, sensing and robotics
Topic: Need help for RFID RC522
Replies: 22
Views: 13187

Re: Need help for RFID RC522

No, it isn't two cards, rather it is two blocks on every card.
However, I will look at the referenced material, thanks :)
by SteveSpencer
Mon Jun 27, 2016 9:02 am
Forum: Automation, sensing and robotics
Topic: Need help for RFID RC522
Replies: 22
Views: 13187

Re: Need help for RFID RC522

You are correct there are not really any security left, I can get all 16 keypairs from a random card in around an hour I think. If you already know one of the keys in the card or if the standard keys are not changed then it takes < 5 minutes to find the rest. Mifare Classic is not a card I would us...
by SteveSpencer
Thu Jun 23, 2016 3:13 pm
Forum: Troubleshooting
Topic: Weird behavior in GPIO
Replies: 9
Views: 1295

Re: Weird behavior in GPIO

Are you using sudo to run your compiled C program?

If not, then it's likely you are not able to progress past the open of /dev/mem, which you are not checking the return from.

See gpiomem for a way to do it without sudo.
by SteveSpencer
Wed Jun 22, 2016 1:23 pm
Forum: Troubleshooting
Topic: Enabling SPI disables alsa sound device
Replies: 2
Views: 793

Re: Enabling SPI disables alsa sound device

What version of Raspbian are you using?
I am using the latest Jessie (2016-05-27), and with that version you shouldn't do 'device_tree='.

Why do you need to disable device tree to get SPI to work? What happens if you just have

Code: Select all

dtparam=spi=on
instead?
by SteveSpencer
Fri Jun 17, 2016 3:57 pm
Forum: General discussion
Topic: Feedback on HubPiWi Hub with WIfi for Pi Zero
Replies: 19
Views: 5495

Re: Feedback on HubPiWi Hub with WIfi for Pi Zero

Does this work with the original Pi Zero, or the new one with camera connector?

As I see from the two in front of me, the pogo pins would need to be in different places.
by SteveSpencer
Fri Jun 17, 2016 2:30 pm
Forum: Device Tree
Topic: Multiple SPI slaves - best option?
Replies: 11
Views: 2703

Re: Multiple SPI slaves - best option?

I think the failure of file to display information about your overlay is a quirk of the way file works and something about the properties of your overlay (the magic file containing the signatures is fairly opaque and I don't have time to figure out exactly what the problem is) - there is nothing wr...
by SteveSpencer
Fri Jun 17, 2016 10:34 am
Forum: Device Tree
Topic: Multiple SPI slaves - best option?
Replies: 11
Views: 2703

Re: Multiple SPI slaves - best option?

Hi Phil

Apologies for the delay; I've been off sick.
My compiled dtbo is here: http://www.smspencer.org/esp0.dtbo
by SteveSpencer
Thu Jun 09, 2016 1:04 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Pinouts on all models
Replies: 4
Views: 4675

Re: Pinouts on all models

The only real difference I'm aware of on the Pi3 is the UART remapping which has been discussed to death. Indeed. I don't use the UART pins (nothing I have needs them, if I need a UART I plug in a USB/UART device). Thanks all. I will dump the gpio states and confirm they are the same. I suspect fin...
by SteveSpencer
Thu Jun 09, 2016 12:26 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Pinouts on all models
Replies: 4
Views: 4675

Pinouts on all models

This is starting to concern me, although I'm sure it shouldn't. I have a number of 40 pin equipped Pis, including B+, Pi2, Pi3 and Zero (original and 1.3). Are the pins all routed the same on each model (I have deliberately ignored the original 256MB and 512MB Model B, and the model A, they have 26 ...
by SteveSpencer
Tue Jun 07, 2016 11:51 am
Forum: Device Tree
Topic: Multiple SPI slaves - best option?
Replies: 11
Views: 2703

Re: Multiple SPI slaves - best option?

Doh! So it is. As I was using dynamic loading not from config.txt it was working. I have now renamed the files and adjusted my own Makefile accordingly, but still no joy with file. Oh well, not that important, but mildly annoying; this happens whether I use the apt-get installed version of dtc, or t...
by SteveSpencer
Tue Jun 07, 2016 10:57 am
Forum: Device Tree
Topic: Multiple SPI slaves - best option?
Replies: 11
Views: 2703

Re: Multiple SPI slaves - best option?

Further investigation revealed that the screen in question actually uses CE1, not CE0, so the two are compatible out of the box. This is good news, but then further playing around to use the screen and an RC522 RFID reader led me to determine that the touchscreen module (ads7846) disables both spide...
by SteveSpencer
Mon Jun 06, 2016 2:02 pm
Forum: Device Tree
Topic: Multiple SPI slaves - best option?
Replies: 11
Views: 2703

Re: Multiple SPI slaves - best option?

Thanks Phil, I will give it a try. I only want one instance myself, and it's only because the touchscreen won't easily let me change the hardware. If I'd had my way, I would have designed in a jumper option of some sort. At worst case I could make a through-board or cable that swaps over CE0 and CE1...
by SteveSpencer
Mon Jun 06, 2016 11:26 am
Forum: Device Tree
Topic: Multiple SPI slaves - best option?
Replies: 11
Views: 2703

Re: Multiple SPI slaves - best option?

BMS Doug wrote: Maybe if you ask Phil nicely he'll include a chip select option into a future revision.
Hmm, I wonder how nicely I'd have to ask ? :D

I will give the edited overlay file a go when I get the chance. Curse this need to actually earn a living...

Thanks,
by SteveSpencer
Mon Jun 06, 2016 10:42 am
Forum: Device Tree
Topic: Multiple SPI slaves - best option?
Replies: 11
Views: 2703

Multiple SPI slaves - best option?

I want to load two overlays (ads7846, and enc28j60) on a Zero. The first is the appropriate driver for an XPT touch controller on a 5" HDMI screen, and the second, of course, is for networking. Given that the network traffic is relatively light (think IoT updates), this should be perfectly safe. The...
by SteveSpencer
Thu Jun 02, 2016 10:37 am
Forum: General discussion
Topic: Relay board: external power supply with VCC?
Replies: 21
Views: 4932

Re: Relay board: external power supply with VCC?

You would need to connect the Pi ground to the board's ground, and the GPIO on the Pi to CTR1..CTR8 as appropriate, from what I can see. It's possible that the Pi may not provide a high enough voltage on the GPIO to trigger the relay, in which case I'd be tempted to use an opto-isolator between the ...
by SteveSpencer
Fri May 20, 2016 11:13 am
Forum: Raspbian
Topic: Device Tree and USB HDD
Replies: 9
Views: 1911

Re: Device Tree and USB HDD

Congratulations!
It's heartening to read this success story, particularly as I am about to embark on a similar exercise myself.

Turns out my mSATA adapters are supported by dynamic modules, so putting root fs on them wasn't as successful as I'd hoped :(
by SteveSpencer
Wed May 11, 2016 8:54 am
Forum: HATs and other add-ons
Topic: Kernel Driver for NeoPixel WS2812B LEDs, Code + Instruction
Replies: 9
Views: 8747

Re: Kernel Driver for NeoPixel WS2812B LEDs, Code + Instruct

Is there a timescale for the 4.4 release as stock? (Perhaps when the revised Zero is available, since it needs a f/w change anyway). As I have several machines (ranging from Zero to 3 in type), sounds like my best bet may be to bite the 4.4 bullet on one of them, and move forwards using that. The de...
by SteveSpencer
Tue May 10, 2016 3:21 pm
Forum: HATs and other add-ons
Topic: Kernel Driver for NeoPixel WS2812B LEDs, Code + Instruction
Replies: 9
Views: 8747

Re: Kernel Driver for NeoPixel WS2812B LEDs, Code + Instruct

Those patches also do everything nicely via device tree overlays instead of platform code, so you could try cherry-picking the 3 commits from there and seeing whether it builds. Sounds like a plan. I haven't moved on to 4.4 yet, I prefer using "stock" firmware etc unless there's a compelling use-ca...
by SteveSpencer
Mon May 09, 2016 8:29 am
Forum: HATs and other add-ons
Topic: Kernel Driver for NeoPixel WS2812B LEDs, Code + Instruction
Replies: 9
Views: 8747

Re: Kernel Driver for NeoPixel WS2812B LEDs, Code + Instruct

Have a look at https://github.com/raspberrypi/linux/pull/710 Gordon had done most of the work for the Slice media player, but not tidied it up based on feedback. Is Gordon's work in any official build or available rpi-update, and if so, how would I go about configuring it? At the moment I "farm out...
by SteveSpencer
Fri Apr 29, 2016 9:00 am
Forum: C/C++
Topic: GCC 6.1 Released
Replies: 14
Views: 6783

Re: GCC 6.1 Released

Out of interest, was it throttling back? I found adding a heatsink gained half an hour or so because it ran at 1200Mhz all the time (well all the time I happened to be watching anyway). Possibly, I didn't check, I just left it to run to completion. It does have a heat-sink installed (Pimoroni HAT c...
by SteveSpencer
Thu Apr 28, 2016 3:35 pm
Forum: C/C++
Topic: GCC 6.1 Released
Replies: 14
Views: 6783

Re: GCC 6.1 Released

Yup, works for me. :D Although on my Pi3B it took around 6.5 hours, building on an 8GB SD card with 1GB of swap and -j5 specified. This is with a class 10 card, and gpu_mem set to 16, with no ipv6 loaded. All other things are standard, no overclocking, and no i2c or spi loaded. If I tried hard I cou...

Go to advanced search