Show Posts
Pages: [1] 2
1  Using Arduino / General Electronics / Re: Arduino Freeze - In Car Controlling on: August 07, 2013, 03:55:38 am
I've Found It !
This was the 3.3V Chip of the I2C Keypad. (Ground Problems)

Now it Works better, but i'm still having problems with the I2C, witch sometimes Freeze the arduino...
There is an update to the Library WIRE ? When Bugs on I2C, it can't recover itself .... and freeze arduino.
2  Using Arduino / General Electronics / Re: Arduino Freeze - In Car Controlling on: August 01, 2013, 02:22:59 pm
I've try to remove the alternator.
I've add De-coupling just before Vin (Last schematichttp://www.thebox.myzen.co.uk/Tutorial/De-coupling.html)
I've try to isolate the alimentation of the arduino /=>/ Mosfet, and to connect it directly to the battery.
I'm still having clamping diode on my transistor before the mosfet.
No change.

Back EMF ? Voltage Spike ?

i'm thinking to change the mosfet of the coil by a Relay ?
But elswere my car is still running fine ... smiley
3  Using Arduino / General Electronics / Re: Arduino Freeze - In Car Controlling on: July 29, 2013, 03:33:34 am
How are you powering the Arduino? If you are using the main battery in the car, and the battery is getting a bit weak, the output voltage can really sag when the starter is engaged.

For the input, i use :

It might remove the noise ?

The freeze happen when the started is engaged or when i accelerate.

My car has a load resistor bypass for the ignition coil when the starter engages. It is a 6 volt coil in a 12 volt environment. It uses a load resistor to drop the coil voltage to 6 volts when the starter is not engaged.
Interesting, can you tell me more ?

Hi, might I suggest that any switching to control any of the cars functions be done with an opto coupler, and connect that to switch the MOSFET on/off.
This will help to isolate spikes and surges.
Yes, i know, but it take a lot of component and take more place on PCB ...
A car is a very hostile environment for a computer. Protection of the pins can be done with this:-
http://www.thebox.myzen.co.uk/Tutorial/Protection.html
http://www.digikey.com/us/en/techzone/microcontroller/resources/articles/protecting-inputs-in-digital-electronics.html

But you also need some good power supply decoupling, like the one for the motor in the last circuit of this page.
http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html

I was hoping, with my DC- Buck conveter i can remove the noise... But the problems is ever here.
I've try with Campling Diode just after the resistor :
Arduino--Resistor--Transistor--Mosfet(coil ignition)
                       |-Clamping diode


So, now, i don't know what Freeze my arduino ... smiley-sad
4  Using Arduino / General Electronics / Arduino Freeze - In Car Controlling on: July 24, 2013, 05:31:21 am
Hi everybody,

SInce somes weeks i'm trying to integrate arduino in my car.
I've Added Keypad to start the car, and some sensor.
I use 73A Mosfet on heatsink, to switch Starter, ACC, Coil.

Schematics :
{See attached picture}

Problems, when the car star, arduino freeze sometime when the starter run, or 10 seconds after starting.
It's a true freeze, Serials are Out of Work, i can only Reset or power off.

I've try to add a DC-DC Buck converter to supress alimentation noise.
I've Add Zener Diode 0.5W 5.1V on the pin witch go on the transistor.

Edit:
I know, the coil can have a feedback over 100v, can it return by transistor in arduino ? If it is possible, how to protect it ?
5  Using Arduino / General Electronics / Re: Mosfet PNP - Burn on: June 30, 2013, 04:46:40 pm
I've doubled my Mosfet for the Starter because it drain (13 V/0.6 Ohms) 21 Amps ...
Seems like to work but the Two Mosfet are very hot ... i think to buy IRF4905.

Maybe you can give me some references of goods P-Mosfets ?
6  Using Arduino / General Electronics / Re: Mosfet PNP - Burn on: June 30, 2013, 04:27:37 pm
Quote
No comment...
Does that mean you don't understand it and will ignore it? If so I wonder why you are asking questions if you don't want answers?
No Comment because a big error ... i don't know why i haven't see that.

Can i replace irf9540n by a IRF4905 ?
7  Using Arduino / General Electronics / Re: Mosfet PNP - Burn on: June 30, 2013, 06:25:54 am
When I woke up I'll go see what the rest of the circuit and it will change.

