Go to advanced search

by scruss
Mon Dec 09, 2019 9:23 pm
Forum: General discussion
Topic: Install Arduino Library from Raspberry Pi
Replies: 5
Views: 116

Re: Install Arduino Library from Raspberry Pi

Ok I added -X when I ssh'd into the pi but nothing happened. Looks like you don't have an X server running on the local machine, then. If you did, the Arduino IDE running on your Raspberry Pi would appear on the local machine's screen. You might want to try installing arduino-cli . It's really slow...
by scruss
Mon Dec 09, 2019 2:19 am
Forum: General discussion
Topic: Install Arduino Library from Raspberry Pi
Replies: 5
Views: 116

Re: Install Arduino Library from Raspberry Pi

Do you have the Arduino IDE installed on your Raspberry Pi? If so, you should be able to call it up on your local computer if you ssh in using ssh -X. This will need an X server running on the local computer.
by scruss
Sun Dec 08, 2019 4:26 pm
Forum: C/C++
Topic: How to drive max7219 8digit 7segment tube via pigpio spi?
Replies: 5
Views: 104

Re: How to drive max7219 8digit 7segment tube via pigpio spi?

How are you powering the display? Some 7-segment displays draw more current than you'd expect and you might need an external 5V supply.
by scruss
Fri Dec 06, 2019 1:56 am
Forum: General programming discussion
Topic: QuestDB - Lightweight Open Source Time-Series DB
Replies: 12
Views: 318

Re: QuestDB - Lightweight Open Source Time-Series DB

DougieLawson wrote:
Thu Dec 05, 2019 9:29 pm
If you need 64-bit then Sakaki-san's Gentoo64 is your best choice.
I used to use Gentoo, but I got better. It just seemed, back then, to be an OS for people who had no idea what they were doing. Also for people who really really liked compiling everything
by scruss
Thu Dec 05, 2019 9:00 pm
Forum: General programming discussion
Topic: QuestDB - Lightweight Open Source Time-Series DB
Replies: 12
Views: 318

Re: QuestDB - Lightweight Open Source Time-Series DB

