Go to advanced search

by SteveSpencer
Wed Jan 10, 2018 11:18 am
Forum: Graphics programming
Topic: GUI - which graphics library/system to use
Replies: 8
Views: 9755

Re: GUI - which graphics library/system to use

Thanks for both suggestions. I probably want to run on a ZeroW, which fits nicely on the back of the screen. If I go down the "lite" route, the openvg stuff looks interesting. It doesn't have any widgets, but I have written controls for windows from scratch before, and that way I don't have any unwa...
by SteveSpencer
Tue Jan 09, 2018 3:23 pm
Forum: Graphics programming
Topic: GUI - which graphics library/system to use
Replies: 8
Views: 9755

GUI - which graphics library/system to use

I have a relatively straightforward (I hope) requirement. First some background. I have an MS Windows C++ app (source code too) that is basically a set of buttons and lists. Within Windows this is simply a collection of controls. I have a variety of Pi, from Zero, original model B, all the way throu...
by SteveSpencer
Wed Oct 25, 2017 11:55 am
Forum: C/C++
Topic: What is the best api to play audio files?
Replies: 2
Views: 962

Re: What is the best api to play audio files?

You could use the BASS music library. http://www.un4seen.com/bass.html . This is a fully featured playback system that is relatively straightforward to use, and can play MP3 and OGG files. Make sure you get the Pi ARM version though, not the x86/x64 ones. I use all three, so I can test on a PC, then...
by SteveSpencer
Wed Oct 25, 2017 11:47 am
Forum: General discussion
Topic: Where do you buy your pis?
Replies: 16
Views: 2190

Re: Where do you buy your pis?

In the past I have bought from RS - where my first Pi came from. However, I do like the nice people at Pimoroni, and only yesterday a new PiZeroW and Pi3B arrived in a package from them. Most of my collection came from there. The prices are reasonable, and they carry a good selection of cases and ad...
by SteveSpencer
Wed Aug 09, 2017 11:51 am
Forum: General discussion
Topic: VideoCore gpu lives on with vc5
Replies: 8
Views: 2233

Re: VideoCore gpu lives on with vc5

Having read the article referenced, and the comments underneath it, I get the distinct impression that many of the people posting are less than unbiased about RPF and the trading arm. Maybe it's because I'm over 50, but to me, an SBC for around $35 is a good deal, and the fact that so much support i...
by SteveSpencer
Mon Aug 07, 2017 9:42 am
Forum: General discussion
Topic: 5v vs 3.3v data wires
Replies: 10
Views: 1862

Re: 5v vs 3.3v data wires

Yes. Don't do it.
A voltage divider isn't too difficult to make, after all...
by SteveSpencer
Fri Aug 04, 2017 2:59 pm
Forum: C/C++
Topic: [pigpio] Bad I2C Bus
Replies: 6
Views: 1905

Re: [pigpio] Bad I2C Bus

I don't disagree that i2c bus#0 is there, but I wouldn't use it. It is used by the video core, (aka the GPU), for things like the camera. You almost certainly want to follow the good advice of changing to i2c bus#1 instead. It will save you lots of headaches in the long run.
by SteveSpencer
Tue Jul 18, 2017 3:33 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: PCA9685 board with RPi 3 problems
Replies: 3
Views: 1608

Re: PCA9685 board with RPi 3 problems

How are you powering the servo motors? I never power anything from the Pi if it is at all avoidable (which it mostly is), unless I'm using a HAT or pHAT which is designed to do that, such as the Blinkt (from Pimoroni). When driving servos, I always power them from a separate supply, connecting the P...
by SteveSpencer
Tue Jul 04, 2017 2:01 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: PCA9685 board with RPi 3 problems
Replies: 3
Views: 1608

Re: PCA9685 board with RPi 3 problems

Well, the fact it has detected something at 0x40 matches the default address for the PCA9685.
If you run servo.py, do you get any output?
Looking at the code in GitHub, it should print some sort of informational messages about the pi module/revision, and so on.
by SteveSpencer
Tue Jul 04, 2017 1:56 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SainSmart 8-Channel 5V Relay Module VS SainSmart 8-Channel
Replies: 20
Views: 17537

Re: SainSmart 8-Channel 5V Relay Module VS SainSmart 8-Chan

Just wanted to put this out there... I laid out a board to drive the non-SSR version using transistors to pull the input pins to ground. The schematic/layout is available at https://github.com/fixedd/RPi_SainSmart_Interface I did something similar with Fritzing, and had some made up by Aisler (who ...
by SteveSpencer
Tue Jul 04, 2017 1:22 pm
Forum: C/C++
Topic: Ublox GY-NEO-6M: C code (e.g. wiringPI) via UART, no daemon?
Replies: 35
Views: 7151

Re: Ublox GY-NEO-6M: C code (e.g. wiringPI) via UART, no dae

To the original OP - read topguy's comment above. Should you not fully appreciate it, I have explained it below (while topguy was typing their response) The problem you face is quite simple. The TinyGPS+ library was written for Arduino, in C++. You don't know C++. Lots of other sample code was writt...
by SteveSpencer
Mon Jun 26, 2017 2:51 pm
Forum: Raspbian
Topic: CH340
Replies: 25
Views: 18706

Re: CH340

I have a bunch of Wemos D1 mini and mini Pro boards (ESP8266), which identify as CH341 for the USB/serial side. I found that when uploading code to them, I could not reliably get them to work at a speed higher than 9600, although on a couple, 19,200 worked. When you're uploading around 64KB, this is...
by SteveSpencer
Fri Jun 16, 2017 1:13 pm
Forum: General discussion
Topic: 1000ma charger OK?
Replies: 7
Views: 1108

Re: 1000ma charger OK?

