Go to advanced search

by DaveCooper
Sat Apr 25, 2020 3:16 pm
Forum: Troubleshooting
Topic: ALSA/PULSEAUDIO ----- PULSEAUDIO/ALSA
Replies: 7
Views: 1984

Re: ALSA/PULSEAUDIO ----- PULSEAUDIO/ALSA

Well, this https://wiki.archlinux.org/index.php/Ad ... n_examples seems to include some useful suggestions. I guess not much of it is specifically aimed at r pi, but I'm sure with a bit of custom compiling you will get there. Dave
by DaveCooper
Sat Apr 25, 2020 3:07 pm
Forum: Troubleshooting
Topic: Trouble running program from cron
Replies: 3
Views: 249

Re: Trouble running program from cron

OK. Finally got this going. The reason I couldn't start the c program from cron was because it meant I was trying to run the program in the cron environment (which is a subset of the su environment (apparently!)) and it crashed immediately, and even starting a bash script from cron and using the bas...
by DaveCooper
Wed Apr 22, 2020 9:14 pm
Forum: Troubleshooting
Topic: VNC Connected - Asking for password
Replies: 2
Views: 123

Re: VNC Connected - Asking for password

I'm pretty sure you need a user account on the VNC target machine. Assuming you're a user on your own rpi4, can't you just log in with your usual username and password? Dave

Oops, didn't read the bit about disabling logins! Still, could be woth trying your (old) user password?
by DaveCooper
Wed Apr 22, 2020 8:50 pm
Forum: Troubleshooting
Topic: Trouble running program from cron
Replies: 3
Views: 249

Re: Trouble running program from cron

No, not running the GUI. SDL (Simple DirectMedia Layer) runs the graphics. The program works fine from the command line, ether directly with ./p1 or sh player.sh (the shell script). Thanks for your answer. Dave
by DaveCooper
Wed Apr 22, 2020 8:44 pm
Forum: Troubleshooting
Topic: Audio over Bluetooth on PI4 with Raspbian Lite
Replies: 6
Views: 566

Re: Audio over Bluetooth on PI4 with Raspbian Lite

Hi. I've done this, following this: https://robotzero.one/pi-zero-w-bluetooth-voice/ I found that it only worked if I followed their instructions from a fresh install, and I never got it to work with Buster. I'm pretty sure that 2018-04-18-raspbian-stretch-lite was what I used, and when I stupidly u...
by DaveCooper
Wed Apr 22, 2020 8:18 pm
Forum: Troubleshooting
Topic: Trouble running program from cron
Replies: 3
Views: 249

Trouble running program from cron

Hi, I'm trying to run a c program (called p1) on boot. Initially I set it up a crontab something like: @reboot sleep 10 && cd /home/pi/GUIslice/examples/linux && ./p1& >> /home/pi/cron.log 2>&1 It didn't start up and cron.log said: GUIslice version [0.13.1.3]: - Init display handler [SDL1] FAIL ERRO...
by DaveCooper
Tue Apr 21, 2020 10:10 pm
Forum: Beginners
Topic: Building a vibration/frequency counter
Replies: 2
Views: 150

Re: Building a vibration/frequency counter

Hi. I don't think I would use an rpi for this job. Because the pi's operating system is running lots of threads simultaneously, it isn't very good at real time operations like frequency counting. If I was doing it I'd use an 8 bit processor running on 5V in a DIP package, like a pic16Fxxx. But, if y...
by DaveCooper
Mon Apr 20, 2020 9:20 pm
Forum: Troubleshooting
Topic: 4B not booting correctly
Replies: 6
Views: 348

Re: 4B not booting correctly

Hi tp. When you say I am using NOOBS which boots up nicely on the 3B , you don't mean that you pulled the sd card out of your Pi 3B and plugged it into your Pi 4B, do you? If so, that could be your problem. When you boot a new image, your os automatically does a bit of configuring, and maybe an SD c...
by DaveCooper
Sun Apr 19, 2020 11:09 pm
Forum: Troubleshooting
Topic: Pycharm Frustration
Replies: 3
Views: 666

