Go to advanced search

by pcmanbob
Fri Feb 28, 2020 8:09 pm
Forum: Troubleshooting
Topic: Connecting TEMT
Replies: 3
Views: 66

Re: Connecting TEMT

The TEMT6000 light sensor spears to be an analogue device outputing a voltage between VCC input and zero . So if you power the sensor from 3.3v it will output a voltage between 3.3 and 0v, but as the pi does not have any analogue pins you will need an analogue to digital converter like the MCP3008 t...
by pcmanbob
Fri Feb 28, 2020 1:18 pm
Forum: Beginners
Topic: Need to find command for crontab on reboot
Replies: 12
Views: 293

Re: Need to find command for crontab on reboot

How are you entering the cron line ? I would normally suggest using crontab -e or for root sudo crontab -e that way a basic sanity check is done before the line is written to the file and there should not be any problem with hidden characters. You can still have hidden charters if you are editing th...
by pcmanbob
Fri Feb 28, 2020 11:26 am
Forum: Troubleshooting
Topic: SPI EEPROM
Replies: 2
Views: 53

Re: SPI EEPROM

Hi.

First question how do you know the EEPROM is corrupt ?

If you power your pi with no SD cared inserted to you get the green LED flash 4 time and then repeat ?
by pcmanbob
Fri Feb 28, 2020 10:12 am
Forum: Beginners
Topic: Send Signal to a Physical Switch/Remote with RaspberryPi
Replies: 2
Views: 54

Re: Send Signal to a Physical Switch/Remote with RaspberryPi

Hi. What you need to do is use a relay or opto isolator connected in parallel with the existing switch on the remote , then you pi can activate the relay or opto isolator which will be the same as pressing the switch, this has been discussed on this forum before , this is just one such thread https:...
by pcmanbob
Fri Feb 28, 2020 10:00 am
Forum: Troubleshooting
Topic: Won't boot, no ACT light, no anything - Pi Zero W
Replies: 2
Views: 47

Re: Won't boot, no ACT light, no anything - Pi Zero W

Hi, Even I am facing the similar problem I think windows not recognizing my SD card as SDHC card it is being shown as under device manger. I am using this card: Strontium Nitro A1 64 Gb Sdhc Class 10 100 Mbps Memory Card. https://www.amazon.in/Strontium-Memory-Adapter-Smartphones-Tablets/dp/B07CHNN...
by pcmanbob
Fri Feb 28, 2020 9:13 am
Forum: Beginners
Topic: RPi3b GPIO pins for connecting to a fan...
Replies: 6
Views: 147

Re: RPi3b GPIO pins for connecting to a fan...

Here's a diagram and code to drive a 5v fan, it just turns the fan on and off no speed control. https://i.imgur.com/0qwACsK.jpg #!/usr/bin/env python3 import subprocess import time from gpiozero import OutputDevice ON_THRESHOLD = 65.0 # (degrees Celsius) Fan kicks on at this temperature. OFF_THRESHO...
by pcmanbob
Thu Feb 27, 2020 7:53 pm
Forum: Beginners
Topic: Need to find command for crontab on reboot
Replies: 12
Views: 293

Re: Need to find command for crontab on reboot

These errors Apr 11 18:28:37 LibreELEC crond[276]: user root: parse error at sleep Apr 11 18:28:37 LibreELEC crond[276]: user root: parse error at && Apr 11 18:28:37 LibreELEC crond[276]: user root: parse error at /storage/script/ Feb 27 17:44:22 LibreELEC crond[276]: user root: parse error at @rebo...
by pcmanbob
Thu Feb 27, 2020 7:48 pm
Forum: Troubleshooting
Topic: Burn raspberry pi after attempt to check voltage on pin 1 (3.3v)
Replies: 1
Views: 61

Re: Burn raspberry pi after attempt to check voltage on pin 1 (3.3v)

Hi.

If you had the multimeter set to volts and the leads connected to it correctly then testing between pins 1 and pins 7 or 9 should not have caused any damage ,

It's more likely you shorted pin 1 to pin 2 with you meter probe which will kill your pi instantly.
by pcmanbob
Thu Feb 27, 2020 1:48 pm
Forum: HATs and other add-ons
Topic: Using a 5v relay with Raspberry PI... Plus some electrical safety concerns
Replies: 1
Views: 64

Re: Using a 5v relay with Raspberry PI... Plus some electrical safety concerns

Hi. So first lets address the safety issue, If you don't have any electrical qualifications please don't start making changes to your coffee maker or you might just end up killing yourself or someone else or even sitting fire to were ever your coffee make is located. So if you really want to do this...
by pcmanbob
Thu Feb 27, 2020 11:40 am
Forum: Troubleshooting
Topic: Wifi stopped working on my raspberry pi
Replies: 6
Views: 134

Re: Wifi stopped working on my raspberry pi

I suggest you start by downloading the latest raspbian image and flash that to a spare SD card then add you wpa-supplicant file to the SD card and a file called ssh or ssh.txt and try booting your pi from that. If it had just been a failure of the wifi on your pi then adding a wifi dongle , assuming...
by pcmanbob
Wed Feb 26, 2020 1:42 pm
Forum: Troubleshooting
Topic: [Solved] RPi3 headless server to RPi4: no boot
Replies: 4
Views: 112

Re: RPi3 headless server to RPi4: no boot

Try putting the SD card back in the pi3 and run

Code: Select all

sudo apt update
sudo apt full-upgrade
then ry it in your pi4
by pcmanbob
Wed Feb 26, 2020 1:39 pm
Forum: General discussion
Topic: Pi 3 A+ setup
Replies: 13
Views: 278

Re: Pi 3 A+ setup

