Go to advanced search

by RogerW
Sun Apr 18, 2021 9:47 am
Forum: Raspberry Pi OS
Topic: FreeCAD on PI4 and Raspbian Buster.
Replies: 110
Views: 27646

Re: FreeCAD on PI4 and Raspbian Buster.

Thanks for that. I will have to wait.
by RogerW
Sun Apr 18, 2021 9:10 am
Forum: Raspberry Pi OS
Topic: FreeCAD on PI4 and Raspbian Buster.
Replies: 110
Views: 27646

Re: FreeCAD on PI4 and Raspbian Buster.

thanks. FreeCAD 0.19 (23841) + raspberry pi 4 4Gb + raspberry pi OS 64 bits (beta) It is already installed and working reasonably well, I have used: sudo apt install build-essential libtool lsb-release cmake cmake-gui cmake-curses-gui libboost-date-time-dev libboost-dev libboost-filesystem-dev libb...
by RogerW
Wed Apr 14, 2021 11:19 am
Forum: Python
Topic: Tkinter numeric keypad
Replies: 1
Views: 150

Re: Tkinter numeric keypad

I have updated the version on Github to make the Key class more generally useful. This is a more traditional approach to a test program. N.B. root is not a keyword. # Xpad.py # Traditionalist test program from sys import version_info if version_info[0] < 3: import Tkinter as tk else: import tkinter ...
by RogerW
Mon Apr 05, 2021 1:09 pm
Forum: Python
Topic: Tkinter numeric keypad
Replies: 1
Views: 150

Tkinter numeric keypad

I wrote this for a program I am working on and thought it might be useful to other people. It works with python 2 or 3 It works like a dialog. You can choose size, integer/decimal, signed/unsigned when the dialog is created. The code is also on Github https://github.com/RogerWoollett/Keypad It would...
by RogerW
Sun Feb 07, 2021 5:16 pm
Forum: Python
Topic: I encounter differences between [Python + QT] and [PLC + HMI]:
Replies: 5
Views: 355

Re: Automation engineer writing code in Python

As has been pointed out GUI frameworks are event driven. This hopefully makes your project easier. This example uses tkinter rather than QT but might help to show how this may work. The function after calls a function after a time delay. In between time other things can happen. to run this save the ...
by RogerW
Tue Nov 03, 2020 2:29 pm
Forum: C/C++
Topic: Compiling OpensCAD for Pi 4 armhf
Replies: 12
Views: 1017

Re: Compiling OpensCAD for Pi 4 armhf

I got an appimage from
https://github.com/koendv/openscad-raspberrypi

Click on "You can download the binary here."
Works for me on 32 bit Raspberry Pi OS
by RogerW
Sun Nov 01, 2020 4:49 pm
Forum: Graphics programming
Topic: Tkinter -- pack with place?
Replies: 2
Views: 264

Re: Tkinter -- pack with place?

You should look at grid rather than pack, This allows you to place your widget by row and column.
by RogerW
Mon Oct 26, 2020 3:50 pm
Forum: General discussion
Topic: tkinter entry field problem
Replies: 10
Views: 468

Re: tkinter entry field problem

You may find the after function useful This code takes the text from the Entry when the save button is pressed. The text is cleared 10 seconds later. import tkinter as tk class App(tk.Tk): def __init__(self): tk.Tk.__init__(self) self.title('Text entry') # create Entry widget self.text = tk.StringVa...
by RogerW
Mon Jun 29, 2020 4:15 pm
Forum: Advanced users
Topic: Are M.2 SSD drives worth the extra
Replies: 10
Views: 1676

Re: Are M.2 SSD drives worth the extra

Thanks for the advice. I think I understand a bit better now.
by RogerW
Mon Jun 29, 2020 11:32 am
Forum: Advanced users
Topic: Are M.2 SSD drives worth the extra
Replies: 10
Views: 1676

Are M.2 SSD drives worth the extra

I am thinking of getting a Pi4B8 and a SATA SSD for the file system. My question is whether it is worth the extra for an M.2 standard disc and enclosure or will I see no practical improvement in performance over a cheaper disc.
by RogerW
Sun Apr 19, 2020 8:24 am
Forum: Raspberry Pi OS
Topic: Auto login but not pi
Replies: 4
Views: 434

Re: Auto login but not pi

Log in as your prefered user.
Start raspi-config in a Terminal window.
Choose option 3 - Boot options
Choose option B1
Choose option B4
That should do it.
by RogerW
Sat Apr 18, 2020 4:34 pm
Forum: Raspberry Pi OS
Topic: Auto login but not pi
Replies: 4
Views: 434

Re: Auto login but not pi

Solution is to use raspi-config not the GUI configuration.
by RogerW
Sat Apr 18, 2020 4:26 pm
Forum: Raspberry Pi OS
Topic: wxPython install fails
Replies: 1
Views: 286

Re: wxPython install fails

