Go to advanced search

by cscuilla
Fri Oct 26, 2018 3:18 pm
Forum: General discussion
Topic: Control multiple relays with only One gpio pin (mcp23017)
Replies: 8
Views: 1064

Re: Control multiple relays with only One gpio pin (mcp23017)

How would i use One relay to control the others..

Would i hold 5v in the relay, and then when that relay turns on, the 5v would be sent to the signal pin of the other relays?

@LTolledo
by cscuilla
Fri Oct 26, 2018 12:35 pm
Forum: General discussion
Topic: Control multiple relays with only One gpio pin (mcp23017)
Replies: 8
Views: 1064

Re: Control multiple relays with only One gpio pin (mcp23017)

Thank you. It seems the relays use 5ma to trigger. The rpi gpio can output 16ma so I'm guessing it can only handle 3 relays. The MCP23017 output 20ma I believe so it looks like I may be able to use 4 relays on this. Is it safe to assume that if I try it, and it works, then I am ok, and will not caus...
by cscuilla
Fri Oct 26, 2018 2:36 am
Forum: General discussion
Topic: Control multiple relays with only One gpio pin (mcp23017)
Replies: 8
Views: 1064

Control multiple relays with only One gpio pin (mcp23017)

I have four relays hooked up which I want to power on and off all at the same time. They are all powered by external power supplies separate from the Pi/mcp23017. Can I hook the signal pins all up to the same mcp23017 output pin so that when i turn that pin high all the relays turn on? Or do i need ...
by cscuilla
Mon Oct 09, 2017 7:57 pm
Forum: Automation, sensing and robotics
Topic: Temperature Sensor for -80 Celsius?
Replies: 4
Views: 1103

Temperature Sensor for -80 Celsius?

I've used the DS18B20 sensor before, but read that the coldest it could handle was 55 celsius.

Does anyone know of a different sensor, compatible with Raspberry Pi, which could handle -80 celsius. Planning to install to a freezer which needs to stays at that temperature.

Thanks

craig
by cscuilla
Fri Sep 01, 2017 7:01 pm
Forum: Raspbian
Topic: 2 IP addresses when wifi is configured
Replies: 1
Views: 1244

2 IP addresses when wifi is configured

I'm using Stretch lite. I connect to my wifi by editing /etc/wpa_supplicant/wpa_supplicant.conf network={ ssid="MySSID" psk="MySSIDpassword" } Now, when using dhcp, If I boot the pi with an ethernet cable plugged in, I get two different IP addresses. I can connect via putty using either address. Bot...
by cscuilla
Thu Aug 03, 2017 1:37 am
Forum: Python
Topic: use variable in python for smtplib server setup.
Replies: 3
Views: 763

Re: use variable in python for smtplib server setup.

excellent, thanks for the explanation!
by cscuilla
Wed Aug 02, 2017 4:21 pm
Forum: Python
Topic: Adafruit Python library and basic python structure help
Replies: 3
Views: 1167

Re: Adafruit Python library and basic python structure help

Actually, I did install it using sudo python setup.py install. I get this folder afterwards.. Adafruit_SSD1306.egg-info ... which has PKG-INFO, SOURCES.txt, dependency_links.txt, requires.txt, top_level.txt dependency_links.txt has this.. https://github.com/adafruit/Adafruit_Python_GPIO/tarball/mast...
by cscuilla
Wed Aug 02, 2017 4:12 pm
Forum: Python
Topic: wifi Code for SSD1306 screen
Replies: 1
Views: 412

Re: wifi Code for SSD1306 screen

Are you using the Adafruit library? If so, have a look at the image.py example file. I haven't tested this, but It looks like you can comment out like this.. # Load image based on OLED display height. Note that image is converted to 1 bit color. #if disp.height == 64: #image = Image.open('happycat_o...
by cscuilla
Wed Aug 02, 2017 3:27 pm
Forum: Python
Topic: Adafruit Python library and basic python structure help
Replies: 3
Views: 1167

Adafruit Python library and basic python structure help

I have a script ~/scripts/pins.py which controls some GPIO pins using RPi.GPIO I found an oled display to add to my project which I'm connecting w/ i2c. I found a python library from adafruit.. https://github.com/adafruit/Adafruit_Python_SSD1306 I can run the examples from ~/Adafruit_Python_SSD1306/...
by cscuilla
Tue Jul 25, 2017 3:42 pm
Forum: Python
Topic: use variable in python for smtplib server setup.
Replies: 3
Views: 763

Re: use variable in python for smtplib server setup.

looks like it works if I change my DB field to
office365.com:587
I removed the ' and replaced , with :
by cscuilla
Tue Jul 25, 2017 3:26 pm
Forum: Python
Topic: use variable in python for smtplib server setup.
Replies: 3
Views: 763

use variable in python for smtplib server setup.

if I set up my server for smtplib in python using this code it works.. server = ('smtp.office365.com',587) I'd like to pull the smtp server and port from a database, but it no longer works.. The server field in my DB has this.. 'smtp.office365.com',587 db = mariadb.connect(host='localhost', user='My...
by cscuilla
Sat Jul 22, 2017 11:51 pm
Forum: Python
Topic: Decrypt MariaDB password for use in Python Script
Replies: 1
Views: 597

Decrypt MariaDB password for use in Python Script

In PHP, I am using the following to store an encrypted password to a MariaDB (MySql) $pass = $_POST['pass']; $passH = password_hash($pass, PASSWORD_DEFAULT); $query=$con->prepare("UPDATE user SET pw=? WHERE id=?"); $query->execute([$passH,$userid]); I'm trying to use that password in plain text from...
by cscuilla
Sat Jul 15, 2017 6:55 pm
Forum: Raspbian
Topic: Set static IP or wifi by Web Interface??
Replies: 2
Views: 735

