Go to advanced search

by salvato
Tue Sep 17, 2019 7:51 am
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)? [solved]
Replies: 56
Views: 3588

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

Code: Select all

label_03.setText(QString("%1").arg(i));
should do the work.

Meaning...

You should convert the numerical value of i into a String (QString in Qt) and then assign the string to the QLabel.
by salvato
Fri Sep 13, 2019 3:01 pm
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)? [solved]
Replies: 56
Views: 3588

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

Never tried but perhaps you can just insert into the .pro file the following three lines:

Code: Select all

INCLUDEPATH += /usr/local/include
LIBS += -L"/usr/local/lib"
LIBS += -lwiringPi
No harm...
by salvato
Fri Sep 13, 2019 2:07 pm
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)? [solved]
Replies: 56
Views: 3588

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

@dsyleixa123 Hi. I don't use WiringPi but instead pigpiod. If you agree to use pigpiod this could help you to start: In the .pro file add the following lines (to add the include path and the library path necessary to find the needed files): INCLUDEPATH += /usr/local/include LIBS += -lpigpiod_if2 # T...
by salvato
Fri Sep 13, 2019 12:32 pm
Forum: Camera board
Topic: Is there a c library equivalent to picamera ?
Replies: 4
Views: 327

Re: Is there a c library equivalent to picamera ?

@njm @DougieLawson Thank you for you answers. I'm studying the raspicam sources and I will base my program, aimed to acquire still images in a controlled way, on this one. Since i would be able to change at run time some of the many parameters affecting the acquired image I'm thinking to add a Tcp/I...
by salvato
Mon Sep 09, 2019 9:49 am
Forum: Camera board
Topic: Is there a c library equivalent to picamera ?
Replies: 4
Views: 327

Is there a c library equivalent to picamera ?

I'm looking for a C library similar to the Python picamera one.

There is one available ?

Thank you
by salvato
Sat Aug 10, 2019 5:10 am
Forum: General discussion
Topic: Power on?
Replies: 32
Views: 1641

Re: Power on?

I'm a bit warried about the max current allowed by the LM29159 (1.5A).
is it enough for the new RPi4 ?
by salvato
Mon Jul 29, 2019 9:33 am
Forum: General discussion
Topic: gpio pull up with pigpiod_if2
Replies: 1
Views: 90

[SOLVED] gpio pull up with pigpiod_if2

The answer to my question can be found here: https://github.com/fivdi/pigpio/issues/79 To let others know: "The 2019-06-20-raspbian-buster and 2019-07-10-raspbian-buster images come with V68 of the pigpio C library preinstalled which doesn't support the Raspberry Pi 4." You should download and insta...
by salvato
Mon Jul 29, 2019 8:05 am
Forum: General discussion
Topic: gpio pull up with pigpiod_if2
Replies: 1
Views: 90

gpio pull up with pigpiod_if2

Hi all, I'm facing a problem trying to enable pullups to GPIO pins in Raspberry Pi 4. I have already used the pigpiod library with previous models (up to 3B) without problems but now if i try to enable the pullups with set_pull_up_down(gpioHostHandle, Pin, PI_PUD_UP); the program enter an endless lo...
by salvato
Mon Jul 01, 2019 3:53 pm
Forum: Troubleshooting
Topic: Tried everything and still cannot get any cameras to work
Replies: 10
Views: 472

Re: Tried everything and still cannot get any cameras to work

Hi,

Could you post two images of the cable/connector connections both on the camera side and the Raspberry side ?
The only idea that I have is that the cable could be connected in a wrong way.
by salvato
Sat Jun 22, 2019 11:34 am
Forum: C/C++
Topic: Weird artifacts on dot matrix display
Replies: 14
Views: 1770

Re: Weird artifacts on dot matrix display

