Go to advanced search

by dgordon42
Tue Feb 18, 2020 1:57 pm
Forum: Advanced users
Topic: Using Bluetooth and UART (GPIO14&15)
Replies: 1
Views: 61

Re: Using Bluetooth and UART (GPIO14&15)

Undo any changes you have made on your Pi while trying to get your serial port working. Add the line: enable_uart=1 to the end of the '/boot/config.txt' file, and reboot. Refer to your serial port as "/dev/serial0", that's Serial Zero not Serial Oh, in your code. The 'serial0' alias for the Serial P...
by dgordon42
Fri Feb 14, 2020 12:00 pm
Forum: Troubleshooting
Topic: Issues since kernel got updated to 4.19.93
Replies: 159
Views: 9128

Re: Issues since kernel got updated to 4.19.93

"rpi-update" loads the latest firmware and kernel which is still in testing This is still beta software, and it is recommended that people do no use "rpi-update" unless it is suggested by the RPI People to try to fix a particular issue. There is no promise or guarantee that your Pi will still boot a...
by dgordon42
Fri Jan 31, 2020 11:18 pm
Forum: Troubleshooting
Topic: Taskbar and main window have different widths
Replies: 1
Views: 316

Re: Taskbar and main window have different widths

See this thread.

The white space seems to have been inadvertently introduced with a recent update.

Hope this helps,
Dave.
by dgordon42
Mon Jan 27, 2020 8:34 am
Forum: General discussion
Topic: Firefox-esr illegal instruction
Replies: 9
Views: 536

Re: Firefox-esr illegal instruction

Chryses wrote:I installed firefox-esr like always and no error are show, but if I only try to access to it I got error
How did you install it?
The copy of Firefox-ESR in the Raspbian repositories works on all Pi's as @pagenotfound says above, but Firefox from other sources may not.

Hope this helps,
Dave.
by dgordon42
Wed Jan 22, 2020 1:54 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPi 4 - Using alternate I2C
Replies: 5
Views: 397

Re: RPi 4 - Using alternate I2C

You can run several I2c buses at the same time, details on how to configure the buses and GPIO pins are in the file '/boot/overlays/README' on your Pi. Note that only GPIOs 2 & 3 (physical pins 3 & 5) have pull up resistors fitted on the Pi itself. To use any other pins you will need to have pull up...
by dgordon42
Wed Jan 22, 2020 11:29 am
Forum: Troubleshooting
Topic: Pi freezing when plugging in a new SSD
Replies: 15
Views: 795

Re: Pi freezing when plugging in a new SSD

2 things to try: First, power down your Pi, plug in your USB Drive, and power up again. Does the Pi work normally now, and does the drive work? It's possible that your power supply can't handle hot plugging of the Drive. Next, read the sticky post about poor performance with SSD's attached to the Pi...
by dgordon42
Sun Jan 19, 2020 10:15 am
Forum: Troubleshooting
Topic: How to download scripts without network connection?
Replies: 4
Views: 158

Re: How to download scripts without network connection?

Is it possible to download the scripts to the pi via the SD card or a USB stick? Yes, its possible to do both. The easiest way would be to download them on a PC, copy them over to a blank USB stick, then plug the stick into your Pi. Then, just copy the files into your Home directory. If you wish to...
by dgordon42
Sun Jan 19, 2020 9:52 am
Forum: Troubleshooting
Topic: Pygame Not Displaying Objects Moving on Raspberry Pi
Replies: 2
Views: 88

Re: Pygame Not Displaying Objects Moving on Raspberry Pi

Looks like a typo on line 35. Try changing

Code: Select all

play_pos = [x,y]
to

Code: Select all

player_pos = [x,y]
Note, I have not tested this,
Dave.
by dgordon42
Tue Jan 14, 2020 1:32 pm
Forum: General discussion
Topic: How to use Bluetooth and UART both.
Replies: 10
Views: 453

Re: How to use Bluetooth and UART both.