Re: Set static IP or wifi by Web Interface??

UPDATE:
I found some commands I could use in a python script to change the IP, but the pi seems to keep the old IP (from dhcp) as well.

Code: Select all

os.system("sudo ifconfig eth0 down")
os.system("sudo ifconfig eth0 [i](Get IP From DB)[/i]")
os.system("sudo ifconfig eth0 up")
Any ideas why?
by cscuilla
Sat Jul 15, 2017 3:14 pm
Forum: Raspbian
Topic: Set static IP or wifi by Web Interface??
Replies: 2
Views: 735

Set static IP or wifi by Web Interface??

I often pre-program headless PI's and send them to friends and family as gifts. Examples being: baby monitors, thermostats, fish-feeders, sprinkler controls, etc.. They run Jessie Lite (no GUI) I install a webserver to most of these PI's and provide a backend website (php, mysql, mariadb) for the en...
by cscuilla
Fri Jun 09, 2017 1:28 pm
Forum: Automation, sensing and robotics
Topic: Best ADC for 5v pressure sensor
Replies: 10
Views: 7015

Re: Best ADC for 5v pressure sensor

Thanks for the info! Excuse my ignorance, I only have experience w/ 1-wire digital sensors. I think I will go with a Level shifter. Here is my plan so far. Any advise/wiring help is greatly appreciated.. ADS 1115 Level converter https://www.amazon.com/XINY-Raspberry-conversion-module-connected/dp/B0...
by cscuilla
Thu Jun 08, 2017 8:12 pm
Forum: Automation, sensing and robotics
Topic: Best ADC for 5v pressure sensor
Replies: 10
Views: 7015

Re: Best ADC for 5v pressure sensor

Thank you. I am planning to ordering the following. Do you think it will work? Can anyone help with the wiring?? Level Converter https://www.amazon.com/XINY-Raspberry-conversion-module-connected/dp/B01HXOHBBG/ref=sr_1_9?ie=UTF8&qid=1496952468&sr=8-9&keywords=level+converter ADC https://www.amazon.co...
by cscuilla
Wed Jun 07, 2017 5:29 pm
Forum: Automation, sensing and robotics
Topic: Best ADC for 5v pressure sensor
Replies: 10
Views: 7015

Re: Best ADC for 5v pressure sensor

Thank you for the links. From the first post, it looks like I can use an

ads1115.

Do you know would I still need a level shifter?? I didn't quite understand that part.

thanks again!
by cscuilla
Wed Jun 07, 2017 2:55 pm
Forum: Automation, sensing and robotics
Topic: Best ADC for 5v pressure sensor
Replies: 10
Views: 7015

Best ADC for 5v pressure sensor

I'm hoping to read data from a pressure sensor like this from my raspi.. http://www.ebay.com/itm/Pressure-transducer-sender-sensor-150-psi-stainless-steel-for-oil-fuel-air-water-/131261500043?hash=item1e8fcb8a8b:g:Pw8AAOSwWKtUxfbZ&vxp=mtr Does anyone know of an ADC which will work for this?? thanks ...
by cscuilla
Wed May 17, 2017 10:06 pm
Forum: Automation, sensing and robotics
Topic: PSI sensor (150 psi)
Replies: 3
Views: 1003

Re: PSI sensor (150 psi)

Thank you! From this site, the minimum qty is 20.. would you happen to know where to find this where I could purchase only one?
by cscuilla
Wed May 17, 2017 8:09 pm
Forum: Automation, sensing and robotics
Topic: PSI sensor (150 psi)
Replies: 3
Views: 1003

PSI sensor (150 psi)

I'm looking to measure psi >150psi with raspberry pi. Does anyone know if it's possible to use this sensor (or another sensor you know of) to communicate with the raspberry pi?? http://www.newark.com/honeywell-s-c/hscsann150pa2a5/pressure-sensor-trustability-150/dp/23T0950 Any help is greatly apprec...
by cscuilla
Thu Nov 10, 2016 9:25 pm
Forum: Python
Topic: Mysql python connector version and installation help
Replies: 4
Views: 6165

Re: Mysql python connector version and installation help

Thank you again. It's working now! You have been a great help. I spent an hour or so reading those docs on the mysql page and was hoping for an "apt-get install" solution like the one you provided.
by cscuilla
Thu Nov 10, 2016 9:00 pm
Forum: Python
Topic: Mysql python connector version and installation help
Replies: 4
Views: 6165

Re: Mysql python connector version and installation help

Thank you. Is their any documentation for this? I am attempting to connect to a mariadb using python. using the following instructions.. https://mariadb.com/resources/blog/how-connect-python-programs-mariadb This was previously set up and working using Mysql and MySQLdb connector.. I don't see in th...
by cscuilla
Thu Nov 10, 2016 8:40 pm
Forum: Python
Topic: Mysql python connector version and installation help
Replies: 4
Views: 6165

Mysql python connector version and installation help

Can someone please explain which version I should download from the following link for use on a rpi 3 with Jessie Lite installed.

http://dev.mysql.com/downloads/connector/python/

Also, could someone explain how to install it as well?

thanks

craig
by cscuilla
Mon Oct 17, 2016 7:12 pm
Forum: Python
Topic: MySQLdb python connection using non-root account?
Replies: 1
Views: 461

MySQLdb python connection using non-root account?

I can connect successfully to my DB using my root account through MySQLdb. db = MySQLdb.connect("192.168.1.664", "root", "MyRootPassword", "piclock") I made a new user account (webguy) w/ only SELECT, INSERT, and UPDATE priveledges, but the connection fails with the following message.. _mysql_except...

Go to advanced search