Go to advanced search

by Candyjet
Thu Mar 10, 2016 4:18 pm
Forum: Automation, sensing and robotics
Topic: Best SSR kit
Replies: 14
Views: 3192

Re: Best SSR kit

Brilliant thanks. So that I can understand more, is the 1.3 -1.5V quoted, the 'forward voltage' on the datasheet, and the 10mA, the 'DC current transfer ratio'?

(Listen to him, 24 hrs ago, he'd never heard of an optocoupler).

Cheers,

CJ
by Candyjet
Thu Mar 10, 2016 3:19 pm
Forum: Automation, sensing and robotics
Topic: Best SSR kit
Replies: 14
Views: 3192

Re: Best SSR kit

Thank you both for your advice. I now have a pair of Opto thingys on order. To be sure, I connect a GPIO controlled 3.3v pin out from the Pi to anode, GND to cathode, and the coloured wires from the controller to collector and emitter. I presume it is the latter 2 that is the 50/50 bet? Thanks again...
by Candyjet
Wed Mar 09, 2016 6:19 pm
Forum: Automation, sensing and robotics
Topic: Best SSR kit
Replies: 14
Views: 3192

Re: Best SSR kit

I have added a photo for what I am doing here. There are 2 switches on the controller, both of which have wires attached, soldered by me. The switches are labelled S1 and S2. There is nearly 6v across them, from the 2x CR2032 batteries which are on the reverse of this controller. When S1 switch is p...
by Candyjet
Wed Mar 09, 2016 3:43 pm
Forum: Automation, sensing and robotics
Topic: Best SSR kit
Replies: 14
Views: 3192

Re: Best SSR kit

I am using relays to complete a circuit which uses 2 CR2032 batteries to power it. At the moment I am using mechanical relays on a PiFace, but it is clear that one of the relays on the PiFace is not reliable enough for the project. The time that the relays are activated is important, and must be acc...
by Candyjet
Wed Mar 09, 2016 11:15 am
Forum: Automation, sensing and robotics
Topic: Best SSR kit
Replies: 14
Views: 3192

Re: Best SSR kit

I need a SSR to control a low-current device. I have already bought one incorrect SSR which needed an AC input apparently. To be sure, are we saying that I can control the SSR in the post above using GPIO pin output? What I need is for an output of a GPIO pin, of around 1.5secs duration, to trigger ...
by Candyjet
Wed Mar 09, 2016 10:51 am
Forum: HATs and other add-ons
Topic: Detect presence of Piface2 on boot
Replies: 2
Views: 1210

Re: Detect presence of Piface2 on boot

Thanks, I shall have a try. Having experimented I have found this out. I am running a script on boot, following the instructions given here- http://www.instructables.com/id/Raspberry-Pi-Launch-Python-script-on-startup/?ALLSTEPS (and very well it works too, first time). It cleverly records a log of w...
by Candyjet
Tue Mar 08, 2016 2:30 pm
Forum: HATs and other add-ons
Topic: Detect presence of Piface2 on boot
Replies: 2
Views: 1210

Detect presence of Piface2 on boot

I have a program which runs automatically, and requires the PiFace2, when I switch the Pi on.
Occasionally, I don't need the PiFace present. Is it possible for the Pi to detect the presence/absence of the PiFace, and I could then alter it's boot behaviour accordingly?

Thanks,

CJ
by Candyjet
Mon Mar 07, 2016 6:09 pm
Forum: Beginners
Topic: eth0 static ip
Replies: 8
Views: 2715

Re: eth0 static ip

Is it because the 'adress' is not spelled correctly?

Code: Select all

interface eth0
static ip_adress=192.168.0.2/24
by Candyjet
Fri Mar 04, 2016 3:47 pm
Forum: Python
Topic: Problem with functions
Replies: 7
Views: 906

Re: Problem with functions

Thanks, again. I think I am using every single brain cell to get my head round this. I do appreciate your replies. Sometimes the difficulty with Google is that you have to know pretty much what the answer is, in order to know where to look.

Cheers,

CJ
by Candyjet
Fri Mar 04, 2016 1:11 pm
Forum: Python
Topic: Problem with functions
Replies: 7
Views: 906

Re: Problem with functions

Brilliant, thanks very much to both of you.
by Candyjet
Fri Mar 04, 2016 11:52 am
Forum: Python
Topic: Problem with functions
Replies: 7
Views: 906

Problem with functions

I am struggling a bit with the subtleties of functions. I have written a little code, which works happily def func(): print('This is func') n=3 while n>0: m=str(n) bytes(m, 'utf-8') print('n=',n,'m=',m) n=n-1 The program I am ultimately aiming to write will have more of the while loops in various pa...
by Candyjet
Wed Mar 02, 2016 11:18 am
Forum: Python
Topic: Using tuple/lists and functions
Replies: 6
Views: 1097

SOLVED Re: Using tuple/lists and functions

Have just taken up where I left off yesterday, and it now all works. H/T to RogerW, who's code does exactly what it says on the tin.
Am now combining all the suggestions, to get exactly what I want.

Thanks very much,

A happy CJ
by Candyjet
Wed Mar 02, 2016 11:05 am
Forum: Beginners
Topic: Paste command no longer works
Replies: 3
Views: 592

Re: Paste command no longer works

Thanks liudr. I am using PuTTy to SSH. Your tip about starting idle from the shell does work, thanks, which has saved a lot of effort.

Shame the rest of the Pasting has gone, though,

Cheers,

CJ
by Candyjet
Tue Mar 01, 2016 5:07 pm
Forum: Python
Topic: Using tuple/lists and functions
Replies: 6
Views: 1097

Re: Using tuple/lists and functions

Thanks very much for your efforts. I should have made clear that the Print line was just there to show what the content of acttup was, before trying anything more complex with it.

I think tomorrow is now written off.

Thanks again. :D
by Candyjet
Tue Mar 01, 2016 4:59 pm
Forum: Beginners
Topic: Paste command no longer works
Replies: 3
Views: 592

Paste command no longer works

I have just installed a new SD card in my Pi2 and it is all up and running (Jessie) via SSH and my laptop. I was using Wheezy on a different card, but this is a fresh install. My question is this. Using Wheezy, I could cut text from my Windows display and paste it into IDLE. Now that no longer works...
by Candyjet
Tue Mar 01, 2016 12:15 pm
Forum: Python
Topic: Using tuple/lists and functions
Replies: 6
Views: 1097

Using tuple/lists and functions

I am trying to write some python3 code to do the following. There will be seven different functions defined. User input will define multiple numerical entries of numbers between 1 and 7. This will be of varying length, so for example, I would end up with a list of numbers between 1 and 7 - 1,4,2,3,5...
by Candyjet
Tue Mar 01, 2016 9:53 am
Forum: Networking and servers
Topic: Struggling with IP settings
Replies: 4
Views: 641

Re: Struggling with IP settings

Thanks Dougie. Bizarrely, I had not noticed the older OS until yesterday. Got the Pi as a present and just got on with using it. Am now following your expert advice,

Cheers,

CJ
by Candyjet
Mon Feb 29, 2016 6:19 pm
Forum: Networking and servers
Topic: Struggling with IP settings
Replies: 4
Views: 641

Struggling with IP settings

I have a Pi 2 running Wheezy. I am trying to set it up with static IP addresses. I have 2 methods of networking with the PI, one a wireless adapter and the second a wired device, which connects to the mains, similar to this. http://www.amazon.co.uk/TP-LINK-PA411KIT-Powerline-Adapter-Starter/dp/B0084...
by Candyjet
Fri Feb 26, 2016 4:54 pm
Forum: Other projects
Topic: Raspberry Pi Networking Cookbook (free epub TODAY)
Replies: 2
Views: 7567

Re: Raspberry Pi Networking Cookbook (free epub TODAY)

As far as I can see, you get a free ebook, just not this one. :evil:
by Candyjet
Wed Feb 24, 2016 1:13 pm
Forum: Troubleshooting
Topic: SSR won't work
Replies: 2
Views: 484

Re: SSR won't work

Ah, bummer.

Thanks for the quick reply.
by Candyjet
Wed Feb 24, 2016 12:31 pm
Forum: Troubleshooting
Topic: SSR won't work
Replies: 2
Views: 484

SSR won't work

I have bought one of these SSR's. http://www.ebay.co.uk/itm/4-Channel-5V-Solid-State-Relay-Shield-Module-Board-SSR-For-Arduino-DSP-ARM-/271846074445?hash=item3f4b49e84d:g:TukAAOSwy4hUTMGr I have wired VCC on the SSR to 5v on the Pi. It delivers this voltage, checked by multimeter. I have wired GND o...
by Candyjet
Sun Feb 07, 2016 12:34 pm
Forum: Troubleshooting
Topic: Unable to see PiFace 2 (SOLVED)
Replies: 11
Views: 2257

Re: Unable to see PiFace 2

You're absolutely correct. I was, however, trying to help Pingpong. The reason I did so, was because in the instructions in the link given, it suggested using this statement - After the Pi has shut down, remove all connections, connect the PiFace Digital 2, reconnect everything - saving the power co...
by Candyjet
Sun Feb 07, 2016 11:29 am
Forum: Troubleshooting
Topic: Unable to see PiFace 2 (SOLVED)
Replies: 11
Views: 2257

Re: Unable to see PiFace 2

I have just successfully installed a Piface 2. I followed this advice
https://www.element14.com/community/thr ... up-and-use

NB. You MUST read all the posts underneath the main article. It appears that you should not use the sudo RPi update command.
by Candyjet
Mon Feb 01, 2016 5:50 pm
Forum: Python
Topic: Basic module problem
Replies: 2
Views: 489

Re: Basic module problem

My goodness, that was quick and accurate.
I have spent a couple of hours on google trying to solve that one,
Done in about 10 minutes here.

My greatest thanks,

CJ
by Candyjet
Mon Feb 01, 2016 5:30 pm
Forum: Python
Topic: Basic module problem
Replies: 2
Views: 489

Basic module problem

I have a basic problem with modules. I have written this short module and named it 'modtest.py'. #!/usr/bin/env python3 def abc(): print ('hello abdc') NB I do have an indent in the actual program at the print line, it just hasn't pasted well here. I have then written another program and called it '...

Go to advanced search