Raspberry Pi anyone?

This is the place for posts that don't fit into any other category.
User avatar
Xaccers
Posts: 7654
Joined: 07 Feb 2007, 23:46
x 186

Re: Raspberry Pi anyone?

Unread 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
1.9TD+ SX Xantia Estate (Cassy) running on 100% veg
1.9TD SX Xantia Hatchback (Jenny) running on 100% veg for sale
Laguna II 2.0dCi Privilege (Monty)

DIY sphere tool
addo
Sara Watson's Stalker
Posts: 7098
Joined: 19 Aug 2008, 12:38
x 95

Unread post by addo »

Awesome. How far from trialling it on people via electrodes stuck to their head? :twisted:
User avatar
Xaccers
Posts: 7654
Joined: 07 Feb 2007, 23:46
x 186

Re:

Unread 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
1.9TD+ SX Xantia Estate (Cassy) running on 100% veg
1.9TD SX Xantia Hatchback (Jenny) running on 100% veg for sale
Laguna II 2.0dCi Privilege (Monty)

DIY sphere tool
addo
Sara Watson's Stalker
Posts: 7098
Joined: 19 Aug 2008, 12:38
x 95

Unread post by addo »

:lol: My evil plans are exposed again. :twisted:
Hell Razor5543
(Donor 2023)
Posts: 14270
Joined: 01 Apr 2012, 09:47
x 3282

Re:

Unread post by Hell Razor5543 »

addo wrote::lol: My evil plans are exposed again. :twisted:
Nope, not evil; Understandable.
James
ex BX 1.9
ex Xantia 2.0HDi SX
ex Xantia 2.0HDi LX
ex C5 2.0HDi VTR
ex C5 2.0HDi VTR
ex C5 2.2HDi VTX+

Yes, I am paranoid, but am I paranoid ENOUGH?
Out amongst the stars, looking for a world of my own!
User avatar
Xaccers
Posts: 7654
Joined: 07 Feb 2007, 23:46
x 186

Re: Raspberry Pi anyone?

Unread post by Xaccers »

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

Code: Select all

#!/bin/bash
#################################
# Speech Script by Dan Fountain #
# [email protected] #
#################################

INPUT=$*
STRINGNUM=0

ary=($INPUT)
echo "---------------------------"
echo "Speech Script by Dan Fountain"
echo "[email protected]"
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
1.9TD+ SX Xantia Estate (Cassy) running on 100% veg
1.9TD SX Xantia Hatchback (Jenny) running on 100% veg for sale
Laguna II 2.0dCi Privilege (Monty)

DIY sphere tool
User avatar
Xaccers
Posts: 7654
Joined: 07 Feb 2007, 23:46
x 186

Re: Raspberry Pi anyone?

Unread 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...
1.9TD+ SX Xantia Estate (Cassy) running on 100% veg
1.9TD SX Xantia Hatchback (Jenny) running on 100% veg for sale
Laguna II 2.0dCi Privilege (Monty)

DIY sphere tool
User avatar
CitroJim
A very naughty boy
Posts: 54818
Joined: 30 Apr 2005, 23:33
x 8210

Re: Raspberry Pi anyone?

Unread 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...
Jim

A bit of a Citroen AX fan...
User avatar
CitroJim
A very naughty boy
Posts: 54818
Joined: 30 Apr 2005, 23:33
x 8210

Re: Raspberry Pi anyone?

Unread post by CitroJim »

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

This forum is just about usable with it...
Jim

A bit of a Citroen AX fan...
User avatar
Mandrake
Posts: 8692
Joined: 10 Apr 2005, 17:23
x 694

Re: Raspberry Pi anyone?

Unread post by Mandrake »

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

2016 Nissan Leaf Tekna 30kWh in White

1997 Xantia S1 3.0 V6 Auto Exclusive in Silex Grey
2011 Peugeot Ion Full Electric in Silver
1998 Xantia S2 3.0 V6 Auto Exclusive
1997 Xantia S1 2.0i Auto VSX
1978 CX 2400
1977 G Special 1129cc LHD
User avatar
Xaccers
Posts: 7654
Joined: 07 Feb 2007, 23:46
x 186

Re: Raspberry Pi anyone?

Unread 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?
1.9TD+ SX Xantia Estate (Cassy) running on 100% veg
1.9TD SX Xantia Hatchback (Jenny) running on 100% veg for sale
Laguna II 2.0dCi Privilege (Monty)

DIY sphere tool
User avatar
Mandrake
Posts: 8692
Joined: 10 Apr 2005, 17:23
x 694

Re: Raspberry Pi anyone?

Unread post by Mandrake »

Can't see why not...
Simon

2016 Nissan Leaf Tekna 30kWh in White

1997 Xantia S1 3.0 V6 Auto Exclusive in Silex Grey
2011 Peugeot Ion Full Electric in Silver
1998 Xantia S2 3.0 V6 Auto Exclusive
1997 Xantia S1 2.0i Auto VSX
1978 CX 2400
1977 G Special 1129cc LHD
User avatar
Xaccers
Posts: 7654
Joined: 07 Feb 2007, 23:46
x 186

Re: Raspberry Pi anyone?

Unread 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.
1.9TD+ SX Xantia Estate (Cassy) running on 100% veg
1.9TD SX Xantia Hatchback (Jenny) running on 100% veg for sale
Laguna II 2.0dCi Privilege (Monty)

DIY sphere tool
addo
Sara Watson's Stalker
Posts: 7098
Joined: 19 Aug 2008, 12:38
x 95

Unread post by addo »

There is a mounting boss already for the air intake flap motor.
User avatar
Xaccers
Posts: 7654
Joined: 07 Feb 2007, 23:46
x 186

Re:

Unread 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?
1.9TD+ SX Xantia Estate (Cassy) running on 100% veg
1.9TD SX Xantia Hatchback (Jenny) running on 100% veg for sale
Laguna II 2.0dCi Privilege (Monty)

DIY sphere tool