Donations towards server fund so far this month.

 
£0.00 / £100.00 per month
Page:
Home > Show Us Yours! > A couple of new PCBs - but especially the RPi...

wolfie

User Avatar

8215 Posts
Member #: 90
Post Whore

Somewhere around Swindon

right reading through this i am even more confused!

Rod are you saying you have had your own version of the RPi made for 12v or you have made a board to interface with the RPi? if you are making your own RPi theres no point in buying from farnell or RS if yours is being developed for easier automotive installation?

or have i totally missed out on what you are doing?

Crystal Sound Audio said:

Why wolfie...you should have your name as Fuckfaceshithead !


"A common mistake that people make when trying to design something completely
foolproof is to underestimate the ingenuity of complete fools."-Douglas Adams


Rod S

User Avatar

5988 Posts
Member #: 2024
Formally Retired

Rural Suffolk

An additional board to both power it from 12V and to handle the serial interface to the MS2/3.

The Raspberry Pi runs from 5V by design (typically a mobile phone charger) and it's standard interface is USB.

In the photo



The RPi itself is top right and my board is bottom left with the 12V in and the DB9 plug for the serial cable to the MS2 (not plugged in on that photo)

Schrödinger's cat - so which one am I ???


wolfie

User Avatar

8215 Posts
Member #: 90
Post Whore

Somewhere around Swindon

ok cool, i am easily confused lol

Do you have a timetable of when your board will be tested and then available?

sorry for the million questions i just find this interesting

Crystal Sound Audio said:

Why wolfie...you should have your name as Fuckfaceshithead !


"A common mistake that people make when trying to design something completely
foolproof is to underestimate the ingenuity of complete fools."-Douglas Adams


Graham T

User Avatar

608 Posts
Member #: 1106
Post Whore

Hungerford, Berks

Here's the Rpi in action.

http://youtu.be/82dTYbngWQU


Its still a bit slow and there is still a bit to do.

The screen is rubbish, so I need to get a better screen - HDMI next time.

The distro needs cutting down and I have been in touch with Phil Tobbin - TunerStudio developer - to see how we can further reduce load times and improve graphics.
But it runs alot better than I had imagined, and has the potential to run better.


It looks alot nicer on the Plasma screen...

’77 Clubman build thread
http://www.turbominis.co.uk/forums/index.php?p=vt&tid=618189

Siamese 5 port EFI testing
http://www.turbominis.co.uk/forums/index.php?p=vt&tid=611675


minivan63

114 Posts
Member #: 9645
Advanced Member

South Wales

Looks good Graham - loading time is not too bad I think.

Will it be possible to get it to load up TS on boot so that you wouldn't need a pointing device?


Graham T

User Avatar

608 Posts
Member #: 1106
Post Whore

Hungerford, Berks

That's the plan, but I'm struggling on that part. X server does not load automatically, so I have had to add auto login and a command to load X server, but that happens later in the boot cycle than the other distro's I have played with, hence I need to find a way to do it.
You can see a failure in the video, about halfway through the boot, which is TS trying to load before X server.
I'm still learning Linux...

I'm also hoping with no keyboard and mouse boot will be quicker, as there will be no usb devices to load drivers for.

Edited by Graham T on 4th Jun, 2012.

’77 Clubman build thread
http://www.turbominis.co.uk/forums/index.php?p=vt&tid=618189

Siamese 5 port EFI testing
http://www.turbominis.co.uk/forums/index.php?p=vt&tid=611675


Carl S
Forum Mod

User Avatar

1927 Posts
Member #: 1761
Stalker

Bristol

Good effort so far Graham.

What distro are you using? It looks like the debian built for RPi at a guess. You can substantially reduce the boot time with a few tricks.

It's unsual that X server isnt loading on it's own, how did you install it? More importantly, what version of X server did you install?


Rod S

User Avatar

5988 Posts
Member #: 2024
Formally Retired

Rural Suffolk

Carl,

Might be worth keeping an eye on this thread on the MSx forum

http://www.msextra.com/forums/viewtopic.php?f=122&t=44746

It's where it all started, except it wasn't.... if you read carefully it was Graham's idea first but the only one who knew was Jean.

Or try PM'ing Graham direct and swapping ideas.

I'm out of the loop for the moment (apart from improving the PCB) until either my second RPi arrives, or Graham's first....

Schrödinger's cat - so which one am I ???


Graham T

User Avatar

608 Posts
Member #: 1106
Post Whore

Hungerford, Berks

Carl,
The distro is debian squeeze and X server was already installed. It does not automatically start by design.


PM sent - hopefully you can offer some wisdom? I'm fast getting to the limit of my understanding with Linux...

Edited by Graham T on 4th Jun, 2012.

’77 Clubman build thread
http://www.turbominis.co.uk/forums/index.php?p=vt&tid=618189

