Go to advanced search

by pcmanbob
Fri Sep 20, 2019 8:22 am
Forum: Beginners
Topic: Pi not booting after shutdown.
Replies: 1
Views: 27

Re: Pi not booting after shutdown.

Hi.

So when you say you shut it down did you do a shutdown using the option in the menu to do a shutdown or did you just pull the power ?

When you attempt your second boot what are the red and green LEDs doing ?

What are you using for a power supply ?
by pcmanbob
Fri Sep 20, 2019 8:16 am
Forum: General discussion
Topic: DFRobot pH Meter V1. 1 with Raspberry Pi 3 B+
Replies: 3
Views: 55

Re: DFRobot pH Meter V1. 1 with Raspberry Pi 3 B+

Well the first thing you need to check is the output of the sensor as one document says it 0-3.0V but the other does not mention it directly but it does say the board needs 5v to work correctly. The pi needs an analogue input not output, the MCP3008 will provide such an input for the pi, there are p...
by pcmanbob
Thu Sep 19, 2019 6:58 pm
Forum: General programming discussion
Topic: Installing OLED screen for Pihole
Replies: 1
Views: 63

Re: Installing OLED screen for Pihole

Hi. there are several ways . 1. at a command line on the pi enter " nano /home/pi/stats.py " then type the program in there. 2. at a command line on the pi enter " nano /home/pi/stats.py " then copy and paste the code in to the file. 3. simplest option is to use your desktop pc to download the file ...
by pcmanbob
Thu Sep 19, 2019 5:29 pm
Forum: Troubleshooting
Topic: sendmail process failed with error code 1
Replies: 1
Views: 21

Re: sendmail process failed with error code 1

Hi.

So noobs is not an OS it's just an installer, so which OS did you install on first SD card ?

So which version of raspbian did you install on second SD card ?

Finally ssmtp will work on raspbian stretch
But ssmtp will not work on raspbian buster, for raspbian buster you have to use msmtp.
by pcmanbob
Thu Sep 19, 2019 5:19 pm
Forum: General discussion
Topic: DFRobot pH Meter V1. 1 with Raspberry Pi 3 B+
Replies: 3
Views: 55

Re: DFRobot pH Meter V1. 1 with Raspberry Pi 3 B+

Hi.

A Google search came up with several model numbers for the sensor.

It would help if you have more detail on the sensor you have , including a link to it's data sheet or were you purchased it from.
by pcmanbob
Thu Sep 19, 2019 11:21 am
Forum: Beginners
Topic: Step motor fails to run backwards on raspberry
Replies: 2
Views: 58

Re: Step motor fails to run backwards on raspberry

Does this sequence work with your motor/driver board

Code: Select all

    [1,0,0,0]
    [1,1,0,0]
    [0,1,0,0]
    [0,1,1,0]
    [0,0,1,0]
    [0,0,1,1]
    [0,0,0,1]
    [1,0,0,1]
    
    [1,0,0,1]
    [0,0,0,1]
    [0,0,1,1]
    [0,0,1,0]
    [0,1,1,0]
    [0,1,0,0]
    [1,1,0,0]
    [1,0,0,0]
    
    
by pcmanbob
Thu Sep 19, 2019 11:03 am
Forum: Troubleshooting
Topic: Raspbian buster lite default login not working
Replies: 3
Views: 82

Re: Raspbian buster lite default login not working

Hi.

The default user is pi and the password is raspberry

I suggest you try entering both at the user input to see if you are actually getting the correct characters from your keyboard.

I think if the image was broken there would be hundreds of people here saying they cant log on.
by pcmanbob
Thu Sep 19, 2019 10:55 am
Forum: Troubleshooting
Topic: VNC enabled, after upgrade rpi4 wont boot
Replies: 5
Views: 117

Re: VNC enabled, after upgrade rpi4 wont boot

So first question did you do a reboot after the upgrade and before installing the extra software ?

