Go to advanced search

by Fan174
Thu Jan 31, 2019 11:32 am
Forum: General discussion
Topic: Is it safe to power raspberry pi from 24, 5 V SMPS
Replies: 6
Views: 434

Re: Is it safe to power raspberry pi from 24, 5 V SMPS

The 5V output is only 1.5A which may not be enough depending on what else is connected to the RPi. Thanks to all of you load 24V DC Fan http://shop.rabtron.co.za/catalog/80x80x25-p-137.html I don't want to damage raspberry Pi and other devices as shown in the image, Is it a safe connection?
by Fan174
Wed Jan 30, 2019 12:08 pm
Forum: General discussion
Topic: Is it safe to power raspberry pi from 24, 5 V SMPS
Replies: 6
Views: 434

Is it safe to power raspberry pi from 24, 5 V SMPS

I have the following components and trying to connect all each other Raspberry Pi 3 SSR https://www.indiamart.com/proddetail/5amp-model-704-dc-to-dc-mosfet-ssr-20061643930.html SMPS https://www.amazon.in/Shavison-SMPS-Dual-output-G31-70-24-05/dp/B01MXZDXTN i am afraid from 24v dc smps, need help for...
by Fan174
Sat Jan 12, 2019 10:53 am
Forum: General discussion
Topic: How to get IP address of PI in GUI
Replies: 7
Views: 308

Re: How to get IP address of PI in GUI

Change your create_entries function Hi DougieLawson thank you very much I can show IP, I have modified code to get host name but I am not getting host name what's the wrong in my code import tkinter as tk from urllib.request import urlopen import json import socket class MainApplication(tk.Frame): ...
by Fan174
Sat Jan 12, 2019 5:46 am
Forum: General discussion
Topic: How to get IP address of PI in GUI
Replies: 7
Views: 308

Re: How to get IP address of PI in GUI

This TKinter program shows your LAN and public IP addresses. #!/usr/bin/python3 from urllib.request import urlopen import json import socket from tkinter import * rootWindow = Tk() rootWindow.title('IP Addresses') localIP = Label(rootWindow, font = ('fixed', 20),) localIP.grid(sticky = N, row = 2, ...
by Fan174
Fri Jan 11, 2019 2:02 pm
Forum: General discussion
Topic: How to get IP address of PI in GUI
Replies: 7
Views: 308

How to get IP address of PI in GUI

Hello everyone

I would like to get IP address of raspberry in GUI

You can get it simple.

1. Open the Terminal
2. Type in: ifconfig

I am looking python script with GUI that can get IP address of Pi automatically

any idea how it can be done
by Fan174
Sat Jan 05, 2019 4:28 pm
Forum: General discussion
Topic: Relay output to Raspberry
Replies: 13
Views: 653

Re: Relay output to Raspberry

The relay you show has a 5V coil. You cannot (easily) use that to monitor a 24V supply. The relay contacts (output, to Pi) are on the blue terminal block. NC and NO are labelled, the third will be COM. I can't read the labels on the pin connector for the coil (input) side. There are three signals (...
by Fan174
Fri Jan 04, 2019 2:57 pm
Forum: General discussion
Topic: Relay output to Raspberry
Replies: 13
Views: 653

Re: Relay output to Raspberry

Your code is written to look for a falling edge but your relay is wired with a pull down on the gpio pin. so you have 2 choices change you code to GPIO.add_event_detect(channel, GPIO.RISING) . I have modified my code from time import sleep import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) ...
by Fan174
Fri Jan 04, 2019 10:16 am
Forum: General discussion
Topic: Relay output to Raspberry
Replies: 13
Views: 653

Re: Relay output to Raspberry

What may be wrong from time import sleep import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(16, GPIO.IN) def callback1(channel): print("interrupt detected") GPIO.add_event_detect(16, GPIO.FALLING, callback=callback1, bouncetime=2500 ) if I sort pin 16 it give interrupt detected I ...
by Fan174
Fri Jan 04, 2019 7:34 am
Forum: General discussion
Topic: Sample program for Camera with simpleCV
Replies: 0
Views: 72

