Go to advanced search

by pcmanbob
Tue Aug 13, 2019 10:04 am
Forum: Advanced users
Topic: email atachment
Replies: 5
Views: 172

Re: email atachment

Looking at the error message it would appear that your program can't find a file called latest which it is expecting to find in the directory /home/pi/Pictures So is your file called latest ? I suspect not. Try adding a print statement before the error line and have it print the contents of the file...
by pcmanbob
Tue Aug 13, 2019 9:52 am
Forum: Raspbian
Topic: Client email to send emails from command line
Replies: 27
Views: 9522

Re: Client email to send emails from command line

As long as you are not using any special characters in the email name or the password , your config file looks correct. Try logging in to your gmail account from a browser to check the account credentials and to check there are no security messages from google , I have had them refuse to allow a pi ...
by pcmanbob
Mon Aug 12, 2019 2:13 pm
Forum: Beginners
Topic: Problem running ULN2003 on Pi3
Replies: 10
Views: 231

Re: Problem running ULN2003 on Pi3

Try this code with your 5 wire 28BYJ-48 motor, I think it has the correct sequence for driving your motor. import RPi.GPIO as GPIO import time # uln2803A and 6 wire stepper motor # Variables delay = 0.005 steps = 100 GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) # Enable pins for IN1-4 to control s...
by pcmanbob
Mon Aug 12, 2019 1:06 pm
Forum: Troubleshooting
Topic: rpi 4 + sense hat, mechanical assembly
Replies: 3
Views: 66

Re: rpi 4 + sense hat, mechanical assembly

Looking at your picture if you turned both plugs round the cable would come out on the outside, you could then dismantle one of the plugs and shorten the cable so as to reduce the spare cable left hanging out side the pi. the cable would then follow the path shown by the yellow line https://i.imgur....
by pcmanbob
Mon Aug 12, 2019 12:49 pm
Forum: Automation, sensing and robotics
Topic: GPIO configuration + AM2302 temperature sensor
Replies: 4
Views: 170

Re: GPIO configuration + AM2302 temperature sensor

tekisri wrote:
Mon Aug 12, 2019 12:21 pm
Hello,

Thank for the response. I have read the document. I would like to replicate the program on to codesys environment. I need some help in that area.
Sorry outside of my field on knowledge so can't help with that.
by pcmanbob
Mon Aug 12, 2019 12:18 pm
Forum: Beginners
Topic: Need help with a project - synchronized targets with hit detection
Replies: 15
Views: 319

Re: Need help with a project - synchronized targets with hit detection

For testing yes you could use a breadboard and some dupoint cables, but in your final build you really need to use a soldered solution for reliability, you could just use some strip-board and solder all the wires to that and then use a 40 way IDC connector to connect that to the pi gpio. examples bu...
by pcmanbob
Mon Aug 12, 2019 9:06 am
Forum: Graphics, sound and multimedia
Topic: Automate Video Playback + GPIO
Replies: 4
Views: 158

Re: Automate Video Playback + GPIO

Hi.

I suggest you have a look at this thread https://www.raspberrypi.org/forums/view ... 1&t=245969

Here the pi is controlling a model aircraft display and is timed to the sound track, but you could do some this just the same with a video and time the gpio to preform the required actions.
by pcmanbob
Mon Aug 12, 2019 12:41 am
Forum: Beginners
Topic: Problem running ULN2003 on Pi3
Replies: 10
Views: 231

Re: Problem running ULN2003 on Pi3

Here's a typical ULN2003 board showing you were to connect your power for the motor to.

Image
by pcmanbob
Mon Aug 12, 2019 12:15 am
Forum: Troubleshooting
Topic: Raspberry Pi 4 doesnt boot
Replies: 6
Views: 170

Re: Raspberry Pi 4 doesnt boot

Hi. To brick a pi you normally have to have damaged the gpio or supplied a high voltage to the pi power socket, so have you had anything connected to the gpio or supplied higher than 5v to the pi power socket or via the gpio pins ? I suggest you also look at the not booting sticky and specifically t...
by pcmanbob
Mon Aug 12, 2019 12:06 am
Forum: Beginners
Topic: Not sure how to or where to write the code. Hi
Replies: 21
Views: 359

Re: Not sure how to or where to write the code. Hi

I guess you found the correct place to enable less secure apps on your account then.

glad its working ok for you now.
by pcmanbob
Mon Aug 12, 2019 12:04 am
Forum: Troubleshooting
Topic: Issues with gpio
Replies: 7
Views: 188

Re: Issues with gpio

Ahh ok, is there anyway for it to be done then? As I said in my post above you can do it using a relay driven from the gpio using one for each switch on the remote or an opto -isolator in place of the relay but you will need to get the transistor output of the opto-isolator polarity correct to matc...
by pcmanbob
Mon Aug 12, 2019 12:00 am
Forum: Beginners
Topic: Need help with a project - synchronized targets with hit detection
Replies: 15
Views: 319

Re: Need help with a project - synchronized targets with hit detection

You just need to connect 3.3v and ground to each sensor then connect the D0 pin of each sensor to the relevant gpio pin, as listed in the code.

like this

Image
by pcmanbob
Sun Aug 11, 2019 3:32 pm
Forum: Beginners
Topic: Not sure how to or where to write the code. Hi
Replies: 21
Views: 359

Re: Not sure how to or where to write the code. Hi

Just Google enable less secure apps.

You need to log in to the account you are trying to use on the pi.
by pcmanbob
Sun Aug 11, 2019 3:30 pm
Forum: Beginners
Topic: Problem running ULN2003 on Pi3
Replies: 10
Views: 231

Re: Problem running ULN2003 on Pi3

If you look at the ULN2003 board there should be a jumper on there that will allow you to provide power to the motor via another supply. I have no idea about the other driver board as you have not provided a link to it . If your smaller 5 wire stepper motor is not turning that you may have the wrong...
by pcmanbob
Sun Aug 11, 2019 1:11 pm
Forum: General discussion
Topic: Raspi pressure sensor
Replies: 14
Views: 383

Re: Raspi pressure sensor

Hi. If you want specific help with " these pressure sensors " then you need to tell us which pressure sensors you are talking about , post a link to the web site or data sheet for the devices you intend to use. Remember we cant see your pi or anything connected to it so you need to provide as much i...
by pcmanbob
Sun Aug 11, 2019 1:03 pm
Forum: Beginners
Topic: Not sure how to or where to write the code. Hi
Replies: 21
Views: 359

Re: Not sure how to or where to write the code. Hi

It needs to be port 587 that's what gmail uses and has done for as long as I have been sending emails from my pi's , did you enable less secure apps on the gmail account ? have you tried logging in to the account from a pc via the browser to see if there are any security messages from google and to ...
by pcmanbob
Sun Aug 11, 2019 12:41 pm
Forum: Beginners
Topic: Need help with a project - synchronized targets with hit detection
Replies: 15
Views: 319

Re: Need help with a project - synchronized targets with hit detection

Brilliant thank you so much for your help. Although I understood maybe only 70% of what you wrote, it is a very solid start for my project. I was doing more research since my original post and thought that maybe I would have to put an Arduino board between the sensors and the Pi. So it sounds like ...
by pcmanbob
Sun Aug 11, 2019 12:34 pm
Forum: Beginners
Topic: Not sure how to or where to write the code. Hi
Replies: 21
Views: 359

Re: Not sure how to or where to write the code. Hi

It means either the user name ( ie email address ) or the password are wrong. I set up a separate gmail account for use with my pi's and I found that if you use only the A-Z,a-z, 0-9 - . characters and no other special characters you will have a lot less problems with ssmtp as it does not handle spe...
by pcmanbob
Sun Aug 11, 2019 11:44 am
Forum: Beginners
Topic: Need help with a project - synchronized targets with hit detection
Replies: 15
Views: 319

Re: Need help with a project - synchronized targets with hit detection

Hi. So I am assuming you are talking about a SW420 vibration sensor ( always a good idea to post a link to the device you intend to use ), So assuming the sensors you have can work at 3.3v you simply need to connect power and ground to the sensor and then connect the data out pin to a gpio input wit...
by pcmanbob
Sun Aug 11, 2019 10:10 am
Forum: Troubleshooting
Topic: Issues with gpio
Replies: 7
Views: 188

Re: Issues with gpio

Hi. You can't simulate pressing button on your pcb using gpio pins like that, because you are connecting the ground and 3.3v of the pi to the other circuit. You need to drive a switch using the gpio that you can then use to make the connection across the existing switch on the circuit board. The sim...
by pcmanbob
Sun Aug 11, 2019 10:00 am
Forum: Beginners
Topic: Is it safe to connect the GND pin to the GND of an external USB psu?
Replies: 2
Views: 131

Re: Is it safe to connect the GND pin to the GND of an external USB psu?

Simple answer YES.

You will need both grounds connected together as you will need both grounds for your circuits to be complete or it wont work.
by pcmanbob
Sun Aug 11, 2019 9:58 am
Forum: Beginners
Topic: Setting spibox to use smtp with hotmail?
Replies: 6
Views: 779

Re: Setting spibox to use smtp with hotmail?

From the OP's other thread on the same subject

PRETTY_NAME "Raspbian GNU/Linux 9 (stretch)"
VERSION_ ID="9"
VERSION="9 (stretch)"
ID=Raspbian
ID_LIKE=debian
https://www.raspberrypi.org/forums/view ... 1&t=248455
by pcmanbob
Sun Aug 11, 2019 9:48 am
Forum: Beginners
Topic: Problem running ULN2003 on Pi3
Replies: 10
Views: 231

Re: Problem running ULN2003 on Pi3

A ULN2003 can only be used to drive 5 wire unipolar stepper motor, your stepper motor is a 4 wire bipolar stepper motor so it will not work. also the ULN2003 is only rated for 500mA and your motor needs 1.5A so if it had tried to drive you motor it would have burnt out due to the overload. you need ...
by pcmanbob
Sun Aug 11, 2019 9:38 am
Forum: Beginners
Topic: Not sure how to or where to write the code. Hi
Replies: 21
Views: 359

Re: Not sure how to or where to write the code. Hi

Guyver1 wrote:
Sat Aug 10, 2019 11:48 pm
PRETTY_NAME "Raspbian GNU/Linux 9 (stretch)"
VERSION_ ID="9"
VERSION="9 (stretch)"
ID=Raspbian
ID_LIKE=debian
So you are running raspbian stretch so ssmtp will work just fine, so you can continue to follow the tutorial and it should be able to send emails.
by pcmanbob
Sat Aug 10, 2019 10:27 pm
Forum: Beginners
Topic: Not sure how to or where to write the code. Hi
Replies: 21
Views: 359

Re: Not sure how to or where to write the code. Hi

Before you go any further I suggest you run the following command

Code: Select all

cat /etc/os-release
you need to run this in a terminal window or at the command line if you are using a command line only version of raspbian.

then post the output here so we can see which version of raspbian you are using.

Go to advanced search