Secondly why are you installing xrdp when you have VNC active , all you need is the VNC viewer on your pc and you will have desktop access.
by pcmanbob
Wed Sep 18, 2019 10:57 am
Forum: Beginners
Topic: Multiple DHT22 reading on RPi board
Replies: 1
Views: 30

Re: Multiple DHT22 reading on RPi board

Hi. So a quick google found this page. https://learn.adafruit.com/dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging if your read through the tutorial they explain how to connect a single sensor , but they also say you can add more sensors by just using a different gpio for each DHT22 data pin.
by pcmanbob
Wed Sep 18, 2019 9:51 am
Forum: General discussion
Topic: 'buster': apt-get update > no new updates for days...
Replies: 4
Views: 259

Re: 'buster': apt-get update > no new updates for days...

Just run sudo apt update on one of my pi's running buster lite and got this [email protected]:~ $ sudo apt update Hit:1 http://archive.raspberrypi.org/debian buster InRelease Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB] Get:3 http://raspbian.raspberrypi.org/raspbian buster/mai...
by pcmanbob
Wed Sep 18, 2019 9:14 am
Forum: Troubleshooting
Topic: Changing language to English
Replies: 3
Views: 84

Re: Changing language to English

Might help if you post the error message in full so we can see what went wrong.
by pcmanbob
Wed Sep 18, 2019 8:59 am
Forum: Python
Topic: Change in logic in sensor not breaking 'while' loop?
Replies: 3
Views: 109

Re: Change in logic in sensor not breaking 'while' loop?

My first question is what voltage is your sensor working at ? if it has a PNP open collector output then the 2 output states would be, output off = 0V to pi gpio, output on= supply voltage to pi gpio. I suggest you do some testing with you sensor and a digital voltmeter to determine what the output ...
by pcmanbob
Wed Sep 18, 2019 8:40 am
Forum: Troubleshooting
Topic: rc.local won't load images as part of python script
Replies: 2
Views: 44

Re: rc.local won't load images as part of python script

rc.local runs in a different environment to your command line , so in your program you have to inclue the full directory path to any file ( including image files ) that you want to open. So this needs changing images/backup_icon.png to include the full path from root /..../..../images/backup_icon.pn...
by pcmanbob
Wed Sep 18, 2019 8:34 am
Forum: General discussion
Topic: Making button execute script more than once
Replies: 1
Views: 65

Re: Making button execute script more than once

To make a program run repeatedly you need to a a loop for the part of the program that needs to run continuously. So in your program it needs to loop the part of the code that waits for the falling edge and the code that switches the display on or off. like this import RPi.GPIO as GPIO import subpro...
by pcmanbob
Tue Sep 17, 2019 7:35 pm
Forum: Troubleshooting
Topic: The mystery of 3 dead pi4s
Replies: 16
Views: 510

Re: The mystery of 3 dead pi4s

I would suggest you use the new pi4B official power supply , which is now 3A as you have an external drive connected.

https://www.raspberrypi.org/products/ty ... er-supply/

You might also try not using the full-board radiator as that seems to be the only difference between you pi3 and pi4 setup.
by pcmanbob
Tue Sep 17, 2019 7:23 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: ADXL345 SPI interfacing on Raspberry pi
Replies: 1
Views: 34

Re: ADXL345 SPI interfacing on Raspberry pi

Hi.

If you can change the I2C address of the second ADXL345 accelerometer, you can connect that to the same I2C pins and then just use the address for each ADXL345 accelerometer to access both of them via I2C
by pcmanbob
Tue Sep 17, 2019 7:13 pm
Forum: Troubleshooting
Topic: RPI 4B not booting
Replies: 2
Views: 67

Re: RPI 4B not booting

boot it only makes the green led flicker alot randomly, while the red led is always on. Im booting headless* Hi. From your description I would say your pi is booting , red LED on good, green LED flashing randomly good. which OS have you installed ? So what were you expecting ? how are you intending...
by pcmanbob
Tue Sep 17, 2019 7:07 pm
Forum: Troubleshooting
Topic: The mystery of 3 dead pi4s
Replies: 16
Views: 510