Quote
p-MOSFETs in a high side-switching circuit have source to the supply, drain to the load
(first major error in the circuit).
In my schematic, Source is the source, drain is to the load ?


Ah, yes, but you connect the drain of one MOSFET to the gate pull-up resistors - this is what mislead
me, and its completely wrong.  pull-ups are always to the supply, otherwise you won't have pull-up
action when the device is off, so it won't turn off properly, so it might be half-on, and half-on means
the device explodes...

No comment...

R7 = 2.2K and R6 = 10K
EDIT: Replace B5 with solenoid and snubbing diode.
What more do you want?

On google, i've find schematics with 1K resistors.
How to know the good value ?
8  Using Arduino / General Electronics / Re: Mosfet PNP - Burn on: June 30, 2013, 04:44:22 am
When I woke up I'll go see what the rest of the circuit and it will change.

Quote
p-MOSFETs in a high side-switching circuit have source to the supply, drain to the load
(first major error in the circuit).
In my schematic, Source is the source, drain is to the load ?

Quote
Secondly when switching a solenoid or any other inductive load a flyback diode is needed
(second major error in the diagram).  Wihout it when you first switch off the solenoid you
will destroy the MOSFET (many joules of kickback energy)
It's my **** mistake ! Big error, i did not realize before you tell me this.
But a mosfet haven't an internal diode ?

About the current of the solenoid, i will mesure it ASAP.
9  Using Arduino / General Electronics / Re: Mosfet PNP - Burn on: June 30, 2013, 01:58:31 am
How to use it with the same source :


I've One input with 13 Volt IN and 3 Output
Like this attachment.
I was doing this with relay before.
10  Using Arduino / General Electronics / Re: Mosfet PNP - Burn on: June 29, 2013, 06:04:53 pm
R7 = 2.2K and R6 = 10K
What more do you want?
how to use it with the same source ?
Why my mosfet have burned ?
11  Using Arduino / General Electronics / Re: Mosfet PNP - Burn on: June 29, 2013, 04:56:17 pm
Google: mosfet p channel arduino

Not the same as Me ?
I've attached pics at my last post

I've used this google image ... to realise that
12  Using Arduino / General Electronics / Re: Mosfet PNP - Burn on: June 29, 2013, 04:49:50 pm
...

How can i do to turn on and off my P-channel Mosfet with my arduino ?
13  Using Arduino / General Electronics / Mosfet PNP - Burn on: June 29, 2013, 04:03:21 pm
Hi all !

I've try today to use PNP Mosfet, with NPN Transistor.
I used :
- PNP Mosfet IRF9540n
- NPN transistor 2n3904
- 1K resistors (Not 220, Error, only 1K)

But the Mosfet have burned, and was used to turn ON solenoid of the starter of my car.

I've attached the schematic.

Regards.
Benda(France)
14  Using Arduino / Programming Questions / Re: Sketch Creation - "...Of Memory EEPROM" - Car Engine Controling on: June 29, 2013, 03:43:03 am
For people who was interested, the story continue here :
http://brenamanf.wordpress.com/
15  Using Arduino / Programming Questions / Re: Sketch Creation - "...Of Memory EEPROM" - Car Engine Controling on: February 26, 2013, 01:54:43 pm
Everithing look like works like a charm.
Why ?
Let me explain to you:
Spot the disparity:

char passCar;

passCar = EEPROM.readInt(10);

Yes it Was a big ... mistake

Code:
Serial.println("Clavier P: "+char(clavierP));
By doing that you are inadvertantly using the String class still.  You'd be much better doing:
Code:
Serial.print("Clavier P: ")
Serial.println((char)clavierP);
... It solve a lot of problems ... Incredible !

Quote
But i need to concate Integer when keyPress, and 5+1 = 6 | Not 51 ...
With string type, "5"+1 = 51.
What is the type/value of the key? If you have something like char key = ???; in your code, and key is '5', for instance, then byte keyVal = key - '0'; will result in keyVal being 5. Surely you can figure out that 5 and 1 as separate keys should not produce 6. And, it should be pretty obvious that adding a string ("5") and a value will not result in a value.

Multiplying the existing value by 10 and adding the next value is a useful technique to master.
I shall also bow to that experience ...


For the SPI Bus witch was being crazing:
The Keypad Had buffer witch need to be sometimes cleared ...
Quote
keyPad.clear();


To conclude, With some optimisation on Type, using more Byte and Boolean ...
Everithing Works
Pages: [1] 2