Sample program for Camera with simpleCV

I have been tried to run the example project for pi camera but I couldn't get success I tried in this thread https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=228108&p=1399332#p1399332 but here program is not working anyone have a working program? I just want to test camera to scan barcode
by Fan174
Wed Jan 02, 2019 11:28 am
Forum: General discussion
Topic: Relay output to Raspberry
Replies: 13
Views: 653

Re: Relay output to Raspberry

Should be OK but you probably will want a pull down resistor on the GPIO pin 7. I think I can set pull-down resistor in program 1. Will work OK if the relay and RPi are not too far apart. Expect problems if they at opposite ends of the house. 2. Depending on what the RPi is destined to do with the ...
by Fan174
Fri Dec 21, 2018 4:12 am
Forum: General discussion
Topic: Relay output to Raspberry
Replies: 13
Views: 653

Re: Relay output to Raspberry

klricks wrote:
Fri Dec 21, 2018 3:58 am
Should be OK but you probably will want a pull down resistor on the GPIO pin 7.
I think I can set pull-down resistor in program

Code: Select all

GPIO.setmode(GPIO.BOARD) # Use physical pin numbering
GPIO.setup(7, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) # Set pin 7 to be an input pin and set
by Fan174
Fri Dec 21, 2018 3:22 am
Forum: General discussion
Topic: Relay output to Raspberry
Replies: 13
Views: 653

Relay output to Raspberry

I want to connect relay as input for raspberry pi.

can we connect as shown here

Will it damage to raspberry Pi ?
relay connection.jpg
relay connection.jpg (56.12 KiB) Viewed 650 times
by Fan174
Wed Dec 19, 2018 6:07 pm
Forum: General discussion
Topic: WCF and Python
Replies: 1
Views: 236

Re: WCF and Python

Any help would be appreciated I was searching on the forum looked this link https://www.raspberrypi.org/forums/viewtopic.php?t=222499 You can expose any data in Raspberry Pi you intended via a self-hosted web service written using C#. You can use WCF (Tcp binding only for Raspberry Pi) or Owin. Goog...
by Fan174
Tue Dec 18, 2018 11:02 am
Forum: General discussion
Topic: WCF and Python
Replies: 1
Views: 236

WCF and Python

can anybody help to understand information in link https://code.i-harness.com/en/q/436d8 script from suds.client import Client print "Connecting to Service..." wsdl = "http://serviceurl.com/service.svc?WSDL" client = Client(wsdl) result = client.service.Method(variable1, variable2) print result
by Fan174
Mon Dec 10, 2018 11:33 am
Forum: General discussion
Topic: sending alerts to many one or more people
Replies: 16
Views: 644

Re: sending alerts to many one or more people

If you want something to happen (send an SMS) based on the GPIO pin, you'd need to add code to the "FAULTbuttonPressed" function which is called by the GPIO callback. You don't need an "if" when you are using the "add_event_detect" method of the GPIO library. At the moment your code just sends the ...
by Fan174
Mon Dec 10, 2018 10:42 am
Forum: General discussion
Topic: sending alerts to many one or more people
Replies: 16
Views: 644

Re: sending alerts to many one or more people

.(Not sure why would have two counts SensorHigh and TOTAL given that they are both updated at the same time...) When I run following program I am getting message on mobile #!/usr/bin/env python from tkinter import * import RPi.GPIO as GPIO import urllib.request import urllib.parse def sendSMS(apike...
by Fan174
Sat Dec 08, 2018 9:47 am
Forum: General discussion
Topic: sending alerts to many one or more people
Replies: 16
Views: 644

Re: sending alerts to many one or more people