The Foundation's being hesitant with a full 64-bit system: they want a system they can support on all Raspberry Pi boards, so 32 bit it stays.
by scruss
Wed Dec 04, 2019 8:31 pm
Forum: General discussion
Topic: Raspberry Pi 4 is not a replacement for a real PC, (as it doesn't have Skype) sorry!
Replies: 72
Views: 2547

Re: Raspberry Pi 4 is not a replacement for a real PC, (as it doesn't have Skype) sorry!

CUPS is still pretty opaque with its filters. Short of setting LogLevel debug in /etc/cups/cupsd.conf, restarting CUPS, printing something, then issuing: grep 'Using following CUPS filter chain' /var/log/cups/error_log it's very hard to see what CUPS is really doing. Adding IPP into the mix just add...
by scruss
Wed Dec 04, 2019 7:17 pm
Forum: General discussion
Topic: Raspberry Pi 4 is not a replacement for a real PC, (as it doesn't have Skype) sorry!
Replies: 72
Views: 2547

Re: Raspberry Pi 4 is not a replacement for a real PC, (as it doesn't have Skype) sorry!

It very much depends on your printers. If they speak PostScript, then you're done: CUPS will simply hand that off to the printer and wait for the results. If not, then Ghostscript gets involved, … You might find that CUPS involves Ghostscript no matter what the output. If you do something like: cup...
by scruss
Wed Dec 04, 2019 6:39 pm
Forum: Troubleshooting
Topic: issues on buster: octave, cmus ,espeak
Replies: 2
Views: 71

Re: issues on buster: octave, cmus ,espeak

First octavegui is not working properly on pi 2b,3b,4b. Octave-cli works but cannot plot. That's an odd one. It really messes up the screen for me. Do you get the same error messages from demo plot as I got? warning: opengl_renderer: Error 'invalid enumerant' (1280) occurred drawing 'text' object w...
by scruss
Wed Dec 04, 2019 6:06 pm
Forum: General programming discussion
Topic: QuestDB - Lightweight Open Source Time-Series DB
Replies: 12
Views: 318

Re: QuestDB - Lightweight Open Source Time-Series DB

Thanks for this. Having worked in both power utilities and currency trading, I could've used this back in the day.

The 64 bit, Java ≤ 1.8 might be a little bit of a limitation for some folks here, but if it's what the package needs …
by scruss
Mon Dec 02, 2019 3:12 am
Forum: Troubleshooting
Topic: USB Keyboard wont work until unplugged and plugged after boot
Replies: 8
Views: 221

Re: USB Keyboard wont work until unplugged and plugged after boot

You've got a keyboard that works, and one that doesn't?

Linux keyboard detection can be very strange. I had a perfectly good USB keyboard that Raspberry Pis used to swear Did Not Exist.
by scruss
Sun Dec 01, 2019 9:23 pm
Forum: General discussion
Topic: audio for time sync idea
Replies: 5
Views: 169

Re: audio for time sync idea

Can you embed LTC in a channel in your recording? There are a few audio formats that can embed timecodes (BWF, basically WAV + some extra tags), but not necessarily any lossy streaming ones. Then there's the way that CHU does it, embedding Bell 103 tones in the output. It's ugly, though.
by scruss
Sun Dec 01, 2019 6:16 pm
Forum: Python
Topic: Use PS4 controller for stepper motor
Replies: 1
Views: 51

Re: Use PS4 controller for stepper motor

more readable code, copy and pasted into a 'code' section: #PS4 Controlled Car import RPi.GPIO as GPIO import time import pygame GPIO.setmode(GPIO.BOARD) pygame.init() pygame.joystick.init() ControlPin = [7,11,13,15] for pin in ControlPin: GPIO.setup(pin,GPIO.OUT) GPIO.output(pin,0) seq = [ [1,0,0,0...
by scruss
Sun Dec 01, 2019 6:10 pm
Forum: Networking and servers
Topic: Time synchronization without GPS or Cloud
Replies: 3
Views: 127

Re: Time synchronization without GPS or Cloud

PTP only works over ethernet. Raspbian isn't a real-time OS, so 1 ms sync is probably not realistic. Other system tasks can get in the way. I've seen impressive feats of synchronization based on mains voltage frequency analysis, but not on a Raspberry Pi. Similarly, time sync from surplus Rubidium a...
by scruss
Sun Dec 01, 2019 5:49 pm
Forum: Beginners
Topic: wine
Replies: 4
Views: 144

Re: wine

I wouldn't. WINE needs an Intel processor. A Raspberry Pi has to emulate that, and does so very very slowly.
by scruss
Sun Dec 01, 2019 5:43 pm
Forum: Troubleshooting
Topic: USB Keyboard wont work until unplugged and plugged after boot
Replies: 8
Views: 221

Re: USB Keyboard wont work until unplugged and plugged after boot

Which ports on the Raspberry Pi 4 are you using? Two are USB 3 and the other two are USB 2. The USB 2 ones are more likely to work with a low-speed device like a keyboard. Sometimes you just need a USB hub (even an unpowered one) to make USB devices happy. I'd revert to the standard firmware if you ...
by scruss
Sun Dec 01, 2019 5:37 pm
Forum: Beginners
Topic: Cheapest Raspberry Pi Zero screen?
Replies: 3
Views: 114

Re: Cheapest Raspberry Pi Zero screen?

Define “budget”. You can get super-cheap composite LCD monitors meant for car reversing cameras, but the resolution is terrible and text will be fuzzy. A 4" HDMI LCD is about $40. Last year I got a 19" ex-lease IBM flat panel monitor for $5 or so. Add a DVI to HDMI adapter (another $5) and it's a de...
by scruss
Sat Nov 30, 2019 2:33 pm
Forum: Beginners
Topic: Installing NOOBS: Hash Doesn't Match
Replies: 2
Views: 85

Re: Installing NOOBS: Hash Doesn't Match

I think you have a partial download there. This is what I got from the actual file on my local mirror: $ ls -l NOOBS_v3_2_1.zip -rwxr-xr-x 1 root root 2458151646 Sep 30 15:08 NOOBS_v3_2_1.zip $ sha256sum NOOBS_v3_2_1.zip 9d040a0b2795e940cab848c612a9ccfd739cf7ea5fcb1d42141f93cefcef4078 NOOBS_v3_2_1.z...
by scruss
Sat Nov 30, 2019 2:25 pm
Forum: Beginners
Topic: Rasbian clocks without zero in hours.
Replies: 2
Views: 88

Re: Rasbian clocks without zero in hours.

Right click on the menu bar clock, choose Digital Clock Settings, then change %R to %k:%M.

If you want to use different codes, use the suggested man 3 strftime command to find out about them
by scruss
Fri Nov 29, 2019 10:22 pm
Forum: Python
Topic: Need help to my GPIOZERO programming
Replies: 2
Views: 84

Re: Need help to my GPIOZERO programming

Try a callback on button.when_released tracking a cumulative button.held_time, a bit like this:
https://github.com/scruss/shutdown_butt ... _button.py
by scruss
Fri Nov 29, 2019 10:18 pm
Forum: Beginners
Topic: Still unable to load NFS on boot
Replies: 11
Views: 189

Re: Still unable to load NFS on boot

The noauto will stop it automounting on boot, though
by scruss
Fri Nov 29, 2019 8:07 pm
Forum: Off topic discussion
Topic: Does this forum have a 'dark' mode ?
Replies: 23
Views: 868

Re: Does this forum have a 'dark' mode ?

Most of the android world has gone 'dark' mode crazy apart from here, hopefully one day the forum will increase it's user friendliness and save our retinas ;) I remember when we went from white-on-black to “save our retinas”. It would be nice if UXs were designed for and by people with eyes older t...
by scruss
Thu Nov 28, 2019 9:28 pm
Forum: Troubleshooting
Topic: Serial port won't open after using minicom
Replies: 4
Views: 102

Re: Serial port won't open after using minicom

See what program is hanging on to the serial port:

Code: Select all

lsof /dev/serial0
You may need to install lsof first. Minicom should let the port go if it was properly exited.
by scruss
Thu Nov 28, 2019 4:43 pm
Forum: Raspbian
Topic: I want to to have a "Recently used files list" in Raspbian Menu
Replies: 7
Views: 203

Re: I want to to have a "Recently used files list" in Raspbian Menu

It looks like these menus are provided by Search Indexer (Windows), Spotlight (OS X) and Tracker (Ubuntu). These tend to be rather memory intensive, and Linux implementations tend to be buggy. Tracker, for instance, will hog a core of my 4 GHz i7 if one of its indexing filters finds a file that it d...
by scruss
Tue Nov 26, 2019 2:31 pm
Forum: Beginners
Topic: Raspberry Thonny IDE does not show image
Replies: 5
Views: 159

Re: Raspberry Thonny IDE does not show image

Given the complete lack of error messages (which is very uncharacteristic of Python: it looooooooooves its error messages) it wasn't too obvious, and I came about it obliquely. When I was looking for a file to copy to Desktop/download.png so your example would work, I tried display Desktop/download....
by scruss
Tue Nov 26, 2019 1:40 pm
Forum: Advanced users
Topic: Raspberry Pi 3B FTDI FT232R USB UART adapter
Replies: 18
Views: 522

Re: Raspberry Pi 3B FTDI FT232R USB UART adapter

The difference between the OP's and hippy's dmesg output is that the OP isn't getting the ftdi_sio kernel module loaded. So as a temporary measure, before you plug the device in, try:

Code: Select all

sudo modprobe ftdi_sio
then plug it in.

Go to advanced search