Go to advanced search

by RPI_333333
Mon Jun 03, 2019 1:33 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPI camera is not detected with i2cdetect
Replies: 3
Views: 186

Re: RPI camera is not detected with i2cdetect

Thanks for the answer.

I'm still not sure how many I2C buses are on the Pi3B (GPIO or CSI connector) and how can i access them- could you please help?

Why can't i see the camera when i run i2cdetect (what bus should i use)?
by RPI_333333
Mon Jun 03, 2019 6:29 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPI camera is not detected with i2cdetect
Replies: 3
Views: 186

RPI camera is not detected with i2cdetect

Hi First, general question: how many I2c buses are on the Pi3 ? Is it: 1. Bus #0, the CSI connector 2.Bus #1 : GPIO 3,5 3. ?? 4. ?? I have RPI 3B and official RPI V2 camera. When i try to use the camera everything is O.K I am trying to get the camera i2c addresses using i2cdetect but when i run i2cd...
by RPI_333333
Thu May 16, 2019 11:05 am
Forum: Camera board
Topic: Problem with taking pictures using Picamera
Replies: 3
Views: 145

Re: Problem with taking pictures using Picamera

Thanks for the source code !

Any idea why raspistill is working and picamera not working ?
by RPI_333333
Thu May 16, 2019 10:38 am
Forum: Camera board
Topic: Problem with taking pictures using Picamera
Replies: 3
Views: 145

Problem with taking pictures using Picamera