So right now, with dtoverlay=miniuart-bt I use a mini-uart? Incorrect, with "dtoverlay=miniuart-bt", Bluetooth uses the miniUART 'ttyS0' internally and you use the full UART 'ttyAMA0' as the Serial Port on GPIO pins 14 and 15 (physical pins 8 and 10). The clue is in the name. See the details in my ...
by dgordon42
Tue Jan 14, 2020 11:15 am
Forum: Beginners
Topic: Reading data serially for reading sensor data
Replies: 4
Views: 235

Re: Reading data serially for reading sensor data

First, replace all instances of "/dev/ttyAMA0" in your code with: /dev/serial0 Next, ensure that the Serial Port is enabled and the Serial Console is disabled. The 'Raspberry Pi Configuration' Tool in the GUI, or 'sudo raspi-config' in the CLI can help with this. Reboot after any changes. Hope this ...
by dgordon42
Mon Jan 13, 2020 1:12 am
Forum: Beginners
Topic: 1pps generation from raspberry Pi
Replies: 2
Views: 198

Re: 1pps generation from raspberry Pi

The Pi can output a 1 PPS timing signal by adding the line: dtoverlay=pps-gpio to the file '/boot/config.txt' and rebooting. This will output a 1 second timing signal on GPIO 18 (physical pin 12). You can change from the default pin if required, see details in the file '/boot/overlays/README'. Hope ...
by dgordon42
Sun Jan 12, 2020 6:22 pm
Forum: General discussion
Topic: How to use Bluetooth and UART both.
Replies: 10
Views: 453

Re: How to use Bluetooth and UART both.

without the line - pi3-miniuart-bt - UART prints gibberish. Not sure why you are experiencing this. So far any work I've done with the serial ports has been on an original Pi and a Pi 3B, so I have just tried this out on a Pi 4B4G running an up to date Raspbian Buster to see what happens. To test, ...
by dgordon42
Sun Jan 12, 2020 11:56 am
Forum: General discussion
Topic: How to use Bluetooth and UART both.
Replies: 10
Views: 453

Re: Hoe to use Bluetooth and UART both.

It's not necessary to use dtoverlay=pi3-miniuart-bt to use the UART's on a Pi, just add enable_uart=1 to the '/boot/config.txt' file and reboot instead. The miniUART will now be available as a serial port on the GPIO pin, and it's clocking, etc., will be set up as necessary. The miniUART is sufficie...
by dgordon42
Sat Oct 12, 2019 3:47 pm
Forum: Troubleshooting
Topic: USB-Serial reading of PI
Replies: 13
Views: 767

Re: USB-Serial reading of PI

If you are trying to read (or write) serial data to a USB attached device, you need to know it's filename in the '/dev' directory. It won't be '/dev/ttyAMA0' as this is one of the Pi's UARTs. Have a look in the '/dev' directory. A plugged in USB Serial device would normally appear as '/dev/ttyUSB0'....
by dgordon42
Sat Oct 12, 2019 2:17 pm
Forum: Beginners
Topic: Raspi-config, Overlay file system question...
Replies: 4
Views: 1546

Re: Raspi-config, Overlay file system question...

Some more information on the Overlay File System here.

Hope this helps,
Dave.
by dgordon42
Sat Oct 05, 2019 12:55 pm
Forum: Beginners
Topic: [Pi4] What are config.txt sections ?
Replies: 12
Views: 1072

Re: [Pi4] What are config.txt sections ?

There is some good information in the file

Code: Select all

/boot/overlays/README
on your Pi.

Hope this helps,
Dave.
by dgordon42
Thu Sep 26, 2019 10:21 pm
Forum: Troubleshooting
Topic: RP4 - Cannot get bootmessages to UART
Replies: 1
Views: 175

Re: RP4 - Cannot get bootmessages to UART