Should anyone else have this problem - I found a solution.

Code: Select all

sudo apt install python3-wxgtk4.0
That plus

Code: Select all

sudo pip3 install appdirs
and pronterface works.
by RogerW
Sat Apr 18, 2020 8:38 am
Forum: Raspberry Pi OS
Topic: wxPython install fails
Replies: 1
Views: 286

wxPython install fails

I am trying to run Pronterface which is part of Printrun. It fails because it requires wxPython >= 4.

"sudo pip3 install wxPython" hangs when
"Running setup.py bdist_wheel for wxPython"

Has anyone found a way round this?
by RogerW
Thu Apr 16, 2020 2:11 pm
Forum: Raspberry Pi OS
Topic: Auto login but not pi
Replies: 4
Views: 434

Auto login but not pi

I would like to auto login us user roger not pi. In Jessie the Configuration allwed "As current user" but Buster only offers pi. Is there a way to change this. Ihave searched but cannot find a way.
by RogerW
Wed Nov 27, 2019 10:30 am
Forum: Python
Topic: Display full screen image using Python?
Replies: 5
Views: 2187

Re: Display full screen image using Python?

Paddyg beat me to it but this should run

Code: Select all

import tkinter as tk

main = tk.Tk()
main.attributes('-fullscreen',True)
tk.Button(main,text='Quit',command=main.destroy).pack()
main.mainloop()
by RogerW
Mon Aug 26, 2019 10:35 am
Forum: C/C++
Topic: Reading different channels from MCP3008 with pigpio
Replies: 4
Views: 2061

Re: Reading different channels from MCP3008 with pigpio

I have some C++ code which (among other things) reads data from a MCP3008. It uses the pigpio c library not the daemon. Header file [// Rpio.h // Written by Roger Woollett // // Low level interface to hsrdware via gpio // Uses the pigpio library and the base class // PioBase ensures that the library...
by RogerW
Wed Jul 24, 2019 9:15 am
Forum: Raspberry Pi OS
Topic: STICKY: Buster bug report thread
Replies: 403
Views: 116274

Re: Buster bug report thread

sudo apt-get install pigpio fails on buster lite. I have a C program that needs libpigpio.so which does not appear to be included with buster lite. On stretch install pigpio worked. On buster I get "Temporary failure resolving....". I have tried several times and tried the suggested option...
by RogerW
Fri Apr 26, 2019 8:52 am
Forum: C/C++
Topic: Low voltage detection
Replies: 10
Views: 4204

Re: Low voltage detection

Thanks for that information. Because I wanted to detect transient low voltage blips I was hoping for an "interupt" type of solution rather than polling. I have now decided it is not worth pursuing unless it definitely proves to be a problem which I supect is unlikely.
by RogerW
Wed Apr 10, 2019 2:13 pm
Forum: C/C++
Topic: Low voltage detection
Replies: 10
Views: 4204

Re: Low voltage detection

Fair enough. Thanks for the information.
by RogerW
Wed Apr 10, 2019 1:42 pm
Forum: C/C++
Topic: Low voltage detection
Replies: 10
Views: 4204

Re: Low voltage detection

Thanks for that. It would be nice to get that information directly from a program but I cannot find any mention of such. Do you know how vcgencmd gets its data?
by RogerW
Wed Apr 10, 2019 10:59 am
Forum: C/C++
Topic: Low voltage detection
Replies: 10
Views: 4204

Re: Low voltage detection

Thanks for the comments. In fact I am more concerned by transients which may in fact be unlikely. I have four cells which deliver a nominal 6 volts. The motors are driven from this via an H bridge. The pi is fed from an up/down regulator supplied from the same source so SHOULD be ok but I wanted to ...
by RogerW
Mon Apr 08, 2019 2:25 pm
Forum: C/C++
Topic: Low voltage detection
Replies: 10
Views: 4204

Low voltage detection

If the processor detects a low supply voltage a lightning symbol is shown on the screen. I have a battery powered robot using a pi zero W with no screen. Is there a way my program can recieve an interrupt or other indication that the voltage is low.
by RogerW
Wed Mar 13, 2019 4:40 pm
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 40
Views: 7441

Re: New to Raspberry, old to programming

Like you I retired a while ago (17 years). I have mainly used python on the pi but recently gone back to C++ for a robot project. I would suggest you don't discount doing all the development on the pi. I have a B+ so not the fastest and have found it to be practical. I use codeblocks which is a basi...
by RogerW
Wed Mar 13, 2019 11:42 am
Forum: C/C++
Topic: CodeBlocks and pigpio
Replies: 11
Views: 1727

Re: CodeBlocks and pigpio

joan - thanks for the clarification. I could compile with codeblocks and then run the app from a console but that would be clumsy and I could not use the debugger built into codeblocks. For the moment I have modified the desktop entry for file manager to run that sudo as well as codeblocks which doe...

Go to advanced search