Hi , I have RasberryPi 3 with Camera V2 When i try to take a picture using Raspstill (From python)- the picture is OK. When i try to take a picture using Picmaera.capture- The picture is corrupted Does anyone know what is the difference between the Raspistiil and Picamera (Why with Raspistill the pi...
by RPI_333333
Mon Apr 29, 2019 11:00 am
Forum: Advanced users
Topic: Help with IVPort V2 multiplexer
Replies: 0
Views: 102

Help with IVPort V2 multiplexer

Hi I am trying to use IVPORT V2 multiplexer in order to switch between 4 cameras on 1 Raspberry Pi board. Link to IVPORT V2 : http://www.ivmech.com/magaza/en/development-modules-c-4/ivport-v2-raspberry-pi-camera-module-v2-multiplexer-p-107 I have successfully installed the board but when i try to ca...
by RPI_333333
Tue Mar 19, 2019 6:57 am
Forum: Camera board
Topic: Jpeg compression On board or on RPI
Replies: 4
Views: 360

Re: Jpeg compression On board or on RPI

Thanks for the answers- I'ts all clear now :)
by RPI_333333
Sun Mar 17, 2019 9:48 am
Forum: Camera board
Topic: Jpeg compression On board or on RPI
Replies: 4
Views: 360

Jpeg compression On board or on RPI

Hello, I would like to know if the camera compression (to Jpeg) is done on the camera board itself or on the Raspberry Pi. More detailed, I would like to know if the raw image is transfers to the Raspberry pi (Via the CSI interface) or the compressed image in order to understand better the data rate...
by RPI_333333
Mon Dec 10, 2018 6:37 am
Forum: Python
Topic: Best Python IDLE for RPI
Replies: 0
Views: 147

Best Python IDLE for RPI

Hi I write my python code on RPI 3 using Thonny. I couldn't find how to fold parts of the code (for example to fold fuction so i can see only the declaration). Does anyone know how to do that on Thonny? Maybe i should use a different program, what is the best program to write python code on RPI ? I'...
by RPI_333333
Sun Dec 09, 2018 5:38 am
Forum: Python
Topic: Using SPI on python
Replies: 18
Views: 1903

Re: Using SPI on python

The pigs version (like the working C program) bypasses the Linux SPI driver. So the SPI hardware is okay and the wiring is correct. This suggest the Linux SPI driver is corrupted or misconfigured. I'd be tempted to write a new image to the SD card. I re-installed the RPI software and now it works! ...
by RPI_333333
Wed Dec 05, 2018 2:02 pm
Forum: Python
Topic: Using SPI on python
Replies: 18
Views: 1903

Re: Using SPI on python

joan wrote:
Wed Dec 05, 2018 1:45 pm
That's unfortunate. I would have expected the same return values as you got from your first C program (255 255 48 17).
Oh !
sorry, i mistyped...

The result is indeed what you expected !

Code: Select all

pigs spix 0 0x40 0 0 0
Result: 4 255 255 48 17


So what can we learn from that ?
by RPI_333333
Wed Dec 05, 2018 12:34 pm
Forum: Python
Topic: Using SPI on python
Replies: 18
Views: 1903

Re: Using SPI on python

Let's just confirm the wiring is correct. Start the pigpio daemon if it isn't running. sudo pigpiod Get a handle to SPI 0.0 pigs spio 0 50000 0 That should return handle 0. Transfer 4 bytes to handle 0. pigs spix 0 0x40 0 0 0 That should return 4 (the number of bytes transferred) followed by the re...
by RPI_333333
Wed Dec 05, 2018 9:06 am
Forum: Python
Topic: Using SPI on python
Replies: 18
Views: 1903

Re: Using SPI on python

joan wrote:
Wed Dec 05, 2018 8:53 am
Are you a member of group spi?

groups

will list your groups.

If you do not see spi enter the command

sudo adduser pi spi

You will need to logout and log back in for a group change to take effect.
I checked- i am a member in spi group

Any other ideas ?
please help guys...
by RPI_333333
Wed Dec 05, 2018 6:48 am
Forum: Python
Topic: Using SPI on python
Replies: 18
Views: 1903

Re: Using SPI on python

the bcm2835 library uses direct access to the hardware. Maybe you have something wrong with the device driver. What is your /boot/config.txt ? whats is the result of ls -l /dev/spi* ? Which version of python are you using ? (python2 or python3) Did it fail on both python Maybe try this version of C...
by RPI_333333
Tue Dec 04, 2018 12:53 pm
Forum: Python
Topic: Using SPI on python
Replies: 18
Views: 1903

Re: Using SPI on python

It looks like it should work to me. I ran your Python code (changing the SPI speed to 50000 to make sure it could be captured by piscope). Screenshot from 2018-12-04 12-18-11.png Maybe something is not installed correctly at my end ? Could you explain how should i check? when i run lsmod i get: lsm...
by RPI_333333
Tue Dec 04, 2018 11:17 am
Forum: Python
Topic: Using SPI on python
Replies: 18
Views: 1903

Re: Using SPI on python

I would run (my) piscope and compare what is going on with the C and the Python. That should make the difference (and hopefully the error) obvious. http://abyz.me.uk/rpi/pigpio/piscope.html (requires the pigpio daemon to be running, sudo pigpiod ) I tested both codes with piscope. It seems that whe...
by RPI_333333
Tue Dec 04, 2018 7:19 am
Forum: Python
Topic: Using SPI on python
Replies: 18
Views: 1903

Re: Using SPI on python

What is your device and could you also put your C code also. We need to compare what you did. Thank you for your answer, The device is an FPGA development board which i want to connect to my RPI3 via SPI. I am trying to read one of the FPGA registers. The goal: Reading FPGA register at address 0x40...
by RPI_333333
Mon Dec 03, 2018 1:27 pm
Forum: Python
Topic: Using SPI on python
Replies: 18
Views: 1903

Using SPI on python

Hi I have an SPI device that connected to my RPI 3 via SPI. I installed and enabled SPI. I have a sample code to test the connection between the RPI to the device and it worked fine. The code read the value of register at address 0x4000 and print it. The code is in C and uses wiring pi libary and BC...
by RPI_333333
Thu Nov 15, 2018 6:12 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPI 3 UART max speed
Replies: 4
Views: 1601

Re: RPI 3 UART max speed

Thanks you all for the answer,
I still don't understand:
If the PL011 UART can go up to 3Mbit/sec why the PL011 spec mentioned 921600 bps ? what am i missing?
by RPI_333333
Wed Nov 14, 2018 1:35 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPI 3 UART max speed
Replies: 4
Views: 1601

Re: RPI 3 UART max speed

The RPi has 2 UARTs, a PL011 and a "mini UART". In general it's best to use the PL011. The PL011 uses the ~48MHz uart clock as a base, which results in a maximum achievable baudrate of 3Mbit/sec (48MHz/16). I recently did some tests and transmitting data at 3mbit/sec looked fine on the scope. I hav...
by RPI_333333
Wed Nov 14, 2018 9:06 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPI 3 UART max speed
Replies: 4
Views: 1601

RPI 3 UART max speed

Hi, I saw many posts on this issue but still don't have a clear answer. I would like to use the UART on the Pi3 at the highest rate possible but still make sure the transmission is fully realiable. I haven't managed to find a clear answer: what is the maximum UART rate for realiable transmission ? I...

Go to advanced search