Go to advanced search

by timmoore46
Wed Jan 09, 2013 11:47 am
Forum: Beginners
Topic: Bash - what next ?
Replies: 25
Views: 4099

Re: Bash - what next ?

Source for serious 30Amp relays available from Maplin. Unusually for this part their way of displaying the parts for purchase is dire ! So check your basket before paying very very carefully. 12 volt coil is N23AW 24 volt coil not sure Mains coil is N24AW socket to mount the relay in (recommended) i...
by timmoore46
Tue Jan 08, 2013 9:26 am
Forum: Beginners
Topic: Bash - what next ?
Replies: 25
Views: 4099

Re: Bash - what next ?

Very very interesting ! I have a long hard look at your links ! Back to my software that now works/ What it does is to reflect a switch from one port to another in a continuous loop, control C gets it to jump out of the loop:- quote:- root@raspberrypi:~# cat loop_004 #! /bin/sh # chmod a+x loop_004 ...
by timmoore46
Mon Jan 07, 2013 7:22 am
Forum: Beginners
Topic: Bash - what next ?
Replies: 25
Views: 4099

Re: Bash - what next ? = Fixed

I'm sure there is a more elegant of writing this code for inputting off one port of the GPIO and then sending it to another port. but hey ! it works ! Many thanks to the many who have helped me achieve this ! root@raspberrypi:~# cat io_003 #!/bin/sh #setup Input echo "7" > /sys/class/gpio/export ech...
by timmoore46
Sat Jan 05, 2013 8:27 pm
Forum: Beginners
Topic: Bash - what next ?
Replies: 25
Views: 4099

Re: Bash - what next ?

for anyone following this thread, to use comparisons etc to make decisions on input data, this works to get the data:-

cat /sys/class/gpio/gpio4/ value > x

cat x

also for the input :-

cat /sys/class/gpio/gpio7/ value > y

cat y

now the rest is a lot easier ! I hope !

:D :D :D :D

Tim
by timmoore46
Sat Jan 05, 2013 5:49 pm
Forum: Beginners
Topic: Bash - what next ?
Replies: 25
Views: 4099

Re: Bash - what next ?

looked in 'class' directory but no thermal.

How do I install the 'thermal' thing ?

:cry:

Tim
by timmoore46
Sat Jan 05, 2013 3:36 pm
Forum: Beginners
Topic: Bash - what next ?
Replies: 25
Views: 4099

Re: Bash - what next ?

Very very interesting ! Greatly appreciated !

I'll try all that out tomorrow,,,,,,,

:D :D :D :D :D :D :D

Tim
by timmoore46
Sat Jan 05, 2013 2:42 pm
Forum: Beginners
Topic: Bash - what next ?
Replies: 25
Views: 4099

Re: Bash - what next ?

the input worked fine # Read from input cat /sys/class/gpio/gpio7/value and so did cat /sys/class/gpio/gpio7/value > /sys/class/gpio/gpio4/value but assigning the input value to 'x' did not work just a variety of error messages, quote # old style: x="`cat /sys/class/gpio/gpio7/value`" echo "$x" > /s...
by timmoore46
Fri Jan 04, 2013 9:31 pm
Forum: Beginners
Topic: As fast as possible config
Replies: 9
Views: 1701

Re: As fast as possible config

I always thought overclocking was a good way to flush lots and lots of time down the toilet, Why not wait 6 months/12/18 and buy the latest release of RPi which may well be faster with more ram ? Hey everyone has a view on overclocking, so go ahead if that's your thing. (liquid nitrogen is a good co...
by timmoore46
Fri Jan 04, 2013 9:13 pm
Forum: Beginners
Topic: booting from class 10 SD doesn't work
Replies: 8
Views: 1422

Re: booting from class 10 SD doesn't work

Oh well, my experience of a 16GB Class 10 Raspbian, was it was very reliable and a lot faster on a RPi that was delivered early June 2012 from Farnell. I burnt it on W7 Pro OS and had a lot of hassle getting a clean .img file and the w32bit burning software, but the end results were repeatable good....
by timmoore46
Fri Jan 04, 2013 7:22 am
Forum: Beginners
Topic: Bash - what next ?
Replies: 25
Views: 4099

Re: Bash - what next ? -FIXED

Many many thanks, that is exactly what I needed !

A very happy,

:D :D :D :D :D :D

Tim
by timmoore46
Fri Jan 04, 2013 5:27 am
Forum: Beginners
Topic: Bash - what next ?
Replies: 25
Views: 4099

Bash - what next ?

Here is a extract of what I'm trying to understand. Quote # Set up GPIO 4 and set to output echo "4" > /sys/class/gpio/export echo "out" > /sys/class/gpio/gpio4/direction # Set up GPIO 7 and set to input echo "7" > /sys/class/gpio/export echo "in" > /sys/class/gpio/gpio7/direction # Write output ech...
by timmoore46
Thu Jan 03, 2013 5:20 pm
Forum: Beginners
Topic: Info for maybe interested newby
Replies: 3
Views: 670

Re: Info for maybe interested newby

Yes, if you use this forum !

Check out my latest posts, slowly getting the software sorted to control things with via the GPIO port.

:D :D :D

Tim
by timmoore46
Thu Jan 03, 2013 9:41 am
Forum: Beginners
Topic: GPIO using Bash - help
Replies: 16
Views: 52400

Re: GPIO using Bash - help

so far port 4, 7 and 10 work fine.

Now anyone any thoughts on the Bash code on inputing the state of a port and sending it to different port ?