Re: Pycharm Frustration

Did you compile it on your pi? Probably involved a .tar.gz file and some stuff like './configure' and 'make install' on the command line? Unless there's a specific pi package to install using apt-get, you mostly have to compile stuff on the pi so that it's correctly configured to run on your ARM pro...
by DaveCooper
Sun Apr 19, 2020 10:42 pm
Forum: Troubleshooting
Topic: Pi Zero W v1.1 - "No wireless interface found" on 2019-09-26 Buster Lite
Replies: 17
Views: 2199

Re: Pi Zero W v1.1 - "No wireless interface found" on 2019-09-26 Buster Lite

Oh, yeah: meant to say that I've never had a problem with lite release versions and wifi on pi zero w. I had a spell when I was having a tussle with bluetooth headless, and I tried buster, stretch and jessie (all lite) and they all worked the wifi ok. Dave
by DaveCooper
Sun Apr 19, 2020 10:20 pm
Forum: Troubleshooting
Topic: Pi Zero W v1.1 - "No wireless interface found" on 2019-09-26 Buster Lite
Replies: 17
Views: 2199

Re: Pi Zero W v1.1 - "No wireless interface found" on 2019-09-26 Buster Lite

If you've got issues with wlan0 access, this is a good way to debug them:

Code: Select all

