Go to advanced search

by ciclonite
Fri Apr 29, 2016 8:32 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI - Buildroot - DeviceTree - WiringPI
Replies: 11
Views: 3689

Re: SPI - Buildroot - DeviceTree - WiringPI

Hi joan, i've tried pigs, but in my buildroot custom distribution i have only included : pigpio.c command.c pigpio.h . But, with your help i've look at bcm2835 library (Mike McCauley). Now i have follow this way, please tell me what you think : I have take only the bcm2835.h and bcm2835.c from the l...
by ciclonite
Thu Apr 21, 2016 9:44 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI - Buildroot - DeviceTree - WiringPI
Replies: 11
Views: 3689

Re: SPI - Buildroot - DeviceTree - WiringPI

Doing a find / -name spi* on raspberry buildroot i see this : /sys/bus/spi /sys/bus/spi/devices/spi0.1 /sys/bus/spi/drivers/ads7846/spi0.1 /sys/bus/spi/drivers/spidev /sys/bus/platform/drivers/spi-bcm2835 /sys/devices/soc/3f204000.spi/spi_master /sys/devices/soc/3f204000.spi/spi_master/spi0 /sys/dev...
by ciclonite
Thu Apr 21, 2016 8:49 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI - Buildroot - DeviceTree - WiringPI
Replies: 11
Views: 3689

Re: SPI - Buildroot - DeviceTree - WiringPI

I'm not sure. As I said it may be an error in the device tree blob for the display or an error in device tree itself. You could use my pigpio library or the bcm2853 C library to talk to the SPI device. They won't bother about /dev/spidevx.x being missing. Thanks a lot Joan, In my buildroot i have y...
by ciclonite
Wed Apr 20, 2016 2:11 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI - Buildroot - DeviceTree - WiringPI
Replies: 11
Views: 3689

Re: SPI - Buildroot - DeviceTree - WiringPI

You need to process your kernel.img with the mkimage tool found here: https://github.com/raspberrypi/tools . If not, the bootloader will not recognize the kernel as having DT support and will ignore everything dt-related in your config.txt, including spi=on Thanks for reply, but i've already patche...
by ciclonite
Tue Apr 19, 2016 8:56 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI - Buildroot - DeviceTree - WiringPI
Replies: 11
Views: 3689

Re: SPI - Buildroot - DeviceTree - WiringPI

Thanks for reply.
The ls on /dev/spi* return no spi device. But I've enabled the spi on config.txt in device tree. How can I proceed?
by ciclonite
Tue Apr 19, 2016 7:51 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI - Buildroot - DeviceTree - WiringPI
Replies: 11
Views: 3689

SPI - Buildroot - DeviceTree - WiringPI

Hi all, I' have a problem with a MAX31855 connected to SPI1 using Buildroot+ Devicetree + WiringPI and QT in cross-compiling. In config.txt i've added dtparam=spi=on. I've tried the example max31855.c #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <time.h> #i...
by ciclonite
Tue Jan 26, 2016 4:28 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: 2 Relay Module 5v Connection
Replies: 3
Views: 1170

Re: 2 Relay Module 5v Connection

Thanks for reply,
If i try this module may be burn the rpi2 gpio?
by ciclonite
Tue Jan 26, 2016 10:05 am
Forum: C/C++
Topic: WiringPI and max32855K
Replies: 2
Views: 540

WiringPI and max32855K

Hi all,
Someone have an example that use wiringPI and max32855k in c/c++? I need some help for reading a temperature from a k-type thermocoupler.
Thanks a lot.
by ciclonite
Tue Jan 26, 2016 9:52 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: 2 Relay Module 5v Connection
Replies: 3
Views: 1170

2 Relay Module 5v Connection

Hi, sorry for asking again info about this module, but there many opposite opinions about it. This is my picture : http://i64.tinypic.com/a2sm79.jpg On the sainsmart website they say that can be controlled directly form raspberry pi. It can be controlled directly by Micro-controller (Raspberry Pi, A...
by ciclonite
Wed Nov 25, 2015 4:26 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Multiple devices on SPI
Replies: 7
Views: 19079

Re: Multiple devices on SPI

Hi, Sorry for disturb, i've a similiar problem. If it's not a problem i will post here my situation: I have a 5'' LCD Touch that from description use these pins : HDMI-TFT500 GND ---------- GND T_IRQ----------------------GPIO25(22 pin) T_MISO-------------------SPI_MISO(21 pin) T_MOSI----------------...
by ciclonite
Mon Nov 23, 2015 7:49 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Thermocouple For Reading High Temp ( MAX 350°C)
Replies: 7
Views: 2502

Re: Thermocouple For Reading High Temp ( MAX 350°C)

danjperron wrote:
but with the max6675 i don't need the ads1115?
I take a rapid look into your code. It is possible to use C language?
No the chip is already a A/D converter.
It's SPI then it is eazy to use C.
Many thanks danjperron,
Last question: The MAX6675 on the link is suitable?
Thanks again,
Giovanni
by ciclonite
Mon Nov 23, 2015 5:47 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Thermocouple For Reading High Temp ( MAX 350°C)
Replies: 7
Views: 2502

Re: Thermocouple For Reading High Temp ( MAX 350°C)

I've Look on ebay :
http://www.ebay.it/itm/MAX6675-Type-K-T ... SwFnFV~9Fr
This have the internal temperature reading? It's suitable for my project?
Thanks a lot for all,
Giovanni
by ciclonite
Mon Nov 23, 2015 5:15 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Thermocouple For Reading High Temp ( MAX 350°C)
Replies: 7
Views: 2502

Re: Thermocouple For Reading High Temp ( MAX 350°C)