The 'dtoverlay=pi3-disable-bt" has now been changed to: dtoverlay=disable-bt The 'pi3-disable-bt' remains as an alias, but I don't know if it works on a Pi4. When using 'dtoverlay=disable-bt', it is also necessary to issue the command sudo systemctl disable hciuart once and reboot, otherwise '/dev/t...
by dgordon42
Tue Sep 17, 2019 11:45 am
Forum: General discussion
Topic: New Raspbian Buster and Thonny idle, "hate at first sight"
Replies: 15
Views: 954

Re: New Raspbian Buster and Thonny idle, "hate at first sight"

Code: Select all

sudo apt install idle3
will get your IDLE back for Python3.

Hope this helps,
Dave.
by dgordon42
Sun Aug 11, 2019 1:14 pm
Forum: General discussion
Topic: WiringPi to be deprecated?
Replies: 10
Views: 2756

WiringPi to be deprecated?

Sad to read that Gordon may soon finish with his excellent WiringPi library here. Also sad to read how disappointed the WiringPi project has left him, and how he has been taken advantage off. Instead, he should be proud of his work in supporting the Pi's GPIO pins from the beginnings of the Pi, and ...
by dgordon42
Sun Jul 28, 2019 7:36 pm
Forum: Troubleshooting
Topic: [SOLVED] Pi 4: Red light (but working normally?)
Replies: 3
Views: 698

Re: Pi 4: Red light (but working normally?)

See the file '/boot/overlays/README' on your Pi.

The dtoverlay 'pwr_led_activelow' will allow you to change the action of the red power LED, you can have it off when the power is OK instead of the default on.

Hope this helps,
Dave.
by dgordon42
Sat Jul 27, 2019 9:20 pm
Forum: Raspbian
Topic: Help wanted to Connecting VT320 to a RPi Zero
Replies: 10
Views: 561

Re: Help wanted to Connecting VT320 to a RPi Zero

On your VT320 Terminal, what is the output from: echo $TERM The default terminal is the VT100, some VT320 features may not work unless the system knows you are using a VT320. I have a VT320 terminal which I also connect to my Pi's using a Serial to USB converter. I found it was very usefull to be ab...
by dgordon42
Tue Jul 23, 2019 2:26 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: ttyAMA0 Serial on Rasbian Jessie @RPi B+
Replies: 10
Views: 18488

Re: ttyAMA0 Serial on Rasbian Jessie @RPi B+

@hemanth2607, Two things: First, put the following line in as the first line in your Python Code running on the Pi: #!/usr/bin/env python3 This line is not a comment, it's a 'shebang', and it ensures your code runs on Python3, rather than the default Python2 Second, you should replace all instances ...
by dgordon42
Mon Apr 15, 2019 11:47 am
Forum: Beginners
Topic: I need to use I2C1 (GPIO2,3), how can i also use rPi Camera?
Replies: 2
Views: 262

Re: I need to use I2C1 (GPIO2,3), how can i also use rPi Camera?

Unless you are using a very old Pi Model A or B, you can use the I2C Bus 1 (GPIO 2 & 3, physical pins 3 & 5) normally with the RPi Camera attached and working, just enable the I2C in '/boot/config.txt' as normal. I2C Bus 0 is used on some Pi models to control on board functions such as power supply ...
by dgordon42
Thu Nov 29, 2018 9:27 pm
Forum: General discussion
Topic: Current way to disable getty?
Replies: 1
Views: 1241

Re: Current way to disable getty?

It you want to stop a getty running on the Serial Port (which is disabled by default these days I believe) then try:

Code: Select all

sudo systemctl stop getty@ttyAMA0
or

Code: Select all

sudo systemctl stop getty@ttyS0
as required.

Hope this helps,
Dave.
by dgordon42
Mon Oct 29, 2018 4:46 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [RPi Zero W] UART not working when SPI1 enabled
Replies: 9
Views: 5779

Re: [RPi Zero W] UART not working when SPI1 enabled

I ran the commands you listed. Here is the output: 1. Linux MY_PI'S_NAME 4.14.71+ #1145 Fri Sep 21 15:06:38 BST 2018 armv6l GNU/Linux 2. dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait modules-load=dwc2,g_ether,g_mass_storage 3. enabl...

Go to advanced search