sudo killall wpa_supplicant
sudo wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0
should tell you pretty much exactly what went wrong. (I'd managed to screw up the conf file :oops: ) Dave
by DaveCooper
Sun Apr 19, 2020 10:02 pm
Forum: Advanced users
Topic: How do I use Pi as a Single player Instead of other Music Players ?
Replies: 5
Views: 546

Re: How do I use Pi as a Single player Instead of other Music Players ?

You also need a better PSU.
Well, yes! It's actually running off a 6AH 12v lead-acid batt via a 5V 3A voltage regulator, but after a couple of days development I think the battery could do with a charge! Dave
by DaveCooper
Sun Apr 19, 2020 6:13 pm
Forum: Advanced users
Topic: rpi touchscreen+display but from command line
Replies: 11
Views: 792

Re: rpi touchscreen+display but from command line

Code: Select all

$ ls /dev/input
by-id  by-path  event0  event1  mice
$ ls /dev/fb*
/dev/fb0
Pretty sure you'll find that your touchscreen is event0.

Dave
by DaveCooper
Sun Apr 19, 2020 6:05 pm
Forum: Advanced users
Topic: How do I use Pi as a Single player Instead of other Music Players ?
Replies: 5
Views: 546

Re: How do I use Pi as a Single player Instead of other Music Players ?

Hi Zechvenum, welcome to this forum! Just by a fluke, I thought on Friday evening it'd be fun to have an mp3 player for the car, so I just put one together using a pi 3b and a beaten-up 7" touchscreen that were pretty much the first things that came to hand. I'm using Buster lite as the operating sy...
by DaveCooper
Mon Dec 02, 2019 3:14 pm
Forum: C/C++
Topic: raspberry pi3 HX711 using loadcell Segmentation fault
Replies: 7
Views: 1008

Re: raspberry pi3 HX711 using loadcell Segmentation fault

I've had a few segmentation faults over the years and I think I remember that they were caused by either trying to write to memory locations that didn't exist (eg running off the end of an EEPROM) or trying to write to memory locations which weren't accessible (eg files with wrong permissions). For ...
by DaveCooper
Mon Dec 02, 2019 3:01 pm
Forum: C/C++
Topic: Looking for recommendations of an audio library
Replies: 5
Views: 1037

Re: Looking for recommendations of an audio library

Hi, I'm using Pico TTS as a text to speech engine on a rpi zero W The output is a .wav file and the results (handled by a super-cheapo bluetooth speaker) are amazingly good! Hope this helps. Dave
by DaveCooper
Mon Sep 16, 2019 10:53 pm
Forum: Troubleshooting
Topic: How to prevent SD Card corruption
Replies: 6
Views: 716

Re: How to prevent SD Card corruption

Hi, how about using c instead of python? It's a lot faster and less resource-heavy, so the chances that it's doing something crucial when the power goes down should be a lot less. Dave
by DaveCooper
Mon Sep 16, 2019 10:39 pm
Forum: Troubleshooting
Topic: Espeak to bluetooth speaker on pi zero w - having some trouble!
Replies: 5
Views: 1570

Re: Espeak to bluetooth speaker on pi zero w - having some trouble!

Ok, well I've finally got this project looking like it could work! I'm using 2018-04-18-stretch-lite, running headless on a pi zero w, and the bluetooth speaker is reconnecting on boot and working very reliably and predictably which is really nice. Mostly I've followed the instructions in this artic...
by DaveCooper
Wed Aug 14, 2019 9:06 am
Forum: Troubleshooting
Topic: Espeak to bluetooth speaker on pi zero w - having some trouble!
Replies: 5
Views: 1570

Re: Espeak to bluetooth speaker on pi zero w - having some trouble!

Well, without reading your last post I loaded up a stretch img from 2018-11-13 which is kernel 4.14 apparently, and it worked straight out of the box. :D I'll also try some older kernels. Thanks for your help! Dave
by DaveCooper
Tue Aug 13, 2019 7:08 pm
Forum: Troubleshooting
Topic: Espeak to bluetooth speaker on pi zero w - having some trouble!
Replies: 5
Views: 1570

Re: Espeak to bluetooth speaker on pi zero w - having some trouble!

Ok, I'll try it with stretch. Thanks for your advice. Dave
by DaveCooper
Mon Aug 12, 2019 8:30 pm
Forum: Troubleshooting
Topic: Espeak to bluetooth speaker on pi zero w - having some trouble!
Replies: 5
Views: 1570

Espeak to bluetooth speaker on pi zero w - having some trouble!

Hi. I'm (trying to!) build an a battery-powered application where the data from a sensor is output as speech. Rpi zero w seems like a pretty good fit and I'm using a bluetooth shower speaker (wet environment!) as the output device. I'm using raspbian buster. Getting bluetooth going was smooth and th...
by DaveCooper
Thu Mar 07, 2019 9:19 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2cdetect isn't working
Replies: 6
Views: 681

Re: i2cdetect isn't working

Ah, thank you for that. Wow, it's big! I'll sort thro' it in the morning and see if I can make it out. :-) Dave
by DaveCooper
Thu Mar 07, 2019 5:22 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2cdetect isn't working
Replies: 6
Views: 681

Re: i2cdetect isn't working

Huh, just loaded on a clean install of Raspbian Jessie and i2c fired up first hit! Time for a bug report! Dave
by DaveCooper
Thu Mar 07, 2019 3:53 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: MAX7219 matrix - all leds are on when the power is connected
Replies: 6
Views: 1777

Re: MAX7219 matrix - all leds are on when the power is connected

Hi, there may not be a super-simple solution to this: it looks like all leds on is the default state at power-up, and that's what you see until the pi's booted and started running your program. One way you might be able fix it is by powering the leds through a relay or a mosfet and having the pi tur...
by DaveCooper
Thu Mar 07, 2019 1:04 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2cdetect isn't working
Replies: 6
Views: 681

Re: i2cdetect isn't working

i2c_conns.jpg Here's a pic: the device is a 24LC512 eeprom, red = 3.3V, green = i2c data, blue = i2c clock, black = ground. The device showed up fine (slave address = 0x50) with an older pi B+, so I'm pretty confident it's a goer. The pcb in the backgound is an io expander with 2x mcp23017 on it (s...

Go to advanced search