Go to advanced search

by scruss
Sat Nov 18, 2017 4:39 am
Forum: General programming discussion
Topic: A better gui text editor?
Replies: 37
Views: 17084

Re: A better gui text editor?

that would be:

Code: Select all

sudo update-alternatives --config editor
by scruss
Fri Nov 17, 2017 6:11 pm
Forum: General programming discussion
Topic: A better gui text editor?
Replies: 37
Views: 17084

Re: A better gui text editor?

Martin Frezman wrote:
Thu Aug 24, 2017 8:54 pm
The basic idea here is that you want to use GVIM to edit the crontab …
Or, once and for all from a terminal:

Code: Select all

select-editor
It will give you a choice of all the system-installed text editors that will become the default for crontab, mail, etc.
by scruss
Fri Nov 17, 2017 6:07 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Connecting a water meter
Replies: 1
Views: 49

Re: Connecting a water meter

Maybe this: Wiring: White - GPIO 4 (phys. pin 7); Brown - GND (phys. pin 9 might be a good choice) Code (completely untested): #!/usr/bin/env python3 # -*- coding: utf-8 -*- from gpiozero import Button from signal import pause pulse_count=0 def pulse: global pulse_count pulse_count = pulse_count + 1...
by scruss
Thu Nov 16, 2017 5:12 pm
Forum: Beginners
Topic: Rpi 3 Shutdown button
Replies: 16
Views: 540

Re: Rpi 3 Shutdown button

Yes, the shim has optional breakout pins to connect an external momentary button
by scruss
Thu Nov 16, 2017 5:10 pm
Forum: Add-ons
Topic: It is possible to stack two different Add-Ons in Raspberry Pi 3?
Replies: 14
Views: 304

Re: It is possible to stack two different Add-Ons in Raspberry Pi 3?

So the Raspberry Pi will get slow when I use the GSM/GPRS module? Not slow: just you need to have a power system that can supply 1 amp or so to the GSM/GPRS module on top of providing whatever your Raspberry Pi needs. If that power's not available, your Raspberry Pi will likely shut down unexpected...
by scruss
Thu Nov 16, 2017 5:03 pm
Forum: Troubleshooting
Topic: broken filesystem, e2fsck can not fix things
Replies: 19
Views: 1236

Re: broken filesystem, e2fsck can not fix things

Ah: the 7-bit protocol might be a problem for the HL-340. I'm lucky enough to only need 8N1 serial transfer. Even multiple 1200 baud inputs running flat out shouldn't tax a Raspberry Pi. Though I don't know about the data processing you need to do, you might be able to do this on an embedded board l...
by scruss
Wed Nov 15, 2017 7:08 pm
Forum: Troubleshooting
Topic: [SOLVED] Systemd and running program Qt
Replies: 11
Views: 200

Re: Systemd and running program Qt

What does mean "I'm clutching at straws here but" It means that user RaTTuS was making a guess that they didn't quite believe would work. Glad you've got this sorted out. Autostart is good. You can also run user systemd services: create your service file in ~/.config/systemd/user/ then systemctl --...
by scruss
Wed Nov 15, 2017 7:01 pm
Forum: Beginners
Topic: Rpi 3 Shutdown button
Replies: 16
Views: 540

Re: Rpi 3 Shutdown button

How ever, I assume, the pimoroni-shim should do what you want ... May be, someone own's that (I didn't) and can confirm? I have an OnOff SHIM, and wrote about it here: Installing the Pimoroni OnOff Shim the hard way . Note that you don't have to install it the way I did. Plus points: It appears to ...
by scruss
Wed Nov 15, 2017 6:47 pm
Forum: General discussion
Topic: Most accurate gps chipset
Replies: 8
Views: 337

Re: Most accurate gps chipset

Most of the more modern chipsets can kick out updates at 10 Hz or better, so while not ideal for F1, might be useful for some track applications.
by scruss
Wed Nov 15, 2017 6:45 pm
Forum: Troubleshooting
Topic: broken filesystem, e2fsck can not fix things
Replies: 19
Views: 1236

Re: broken filesystem, e2fsck can not fix things

I see you're using a PL2303-based serial adapter. My experience with them on Raspberry Pi has not been great. My ones work okay in undemanding serial applications (talking to an X10 controller a couple of times a day) but heavy transfers would sometimes cause kernel panics. I've had more luck with F...
by scruss
Wed Nov 15, 2017 6:34 pm
Forum: Add-ons
Topic: It is possible to stack two different Add-Ons in Raspberry Pi 3?
Replies: 14
Views: 304

Re: It is possible to stack two different Add-Ons in Raspberry Pi 3?

jfcmartins wrote:
Wed Nov 15, 2017 10:37 am
That's a nice product but it's too expensive for what I'm looking for
USB serial GPS, then? Won't have the fancy clock features that GPS hats have, but will work with GPSd. Also, really cheap.

GSM/GPRS modules can draw a huge amount of current when they start up, btw.
by scruss
Tue Nov 14, 2017 2:00 pm
Forum: Add-ons
Topic: It is possible to stack two different Add-Ons in Raspberry Pi 3?
Replies: 14
Views: 304

Re: It is possible to stack two different Add-Ons in Raspberry Pi 3?

what for you ask identical question on stack exchange? It's kinda rude to go NEED ANSWER NOW from volunteer communities: pi 3 - It is possible to stack two different Add-Ons in Raspberry Pi 3? - Raspberry Pi Stack Exchange As I said on RPSE, boards based on other chipsets such as the SIM908 combine ...
by scruss
Mon Nov 13, 2017 6:31 pm
Forum: Beginners
Topic: Rpi 3 Shutdown button
Replies: 16
Views: 540

