Go to advanced search

by lifebeginsatsixty
Fri Apr 25, 2014 9:54 pm
Forum: Automation, sensing and robotics
Topic: TSL2561 and bash
Replies: 12
Views: 2861

Re: TSL2561 and bash

Hi Joan,

I seem to have a problem communicating the depth of my ignorance. I'll keep working on this and see if I can get the missing background knowledge. Haven't located it yet.

Thanks,
lifebeginsatsixty
by lifebeginsatsixty
Tue Apr 22, 2014 2:33 am
Forum: Automation, sensing and robotics
Topic: TSL2561 and bash
Replies: 12
Views: 2861

Re: TSL2561 and bash

Ah the depths of my ignorance. Baby steps. A peek at the Python code divides this into three commands, (1) to select the command register, (2) to tell it we're going to talk to the control register, and (3) to tell the control register we want to turn the little rascal on. I think. (1) seems OK with...
by lifebeginsatsixty
Mon Apr 21, 2014 9:30 am
Forum: Automation, sensing and robotics
Topic: TSL2561 and bash
Replies: 12
Views: 2861

Re: TSL2561 and bash

I feel like I've been bashed, as in knocked around. Between the TSL2561 data sheet and the info on the i2c commands, I came to this: Data sheet p. 13 gives the address of the control register as 0h. (Sounded funny to me but I'm an ignorant beginner) Then p. 18 tells me to access this register and wr...
by lifebeginsatsixty
Sat Apr 19, 2014 6:24 pm
Forum: Automation, sensing and robotics
Topic: TSL2561 and bash
Replies: 12
Views: 2861

Re: TSL2561 and bash

Hi Joan!

'Tis indeed detected and I believe i2cd and i2cdetect -y 1 are the same commands; gave me the same output anyway. 2 AM here now and tomorrow's a busy day; see if I can find time before Monday. So I need to look up the i2cget and i2cset commands, that's a good lead.

Thanks,
lifebeginsatsixty
by lifebeginsatsixty
Sat Apr 19, 2014 11:55 am
Forum: Automation, sensing and robotics
Topic: TSL2561 and bash
Replies: 12
Views: 2861

Re: TSL2561 and bash

I2C part not done yet on the page you referred to.

Would it be better to ask, how can I check out my TSL2561 light sensor in a simple way? I'm not working in Python or C at this point.

Shows up at 29 from i2cd command so I think my i2c setup is OK..

Thanks,
lifebeginsatsixty
by lifebeginsatsixty
Fri Apr 18, 2014 9:48 pm
Forum: Automation, sensing and robotics
Topic: TSL2561 and bash
Replies: 12
Views: 2861

Re: TSL2561 and bash

Hi, just trying to learn a bit about bash at this stage, that's all. Nothing against Python and I'm sure I'll be asking questions about it before too long.

lifebeginsatsixty
by lifebeginsatsixty
Fri Apr 18, 2014 9:31 am
Forum: Automation, sensing and robotics
Topic: TSL2561 and bash
Replies: 12
Views: 2861

TSL2561 and bash

