Go to advanced search

by bmiller
Fri Oct 27, 2017 9:36 pm
Forum: General discussion
Topic: Temp Controller Help
Replies: 5
Views: 700

Re: Temp Controller Help

That helped tremendously thank you. Do y'all see any optimization I can also do to it?
by bmiller
Fri Oct 27, 2017 8:37 pm
Forum: General discussion
Topic: Temp Controller Help
Replies: 5
Views: 700

Re: Temp Controller Help

I fixed the indent. I just updated it as well because I did have a sleep at the end for 5 seconds between loops just didn't get copped with it. Which did help but still keeps the CPU running high.
by bmiller
Fri Oct 27, 2017 7:48 pm
Forum: General discussion
Topic: Temp Controller Help
Replies: 5
Views: 700

Temp Controller Help

Hello, I created or grafted together a script that measures the temps on my kettles. However, when I run the script it just kills the performance on my pi. I want to run this in the background and be able to publish the results to a database for viewing on a webpage. The pi works while running this ...
by bmiller
Thu Feb 16, 2017 1:36 pm
Forum: General discussion
Topic: 74HC4051 Examples
Replies: 14
Views: 3316

Re: 74HC4051 Examples

Worked great thank you. I did have to move the sleep timer and I also have the outputs on my Pi going to a mysql database. import time import Adafruit_GPIO.SPI as SPI import Adafruit_MAX31855.MAX31855 as MAX31855 import RPi.GPIO as GPIO # Define a function to convert celsius to fahrenheit. def c_to_...
by bmiller
Tue Feb 14, 2017 8:39 pm
Forum: General discussion
Topic: 74HC4051 Examples
Replies: 14
Views: 3316

Re: 74HC4051 Examples

I got it working but here is what I had to do and how I connected it to the pi. I attempted the hardware spi method and just couldnt get it to work so I connected via software spi and it works great now. BCM GND -- Ground T0 -- 17 T1 -- 27 T2 -- 22 V+ -- 3.3V SO -- 18 CS -- 24 SCK -- 25 I set 17, 27...
by bmiller
Sat Feb 11, 2017 2:17 pm
Forum: General discussion
Topic: 74HC4051 Examples
Replies: 14
Views: 3316

Re: 74HC4051 Examples

Thanks Ill try it out tonight and see if it works.
by bmiller
Fri Feb 10, 2017 2:41 pm
Forum: General discussion
Topic: 74HC4051 Examples
Replies: 14
Views: 3316

Re: 74HC4051 Examples

Should I be using the Hardware SPI method vs the Software?
by bmiller
Fri Feb 10, 2017 2:23 pm
Forum: General discussion
Topic: 74HC4051 Examples
Replies: 14
Views: 3316

Re: 74HC4051 Examples

I attempted a reading not really sure what I am doing wrong. I set T0, T1, and T2 all to out and high. With the thermocouple in spot 7(8) and the following pin out connected. Then ran the Adafruit code below just to see if I could get a reading on one of the probes. BCM GND -> GND T0 -> 22 T1 -> 23 ...
by bmiller
Fri Feb 10, 2017 1:27 am
Forum: General discussion
Topic: 74HC4051 Examples
Replies: 14
Views: 3316

Re: 74HC4051 Examples

Picture of the back.

Image
by bmiller
Thu Feb 09, 2017 11:36 pm
Forum: General discussion
Topic: 74HC4051 Examples
Replies: 14
Views: 3316

Re: 74HC4051 Examples

Sorry I didn't give enough detail. I'm reading 8 thermocouples.

Here is a picture of the board.

Image
by bmiller
Thu Feb 09, 2017 8:57 pm
Forum: General discussion
Topic: 74HC4051 Examples
Replies: 14
Views: 3316

74HC4051 Examples

I'm a total noob to multiplexing on the Pi. Does anyone have any example python code for using the 74HC4051. Backstory, a friend gave me a "Octo (8) MAX31855 thermocouple breakout board for 3.3V systems (type K, K-type)" he had purchased for his Arduino. I have no idea how to make it work on the Pi ...

Go to advanced search