Hi. If you really want to use noobs then look at this for how to install it. https://projects.raspberrypi.org/en/projects/raspberry-pi-setting-up/2 but if you are only going to install raspbian you might be better just flashing the SD card directly with a raspbian image file using etcher https://www...
by pcmanbob
Wed Feb 26, 2020 11:55 am
Forum: Troubleshooting
Topic: GPIO.wait_for_edge
Replies: 7
Views: 105

Re: GPIO.wait_for_edge

one way to look at problems like this is to add a lot of print statements for the variable in question so you can see how its changing as the code progresses like this print ("before wait", GPIO.input(vlez)) GPIO.wait_for_edge(vlez, GPIO.RISING) print ("after wait", GPIO.input(vlez)) # if we're here...
by pcmanbob
Wed Feb 26, 2020 11:15 am
Forum: General discussion
Topic: Can a 12v relay be run using inputs from a different sensor.
Replies: 6
Views: 171

Re: Can a 12v relay be run using inputs from a different sensor.

You should be aware you can't drive relays directly from the gpio pins if they do not have there own driver circuit on the pcb, So if you are going to purchase just the relay like this https://i.imgur.com/XtpF3xY.jpg then you really need to purchase the 5v version and then build your own driver circ...
by pcmanbob
Wed Feb 26, 2020 11:08 am
Forum: Other programming languages
Topic: Linux shell script to control pi motor hat
Replies: 2
Views: 44

Re: Linux shell script to control pi motor hat

Hi.

I guess that would depend on the motor hat in question and how its controlled if you use python.

You need to give more details about the hat and how its controlled in python then someone may be able to help.
by pcmanbob
Wed Feb 26, 2020 11:05 am
Forum: Troubleshooting
Topic: No Input Display
Replies: 1
Views: 34

Re: No Input Display

Hi. From the little information supplied all I can say for sure is that is you SD card has gone write protect then it must have a problem that has cause the SD cards internal controller to make it write protected to protect the data on the card. This could be because its an old SD card you have reus...
by pcmanbob
Wed Feb 26, 2020 10:55 am
Forum: Other
Topic: Raspberry Pi 3B can't connect to my router and internet [KALI]
Replies: 1
Views: 37

Re: Raspberry Pi 3B can't connect to my router and internet [KALI]

Hi. So first off Kali Linux has its own support forum here : https://www.kali.org/community/ It is not supported on this forum. If you want help here then you need to install Raspbian on your SD card and boot your pi with that with no changes/set-up necessary you pi should connect to your router wit...
by pcmanbob
Wed Feb 26, 2020 10:48 am
Forum: Troubleshooting
Topic: Relay turns on when RPi boots
Replies: 2
Views: 70

Re: Relay turns on when RPi boots

Your relay problem is probably because you are using a 5v relay board that is active low , see here for explanation https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=83372&p=1225448#p1225448 you should also be aware that you are using the 3.3v gpio as a ground for a 5v circuit not god for the ...
by pcmanbob
Tue Feb 25, 2020 6:59 pm
Forum: Beginners
Topic: Need to find command for crontab on reboot
Replies: 12
Views: 293

Re: Need to find command for crontab on reboot

You did not follow my instructions and change you Cron entry, you are missing
>> /home/pi/errlog.txt 2>&1 from the end of the Cron line.

Try

Code: Select all

@reboot sleep 10 && /storage/script/Onreboot.sh >> /storage/script/errlog.txt 2>&1
*/1 * * * *  bash ./script/ventilo.sh
by pcmanbob
Tue Feb 25, 2020 2:40 pm
Forum: General discussion
Topic: Can a 12v relay be run using inputs from a different sensor.
Replies: 6
Views: 171

Re: Can a 12v relay be run using inputs from a different sensor.

So the relay you linked requires 12V to power it so you would required a separate 12V power supply, you may also find you cant drive it on/off directly from the pi gpio which is only 3.3v so you may need an interface circuit between the gpio pin and the IN terminal on the relay. the DHT22 sensor is ...
by pcmanbob
Tue Feb 25, 2020 2:28 pm
Forum: Troubleshooting
Topic: Wifi stopped working on my raspberry pi
Replies: 6
Views: 134

Re: Wifi stopped working on my raspberry pi

You need to give use some thing to work with

which pi
which OS are you using

and please post the results of these commands

Code: Select all

ifconfig
ping -c3 8.8.8.8
ping -c3 google.com
cat /etc/resolv.conf
by pcmanbob
Tue Feb 25, 2020 2:22 pm
Forum: Troubleshooting
Topic: GPIO.wait_for_edge
Replies: 7
Views: 105

Re: GPIO.wait_for_edge

That's because wait for edge does what it says on the tin, it waits for the edge before continuing. ref doc https://sourceforge.net/p/raspberry-gpio-python/wiki/Inputs/ So in your code the line GPIO.wait_for_edge(vlez, GPIO.RISING) will wait for the rising edge before allowing the code to continue e...
by pcmanbob
Tue Feb 25, 2020 9:23 am
Forum: Raspbian
Topic: Download of rasbian failing
Replies: 1
Views: 81

Re: Download of rasbian failing

Just download Raspbian lite in under 60 sec
and Raspbian with desktop and recommended software in about 3 min

which is actually faster than it has been downloading recently.
by pcmanbob
Tue Feb 25, 2020 9:15 am
Forum: Beginners
Topic: Need to find command for crontab on reboot
Replies: 12
Views: 293

Re: Need to find command for crontab on reboot

If it wont work with cron it likely wont work with any other method, so you need to find out whats happening when you call your script. first modify your scrip like this echo " Start " modprobe -r dvb_usb_af9035 modprobe dvb_usb_af9035 echo " Finish " then change your cron line so it looks like this...

Go to advanced search