There is some cheap max6675 shield using spi. the max6675 will compensate for the terminal temperature since in thermocouple you need to check both ends of the wires. I did made a post with some code about it but it includes multille sensors. You coukd strip the decoder from the code anyway. https:...
by ciclonite
Mon Nov 23, 2015 3:04 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Thermocouple For Reading High Temp ( MAX 350°C)
Replies: 7
Views: 2502

Re: Thermocouple For Reading High Temp ( MAX 350°C)

Hi Ferdinand, Thanks for reply. I've ordered an i2c ads1115 + a thermocoupler K. In my project i have used a LCD 5'' that use the i2c interface for the touch. I've read that the i2c can have a lot of slave device. How can i address two slave to the same i2c? Since i use a buildroot custom distributi...
by ciclonite
Fri Nov 20, 2015 2:39 pm
Forum: Device Tree
Topic: Display 5'' - Buildroot Porting
Replies: 2
Views: 2132

Re: Display 5'' - Buildroot Porting

PhilE Thanks!!! You have pointed me in the right way!!!! For those have this LCD touch this is the config.txt configuration with buildroot: hdmi_group=2 hdmi_mode=1 hdmi_mode=87 hdmi_cvt 800 480 60 6 0 0 0 dtparam=i2c_arm=on dtparam=spi=on #dtoverlay=w1-gpio-pullup,gpiopin=4,extpullup=1 dtoverlay=ad...
by ciclonite
Fri Nov 20, 2015 1:35 pm
Forum: Device Tree
Topic: Display 5'' - Buildroot Porting
Replies: 2
Views: 2132

Display 5'' - Buildroot Porting

Hello all, I Have a problem porting the driver for a Display 5'' to buildroot distribution. The display that i've bought is : http://www.ebay.it/itm/5-inch-Resistive-Touch-Screen-LCD-Display-HDMI-for-Raspberry-Pi-XPT2046-PY-/301736084033?hash=item4640df4241:g:840AAOSw9r1V8Er3 I need to use with buil...
by ciclonite
Wed Nov 18, 2015 10:51 am
Forum: HATs and other add-ons
Topic: Display 5'' HELP
Replies: 2
Views: 907

Re: Display 5'' HELP

I've search on the driver provided and they use the ads7846 module. I've my custom buildroot, on the boot partition i've tried to use the device tree for this touch. I've look on install script provided with the driver : sudo cp -rf ./boot/config-5.txt /boot/config.txt sudo cp -rf ./etc/modules-5 /e...
by ciclonite
Mon Nov 16, 2015 11:15 am
Forum: HATs and other add-ons
Topic: Display 5'' HELP
Replies: 2
Views: 907

Display 5'' HELP

Hi,
I've bought this display touch resistive :
http://www.ebay.it/itm/Raspberry-Pi-2-D ... 1881455061?
But, i don't know how can i use with my buildroot.
Someone have experience with this display?
Thanks a lot,
Giovanni
by ciclonite
Wed Nov 04, 2015 2:09 pm
Forum: C/C++
Topic: Read GPIO avery X seconds
Replies: 8
Views: 1247

Re: Read GPIO avery X seconds

scotty101 wrote:No need for a seperate thread if you use QTimer. QT will manage the events.

(Unless your operation takes more than 1 second, in which case the UI might appear to be unresponsive.)
Many thanks scotty101, no the operation took a few milliseconds; i'm ok :)
by ciclonite
Wed Nov 04, 2015 1:57 pm
Forum: C/C++
Topic: Read GPIO avery X seconds
Replies: 8
Views: 1247

Re: Read GPIO every X seconds

Thanks for the answer, but i need to use a separate thread for this operation?
by ciclonite
Wed Nov 04, 2015 12:46 pm
Forum: C/C++
Topic: Read GPIO avery X seconds
Replies: 8
Views: 1247

Read GPIO avery X seconds

Hi all,
I need a help for solving a problem with QT + RPI + PIGPIO.
I've a temperature sensor ( Thermocoupler).
I need to read a temperature ciclically from this sensor and compare it with with a predefined value.
How can i achieve this? ( I use pigpio as library)
Thanks a lot.
by ciclonite
Tue Nov 03, 2015 4:19 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Thermocouple For Reading High Temp ( MAX 350°C)
Replies: 7
Views: 2502

Thermocouple For Reading High Temp ( MAX 350°C)

Hi All,
i need a help for choosing a thermocouple for reading temperature from 100°C to 350°C .
I have a raspberry PI + buildroot + pigpio.
Someone can help me to figure out how can i do this?
Thanks,
Giovanni
by ciclonite
Tue Oct 27, 2015 1:31 pm
Forum: Beginners
Topic: GPIO access in c/c++ natively
Replies: 2
Views: 2818

Re: GPIO access in c/c++ natively

Thanks for reply joan,
i'll take a look on the link example.. BTW adding a package to buildroot it's a nightmare for me... :/
by ciclonite
Tue Oct 27, 2015 10:28 am
Forum: Beginners
Topic: GPIO access in c/c++ natively
Replies: 2
Views: 2818

GPIO access in c/c++ natively

Hi all,
after having spent 3 day for integrate pigpio on buildroot without success, i need a help for accessing the pigpio directly from OS. I need a help to find the best way.. Sysfs? mmap?
Thanks. Giovanni
by ciclonite
Fri Oct 23, 2015 4:51 pm
Forum: Beginners
Topic: Buildroot QT - adding packages
Replies: 2
Views: 675

Re: Buildroot QT - adding packages

Thanks topguy!
This is a good starting point. I hope to find other useful info for adding pigpio to my buildroot!

Go to advanced search