Welcome to the MP3Car.com forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact contact us.
|
03-28-2008, 04:17 AM
|
#16
|
|
Newbie
Join Date: Sep 2006
Posts: 41
|
So I could literally just do this and bring the IO to ground when I want to start the system up?
|
|
|
03-28-2008, 08:03 AM
|
#17
|
|
Newbie
Join Date: Sep 2006
Posts: 41
|
Here is the latest version using a tiny84. It doesn't have a full USART so I'm not going to use it for that.
Power on/off will be controlled by the remote from the car head unit, it will only power the laptop on when remote & ignition are on. When it senses remote is off, it will turn the laptop off, this will be a neat integrated solution.
I also added an LED for status reporting and a voltage divider so it can measure the car battery and prevent a startup if there is a voltage problem.
Also, I was looking at that high-side driver and would love to use one.. If I could find out where to get them!? Maplin, Farnell & RS don't have them on their sites....
Last edited by Shad0wca7 : 03-28-2008 at 08:10 AM.
|
|
|
03-28-2008, 02:18 PM
|
#18
|
|
FLAC
Join Date: Mar 2004
Location: Florence Yall, BFKY
Vehicle: 98 Trans Am
Posts: 1,701
|
Looks good to me. Not sure about the TVS connected directly to the battery though. Probably isn't needed.
__________________
XPort 1.24 -GPS port splitter, logger, and USB device resume fix
|
|
|
03-29-2008, 05:16 AM
|
#19
|
|
Newbie
Join Date: Sep 2006
Posts: 41
|
Mildly updated version, relay coil and transistor are now on a protected 12v supply
Soon to come: Buying the components and making it work!
|
|
|
03-31-2008, 03:46 PM
|
#20
|
|
Low Bitrate
Join Date: Aug 2003
Posts: 64
|
You may want to add a jumper block (say; on PA2-5) so you can select time settings for various situations withouthaving to reload software in the microcontroller.
I'd probably also connect the battery monitor to PA1, as you can then use the AIN0 function to cause a software interrupt when certain tresholds are exceeded, even when your standard routine is off doing something else.
I'd also add a diode between car_remote and +5V, as well as car_ignition and +5V, such that if the 12V_CONST connection fails you don't end up with 5V on your inputs and 0V on Vcc. Just a precaution.
I would add a zener to the battery monitor port. You now divide by 10, which means any surge of over 50V may damage the port itself. A zener should snub that. Better yet, do a search for high-speed surge protector diodes, they are much more effective than ordinary zeners.
Last but not least I'd think again about some of the components you selected. Why use a large 4004 (1A, 400V) diode when all you want is a signal diode? Why a 1A fuse when this circuit draws 100mA tops? Why a 7805 when a 4.7V zener would do just fine?
|
|
|
04-01-2008, 06:34 AM
|
#21
|
|
Newbie
Join Date: Sep 2006
Posts: 41
|
Thanks for the points, all definately something to think about. I'm not quite clear on your meaning of putting a diode between car_remote and +5.. I can't quite see how that works?
I will add a zener to the battery monitor port (4.7v) as well as replace the 7805 with the 4.7v zener as well. Definately a good idea. As for the 4004, I just have access to a lot of free ones of those at the moment and it won't do any harm to overspec that component. You are right that the fuse is a lot larger than it needs to be, worst case I'm sure 200mA would suffice.
|
|
|
04-01-2008, 06:41 AM
|
#22
|
|
Raw Wave
Join Date: Apr 2000
Location: Surrey, UK
Vehicle: '97 Vauxhall Corsa 1.5 TD
Posts: 2,012
|
Quote: Originally Posted by scsirob 
You now divide by 10
11
__________________
6yr old first install died 20/8/2005 as result of bad bios flash.
New system : 6x5x2" contains 1GHz C3 PCM9373, ISR based PSU, 512Mb flash DOM, 8Gb CF HDD, 98Lite, DirectShow based frontend.
GPS : Rikaline 6010.
Display : LTM08C351 + LVDS receiver.
|
|
|
04-01-2008, 07:52 AM
|
#23
|
|
Newbie
Join Date: Sep 2006
Posts: 41
|
Quote: Originally Posted by Rob Withey 
11
I was pretty sure it was 10 too O_o. Another thing is that I was fiddling with the idea of using a transistor to signal the pc_on incase I can't pull the signal low enough with a diode. I don't understand how I can make the 2 pin header unpolarised if I am using an npn transistor?
|
|
|
04-01-2008, 09:43 AM
|
#24
|
|
Raw Wave
Join Date: Apr 2000
Location: Surrey, UK
Vehicle: '97 Vauxhall Corsa 1.5 TD
Posts: 2,012
|
Quote: Originally Posted by Rob Withey 
Looks good.
Most power switches are between a signal line and ground. You can replace them with an open collector NPN transistor just like the ones you are using to switch the relays.
The relay is more portable in that it will work when the power switch is not configured in this way - might be best to stick with the relay.
Quote: Originally Posted by Shad0wca7 
I don't understand how I can make the 2 pin header unpolarised if I am using an npn transistor?
You can't (easily). Stick with the relay if this is a requirement.
__________________
6yr old first install died 20/8/2005 as result of bad bios flash.
New system : 6x5x2" contains 1GHz C3 PCM9373, ISR based PSU, 512Mb flash DOM, 8Gb CF HDD, 98Lite, DirectShow based frontend.
GPS : Rikaline 6010.
Display : LTM08C351 + LVDS receiver.
|
|
|
04-01-2008, 01:24 PM
|
#25
|
|
Newbie
Join Date: Sep 2006
Posts: 41
|
I just did a little test with the tiny84 and the diode method, works great so I will stick with that for now.
|
|
|
04-03-2008, 05:48 AM
|
#26
|
|
Newbie
Join Date: Sep 2006
Posts: 41
|
Ok, it is updated now.. hopefully this will be the 'final' version. I added another line for PC Power so now it doesn't matter how the switch is connected, both lines will be drawn to ground and the pc switch should toggle.