You don't say what model Pi you have.
That will make a difference. The recommended one for Pi3 is 2500mA, for example.
It also depends if you are plugging in USB devices, which will also draw power, unless you're using a powered hub.
by SteveSpencer
Fri Jun 16, 2017 8:16 am
Forum: Advanced users
Topic: 433mhz tx/rx working but not turn on rfoutlet
Replies: 5
Views: 1360

Re: 433mhz tx/rx working but not turn on rfoutlet

It looks like the tx/rx modules you have are very similar to the ones I have used. The reason I mention level shifters is simple. The modules are designed to run with VCC = 5V, and the data signals going to the transmitter and coming from the receiver are also 5V. For some transmitters you might get...
by SteveSpencer
Wed Jun 14, 2017 10:52 am
Forum: General discussion
Topic: Commercial Use of the Pi
Replies: 203
Views: 32273

Re: Commercial Use of the Pi

Right now, there is no intention to relax the one per customer limit on Zero's or provide them in bulk quantities. However, we are working on fixing that. We do have a road map, but I do not have a timescale for any announcements, there is a lot of discussion going on and still to be done. Right no...
by SteveSpencer
Wed Jun 14, 2017 9:43 am
Forum: Advanced users
Topic: 433mhz tx/rx working but not turn on rfoutlet
Replies: 5
Views: 1360

Re: 433mhz tx/rx working but not turn on rfoutlet

What tx/rx modules are you using?
Could it be that they are not correctly powered, or you need to use level-shifters to deal with incoming/outgoing signals?

That might explain why the range is so poor.
by SteveSpencer
Tue Jun 06, 2017 1:05 pm
Forum: Troubleshooting
Topic: my asoundrc is modified every reboot
Replies: 13
Views: 3458

Re: my asoundrc is modified every reboot

Ah, thanks Phil. That explains why I haven't come across this behaviour. The only machines I have which care about asoundrc (or ALSA in general) are headless, so no GUI, and hence, no changes.
by SteveSpencer
Fri Jun 02, 2017 1:22 pm
Forum: Beginners
Topic: Curious about mpeg2 hardware decoding
Replies: 6
Views: 1492

Re: Curious about mpeg2 hardware decoding

You would still need a key for each pi you want to have hardware acceleration on. They key is generated using the pi's serial number. Not having a dedicated card or usb per pi would end up making it a very annoying ordeal. If you do go that route i would highly suggest ordering the keys 1 at a time...
by SteveSpencer
Fri Jun 02, 2017 12:55 pm
Forum: Troubleshooting
Topic: my asoundrc is modified every reboot
Replies: 13
Views: 3458

Re: my asoundrc is modified every reboot

From reading the StackExchange thread, the key seems to be forcing the audio out to either 3.5mm or HDMI. If the default behaviour is "auto", then on booting, something on the audio side is determining if the connected HDMI device supports audio, or not, and then modifying the asoundrc accordingly. ...
by SteveSpencer
Fri Jun 02, 2017 12:27 pm
Forum: Beginners
Topic: Curious about mpeg2 hardware decoding
Replies: 6
Views: 1492

Re: Curious about mpeg2 hardware decoding

It activates a OTP bit in the GPU which activates it and tells it that it can decode. Really? That implies that you only need the key once, and thereafter, the bit is set anyway. I have a number of Pi boards of varying types, (Pi0,Pi0W,PiA,PiB,PiB+,Pi2B,Pi3B), and I assumed it was a runtime thing. ...
by SteveSpencer
Wed May 31, 2017 3:23 pm
Forum: General discussion
Topic: Raspbian Lite can't get ssh to work without monitor!
Replies: 4
Views: 864

Re: Raspbian Lite can't get ssh to work without monitor!

Good. The confusion arises because on a Windows machine, you can see <b>only</b> the boot partition. Essentially, when the system boots, it loads the Linux kernel from the FAT partition. One of the startup things that is done is to mount file systems (partitions) according to what is in the fstab. F...
by SteveSpencer
Tue May 09, 2017 8:37 am
Forum: Advanced users
Topic: ZPL print problems
Replies: 2
Views: 980

Re: ZPL print problems

Get a copy of https://www.zebra.com/content/dam/zebra ... -pm-en.pdf
Then capture the output that lowriter is sending to the printer, and check it against the specification.
You can use od to dump the raw data in a readable form, which might make it easier to do.
by SteveSpencer
Wed May 03, 2017 12:49 pm
Forum: Advanced users
Topic: How to check via cli if reboot is required
Replies: 3
Views: 744

Re: How to check via cli if reboot is required

I suspect you are referring to whether or not a reboot is required after applying updates. This will all depend on what's been updated, of course. I tend not to reboot unless the kernel or firmware has been changed, but it depends on what the Pi has been (or is) doing. Short answer appears to be no....
by SteveSpencer
Thu Apr 20, 2017 3:56 pm
Forum: Troubleshooting
Topic: Missing space on raspberry pi drive
Replies: 2
Views: 540

Re: Missing space on raspberry pi drive

One possibility is that the NAS uses a large "logical" block size. For example, if it uses a 16K block size, then having ten files which are only 1K in size each will use up 160K, not 10K as you might expect. Turning each of those 1K files into 15K files would not use up any more disk space, though....
by SteveSpencer
Tue Apr 18, 2017 8:42 am
Forum: Raspbian
Topic: FAT32 partition size change
Replies: 10
Views: 1418

Re: FAT32 partition size change

To reduce the size a little. Why? No just idle curiosity. I have scripts that I used to modify the root fs of the img files once downloaded and unzipped. They stopped working because I had hard-coded the offset. I now do things properly by digging out the actual size, and everything works as it use...

Go to advanced search