Any thoughts would be very very very welcome !

:D :D :D

Tim
by timmoore46
Thu Jan 03, 2013 9:29 am
Forum: Beginners
Topic: GPIO using Bash - help
Replies: 16
Views: 52400

Re: GPIO using Bash - help

typing

echo "0" > /sys/class/gpio/gpio4/value

fixed the first change and was rewarded with 0.00 volts

so trying another port.....

:D

Tim
by timmoore46
Thu Jan 03, 2013 9:21 am
Forum: Beginners
Topic: GPIO using Bash - help
Replies: 16
Views: 52400

Re: GPIO using Bash - help

Now with improve voltage measuring jig and a 4.7k resistor across the probe to GND, I've measured the 16 ports that the proto pcb , I've monitored port7 After powering up and loging in the voltage is 0.00V I then type sudo -i echo "4" > /sys/class/gpio/export echo "out" > /sys/class/gpio/gpio4/direc...
by timmoore46
Wed Jan 02, 2013 10:34 am
Forum: Beginners
Topic: GPIO using Bash - help
Replies: 16
Views: 52400

Re: GPIO using Bash - help

Many many thanks. My task of the moment is to Map out the Bash instruction to set a hi or a lo to each of the GPIO port available to me. I'm using this prototyping board:- http://www.hobbytronics.co.uk/slice-of-pi On it there are gp0 through to gp7 So being able to watch each port being set and then...
by timmoore46
Tue Jan 01, 2013 3:07 pm
Forum: Beginners
Topic: GPIO using Bash - help
Replies: 16
Views: 52400

Re: GPIO using Bash - help

Not entirely sure if I've got the mapping right.

GPIO 4 emereges as gpio7

GPIO 17 emerges as gpio0

As I've got marked gpio0 to 7

what starts for gpio1 to 6 ?

hope that makes sense ?

:D :D :D

Tim
by timmoore46
Tue Jan 01, 2013 2:26 pm
Forum: Beginners
Topic: GPIO using Bash - help
Replies: 16
Views: 52400

Re: GPIO using Bash - help

I just typed

sudo -i

and that seems to have fixed it !

:D :D :D

Tim
by timmoore46
Tue Jan 01, 2013 2:17 pm
Forum: Beginners
Topic: GPIO using Bash - help
Replies: 16
Views: 52400

Re: GPIO using Bash - help

wiringPi installed fine following the instructions, I'm in the pi directory and at the bash prompt I type sudo echo "4" > /sys/class/gpio/export and I get rewarded as a bash prompt with no such file or directory ________________________________ guess I'm missing something obvious ? :( :( :( :( An th...
by timmoore46
Tue Jan 01, 2013 1:00 pm
Forum: Beginners
Topic: GPIO using Bash - help
Replies: 16
Views: 52400

Re: GPIO using Bash - help

So everything I need is within ? :- #!/bin/sh # GPIO numbers should be from this list # 0, 1, 4, 7, 8, 9, 10, 11, 14, 15, 17, 18, 21, 22, 23, 24, 25 # Note that the GPIO numbers that you program here refer to the pins # of the BCM2835 and *not* the numbers on the pin header. # So, if you want to act...
by timmoore46
Tue Jan 01, 2013 12:22 pm
Forum: Beginners
Topic: GPIO using Bash - help
Replies: 16
Views: 52400

GPIO using Bash - help

Well the wealth of info I've read has just confused me ! Now duly terrified, Could any one point me in the right direction. I've got a RPi with Raspbian, fully updated, and a simple IO card hung on the GPIO. For various reasons I want to use Bash. So do I need to install anything before I start to t...
by timmoore46
Mon Nov 19, 2012 12:31 pm
Forum: Other programming languages
Topic: Help ! Installing SpecBAS
Replies: 24
Views: 3242

Re: Help ! Installing SpecBAS

It does but why 310 , (just curious )

Many many thanks !

:D :D :D :D

Tim
by timmoore46
Mon Nov 19, 2012 8:06 am
Forum: Other programming languages
Topic: Help ! Installing SpecBAS
Replies: 24
Views: 3242

Re: Help ! Installing SpecBAS

also the streaming worked:-

PROG streamtest01.txt
10 REM streamtest01
20 STREAM NEW mystream01,"/streamdata01.txt"
30 STREAM WRITE mystream01,"Hello world of streamed data!"+CHR$ 13
40 STREAM CLOSE mystream01


yielded

'Hello world of streamed data!'

into a txt file

:P :P :P :P

Tim
by timmoore46
Mon Nov 19, 2012 6:00 am
Forum: Other programming languages
Topic: Help ! Installing SpecBAS
Replies: 24
Views: 3242

Re: Help ! Installing SpecBAS

and in case anyone is following this, its my first working subroutine programme:-


10 REM subtest05
20 LET a=10: GO SUB @mylabel
30 STOP
500 LABEL @mylabel: PRINT a: LET a=a+5: PRINT a
550 RETURN

a very happy.

:P :P :P :P :P

Tim
by timmoore46
Mon Nov 19, 2012 4:59 am
Forum: Other programming languages
Topic: Help ! Installing SpecBAS
Replies: 24
Views: 3242

Re: Help ! Installing SpecBAS

Brill ! Many many thanks ! I produced this before your email, but it is not correct but does worth after a fashion ! I've misunderstood how it all works ! I'll rewrite it now I've got an example ! Again many thanks for your patience ! : ))) Tim 10 REM "subtest01" 20 GO SUB 100 30 GO SUB 200 40 GO SU...

Go to advanced search