|
|
|
04-03-2008, 04:10 PM
|
#27
|
|
Low Bitrate
Join Date: Aug 2003
Posts: 64
|
The jumper block won't work this way. In your software you can define the AVR input pins as Hi-Z or with pull-ups. When you define them Hi-Z, they will be floating when no jumper is present, and you'll get random readings. When you define them with internal pull-up, your input will always read '1', regardless if you have a jumper or not.
You should get rid of the resistors and tie pins 2,4 and 6 to ground. Define the input pins with pull-up. No jumper always reads '1', jumper present reads '0'.
You probably also want to re-arrange the pins a bit. If you leave the jumper block on the MOSI/MISO lines, you will have to take all jumpers off before attempting in-circuit software updates.
|
|
|
04-03-2008, 04:37 PM
|
#28
|
|
Newbie
Join Date: Sep 2006
Posts: 41
|
It would work if I set the port to 0 however I suspect that setting with pullup and having the jumper to ground whilst keeping the resistors may allow ISP without removing jumpers.
|
|
|
04-04-2008, 11:06 AM
|
#29
|
|
Low Bitrate
Join Date: Aug 2003
Posts: 64
|
Not according to Atmel's spec. You can not set the port to 0, because it's an input, not an output. As input, the only options are Hi-Z or Pull-up.
If you jumper to ground and keep the 10k resistors in place you are building a voltage divider between the internal pullup resistor and the 10k resistor. The internal resistor can be anything between 30k and 60k (says the specsheet). If (worst case) your chip does 30K and you use a 10k pull-down, then your input sees ( 5V / (10k+30k) * 10K) = 1.25V. The AVR will see that as logical '1'.
The sheet defines logical '0' as < 0.3V, so you'd need at most 1.8K resistors to pull the input to a defined low level. That's probably too much load for ISP to work properly.
Take a good look at the spec sheet:
http://www.atmel.com/dyn/resources/p...ts/doc8006.pdf
|
|
|
04-04-2008, 12:28 PM
|
#30
|
|
Newbie
Join Date: Sep 2006
Posts: 41
|
Actually after reading the spec properly I'm pretty convinced the original setup will work, it will see a logic 1 otherwise it will be tri-stated and not used. The same applies for the remote_start and ignition pins etc as they all sense a logic 1.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:41 PM.
|
|