Raspberry Pi anyone?

This is the place for posts that don't fit into any other category.

Moderator: RichardW

User avatar
Xaccers
Posts: 7653
Joined: 08 Feb 2007, 00:46
x 3

Re: Raspberry Pi anyone?

Post by Xaccers »

I've managed to get my buttons working!
Not only that, but one button turns on the LCD and shows the current CPU temperature, the other button clears the LCD and turns it off, and, get this, pressing both runs a shutdown command after a 5 second countdown on the LCD :D

addo
Sara Watson's Stalker
Posts: 7098
Joined: 19 Aug 2008, 12:38
x 4

Post by addo »

Awesome. How far from trialling it on people via electrodes stuck to their head? :twisted:

User avatar
Xaccers
Posts: 7653
Joined: 08 Feb 2007, 00:46
x 3

Re:

Post by Xaccers »

addo wrote:Awesome. How far from trialling it on people via electrodes stuck to their head? :twisted:
You just want to try and brain wash Sara Watson don't you? :D

addo
Sara Watson's Stalker
Posts: 7098
Joined: 19 Aug 2008, 12:38
x 4

Post by addo »

:lol: My evil plans are exposed again. :twisted:

Hell Razor5543
NOT Alistair or Simon
Posts: 10837
Joined: 01 Apr 2012, 09:47
x 1094

Re:

Post by Hell Razor5543 »

addo wrote::lol: My evil plans are exposed again. :twisted:
Nope, not evil; Understandable.

User avatar
Xaccers
Posts: 7653
Joined: 08 Feb 2007, 00:46
x 3

Re: Raspberry Pi anyone?

Post by Xaccers »

Text to speech shell script using Google's servers :)

Code: Select all

#!/bin/bash
#################################
# Speech Script by Dan Fountain #
# TalkToDanF@gmail.com #
#################################

INPUT=$*
STRINGNUM=0

ary=($INPUT)
echo "---------------------------"
echo "Speech Script by Dan Fountain"
echo "TalkToDanF@gmail.com"
echo "---------------------------"
for key in "${!ary[@]}"
do
SHORTTMP[$STRINGNUM]="${SHORTTMP[$STRINGNUM]} ${ary[$key]}"
LENGTH=$(echo ${#SHORTTMP[$STRINGNUM]})
#echo "word:$key, ${ary[$key]}"
#echo "adding to: $STRINGNUM"
if [[ "$LENGTH" -lt "100" ]]; then
#echo starting new line
SHORT[$STRINGNUM]=${SHORTTMP[$STRINGNUM]}
else
STRINGNUM=$(($STRINGNUM+1))
SHORTTMP[$STRINGNUM]="${ary[$key]}"
SHORT[$STRINGNUM]="${ary[$key]}"
fi
done

for key in "${!SHORT[@]}"
do
#echo "line: $key is: ${SHORT[$key]}"

echo "Playing line: $(($key+1)) of $(($STRINGNUM+1))"
mpg123 -q "http://translate.google.com/translate_tts?tl=en&q=${SHORT[$key]}"
done

User avatar
Xaccers
Posts: 7653
Joined: 08 Feb 2007, 00:46
x 3

Re: Raspberry Pi anyone?

Post by Xaccers »

I've installed Lynx which is a text based browser that I used to use on the terminals at Uni and didn't realise was still going.
It will help me test connectivity when I get a 3G dongle for the RPi

Navigating the forum with it is, interesting...

User avatar
CitroJim
A very naughty boy
Posts: 42595
Joined: 30 Apr 2005, 23:33
x 1344

Re: Raspberry Pi anyone?

Post by CitroJim »

Xac wrote:I've installed Lynx which is a text based browser that I used to use on the terminals at Uni and didn't realise was still going.
It will help me test connectivity when I get a 3G dongle for the RPi

Navigating the forum with it is, interesting...
Gosh! I must have a play with lynx on a minimal Linux I'm playing around with here...

User avatar
CitroJim
A very naughty boy
Posts: 42595
Joined: 30 Apr 2005, 23:33
x 1344

Re: Raspberry Pi anyone?

Post by CitroJim »

Just had a play with Lynx... Very interesting....

This forum is just about usable with it...

User avatar
Mandrake
Posts: 8222
Joined: 10 Apr 2005, 17:23
x 342

Re: Raspberry Pi anyone?

Post by Mandrake »

It would be, for someone who thinks overhauling an automatic gearbox is a bit of light weekend relaxation :-D

User avatar
Xaccers
Posts: 7653
Joined: 08 Feb 2007, 00:46
x 3

Re: Raspberry Pi anyone?

Post by Xaccers »

Here's a question for you electronic wizz kids; the RPi has a pulse width modulator.
Could this be used via a mosfet or Darlington Array to "vary" the reverse voltage to the blower and thus give me control of it's speed?

User avatar
Mandrake
Posts: 8222
Joined: 10 Apr 2005, 17:23
x 342

Re: Raspberry Pi anyone?

Post by Mandrake »

Can't see why not...

User avatar
Xaccers
Posts: 7653
Joined: 08 Feb 2007, 00:46
x 3

Re: Raspberry Pi anyone?

Post by Xaccers »

Mandrake wrote:Can't see why not...
Image


Now I need to find some stepper motors suitable for moving the air flow flaps.
I guess I really need to rip out a dash board and take a look inside. Oh joy.

addo
Sara Watson's Stalker
Posts: 7098
Joined: 19 Aug 2008, 12:38
x 4

Post by addo »

There is a mounting boss already for the air intake flap motor.

User avatar
Xaccers
Posts: 7653
Joined: 08 Feb 2007, 00:46
x 3

Re:

Post by Xaccers »

addo wrote:There is a mounting boss already for the air intake flap motor.
Really? Don't suppose you have any details of the motor needed?