Probaly also...you should first define that a pin should be used as a digital output and then assign a value: void DMD::beginNoTimer() { digitalWrite(pin_clk, LOW); pinMode(pin_clk, OUTPUT); digitalWrite(pin_r_data, LOW); pinMode(pin_r_data, OUTPUT); digitalWrite(pin_noe, LOW); pinMode(pin_noe, OUTP...
by salvato
Thu Jun 20, 2019 3:06 pm
Forum: C/C++
Topic: Weird artifacts on dot matrix display
Replies: 14
Views: 1770

Re: Weird artifacts on dot matrix display

I've not looked into your code but... the Arduino MEGA, if i'm not wrong, works with 5V output levels while the Raspberry works at 3.3V.
Could this originate the problem ?
by salvato
Wed Apr 03, 2019 8:52 am
Forum: Troubleshooting
Topic: Problem with installing qt5
Replies: 5
Views: 232

Re: Problem with installing qt5

petters wrote:
Wed Apr 03, 2019 8:36 am
Is there a way i can see the space left in the partition where qt is to be installed?

Code: Select all

df -H
will show the space left on the SD
by salvato
Wed Apr 03, 2019 8:24 am
Forum: Troubleshooting
Topic: Problem with installing qt5
Replies: 5
Views: 232

Re: Problem with installing qt5

Which model of Raspberry ? Is the space left in the SD card enough ?
I have installed Qt and QtCreator on all my Rapsberry 3 and they works like a charm.
In the model 2 and 2B it is a bit too slow but working too
by salvato
Fri Mar 15, 2019 9:47 am
Forum: Graphics programming
Topic: Qt
Replies: 23
Views: 4693

Re: Qt

Well, I got it installed, sadly my RPi 3B+ is not powerful enough for it. It loads but if I try such a simple thing as enlarging it, it crashes instantly. This is a bit strange. I use every day qtcreator on my Raspberry 3B (not plus) and it works very well. Is the free space in your SD card big eno...
by salvato
Thu Mar 14, 2019 11:56 am
Forum: Graphics programming
Topic: Qt
Replies: 23
Views: 4693

Re: Qt

DirkS wrote:
Thu Mar 14, 2019 9:30 am
salvato wrote:
Thu Mar 14, 2019 5:33 am

Code: Select all

sudo apt install qtcreator
G.S.
Gepruefte Sicherheit https://en.wikipedia.org/wiki/Gepr%C3%BCfte_Sicherheit ?
No ! just my initials...
by salvato
Thu Mar 14, 2019 5:33 am
Forum: Graphics programming
Topic: Qt
Replies: 23
Views: 4693

Re: Qt

Code: Select all

sudo apt install qtcreator
G.S.
by salvato
Wed Mar 06, 2019 4:30 pm
Forum: General discussion
Topic: [SOLVED]Help with missing /proc/bus/usb
Replies: 2
Views: 185

Re: [SOLVED]Help with missing /proc/bus/usb

Yes you are right:

Code: Select all

sudo fxload -D /dev/bus/usb/001/007 -I niusbb_firmware.hex -s niusbb_loader.hex
solved the problem.
Thank you very much
by salvato
Wed Mar 06, 2019 4:01 pm
Forum: General discussion
Topic: [SOLVED]Help with missing /proc/bus/usb
Replies: 2
Views: 185

[SOLVED]Help with missing /proc/bus/usb

Hi all, I'm lost in trying to write a firmware to a USB device (National Instruments GPIB-USB-B). Before I can use the interface I have to write a new firmware by using fxload. The command should be: fxload -D /proc/bus/usb/001/007 -I niusbb_firmware.hex -s niusbb_loader.hex The problem is that the ...
by salvato
Fri Feb 01, 2019 4:20 pm
Forum: The MagPi
Topic: Getting individual pages from magazines - remix?
Replies: 21
Views: 6183

Re: Getting individual pages from magazines - remix?

Why not to print in a pdf file the pages you are interested in (from the pdf version of the magazine) and then concatenate the various files into a single pdf ?
by salvato
Tue Jan 08, 2019 10:16 am
Forum: The MagPi
Topic: MagPi 74 Missing code
Replies: 3
Views: 1325

Re: MagPi 74 Missing code

Hi Brian,

Thank you very much. I've just ordered a copy of your book that I would like to use to teach my 15 year old dougther the fundamentals of game programming. The code is very useful to give her the feeling of what such a task is.

Again thanks for your very valuable work.
by salvato
Tue Jan 08, 2019 6:23 am
Forum: The MagPi
Topic: MagPi 74 Missing code
Replies: 3
Views: 1325

MagPi 74 Missing code

I tried to download the code for the Part 10 of "Coding games..." but seem it is missing
from the github repository.
Below you will find the reported missing address:

https://github.com/themagpimag/magpi-is ... er/CGame10

Cheers
by salvato
Sun Dec 09, 2018 2:41 pm
Forum: General discussion
Topic: My RPi model B+ won't turn on, is there any way to revive it?
Replies: 19
Views: 1040

Re: My RPi model B+ won't turn on, is there any way to revive it?

Just to add some noise...
Do you know any other people living near to you and possessing a Raspberry like yours ?
If so why not to try a functioning set of power supply and Sd card ?
by salvato
Tue Nov 27, 2018 10:02 am
Forum: Off topic discussion
Topic: IoT Hardware Education
Replies: 25
Views: 3918

Re: IoT Hardware Education

When I was a young teenager I was interested in electronics having been dabbling with an electronics kit I was given when I was 10.
Me too with this one: https://www.radiomuseum.org/r/philips_ee_20_ee20.html Now you know how old I am !

Go to advanced search