
Search found 35 matches
- Mon Mar 16, 2020 10:19 pm
- Forum: C/C++
- Topic: UDP Problem
- Replies: 3
- Views: 899
Re: UDP Problem
I'm wondering where the CODE: was SELECT from.... 

- Thu Feb 20, 2020 3:40 pm
- Forum: OpenGLES
- Topic: Pi4 gbm needs 'sudo' ?
- Replies: 3
- Views: 829
Re: Pi4 gbm needs 'sudo' ?
Thanks for the replys @topguy ironically i had to sudo usermod -a -G render pi but that did nothing. @Daniel Gessel Looking at kmscube, it seems to be GL2, and have 'legacy' fallback. I'm running the latest buster, so it might be different. So a new day, from a fresh boot, I ran the program without ...
- Thu Feb 20, 2020 1:04 pm
- Forum: OpenGLES
- Topic: Pi4 gbm needs 'sudo' ?
- Replies: 3
- Views: 829
Pi4 gbm needs 'sudo' ?
I am currently updating a program using openGL2 using dispmanx from the pi3 to openGL3 using DRM. Everything was going generally ok, until I hit a brick wall. The problem was gbm_surface_lock_front_buffer always returning NULL after eglSwapBuffers. So after going through the code and checking all th...
- Thu Feb 20, 2020 12:41 pm
- Forum: General discussion
- Topic: How close can a neo magnet safely be to a Raspberry Pi?
- Replies: 9
- Views: 1120
Re: How close can a neo magnet safely be to a Raspberry Pi?
The idea was to put an eraser diameter neo magnet on each corner of the flats with a matching (inverted) magnet on the frame. If you want to reduce the chance of magnetic interference on the pi case, use small steel strips instead of magnets on the case. Keep the magnets on the mounting area. If yo...
- Mon Jan 27, 2020 7:29 pm
- Forum: General discussion
- Topic: Rpi4: no video output
- Replies: 12
- Views: 2061
Re: Rpi4: no video output
Could it be the HDMI cable?
I had the same problem using an adaptor and existing cables I had used for PI1,2 & 3.
These were HDMI spec 1.0 and spec 1.3.
I got a HDMI 2.0, which is 4K compatible, and the problem was resolved.
I had the same problem using an adaptor and existing cables I had used for PI1,2 & 3.
These were HDMI spec 1.0 and spec 1.3.
I got a HDMI 2.0, which is 4K compatible, and the problem was resolved.
- Sun Apr 07, 2019 5:09 pm
- Forum: C/C++
- Topic: Segmentation fault
- Replies: 4
- Views: 2015
Re: Segmentation fault
There are two check_button() functions being defined.
One is empty, just above 'void lcdcmd(unsigned int ch)'.
This may be the cause of the problem, however try using gdb to debug.
One is empty, just above 'void lcdcmd(unsigned int ch)'.
This may be the cause of the problem, however try using gdb to debug.
- Fri Jan 25, 2019 7:27 pm
- Forum: Graphics, sound and multimedia
- Topic: Replace volume control of USB speaker with a potentiometer
- Replies: 17
- Views: 2371
Re: Replace volume control of USB speaker with a potentiometer
B is Linear
A is Log
A is Log
- Fri Jan 25, 2019 7:10 pm
- Forum: C/C++
- Topic: hardware pwm without wiringpi or other libraries
- Replies: 7
- Views: 2378
Re: hardware pwm without wiringpi or other libraries
Start with
help> documentation > hardware > raspberrypi > bcm2835
and look at 'Peripheral specification' pdf.
Also refer to the errata as there are some errors in the PWM section.
help> documentation > hardware > raspberrypi > bcm2835
and look at 'Peripheral specification' pdf.
Also refer to the errata as there are some errors in the PWM section.
- Sat Jun 09, 2018 9:20 pm
- Forum: C/C++
- Topic: Writing data to BCM2835 - SPI
- Replies: 24
- Views: 5383
Re: Writing data to BCM2835 - SPI
SPI is a duplex operation. As you write data out on MOSI signal, data can come in on the MISO signal from the slave device. This TX & RX is using the same CLK. This CLK is generated by the master. To kick a slave into transmitting, you have to generate the CLK. This is done by 'writing' to the F...
- Sun May 20, 2018 3:13 pm
- Forum: C/C++
- Topic: Increase GPIO toggle frequency
- Replies: 24
- Views: 5672
Re: Increase GPIO toggle frequency
There is a problem in your initMapMem function. The second mmap() parameter is the page size for the map. You are passing 0x84 (132 ) as the value. This should be 4096. This is a fixed value, so you could use a constant, but you don't need to pass it. e.g. static uint32_t * initMapMem(int fd, uint32...
- Sun May 20, 2018 2:29 pm
- Forum: General discussion
- Topic: repair raspberry pi 3 b
- Replies: 34
- Views: 6660
Re: repair raspberry pi 3 b
It could be that the LAN chip is faulty. Does it get hot?
Are you connecting USB devices directly into the pi or through a USB hub?
Does the yellow led come on if you connect the network cable?
Are you connecting USB devices directly into the pi or through a USB hub?
Does the yellow led come on if you connect the network cable?
- Wed Apr 04, 2018 6:00 pm
- Forum: Interfacing (DSI, CSI, I2C, etc.)
- Topic: 6N138 UART 3.3 to 5v unidirectionnal level shifter
- Replies: 1
- Views: 454
Re: 6N138 UART 3.3 to 5v unidirectionnal level shifter
Midi out does not require opto-isolation, only midi in.
So a transistor or mofet acting as a switch will do the conversion.
So a transistor or mofet acting as a switch will do the conversion.
- Wed Jun 28, 2017 2:48 pm
- Forum: Interfacing (DSI, CSI, I2C, etc.)
- Topic: STICKY: The I2S sound thread. [I2S works]
- Replies: 1001
- Views: 584650
Re: The I2S sound thread.
This is incorrect. This should be 4096. Although it says 1024 in the PCMCLK datasheet, it has been correctedSo DIVI = 177 and DIVF = 0.1541195011 * 1024 = 157.8183... I "rounded" it at 158.
in the forums and is mentioned in the example source code.
- Tue Jun 27, 2017 6:17 pm
- Forum: Interfacing (DSI, CSI, I2C, etc.)
- Topic: STICKY: The I2S sound thread. [I2S works]
- Replies: 1001
- Views: 584650
Re: The I2S sound thread.
I'll reply in this thread as it is more relevant. From the other thread.. I set MASH 1 , DIVI = 177 , DIVF = 158 This is for 44100 @ 32 bit stereo? You have the correct DIVI, but the DIVF is not correct. How are you working DIVF out? By my calc, DIVF should be 681 ( although it falls on an edge case...
- Sun Jun 18, 2017 2:57 pm
- Forum: Interfacing (DSI, CSI, I2C, etc.)
- Topic: Sending TTL pulse from Arduino to Raspberry Pi
- Replies: 6
- Views: 1944
Re: Sending TTL pulse from Arduino to Raspberry Pi
Depending on which i/o you are using as an input, it could be an internal pull-up is active.
This would act as a voltage divider.
Try to get it working with just one Pi first, then add the others once debugged.
This would act as a voltage divider.
Try to get it working with just one Pi first, then add the others once debugged.
- Sat Jun 17, 2017 8:56 pm
- Forum: General discussion
- Topic: OLED 16x2 HD44780 woes
- Replies: 27
- Views: 16465
Re: OLED 16x2 HD44780 woes
But the WS0010 controller is not 100% compatible with the HD44780 It is compatible, but the "usual practice" of wiring the LCD module to be write only causes the problems with this chipset. I have not looked into the I2C_LCD_driver module, but it may have a read function. Failing that, as...
- Sat Jun 17, 2017 2:06 pm
- Forum: General discussion
- Topic: OLED 16x2 HD44780 woes
- Replies: 27
- Views: 16465
Re: OLED 16x2 HD44780 woes
I have had experience of this chipset. There is a small but critical difference. To quote from the datasheet BUSY FLAG (BF) The Busy Flag is used to determine whether WS0010 is idle or internally operating. When WS0010 is performing some internal operations, the Busy Flag is set to "1". Un...
- Sun May 07, 2017 2:27 pm
- Forum: Interfacing (DSI, CSI, I2C, etc.)
- Topic: Strange Chips and an RPi
- Replies: 4
- Views: 1440
Re: Strange Chips and an RPi
They are cmos 256K x 4bit dynamic ram.
The datasheet is out there, you may want to try another search engine ( that doesn't track you). Search for '514256 datasheet'.
The datasheet is out there, you may want to try another search engine ( that doesn't track you). Search for '514256 datasheet'.
- Sat Apr 29, 2017 11:19 pm
- Forum: C/C++
- Topic: LonRun : thread hang and not responding in raspberry pi 3
- Replies: 6
- Views: 1341
Re: LonRun : thread hang and not responding in raspberry pi
There is a return NULL in the adc function that may be causing the problem. Also, when you check for fp == NULL, it may be wise to use an else condition for the output. e.g. if( fp == NULL ) { <fail message> } else { <write to fp> <close fp> } Another suggestion would be to have the thread function ...
- Mon Sep 26, 2016 2:05 pm
- Forum: Interfacing (DSI, CSI, I2C, etc.)
- Topic: soft SPI works but hard dont?RPI3
- Replies: 7
- Views: 2088
Re: soft SPI works but hard dont?RPI3
In your spiTransfer function, try adding
to struct spi_ioc_transfer tr .
Code: Select all
.cs_change = 0
.pad = 0
- Sat Jan 23, 2016 1:56 am
- Forum: Advanced users
- Topic: PI resfuses to boot after using dt-blob.bin
- Replies: 1
- Views: 738
- Fri Jan 22, 2016 1:26 pm
- Forum: C/C++
- Topic: Serial device reads CR and overwrites data
- Replies: 1
- Views: 606
Re: Serial device reads CR and overwrites data
You will need to set the termios options.
Code: Select all
tcsetattr( fd, TCSANOW, &options );
- Mon Jan 11, 2016 11:46 pm
- Forum: Interfacing (DSI, CSI, I2C, etc.)
- Topic: SPI connection between RPi and atmega32
- Replies: 2
- Views: 1191
Re: SPI connection between RPi and atmega32
You seem to be missing a few settings in the rpi code. Add these global vars uint8_t bitsPerWord = 8; uint8_t spiMode = SPI_MODE_0; In main() add ioctl( fd, SPI_IOC_WR_MODE, &spiMode ); ioctl( fd, SPI_IOC_WR_BITS_PER_WORD, &bitsPerWord ); In your atmega code you pause 10ms (milli). In your r...
- Thu Jan 07, 2016 7:39 pm
- Forum: Interfacing (DSI, CSI, I2C, etc.)
- Topic: RPi2 UART Baud Rate
- Replies: 28
- Views: 12425
Re: RPi2 UART Baud Rate
Sorry about that.
Code: Select all
#define BLOCK_SIZE 4096
- Wed Jan 06, 2016 9:56 pm
- Forum: Interfacing (DSI, CSI, I2C, etc.)
- Topic: RPi2 UART Baud Rate
- Replies: 28
- Views: 12425
Re: RPi2 UART Baud Rate
This has worked for me using the standard bcm2709.uart_clock=3000000 clock setting in cmdline.txt with the ttyAMA0 default removed. It uses mmap to directly set the PL011 registers according to the ARM datasheet. The datasheet can be found here. http://infocenter.arm.com/help/topic/com.arm.doc.ddi01...