scotty101 wrote:
Thu Dec 06, 2018 4:48 pm
Does this work? I've tested as much as i can without actually making the urllib request.
I testd,It gives this error
{"errors":[{"code":80,"message":"invalid template"}],"status":"failure"}
by Fan174
Thu Dec 06, 2018 5:20 pm
Forum: General discussion
Topic: sending alerts to many one or more people
Replies: 16
Views: 644

Re: sending alerts to many one or more people

Does this work? I've tested as much as i can without actually making the urllib request. I don't have pi in hand I will test it at home you did a lot help, please take look at this code and please tell me If I am making something wrong from tkinter import * import RPi.GPIO as GPIO import urllib.req...
by Fan174
Thu Dec 06, 2018 3:48 pm
Forum: General discussion
Topic: sending alerts to many one or more people
Replies: 16
Views: 644

Re: sending alerts to many one or more people

NameError: name '***********' is not defined I know I tried with original API key I think I am mistaking somewhere Can you guess what may be wrong in code #!/usr/bin/env python #https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=228355 from tkinter import * import urllib.request import urllib....
by Fan174
Thu Dec 06, 2018 5:48 am
Forum: General discussion
Topic: sending alerts to many one or more people
Replies: 16
Views: 644

Re: sending alerts to many one or more people

Its not difficult, just call the sendSMS function from your callback function. You also need to get the value of the text box and pass that to the sendSMS function. Something similar to this should probably work I tried your code but getting error may be I am making mistake somewhere so I am postin...
by Fan174
Wed Dec 05, 2018 10:44 am
Forum: General discussion
Topic: sending alerts to many one or more people
Replies: 16
Views: 644

Re: sending alerts to many one or more people

Its not difficult, just call the sendSMS function from your callback function (Code untested since I don't have an API key) Thanks scotty101, I am outside from home. This is the untested code if the sensor triggered send sms to many people from tkinter import * import RPi.GPIO as GPIO import urllib...
by Fan174
Wed Dec 05, 2018 9:47 am
Forum: General discussion
Topic: sending alerts to many one or more people
Replies: 16
Views: 644

sending alerts to many one or more people

I am using Raspberry Pi to monitor events and want to send SMS to one or more people on mobile I have created following GUI to enter mobile number from tkinter import * def callback(): print ("You clicked the button!") top = Tk() L1 = Label(top, text="Mobile") L1.grid(row=4, column=0) E1 = Entry(top...
by Fan174
Sun Dec 02, 2018 10:46 am
Forum: General discussion
Topic: SimpleCV with Pi camera
Replies: 5
Views: 491

Re: SimpleCV with Pi camera

add import os at the beginning Program Error pi@raspberrypi:~/ST/Scan $ python test1.py /bin/sh: 1: lsof: not found ERROR: Traceback (most recent call last): File "test1.py", line 19, in <module> barcode = img.findBarcode() #finds barcode data from image File "/usr/local/lib/python2.7/dist-packages...
by Fan174
Sun Dec 02, 2018 10:02 am
Forum: General discussion
Topic: SimpleCV with Pi camera
Replies: 5
Views: 491

Re: SimpleCV with Pi camera

Add this near to the top of your script # initialise pi camera v4l2 if not os.path.exists('/dev/video0'): rpistr = "sudo modprobe bcm2835-v4l2" p = subprocess.Popen(rpistr, shell=True, preexec_fn=os.setsid) time.sleep(1) And add import subprocess at the beginning. I tried this program from SimpleCV...
by Fan174
Sat Dec 01, 2018 12:27 pm
Forum: General discussion
Topic: SimpleCV with Pi camera
Replies: 5
Views: 491

SimpleCV with Pi camera

I have Pi camera so I did some experiments I followed this link for scanning barcode with pi camera https://technoobsite.wordpress.com/2016/02/02/raspberry-pi-barcode-scanner/ code from SimpleCV import Color,Camera,Display cam = Camera() #starts the camera display = Display() while(display.isNotDone...

Go to advanced search