Re: Rpi 3 Shutdown button

beta-tester wrote:
Sun Nov 12, 2017 2:19 pm
… Enabling this overlay will prevent the ability to boot by driving GPIO3 low.
Um, this doesn't exactly look like a friendly user shutdown method.
by scruss
Mon Nov 13, 2017 6:28 pm
Forum: Beginners
Topic: [Help!] Is the Raspberry Pi powerful enough to perform the following tasks?
Replies: 5
Views: 235

Re: [Help!] Is the Raspberry Pi powerful enough to perform the following tasks?

6 - Reading large PDFs. This is critical too. This is a “how long is a piece of string?” question. It's content, not size, that determines processing power required to view PDF files. Generally: most PDFs made by a program should work fine, no matter what the file size or page count many PDFs made ...
by scruss
Mon Nov 13, 2017 6:18 pm
Forum: General discussion
Topic: Most accurate gps chipset
Replies: 8
Views: 337

Re: Most accurate gps chipset

As topguy said, best antenna wins.

If you're looking for something really accurate, any RTKLIB-compatible chipset will do. It's not fast, and needs a nearby telemetry link and a lot of number crunching, but it can give you centimetre precision.
by scruss
Mon Nov 13, 2017 6:08 pm
Forum: Troubleshooting
Topic: Pi Zero W wifi issues on Raspbian in headless mode
Replies: 1
Views: 32

Re: [SOLVED] Pi Zero W wifi issues on Raspbian in headless mode

jaumeb wrote:
Tue Nov 07, 2017 6:39 pm
Two RasPiZero wifi one from 2016 and one from 2017. …
Please start a new thread. Posting in a SOLVED thread confuses everyone.
by scruss
Sun Nov 12, 2017 1:52 pm
Forum: Beginners
Topic: Rpi 3 Shutdown button
Replies: 16
Views: 540

Re: Rpi 3 Shutdown button

I find it very strange that i can find so little info the most elementary of things : Provide a on/off button with script to my Rpi. I wrote this, but some people like it: Combined Restart / Shutdown Button for Raspberry Pi If you want power physically disconnected, you'll need something like Pimor...
by scruss
Thu Nov 09, 2017 1:37 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How many Mcp23s17 can be connected to SPI?
Replies: 2
Views: 171

Re: How many Mcp23s17 can be connected to SPI?

Eight, same as the 23017: http://ww1.microchip.com/downloads/en/D ... 01952C.pdf

You can address each one separately, so you should be able to control each one separately.
by scruss
Thu Nov 09, 2017 1:34 am
Forum: Troubleshooting
Topic: Octoprint removes ssh file?
Replies: 3
Views: 121

Re: Octoprint removes ssh file?

It's totally okay that the /boot/ssh file has gone away - it happens and is stable on my Octopi machines and on my Raspbian machines.

Can you get to Octopi via the web interface?
by scruss
Tue Nov 07, 2017 6:17 pm
Forum: General discussion
Topic: Colored text with Esc codes doesn’t work
Replies: 21
Views: 721

Re: Colored text with Esc codes doesn’t work

I found this for IDLE: # nicked from # https://stackoverflow.com/a/42473170/377125 import sys try: color = sys.stdout.shell except AttributeError: raise RuntimeError("Use IDLE") color.write("You get at least three colours:\n","KEYWORD") color.write(" * STRING\n","STRING") color.write(" * KEYWORD\n",...
by scruss
Tue Nov 07, 2017 6:14 pm
Forum: Beginners
Topic: Arduino vs GPIO
Replies: 13
Views: 505

Re: Arduino vs GPIO

… To switch the backlight on and off you need to switch its ground pin because the backlight is normally fed from the 5v supply There are LCD boards that tie the backlight directly to a potentiometer and you don't have any control over it. The super cheap Funduino 16×2 one I have has that as part o...
by scruss
Tue Nov 07, 2017 5:56 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN Bus interface
Replies: 1
Views: 220

Re: CAN Bus interface

Let me check at work; the boss is a big CAN bus hacker. Ask me about the time I had the centre console of a Honda Odyssey on my desk with a Raspberry Pi playing back some CAN data on a loop to trick the controller into racking up the mileage … I think you had to build a custom kernel module. but I'm...
by scruss
Mon Nov 06, 2017 2:26 am
Forum: General discussion
Topic: Colored text with Esc codes doesn’t work
Replies: 21
Views: 721

Re: Colored text with Esc codes doesn’t work

So it seems that color does work with Python3 when run in a terminal window, but when running code in a normal Python window the shell window does not translate the ESC codes into color. What do you mean by a “normal” Python window? Are you running on the console (so no X, text runs full width/heig...
by scruss
Sun Nov 05, 2017 9:03 pm
Forum: Beginners
Topic: Arduino vs GPIO
Replies: 13
Views: 505

Re: Arduino vs GPIO (HDD44780 Character LCD)

You might be better off following the instructions for connecting a 16x2 LCD to an actual pi … Yup, that might help. Both of those tutorials are pretty old, and use code that pre-dates rpi.gpio Looking around for newer code, I found RPLCD for Python. While it's maintained, the owner insists on usin...
by scruss
Sat Nov 04, 2017 10:56 pm
Forum: Troubleshooting
Topic: broken filesystem, e2fsck can not fix things
Replies: 19
Views: 1236

Re: broken filesystem, e2fsck can not fix things

I'm not sure if soldering extra capacitors will help much. Are you using a dedicated power supply (so, not a phone charger + USB cable) that's able to deliver at least 2 A? What is the voltage seen across the Raspberry Pi's test points? You can check the maximum current that a USB is allowed to draw...

Go to advanced search