Siamese 5 port EFI testing
http://www.turbominis.co.uk/forums/index.php?p=vt&tid=611675


Carl S
Forum Mod

User Avatar

1927 Posts
Member #: 1761
Stalker

Bristol

Righto, I'll get back to you tomorrow Graham.


sturgeo

857 Posts
Member #: 1778
Post Whore

Northants

Any other news on the Pi front??
I'm waiting for mine to turn up and am looking at the various IO boards to see what I can play with other than XBMC.

I like the look of your PCB Rod, also cleans up the cabling if you power it over the header pins rather than the micro USB


Rod S

User Avatar

5988 Posts
Member #: 2024
Formally Retired

Rural Suffolk

A bit of a co-incedence you asking at this moment in time...

Graham has been persueing the software, including experimenting with the new 512MB version and I'm part way through a new PCB which will actually be a motherboard to the RPi (rather than using the ribbon cable).

Not too much to show yet,



But basically a 100x100 PCB (so fits in a standard Euro-type case) which will have the PSU and RS323 coms (right) components all installed on it, as well as the RPI (upside down) and a lot of logic/timers (not yet shown).

The logic/timers are still on a bit of paper at the moment and partly assembled on my breadboard for testing.

To cut a long story short, the RPi can have it's SD card (ie, OS) corrupted if it just loses its power. Although it may not happen too often, Ideally it should be shutdown in software (just like a normal PC) and not by just unplugging it....

As there won't be a keyboard/mouse in our car environment we're going to force the proper shutdown in software and logic through one of the GPIO lines.

Software is Graham's part, logic is my part.

Basic issue is, the RPI should only run when the engine is running and should shutdown when the engine is intentionally shutdown, but not when it stalls or fails to start cleanly, and must complete its startup (or shutdown) cleanly before the next instruction....

A nightmare in simple CMOS logic.

But I'm nearly there :)

Schrödinger's cat - so which one am I ???


jbelanger

1267 Posts
Member #: 831
Post Whore

Montreal, Canada

Could you not power it directly from the car battery and turn it off when it detects a key off? This way you don't have to worry about stalls or failed start but only about the key position. And if you don't want to connect directly to the battery you could look into adding a supercap to power it for the shutdown period.

Jean

http://www.jbperf.com/


Rod S

User Avatar

5988 Posts
Member #: 2024
Formally Retired

Rural Suffolk

On 23rd Nov, 2012 jbelanger said:
Could you not power it directly from the car battery and turn it off when it detects a key off? This way you don't have to worry about stalls or failed start but only about the key position. And if you don't want to connect directly to the battery you could look into adding a supercap to power it for the shutdown period.


Jean,

Been through the logic, all possibilities and probabilities, even considered the MS2 might not start the engine immediately (heaven forbid) and battery voltage may drop below the 5V reg chip's requirement (it's not an LDO in this case because of the current required) and if you add all the possibilities up, the sequence is quite complex.

In your scenario, it's the reboot/TS load time if you attempted multiple engine re-starts (repetitive key on/ key offs) that is the killer on the logic front.

One of the guys on the RPI wikis did suggest a supercap when they were talking about a UPS for the RPI (instead of a lead/acid battery) to cover the shutdown - seems a bit OTT (and pricey) compared to logic :)

But I'm open to suggestions as usual :)

Schrödinger's cat - so which one am I ???


Carl S
Forum Mod

User Avatar

1927 Posts
Member #: 1761
Stalker

Bristol

Why would you be turning the key to position zero to restart, Rod?

Unless you need to flash the MS2 of course, that's the only situation I can think of where you would need to cycle the barrel switch all the way off and all the way back again... but even then, I would have thought you would be in a position where you could wait for the pi to shutdown properly and start back up.


Rod S

User Avatar

5988 Posts
Member #: 2024
Formally Retired

Rural Suffolk

On 23rd Nov, 2012 Carl S said:
Why would you be turning the key to position zero to restart, Rod?

Unless you need to flash the MS2 of course, that's the only situation I can think of where you would need to cycle the barrel switch all the way off and all the way back again... but even then, I would have thought you would be in a position where you could wait for the pi to shutdown properly and start back up.


Carl,

You are absolutely right, most of the "logic" can be done by myself and Graham's right hand on the ignition switch.... *happy*

But, partly from my background in nuclear engineering, I prefer to take the "end user" - and that includes me - out of the equation.

No offence intended, I just prefer a solution that can't be "broken".

Schrödinger's cat - so which one am I ???


Paul S

User Avatar

8604 Posts
Member #: 573
Formerly Axel

Podland

Any room on that new board for a switched/regulated 12v power supply for a monitor?

Saul Bellow - "A great deal of intelligence can be invested in ignorance when the need for illusion is deep."
Stephen Hawking - "The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge."


Carl S
Forum Mod

User Avatar