Re: The mystery of 3 dead pi4s

HI. As we don't seem to have had droves of people here saying there pi4B only lasted 24hr or less, it would suggest its something you have connected to your pi that's causing this repeatable failure. So first question would be what's this " with a full-board radiator " and was it designed for the pi...
by pcmanbob
Tue Sep 17, 2019 6:39 pm
Forum: Beginners
Topic: GPIO pin to trigger 555 astable circuit
Replies: 4
Views: 94

Re: GPIO pin to trigger 555 astable circuit

Hi. If you really must use a 555 timer to make your LED flash then this will allow you pi gpio to switch it on and off. https://i.imgur.com/aIMTjzk.jpg A simpler answer is to use a flashing LED ( 5mm, red ,flashing ) https://www.ebay.co.uk/itm/Special-LEDs-3mm-5mm-Flashing-Flickering-Bi-Colour-Tri-C...
by pcmanbob
Tue Sep 17, 2019 3:24 pm
Forum: Troubleshooting
Topic: RPi 4 has stopped booting, red light constantly on
Replies: 11
Views: 275

Re: RPi 4 has stopped booting, red light constantly on

So I assuming you unzipped the download file and copied the 3 files on to the SD card which you had formatted fat32. When you tried booting the pi from this SD card you have to wait for the Green LED to flash quickly, if it does not and you are sure your SD card has been prepared correctly then I wo...
by pcmanbob
Tue Sep 17, 2019 1:51 pm
Forum: Automation, sensing and robotics
Topic: How Many Sensors/Motors Can a Raspberry Pi 3 Handle at Once?
Replies: 6
Views: 166

Re: How Many Sensors/Motors Can a Raspberry Pi 3 Handle at Once?

You are only taking about sending high or low signals to the H-bridge so a mA or 2 at most per gpio pin, same goes for the servo pwm signal for control , you should be able to power a small servo like the SG90, from the 5v gpio pin , probably 200mA max, range sensor assuming HC-SR04 15mA per sensor....
by pcmanbob
Tue Sep 17, 2019 12:38 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Spidev not working
Replies: 14
Views: 289

Re: Spidev not working

Well in the image you posted its clear you are using the command python which is python 2, if you want to run python 3 then you need to use python3 . Run the install command that joan posted and I repeated and it will install for both python 2 and python 3 The install command you posted is not corre...
by pcmanbob
Tue Sep 17, 2019 11:38 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Spidev not working
Replies: 14
Views: 289

Re: Spidev not working

So did you install spidev for python 2 or python 3 ?

you are running your program using python which is python 2

As joan suggested try the install again this time for both.

Code: Select all

sudo apt update
sudo apt install python-spidev python3-spidev
by pcmanbob
Tue Sep 17, 2019 11:34 am
Forum: Troubleshooting
Topic: RPi 4 has stopped booting, red light constantly on
Replies: 11
Views: 275

Re: RPi 4 has stopped booting, red light constantly on

If you don't get the 4 flashes with NO SD card in your pi when trying to boot. then you need to try the EEPROM recovery as drgeoff suggested. Remember you need to format the SD card you want to use for this as fat32 , so if you are using a large SD card you may have to use special formatting softwar...
by pcmanbob
Tue Sep 17, 2019 7:58 am
Forum: Beginners
Topic: Computer monitor & Raspberry Pi 4B
Replies: 5
Views: 158

Re: Computer monitor & Raspberry Pi 4B

So yes it will work, I use a DVI to HDMI cable for all my pi's when connecting to my monitor , I just have to use a micro HDMI to HDMI adapter for the pi4. so a quick google search came up with these. https://www.raspberrypi.org/products/micro-hdmi-to-standard-hdmi-a-cable/ https://shop.pimoroni.com...

Go to advanced search