Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Cannot control IRF530's by Picaxe

Status
Not open for further replies.

thebullet

New Member
I cannot controll the 3 IRF530's on my second board. That runs 3 12v lights.
I am sending 12v into a board by a voltage regulator (7805) this is sending 5v's to the Picaxe board. I have picaxe outputs that connect to the lights on the second board. When I program the output to come on and off on the picaxe board nothing happens, the light always stay on they only go off when I switch the mains off. How can I control when the lights go on and off?

Thanks for the help.
 
A better NFET will help.
 

Attachments

  • TurnOn.jpg
    TurnOn.jpg
    161.5 KB · Views: 376
Schematic, the diagram of the circuit you've actually built.
 
I have go it to work kind of. All lights can be turned off by the command high 5, high 6 and high 7. When this is typed all go off. But when one is removed so it leaves High 5 and High 6 still all stay off.. When i remove all code still the lights do not come on. Only when I take off the power and back on again all lights turn back on. Maybe I need some special code. And I shall try and dig a circuit diagram out..
Thanks.
 
The IRF530 Mosfet is guaranteed to turn on fully when its gate to source voltage is 10V. Some barely turn on with only 5V.
You need a "logic-level" Mosfet.
 
Or a couple extra transistor to level shift.
 
I have go it to work kind of. All lights can be turned off by the command high 5, high 6 and high 7. When this is typed all go off. But when one is removed so it leaves High 5 and High 6 still all stay off.. When i remove all code still the lights do not come on. Only when I take off the power and back on again all lights turn back on. Maybe I need some special code. And I shall try and dig a circuit diagram out..
Thanks.

You have a PIC I/O register problem. The Pins used to control your lights have to be declared as outputs in a register called TRISx, as well as writing 0s and 1s to the specific port pins for PORTx.
 
So is it just as simply as changing the code I am using? because all 3 IRF 530's are getting so hot even on a heat sink and lifted off the board so it cannot be on for long.
 
The Pins used to control your lights have to be declared as outputs in a register called TRISx, as well as writing 0s and 1s to the specific port pins for PORTx.
Though we don't know what PICAXE thebullet is using, for the most part "High X" in BASIC (PICAXE's programming language) sets the pin as an output automatically.

Ken
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top