Raspberry Pi anyone?
Moderator: RichardW
- Xaccers
- Posts: 7654
- Joined: 07 Feb 2007, 23:46
- Location: Milling around Milton Keynes
- My Cars:
- x 184
Re: Raspberry Pi anyone?
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
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
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
1.9TD SX Xantia Hatchback (Jenny) running on 100% veg for sale
Laguna II 2.0dCi Privilege (Monty)
DIY sphere tool
- Xaccers
- Posts: 7654
- Joined: 07 Feb 2007, 23:46
- Location: Milling around Milton Keynes
- My Cars:
- x 184
Re:
You just want to try and brain wash Sara Watson don't you?addo wrote:Awesome. How far from trialling it on people via electrodes stuck to their head?
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
1.9TD SX Xantia Hatchback (Jenny) running on 100% veg for sale
Laguna II 2.0dCi Privilege (Monty)
DIY sphere tool
-
- Donor 2023
- Posts: 13727
- Joined: 01 Apr 2012, 09:47
- Location: Reading
- My Cars: C5 Mk2 VTX+ estate.
- x 2993
Re:
Nope, not evil; Understandable.addo wrote: My evil plans are exposed again.
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
C5 2.2HDi VTX+
Yes, I am paranoid, but am I paranoid ENOUGH?
Out amongst the stars, looking for a world of my own!
ex BX 1.9
ex Xantia 2.0HDi SX
ex Xantia 2.0HDi LX
Ex C5 2.0HDi VTR
Ex C5 2.0HDi VTR
C5 2.2HDi VTX+
Yes, I am paranoid, but am I paranoid ENOUGH?
Out amongst the stars, looking for a world of my own!
- Xaccers
- Posts: 7654
- Joined: 07 Feb 2007, 23:46
- Location: Milling around Milton Keynes
- My Cars:
- x 184
Re: Raspberry Pi anyone?
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
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
1.9TD SX Xantia Hatchback (Jenny) running on 100% veg for sale
Laguna II 2.0dCi Privilege (Monty)
DIY sphere tool
- Xaccers
- Posts: 7654
- Joined: 07 Feb 2007, 23:46
- Location: Milling around Milton Keynes
- My Cars:
- x 184
Re: Raspberry Pi anyone?
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...
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
1.9TD SX Xantia Hatchback (Jenny) running on 100% veg for sale
Laguna II 2.0dCi Privilege (Monty)
DIY sphere tool
-
OnlineCitroJim
- A very naughty boy
- Posts: 49530
- Joined: 30 Apr 2005, 23:33
- Location: Paggers
- My Cars: Bluebell the AX, Polly the C3 Picasso, Pix the Nissan Pixo, Propel the duathlon bike, TCR Pro the road bike and Fuji the TT bike...
- x 6160
- Contact:
Re: Raspberry Pi anyone?
Gosh! I must have a play with lynx on a minimal Linux I'm playing around with here...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...
Jim
Runner, cyclist, time triallist, duathlete, Citroen AX fan and the CCC Citroenian 'From A to Z' Columnist...
Runner, cyclist, time triallist, duathlete, Citroen AX fan and the CCC Citroenian 'From A to Z' Columnist...
-
OnlineCitroJim
- A very naughty boy
- Posts: 49530
- Joined: 30 Apr 2005, 23:33
- Location: Paggers
- My Cars: Bluebell the AX, Polly the C3 Picasso, Pix the Nissan Pixo, Propel the duathlon bike, TCR Pro the road bike and Fuji the TT bike...
- x 6160
- Contact:
Re: Raspberry Pi anyone?
Just had a play with Lynx... Very interesting....
This forum is just about usable with it...
This forum is just about usable with it...
Jim
Runner, cyclist, time triallist, duathlete, Citroen AX fan and the CCC Citroenian 'From A to Z' Columnist...
Runner, cyclist, time triallist, duathlete, Citroen AX fan and the CCC Citroenian 'From A to Z' Columnist...
Re: Raspberry Pi anyone?
It would be, for someone who thinks overhauling an automatic gearbox is a bit of light weekend relaxation
Simon
1997 Xantia S1 3.0 V6 Auto Exclusive in Silex Grey
2016 Nissan Leaf Tekna 30kWh in White
2011 Peugeot Ion Full Electric in Silver
1977 G Special 1129cc LHD
1978 CX 2400
1997 Xantia S1 2.0i Auto VSX
1998 Xantia S2 3.0 V6 Auto Exclusive
1997 Xantia S1 3.0 V6 Auto Exclusive in Silex Grey
2016 Nissan Leaf Tekna 30kWh in White
2011 Peugeot Ion Full Electric in Silver
1977 G Special 1129cc LHD
1978 CX 2400
1997 Xantia S1 2.0i Auto VSX
1998 Xantia S2 3.0 V6 Auto Exclusive
- Xaccers
- Posts: 7654
- Joined: 07 Feb 2007, 23:46
- Location: Milling around Milton Keynes
- My Cars:
- x 184
Re: Raspberry Pi anyone?
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?
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
1.9TD SX Xantia Hatchback (Jenny) running on 100% veg for sale
Laguna II 2.0dCi Privilege (Monty)
DIY sphere tool
Re: Raspberry Pi anyone?
Can't see why not...
Simon
1997 Xantia S1 3.0 V6 Auto Exclusive in Silex Grey
2016 Nissan Leaf Tekna 30kWh in White
2011 Peugeot Ion Full Electric in Silver
1977 G Special 1129cc LHD
1978 CX 2400
1997 Xantia S1 2.0i Auto VSX
1998 Xantia S2 3.0 V6 Auto Exclusive
1997 Xantia S1 3.0 V6 Auto Exclusive in Silex Grey
2016 Nissan Leaf Tekna 30kWh in White
2011 Peugeot Ion Full Electric in Silver
1977 G Special 1129cc LHD
1978 CX 2400
1997 Xantia S1 2.0i Auto VSX
1998 Xantia S2 3.0 V6 Auto Exclusive
- Xaccers
- Posts: 7654
- Joined: 07 Feb 2007, 23:46
- Location: Milling around Milton Keynes
- My Cars:
- x 184
Re: Raspberry Pi anyone?
Mandrake wrote:Can't see why not...
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
1.9TD SX Xantia Hatchback (Jenny) running on 100% veg for sale
Laguna II 2.0dCi Privilege (Monty)
DIY sphere tool
- Xaccers
- Posts: 7654
- Joined: 07 Feb 2007, 23:46
- Location: Milling around Milton Keynes
- My Cars:
- x 184
Re:
Really? Don't suppose you have any details of the motor needed?addo wrote:There is a mounting boss already for the air intake flap motor.
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
1.9TD SX Xantia Hatchback (Jenny) running on 100% veg for sale
Laguna II 2.0dCi Privilege (Monty)
DIY sphere tool