Hello, Well I got the i2c working (wiringPi installed) to the point where my TSL2561 light sensor convertor shows up as 29 from i2cd. (This sensor board is from Grove and I don't expect anything funny.) Now I'd like to actually test and use the thing from the shell and haven't found the slightest cl...
by lifebeginsatsixty
Thu Mar 27, 2014 1:23 am
Forum: Automation, sensing and robotics
Topic: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $3.05
Replies: 81
Views: 105943

Re: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $

I'd like to do it in bash or maybe Perl, that's why. Save Python till later. Here's what I'm doing now. w1-gpio and w1-therm modules are loaded at startup gpio mode 7 input gpio readall cd .. && cd .. && sys/bus/w1/devices/w1_bus_master1/28-000002ce88da I made an alias to do a read - simple, not eve...
by lifebeginsatsixty
Sun Mar 23, 2014 1:47 am
Forum: Automation, sensing and robotics
Topic: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $3.05
Replies: 81
Views: 105943

Re: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $

Well, I'm still at it. Recording the temps from the DS18B20 every 20 seconds while running the PID controller (controlled by the PT-100) has been a revelation. Now I want to also record when the water bath is on and off. Not by polling but by an interrupt. I've looked and read but haven't been able ...
by lifebeginsatsixty
Wed Feb 19, 2014 11:34 pm
Forum: Beginners
Topic: Most 1A power adaptors are rubbish
Replies: 10
Views: 1858

Re: Most 1A power adaptors are rubbish

About the time I got my Pi the flea markets in my area started having piles of old adapters/chargers and so with judicious choosing and bargaining I have what I need and more, learning a little along the way. The older ones come apart easily and the output cable is usually a simple 2 wire one, solde...
by lifebeginsatsixty
Mon Feb 10, 2014 8:16 pm
Forum: Automation, sensing and robotics
Topic: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $3.05
Replies: 81
Views: 105943

Re: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $

Gpio pin 4 occasionally missing reads - read that it's possible to set the pin used with the 1-wire bus to a different number but expecting that there would still be the same problem; right? That the problem derives from the way the Pi handles the stuff, not from something associated with the physic...
by lifebeginsatsixty
Sun Feb 02, 2014 9:53 am
Forum: Automation, sensing and robotics
Topic: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $3.05
Replies: 81
Views: 105943

Re: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $

Hi There, I have the cat5 for almost all the distance now, still one sensor and a 5.1K, and made a simple loop to get the date (time) then call the read and print to both the screen and a file. So I just made 480 reads and, from the screen saw one instance of 3 successive fails followed by successes...
by lifebeginsatsixty
Thu Jan 30, 2014 10:14 am
Forum: Automation, sensing and robotics
Topic: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $3.05
Replies: 81
Views: 105943

Re: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $

Anita2r, Everything you've said has been helpful so far so I'd say you don't need to worry. I'm looking at 15cm of ribbon cable to get out of the probe cover that goes under water and 20cm ribbon cable in my header cable. Easy to replace the rest with cat 5 (which I have, happy packrat). Can replace...
by lifebeginsatsixty
Wed Jan 29, 2014 6:41 pm
Forum: Automation, sensing and robotics
Topic: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $3.05
Replies: 81
Views: 105943

Re: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $

Ah, two more. 5.1K resistor, only one sensor attached at this time. Resistor at Pi end. 3.3v power.

lbas
by lifebeginsatsixty
Wed Jan 29, 2014 6:38 pm
Forum: Automation, sensing and robotics
Topic: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $3.05
Replies: 81
Views: 105943

Re: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $

Using ribbon cable like I used to make the gpio header cable, powered, same wire order as DS18B20 pin order. Soldered at sensor end, crimped connectors at Pi end (not using header cable now). I checked and see that RJ-45 cat 5 is recommended by several sites (and strongly not recommended by one). Al...
by lifebeginsatsixty
Wed Jan 29, 2014 11:24 am
Forum: Automation, sensing and robotics
Topic: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $3.05
Replies: 81
Views: 105943

Re: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $

Well, my PID controller seems to be overshooting a lot more than before so it's timely to get going with something else. But from time to time my DS18B20 won't show up at boot after running the appropriate commands, or will just quit. Sometimes it comes up again and sometimes not. This will be a big...
by lifebeginsatsixty
Mon Jan 13, 2014 11:08 pm
Forum: Automation, sensing and robotics
Topic: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $3.05
Replies: 81
Views: 105943

Re: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $

Thanks Anita, big help for writing a script. Hope the steaks were good. On the wiring answered my own question; adding a line to set the mode of the pin to input got things working again. Now for a little header cable to a breadboard. Richard, my browser hadn't been showing the Hobbes before for som...
by lifebeginsatsixty
Mon Jan 13, 2014 10:54 am
Forum: Automation, sensing and robotics
Topic: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $3.05
Replies: 81
Views: 105943

Re: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $

Trying to get the basic wiring going at the same time. Question: with the wiring Pi stuff installed, are the basic instructions at the top of this page (thread) still right? I've assumed I may need to add the "/w1_bus_master1" to the line "cd /sys/bus/w1/devices" but still not getting anything like ...
by lifebeginsatsixty
Sat Jan 11, 2014 6:25 pm
Forum: Automation, sensing and robotics
Topic: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $3.05
Replies: 81
Views: 105943

Re: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $

Thanks for the input. Richard, I'm probably going into PERL with this and have my shell learning come from other things. See following. I'm thinking about signing "Doing steaks since 1965" or something like that. Haven't put my rice cooker on variable power input, just clunk on off. Well, no "clunk"...
by lifebeginsatsixty
Thu Jan 09, 2014 12:04 pm
Forum: Automation, sensing and robotics
Topic: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $3.05
Replies: 81
Views: 105943

Re: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $

Richard, yup, you heard me right. This url might be a place to start if you're interested: http://forums.egullet.org/topic/140062-the-ideal-sous-vide-controller/ anita2r, I'll go for it. And coincidentally immortalize your guiding philosophy to BBQ steaks as a variable or subroutine name. My develop...
by lifebeginsatsixty
Thu Jan 09, 2014 2:17 am
Forum: Automation, sensing and robotics
Topic: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $3.05
Replies: 81
Views: 105943

Re: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $

Hello back, Currently what programming I might do is "done" by the little gizmo called a PID controller. You give it a target temperature, hook it up to the sensor (mine uses a PT-100) and the relay control side. The 220v wiring to the rice cooker and a 220v cord to plug it all in and that's all. Th...
by lifebeginsatsixty
Wed Jan 08, 2014 5:37 pm
Forum: Automation, sensing and robotics
Topic: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $3.05
Replies: 81
Views: 105943

Re: TUTORIAL: DS18B20 temp sensor. No C or Python!!! Cost: $

Well, I wonder if a shell script and one of these temp sensors will be the way to control my sous vide cooking (rather do it simpler than Mathematica). I've done around thirty runs of sous vide with a basic PID controller and a 6 L. rice cooker and will do another tomorrow. Not very knowledgable abo...
by lifebeginsatsixty
Tue Apr 09, 2013 11:53 pm
Forum: General discussion
Topic: Portrait mode (display_rotate) under Berryboot
Replies: 2
Views: 692

Portrait mode (display_rotate) under Berryboot

I have berryboot happily running the latest of Rasbian Wheezy on an old hard drive (after initially being unsure how to upgrade to that - thanks Max! for a previous post) and would like to rotate the screen like I did while running from an SD card. Then it was display_rotate=3 in a file in /boot cal...
by lifebeginsatsixty
Fri Apr 05, 2013 9:04 am
Forum: General discussion
Topic: Berryboot v1.1 - Boot menu / OS installer
Replies: 557
Views: 255793

Re: Berryboot v1.1 - Boot menu / OS installer

Trust I'm in the right place. I have berryboot happily running the latest of Rasbian Wheezy on an old hard drive (after initially being unsure how to upgrade to that - thanks Max! for a previous post) and would like to rotate the screen like I did while running from an SD card. Then it was display_r...
by lifebeginsatsixty
Wed Apr 03, 2013 7:35 am
Forum: Beginners
Topic: berryboot loads old OS version
Replies: 1
Views: 433

Re: berryboot loads old OS version

A little searching over the past several days on "berryboot" and "whezian' and this came up: Because we are currently using the 2012.12.16 image, and not the 2013.02.09 one. Do a "sudo apt-get update ; sudo apt-get upgrade" if you wish to upgrade. http://www.raspberrypi.org/phpBB3/viewtopic.php?p=28...

Go to advanced search