1927 Posts
Member #: 1761
Stalker

Bristol

Fair enough Rod :) I know where you're coming from as well!

I have to try and write bomb proof software every day, and try to account for every eventuality in the process!


jbelanger

1267 Posts
Member #: 831
Post Whore

Montreal, Canada

Rod,

If you wait 5 or 10 seconds after a key off event before you start the shut down, that should be enough for most normal key on/key off events. And I don't think that would be an excessive drain on the battery.

Unless you're saying that the RPi isn't even up yet when the power is cycled so it wouldn't even have a chance to control the power source which could be an issue. But you still have this issue with what you're proposing.

Jean

http://www.jbperf.com/


Rod S

User Avatar

5988 Posts
Member #: 2024
Formally Retired

Rural Suffolk

On 23rd Nov, 2012 jbelanger said:
Rod,
Unless you're saying that the RPi isn't even up yet when the power is cycled so it wouldn't even have a chance to control the power source which could be an issue.
Yes, that is the worst case scenario we are trying to cover, it actually seems the most likely one to happen. We want a 60 second window (Graham has got boot and TS load to less than that (without overclocking)) so that is our aim.

On 23rd Nov, 2012 jbelanger said:
But you still have this issue with what you're proposing.

I think I can get around that one in simple CMOS logic chips (with a bit of C/R timing) unless I try to cover a loss of battery during any of the possible vents - then I would still need a supercap or something similar *happy*

Schrödinger's cat - so which one am I ???


jbelanger

1267 Posts
Member #: 831
Post Whore

Montreal, Canada

What you could do is use a 555 to keep power on for the first 60 seconds then use an output on the RPi. When you see a key off, wait a certain amount of time and shut down. This way you don't care about the user power cycles when starting and you don't have to determine if there has been a stall or other specific events.

The only problem is if a user turns power off after a while and turns power back up after your time out period; this will mean the RPi is in shut down mode when power goes back on. But that should be a very rare event and I don't see how you can avoid having a similar scenario with any solution.

Jean

http://www.jbperf.com/


sturgeo

857 Posts
Member #: 1778
Post Whore

Northants

This is one thing that concerns me, the fact that the "recommended" way to shutdown is just to unplug the power as stated on the manufacturers website.

What OS are you running Rod? I noticed you were running a web browser in one of your pictures, do you know if plugins like flash & silverlight can be made to work?


Rod S

User Avatar

5988 Posts
Member #: 2024
Formally Retired

Rural Suffolk

On 23rd Nov, 2012 sturgeo said:
This is one thing that concerns me, the fact that the "recommended" way to shutdown is just to unplug the power as stated on the manufacturers website.


A good point - but there are quite a few posts in the various RPi wikis about SD card corruption even though they originally said just unplug it.

In fairness we've only experienced it once (I'll let Graham explain if he sees this) but you wouldn't unplug a desktop PC if you could shut it down properly ??? So it just seems more sensible to invoke a proper shutdown routine if it's doeable (which we think it is).

On 23rd Nov, 2012 sturgeo said:
What OS are you running Rod? I noticed you were running a web browser in one of your pictures, do you know if plugins like flash & silverlight can be made to work?

Again. I'll let Graham explain, I'm the hardware person, not the software *happy*


EDITs - typos

Edited by Rod S on 23rd Nov, 2012.

Schrödinger's cat - so which one am I ???


Rod S

User Avatar

5988 Posts
Member #: 2024
Formally Retired

Rural Suffolk

On 23rd Nov, 2012 Paul S said:
Any room on that new board for a switched/regulated 12v power supply for a monitor?


Paul,

Not entirely sure what you mean.

The monitors Graham and I are using are 12V anyway with a wide range of input voltage (all around 12V) but I could easily add a filter and switch it from the RPi supply logic - actually that seems like a good idea now you mention it....

Schrödinger's cat - so which one am I ???


Rod S

User Avatar

5988 Posts
Member #: 2024
Formally Retired

Rural Suffolk

On 23rd Nov, 2012 jbelanger said:
What you could do is use a 555 to keep power on for the first 60 seconds then use an output on the RPi. When you see a key off, wait a certain amount of time and shut down. This way you don't care about the user power cycles when starting and you don't have to determine if there has been a stall or other specific events.

The only problem is if a user turns power off after a while and turns power back up after your time out period; this will mean the RPi is in shut down mode when power goes back on. But that should be a very rare event and I don't see how you can avoid having a similar scenario with any solution.

Jean


Jean,

The various logic sequences are quite numerous..... but like in your second paragraph, it's the "very rare event" that will destroy the logic :)

Schrödinger's cat - so which one am I ???

Home > Show Us Yours! > A couple of new PCBs - but especially the RPi...
Users viewing this thread: none. (+ 1 Guests) <- Prev   Next ->
To post messages you must be logged in!
Username: Password:
Page: