Go to advanced search

by jerryk
Thu Jan 03, 2019 9:10 pm
Forum: Other projects
Topic: tell the pi to do something from remote place
Replies: 7
Views: 988

Re: tell the pi to do something from remote place

I've been using the Twilio sms API for a couple of years now to do this. I have tried Nexmo as an alternative but the network is too slow for my puposes. There a plenty of competitors in this field and you can pick the one that suits you best. The process has a cost (around .0075 us per text) that v...
by jerryk
Thu Jan 03, 2019 6:57 pm
Forum: Python
Topic: Warning,.. check your i2c settings! messages
Replies: 1
Views: 474

Warning,.. check your i2c settings! messages

I have two fresh raspian installs on Pi 3b's and I get the following message when I use the pydoc documentation. With this command: python3 -m pydoc -k math Or any other key string I might use - I get this warning at the end of the output: Warning, could not find Analog or Touch... Please check your...
by jerryk
Wed Jan 02, 2019 12:57 am
Forum: Automation, sensing and robotics
Topic: Relay Line out voltage causing voltage on line in
Replies: 31
Views: 2288

Re: Relay Line out voltage causing voltage on line in

I used the same relay board in an alarm system interface. I'm switching 12v and lower circuits but as far as driving all 8 of the relays directly from the pi goes I opted to use a separate power supply and 2n3904's to activate the relay coils. Although I used the primary pins on the pi to drive the ...
by jerryk
Mon Dec 31, 2018 8:49 pm
Forum: Automation, sensing and robotics
Topic: Alarm System using existing DSC wiring
Replies: 13
Views: 4409

Re: Alarm System using existing DSC wiring

Here is the schematic of what I did to interface with my old school existing system. I'm not sure there is any generic solution to be had out there and there was a lot of reverse engineering of the existing system to solve the problem at hand. Hacking the keypad was the most difficult in that it use...
by jerryk
Wed Dec 19, 2018 1:11 am
Forum: Python
Topic: Spidev/Spi issue migrating from python 2.7 to 3.5.3
Replies: 3
Views: 603

Re: Spidev/Spi issue migrating from python 2.7 to 3.5.3

It looks like you are not getting reliable readings from the MCP3008, you could try adding the spi.max speed setting , this seems to have solved a lot of problems with the pi not connecting reliably with the MCP3008. #Create SPI spi = spidev.SpiDev() spi.open(0, 0) spi.max_speed_hz=1000000 Wow -- T...
by jerryk
Sun Dec 16, 2018 6:42 pm
Forum: Automation, sensing and robotics
Topic: Alarm System using existing DSC wiring
Replies: 13
Views: 4409

Re: Alarm System using existing DSC wiring

I started on a similar project two years ago. The initial concept was helped along by this forum in this thread ( https://www.raspberrypi.org/forums/viewtopic.php?f=37&t=164662&p=1069577#p1069577 ). You can take a look and see if it helps further what you are trying to do. The hardwired loops that c...
by jerryk
Thu Dec 13, 2018 11:36 pm
Forum: Python
Topic: Spidev/Spi issue migrating from python 2.7 to 3.5.3
Replies: 3
Views: 603

Spidev/Spi issue migrating from python 2.7 to 3.5.3

I have some python code that uses the mcp3008 chip and spidev to monitor temperatures in my home. It's been running for a year now but does not function now that migrated the code to a fresh install of noobs v3.00 and using python 3. It runs on the old distribution under python's 2 and 3 on the old ...
by jerryk
Thu Dec 13, 2018 10:39 pm
Forum: Python
Topic: How to send Text messages
Replies: 4
Views: 1085

Re: How to send Text messages

I use both Twilio and Nexmo.

Twilio has a short video that goes through the setup for python:

https://www.youtube.com/watch?v=knxlmCVFAZI&t=106s

They also front you twenty dollars on your account so you can try it.

Jerry
by jerryk
Thu Dec 13, 2018 8:36 am
Forum: Python
Topic: Upgrade Python from 3.5.3 to latest version
Replies: 15
Views: 28671

Re: Upgrade Python from 3.5.3 to latest version

I may have confused why smbus is now working. I have created a virtual environment two ways Case One is: python3 -m venv venv/ Case Two is: python3 -m venv venv/ --system-site-packages Case one is using home/pi/venv/pip inside the virtual environment and install all libraries to the virtual environm...
by jerryk
Wed Dec 12, 2018 4:33 pm
Forum: Python
Topic: Upgrade Python from 3.5.3 to latest version
Replies: 15
Views: 28671

Re: Upgrade Python from 3.5.3 to latest version

Thanks to all of your help and with the addition of information in this thread https://www.raspberrypi.org/forums/viewtopic.php?t=122260 , I think I understand the smbus problem and may have resolved it. It appears to be an issue with the distribution itself. Using: sudo find / -name *smbus* I locat...
by jerryk
Wed Dec 12, 2018 12:33 am
Forum: Python
Topic: Upgrade Python from 3.5.3 to latest version
Replies: 15
Views: 28671

Re: Upgrade Python from 3.5.3 to latest version

I set up a new venv called venv1 with the following: python3 -m venv venv1/ --system-site-packages The resulting pip freeze within the activated environment does not show smbus or any variant of it. Trying: sudo apt install python3-smbus Returns: python3-smbus is already the newest version (3.1.2-3)...
by jerryk
Tue Dec 11, 2018 8:31 pm
Forum: Python
Topic: Upgrade Python from 3.5.3 to latest version
Replies: 15
Views: 28671

Re: Upgrade Python from 3.5.3 to latest version

I am using a virtual environment that was created using: python3 -m venv venv/ when I try to import smbus using the following two differing methods this output is observed: (venv) [email protected]:~/projects/venv $ pip3 install smbus Looking in indexes: https://pypi.org/simple, https://www.piwheels.or...
by jerryk
Mon Dec 10, 2018 11:46 pm
Forum: Python
Topic: Upgrade Python from 3.5.3 to latest version
Replies: 15
Views: 28671

Re: Upgrade Python from 3.5.3 to latest version

Code: Select all sudo apt install python3-smbus I did try that before I get the following output: python3-smbus is already the newest version (3.1.2-3). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded and when I try to import smbus I get a module not found error I did import smbus2 an...
by jerryk
Mon Dec 10, 2018 9:49 pm
Forum: Python
Topic: Upgrade Python from 3.5.3 to latest version
Replies: 15
Views: 28671

Re: Upgrade Python from 3.5.3 to latest version

Thanks for the replies. I'm in no hurry to upgrade python. I thought the time was good since making changes and refactoring code. I'm currently in a struggle just going from 2.7 to 3.5. Can't find smbus on 3.5 as of yet. If anyone knows what the python 3.5 solution for "import smbus" is I would be g...
by jerryk
Mon Dec 10, 2018 6:11 pm
Forum: Python
Topic: Upgrade Python from 3.5.3 to latest version
Replies: 15
Views: 28671

Upgrade Python from 3.5.3 to latest version

I have a raspberry pi 3B and just installed the latest Raspian Jessie. The current version installed with the latest distribution is Python 3.5.3. I'm using virtual environments for each project. Before I get started setting this thing up should I upgrade to Python 3.7.1 (or some other version) or s...
by jerryk
Tue Jan 10, 2017 6:45 pm
Forum: Python
Topic: Multiple add_event_detect on same pin
Replies: 7
Views: 1558

Re: Multiple add_event_detect on same pin

I made the callback accept the pin parameter and that is how I got it to work. It was trial and error on my part and I was happy to have it work even though I was not sure why :) Here is how I applied your code and so far it works. class Gpiopin(object): def __init__(self, pin, zone_name): self.pin ...
by jerryk
Tue Jan 10, 2017 12:00 am
Forum: Python
Topic: Multiple add_event_detect on same pin
Replies: 7
Views: 1558

Re: Multiple add_event_detect on same pin

I'm sorry it took so long to test out your code example. It took me awhile to apply it properly to my own code. I have a lot to learn about using classes in python. There were minor changes like change pop() to remove() and for some odd reason I had to change calling add_event_detect from: GPIO.add_...
by jerryk
Sun Jan 08, 2017 6:17 pm
Forum: Python
Topic: Multiple add_event_detect on same pin
Replies: 7
Views: 1558

Re: Multiple add_event_detect on same pin

I will give your code concepts a try and let you know how it goes. You might have noticed, but I used a solution you proposed in another thread to make event_detect threads from a for loop. One thing that would help with my debugging efforts is to be able to see where these threads are at operating ...
by jerryk
Sun Jan 08, 2017 1:35 am
Forum: Python
Topic: Multiple add_event_detect on same pin
Replies: 7
Views: 1558

Multiple add_event_detect on same pin

I have a class created as follows: class gpiopin(): def __init__(self, pin, zone, staff_member_name): self.pin = pin self.zone = zone self.staff_member_name = staff_member_name Motion detectors monitor various zones on the property. A staff member can text the zone number and the word 'on' to a twil...
by jerryk
Tue Dec 20, 2016 8:36 am
Forum: Beginners
Topic: Web Server with Flask Exercise [HELP]
Replies: 8
Views: 1399

Re: Web Server with Flask Exercise [HELP]

You could try turning the reloader off as in:

Code: Select all

if __name__ == '__main__':
    app.run(debug=True, use_reloader=False, host='0.0.0.0')
by jerryk
Fri Dec 09, 2016 10:56 pm
Forum: Beginners
Topic: Transient Voltage Issues
Replies: 6
Views: 1207

Re: Transient Voltage Issues

I did try various capacitor configurations without much if any success. It appears that any jumper wire in the mix is picking up on this electric noise. If I take a free short jumper wire out of my box of jumpers and just connect it to a lead on the oscilloscope hanging loose it picks up the same sh...
by jerryk
Thu Dec 08, 2016 8:38 pm
Forum: Beginners
Topic: Transient Voltage Issues
Replies: 6
Views: 1207

Re: Transient Voltage Issues

The cable is unshielded 4 pair datatwist(r) cable. It runs from the security panel in a closet to my office about 20 ft away. It's ran in the crawl space then surfaces into my office where it terminates in a cat 5 receptacle. There are other phone lines and cat 5 cables that surface in this office t...
by jerryk
Thu Dec 08, 2016 7:53 pm
Forum: Beginners
Topic: Transient Voltage Issues
Replies: 6
Views: 1207

Transient Voltage Issues

Is there a way to protect from voltage transients. Currently anytime I turn on a signal generator, soldering iron, dc power supply, etc I get a voltage transient that finds it way to any breadboard that I am testing or working with. Transients also occur when I use a multimeter to check the voltage ...
by jerryk
Wed Nov 30, 2016 6:41 pm
Forum: Python
Topic: GPIO.add_event_detect behavior
Replies: 0
Views: 661

GPIO.add_event_detect behavior

I'm having difficulty using GPIO.add_event_detect in a home security text alert system that I have been trying to use with an old wired security system in my home. The goal is to be able to turn the alerts on and off via sms messages such as "a on" and "a off". When "a on" is sent I should receive s...
by jerryk
Wed Nov 30, 2016 8:13 am
Forum: Automation, sensing and robotics
Topic: Monitor old home security system zones with Pi
Replies: 9
Views: 3818

Re: Monitor old home security system zones with Pi

I am having some issues with erratic behavior that appears to be internal with my Raspberry Pi. I may be adding some sort of bug issue with the way I'm using edge detection in python. I'm not sure. The symptoms are: The board and the code produce the desired result of issuing a text to my phone any ...

Go to advanced search