3 New Notifications

New Badge Earned
Get 1K upvotes on your post
Life choices of my cat
Earned 210

Drag Images here or Browse from your computer.

Trending Posts
Sorted by Newest First

Relay turns on the microcontroller pic12f675

One friend asked to collect him turns the relay without relay, i.e. on the transistor key. And just on went on our website this subject the Electronic switch turns. Collected shemku, but work was not satisfied, because the relay works, constantly generates pulses. Normal turns the relay works as a breaker only when the connected load. Then I decided to apply my programming skills in the environment of Flowcode. For a basis took the pic12f675 microcontroller, you can make the firmware under pic12f629. Code is not complicated, I will not say that he is absolutely correct, but the relay is working properly. The chain added the text. That is, when the power relay is, but the load is not connected, the relay is silent. And when you turn on the load led indicator starts flashing indicating that the relay is working. As a power key applied powerful p-channel MOS.
Here's a diagram of the device.

Relay turns on the microcontroller pic12f675relay turns on the microcontroller

Immediately made the device in the standard housing and used SMD components.
Relay card turns

Relay turns on the microcontroller pic12f675The view from the side parts.

Relay turns on the microcontroller pic12f675side of the tracks

Photos of the finished device.

Relay turns on the microcontroller pic12f675

Relay turns on the microcontroller pic12f675

Relay turns on the microcontroller pic12f675

Relay turns on the microcontroller pic12f675

Download map, a Board, firmware, source code

214 Comments
Sort by:
C
Cassidi 05.08.19

YuraLviv

Your problem is solved you buy LEDs with the so-called "deception"

in Kyron inside the relay there is a controller, how does not know. But the fact that they have changed in the facelift turn signals on the diode, that's for sure

x
xxxSANYAxxx 05.08.19

the Chinese have such a long time on aliexpress sell

W
Woland018 05.08.19

migland

Elementary.
Suppose you have an Audi 100, there are 5 modes
1) the Lever itself β€” omyvayki wipers.
2) Racah down doesn't fix. β€” working wipers-order-without water
3) the lever up 1 speed without water
4) the lever above the 2 speed without water
5) the lever above the 3 speed without water
a) let's Say 2 times for 1 sec. press down on the control lever janitor (wodes relay in programming mode).
b) Further vkluchaet omyvayki and janitors (first testing)
C) Next, the relay remembers the pause time again vkluchaet myfico and wipers (second testing) relay memorized the interval to 1 speed.

Wheel to adjust the pause IMHO much more convenient. I have so done, any interval can be one movement to put.

i
ilya-e21 05.08.19

Well, in principle, Yes... probably so. If NT Space or Grant to make orange, blue or any other size, then Yes...dig for sure.

W
Woland018 05.08.19

So, regular lighting is not the case. Here the question can or cannot be handled either at the customs if the car is entered by a private individual, or with the approval of the TC before the official sales. If approved there, the affair to argue just don't have the right, but on imported cars innovations, if any, do not apply. Here on the contrary, if he will alter the European scheme β€” there is a small chance that you can get for changing the design of the vehicle.

i
ilya-e21 05.08.19

I have Catoche originally orange dimensions (though in a transparent ceiling) in front and completely red lights in the back.
While none of the Valiant Police Officer of Moscow, the Moscow and Vladimir regions, in a head did not come to impute (FIE-FIE-FIE)... Yes, us, "americanwoman", kind of a lot on the roads... all of them not just american style, namely "America": the Orange envelope in front and red in back.

The only thing that pisses me off in amerikosskoy scheme, is to turn off (stop blinking) "emergency" when pressed on the brake and long periods of blinking. Too lazy to understand why and why it was made...

W
Woland018 05.08.19

We have in the city on the roads the police, not for street cameras hung like Christmas tree lights) only Appear when raids are conducted, for example, anti-drunk, anti tuning, against the minibuses, etc., which is not often.
But go in an area where they under every Bush and each striped stick waving and attitude in each case is different: a look that gross violations there and wish them a happy journey, and someone will look for something to golubitsa, because the authorities he put the plan protocols and easily to the turn signals of the trailer, from what negramaro one stop (well I did not see them, missed it when the bulb burned out) I still say "going to the place of repair or Parking" that the rules provide, and here I do not know how to be))

Y
YuraLviv 05.08.19

In principle I think you should nasty Drayvovaya with your city this size, and he had to ask the police specifically in your town applies to such dimensions πŸ˜‰

W
Woland018 05.08.19

Each time the affair to pay tribute to the only to afford a yellow bulb? Oh nonsense, I'm not that rich)))

Y
YuraLviv 05.08.19

Brother, you forgot the country in which you live ;)

W
Woland018 05.08.19

YuraLviv

Google β€” roughly the turn signals-dimensions.

And our traffic this option allowed? Kind of like dimensions can only be white.

W
Woland018 05.08.19

Turn signals β€” not the middle, they are brighter to be not necessary, or can the eyes to beat to start. Well, instant start... like someone I would be broke just because of this fuss)))

S
SundayDriver 05.08.19

A little brighter, and I like the instant on / off LEDs.

W
Woland018 05.08.19

SundayDriver

I could really use. The classic relay led turn signal period of operation depends on the current load, and I can't put svetovodnoy turn signal, because due to reduced almost 2 times the load starts to trigger too often. I don't know what the hell modern machines are still primitive temoprarily use.

And the meaning of tulit LEDs in the turn signals? Just because incandescent bulbs old? Yes well, nonsense. The main thing β€” that the system worked and worked reliably, if it occurs, do not care how modern it is.

6
6ecne4HbIu-e3gok 05.08.19

Liked, because all the words are almost Russian, a lot of friends, but that does not understand. Credit! :)

D
David694 05.08.19

OPELVB

But what's the catch this relay?

And it does not click)))

l
lexandr14 05.08.19

fhntvsmart

When svetodiody in turn put the regular relay very quickly kleztet.

Svetodiody in the turn signal not to put a halo and wings in the way. And yet the priest in the Church to repent will make when you see svetodiody in the turn signals.

l
linuxart 05.08.19

FedMe

it should be like in seat Ibiza, at burnout of light bulbs signal to the ECU does not start the engine until the clearance and stop will not change on their own do not go :)

Tin kind. Burned from you in the woods and light scribe. The nearest parts store 50-100 km... :)))

M
MisterToptiga 05.08.19

wow)

F
FedMe 05.08.19

MisterToptiga

Yes? I thought he kept the basic properties of conventional relays.

it should be like in seat Ibiza, at burnout of light bulbs signal to the ECU does not start the engine until the clearance and stop will not change on their own do not go :)

M
MisterToptiga 05.08.19

Well the idea is that if you specify a regular relay in that circuit consumes less power, it will be normal to blink and control the "burnt" diodes. Thought is here and implemented.

l
linuxart 05.08.19

Then it would relay has just started to flash quickly with the LEDs :)))

M
MisterToptiga 05.08.19

Yes? I thought he kept the basic properties of conventional relays.

l
linuxart 05.08.19

And? :) To relay that the topic starter β€” all the same, only made more complicated way :)

M
MisterToptiga 05.08.19

linuxart

One track cut and clicking OK.

I have also done. But now, if you stop working some sort of led, the flashing frequency does not change, and you will not know about the failure of the Shine.

F
FedMe 05.08.19

I think the led effect is that the spiral will not stranitsa, I have a 80A alternator and electronics to a minimum, I do not care to save, but to each his own

l
linuxart 05.08.19

Balistae resistance will eat up all the winnings from the led. So these faux really only needed for cars with the diagnosis of the integrity of the lamps.

F
FedMe 05.08.19

there are ready-made relay without cutting tracks work with LEDs, and just the right led should be balastik resistance, then the relay is not necessary to invent anything

l
linuxart 05.08.19

Depends on the relay type.
www.drive2.ru/l/4899916394579182641/

V
Vadim-Reset 05.08.19

what road?

l
linuxart 05.08.19

fhntvsmart

When svetodiody in turn put the regular relay very quickly kleztet.

One track cut and clicking OK.

O
OPELVB 05.08.19

Ah, got it!

f
fhntvsmart 05.08.19

When svetodiody in turn put the regular relay very quickly kleztet.

O
OPELVB 05.08.19

But what's the catch this relay?

p
pappig 05.08.19

Nicely done.

m
motoman126 05.08.19

Smr8

this is necessary in mass production!

Has long since done, personally seen the device without relay 24V for trolleybuses.

m
motoman126 05.08.19

Mapoqep

chic stand ))

Before the homebrew in the West used a wooden bread Board arduino-diy.com/arduino-breadboard-kak-ispolzovat

l
linuxart 05.08.19

SundayDriver

I could really use. The classic relay led turn signal period of operation depends on the current load, and I can't put svetovodnoy turn signal, because due to reduced almost 2 times the load starts to trigger too often. I don't know what the hell modern machines are still primitive temoprarily use.

Cut 1 track and everything works as it should.

N
NordicKelt 05.08.19

Yes, I have about this remote and meant)

R
Razvedchik1-10 05.08.19

NordicKelt

Well, as an option extension. Or the bulb indicator.
Or just speaker louder)

www.drive2.ru/l/4891894/ I indicator sound soldered and norm)

N
NordicKelt 05.08.19

What option)

S
Sandryu 05.08.19

Yeah, to an audio amplifier)

N
NordicKelt 05.08.19

Well, as an option extension. Or the bulb indicator.
Or just speaker louder)

S
Sandryu 05.08.19

NordicKelt

It would also emitter a supply, so that they could hear what a turn on.

And those who have a relay box under the hood?)

L
Lexa666 05.08.19

Me too. Vidio silent

M
Magicys 05.08.19

Neponyal why

B
Bargamut 05.08.19

seamen73

But you did not do in the absence of small

Speaker-button of the earphone? ))
However, you will die quickly.

Well, or with the old motherboard beeper to take β€” "to shatter the nerves of the indicator". )))

s
seamen73 05.08.19

"p-channel" I just used Russian letter.

C
Cepreu 05.08.19

Since when IRF4905 has become the n-channel? He R-channel! Not because it changed the orientation=)

x
xxxSANYAxxx 05.08.19

that turns the relay on any flavor))- s.click.aliexpress.com/e/FyNrFQFIU it is not necessary to invent a Bicycle

K
KIMAN-XD 05.08.19

VT2 for what?
And only 7 foot high and a low level turns, how many volts?

m
motral 05.08.19

Polo tidy "clicks" like on all modern cars

d
dimedrol1978 05.08.19

Please help.Polo sedan not always click the turns and hazard lights.P.S.turn signal light on the mascara while blinking regularly.

n
nodmkua 05.08.19

not otdelaeshsya. We need to change the schema of the turn signals and the relay.

Z
Zombie47 05.08.19

There is a possibility to use third party program code to add the lazy turn signals?

V
VladleN93 05.08.19

I'd be freaked)

s
scubydu 05.08.19

clicks that's fine. New Kalina did the beeping. This is really annoying.

V
VladleN93 05.08.19

At its 9ΠΊΠ΅ also changed relay, once noted that it is very quiet clicks. But, on the other hand, when frequently turning on the lights or long time standing on the "emergency gang", the clicking does not bother as before)

s
scubydu 05.08.19

the case for small. now, to add an imitation sound of the relay. I the way the new relay does not like the fact that they are not heard. A little music included and go with the Blinker. Listen quietly

y
yanx 05.08.19

Praise the people with straight arms

S
SergeyAl2006 05.08.19

Well done!' It is a pity that such people with their heads not really needed:(

A
Artem16 05.08.19

VKVladimir

Then, this relay works with any load without changing the frequency of flashes. Buzzer to shut off.

Then leave the regular relay and a regular nagusky)

V
VKVladimir 05.08.19

If reliable, then control is not so often. I made myself a lamp β€” work for the fifth year, and I think will last more.

A
Artem16 05.08.19

VKVladimir

Then, this relay works with any load without changing the frequency of flashes. Buzzer to shut off.

How to control the operation of the lamps?

V
VKVladimir 05.08.19

Non-standard in order to reliably and was not like everyone else.

A
Artem16 05.08.19

First, any relay redesigns, and secondly, why put non-standard lamps?

V
VKVladimir 05.08.19

Then, this relay works with any load without changing the frequency of flashes. Buzzer to shut off.

A
Artem16 05.08.19

VKVladimir

You can add buzzer, then it will be heard.

then why all this troubles?)

A
Artem16 05.08.19

XS. On Toyota your light bulb never changed the turn signals. and she is already 24 years

l
lyuto89 05.08.19

Long life (1,000 times or more), a tiny current consumption (1-6% at the same brightness), sharp activated (the time of on.-off. very small)

A
Artem16 05.08.19

lyuto89

Understand why waste time when you put LEDs on the factory relay.

and why bother to put the LEDs?

A
Artem16 05.08.19

L200MINSKBajaT1

The author of the brain
In new carts all the smaller relays and all spatimouth on microprocessors and controllers

yeah... and then carrying a bundle in repair units comfort...

A
Avenger1986 05.08.19

The guise does not help, but a thick layer will not fit

A
Artem16 05.08.19

Avenger1986

But really to make a silent relay to the transistor, which is responsible for the work of janitors in the adjustment mode pause. And the annoying clicks. Relay, as I understand it, the usual five-pin. media.ffclub.ru/up272585-nLpb2MWLQJA.jpg

Okley relay Shumka) anything cheaper and more reliable

A
Artem16 05.08.19

so lucky), or not changed the lamp anywhere on the highway with your Blinker on...

W
WildSerj 05.08.19

Artem16

practice shows that quite the opposite) click religi decades, but the keys are in the turn signals die a lot. although old them a couple of years sometimes.

Oh? really? 8 years key blinks I
www.nexia-club.ru/f/remon...-sozdanii-beskontaktnogo/

A
Artem16 05.08.19

these things I know. the key with plenty of worth it, protected. however flying . moreover, if he died, then the turn signals stay on. for me it is the system simpler β€” the more reliable. and Suva in the block that would get to hell, the system influencing traffic safety is complete nonsense.

M
McSystem 05.08.19

XS. This is not observed. Can still approachavoidance criteria taken into account by the manufacturer?

A
Artem16 05.08.19

XS. I have 92 works...
and comfort fly packs. it is the key to the turn signals. on new machines almost.

M
McSystem 05.08.19

unacceptable, too, is very short live. 3-5 years.
And key to die, no reason with proper wiring and no short circuit, no twists, disorders isolation

A
Artem16 05.08.19

practice shows that quite the opposite) click religi decades, but the keys are in the turn signals die a lot. although old them a couple of years sometimes.

M
McSystem 05.08.19

Electronic switching is more reliable. With its own advantages.

A
Artem16 05.08.19

McSystem

The funny thing is that the replacement contacts for the fieldwork is pushing for the next step of acoustic pressure. duplicate incorporating the turn signals. Whether ralushai, or the Squeaker.
Ford Fusion sound like. So unobtrusive and at the same time visible!

then why this whole idea?) throw the Nutcracker, then assemble a circuit to generate clicks...

Y
YuNew 05.08.19

ru.aliexpress.com/item/Ne...3_10,afswitch_5_afChannel, single_sort_0_default&btsid=8d4b9587-192b-459c-84e1-4a09e44396f0

A
Aleksei328 05.08.19

I understand the diode light bulbs are usually used to quickly flicker ?

S
SAPHFEAR 05.08.19

Welcome! And where it can be found (the device for 3 flashes with a short touch)?

s
seamen73 05.08.19

there are other device and it's just a relay

M
MskSamovar 05.08.19

Have octals make a sound and the 3 flashes with a short touch

S
Shoewreck 05.08.19

In the key mode, even in continuous operation mode, the radiator is not needed, the resistance is negligible.

s
seamen73 05.08.19

The key is powerful enough without a heat sink in a pulsed mode.

n
necks 05.08.19

Good job! I only have one question: suppose we leave regular incandescent bulbs in the turn signals. How critical is the work of MOSFET without any heatsink?

L
Lionet 05.08.19

this car was not. now this system is easy to implement finished parts.
I'm on other people's machines automatic function is appreciated.

m
migland 05.08.19

And you had an automatic system of cleaning the windscreen?

L
Lionet 05.08.19

migland

Elementary.
Suppose you have an Audi 100, there are 5 modes
1) the Lever itself β€” omyvayki wipers.
2) Racah down doesn't fix. β€” working wipers-order-without water
3) the lever up 1 speed without water
4) the lever above the 2 speed without water
5) the lever above the 3 speed without water
a) let's Say 2 times for 1 sec. press down on the control lever janitor (wodes relay in programming mode).
b) Further vkluchaet omyvayki and janitors (first testing)
C) Next, the relay remembers the pause time again vkluchaet myfico and wipers (second testing) relay memorized the interval to 1 speed.

12vi.ru β€” there are options.
2 times to press for programming mode β€” a lot, tired. When you get used to good, and once a lot becomes), because sometimes you have to change modes several times in a few minutes. and I want to have automatic )

I
ISVLabs 05.08.19

why is that? for the sake of the fact that "I did it"? I understand the function of tracking the current and serviceability of light bulbs is not implemented?

J
JoniMarelli 05.08.19

Throw the firmware )

Y
YuNew 05.08.19

ru.aliexpress.com/item/Ne...3_10,afswitch_5_afChannel, single_sort_0_default&btsid=8d4b9587-192b-459c-84e1-4a09e44396f0

S
Suse 05.08.19

Counterparts transue ? 3102 ?
))) and can tailo once for TMI ?)

M
Magicys 05.08.19

As the saying goes, just would not hang))))

S
Syzyti 05.08.19

that's how the author got nothing better to do than to invent have been invented))
Still stand under it to do...

H
Hrom-n 05.08.19

Yes Yes Yes... Relay resistor)))

D
Dimesku 05.08.19

Hrom-n

Probably for the same reason that a voltage regulator is called a relay controller ))))

There was a time when the voltage regulator worked unacceptable, and went from there.

I
Inhaden 05.08.19

Yeah, Oh, those uneducated

H
Hrom-n 05.08.19

Probably for the same reason that a voltage regulator is called a relay controller ))))

I
Inhaden 05.08.19

Why is it called a relay?

M
Magicys 05.08.19

WHY?!

s
somebody 05.08.19

So I have a second reluse buggy. Hang the wipers. Got. The punishment to me for what Basescu relyushku native on his barrel brushed on programmable vases. Fu...

s
seamen73 05.08.19

No. it is another device.

G
Gr1nD 05.08.19

Is it possible to collect such a relay with a "quality indicator"?

s
seamen73 05.08.19

the buzzer is to add not a problem, but many hate it.

E
Evgenson 05.08.19

such relays are quiet, I gathered with buzzer.

B
BE1800AA 05.08.19

If the load is short circuit, it how to react to the scheme? If there is short circuit protection?

p
propshaft 05.08.19

No, it was a great show, not going to redo anything. :)

O
Onlain24 05.08.19

From Nissan Primiero find... she has water on the left takes 1ΠΊ10

p
propshaft 05.08.19

I would have to do relays, counter to operate headlight washer in order 1 time out of 5 the output would be the impulse of 0.8 sec...

d
dimedrol1978 05.08.19

With his "problem" figured out.Before turning signal seat belt clicks off the rotations.Need to travel strapped.

R
Riba77 05.08.19

Many don ' t know how to turn on the Blinker)

r
radteh 05.08.19

It is a pity that many do not pay attention to clicks and go with the Blinker.

R
Riba77 05.08.19

In many machines, and there clicks the buzzer

r
radteh 05.08.19

DYm00n

When the turn signals or emergency lights no clicks beluhi. Just silent blinking

I turns the relay built into the tidy, that's only in the collection tubes no relay as such, but clicks are. And something tells me that clicks there not just done.

D
Darsam 05.08.19

purely visually by tidy)

m
migann 05.08.19

how, then, to find out what turn on and when the lamp is in turn will burn out?

D
Darsam 05.08.19

rem515

can a standard relay to modify a little bit and it's the same adequately will work with LEDs."OK GOOGLE alteration turns the relay VAZ". IMHO, reinventing the wheel or using the laptop to check the multiplication table. many thanks to the author for bringing the ideas up and running, and time spent not drinking alcohol, but mental, creative. only, now the clicking will not.

it is possible, but the standard is ticking, and it's not)

D
Darsam 05.08.19

to buy the option is the relay?

Z
Zeknus 05.08.19

I think if you embed a micro-controller it was possible to make it make sounds clicking.

s
seamen73 05.08.19

There's just I have the base of the first transistor is put on the negative through a resistor.

l
libra74 05.08.19

good day, I have a question on the concept of resistors 6 and 7 on a mounting why and what is wrong with the circuit Board because there are differences between schematic and routing, maybe I'm wrong explain, and then read all the comments and realized that no one was paying attention to it, discussing why only one PIC there is not like not collect, what clever...if possible send reply to mail leon [email protected] thank you in Advance

s
seamen73 05.08.19

Yes. Don't sprint and use normal programs.

l
libra74 05.08.19

I work in the sprint, I understand it is that on the circuit Board R3 or am I wrong on this and asked to paint the resistors under the PCB

s
seamen73 05.08.19

I'm confused. Looked through the diagram. I have been in charge attached the led to it and the power goes through a resistor of 1.5-2K. You can change the cost. You work in DipTrace.

l
libra74 05.08.19

if You don't mind please write the resistor values according to the printed installation, because there is not clear where to solder, not all rooms are visible resistors...

l
libra74 05.08.19

repeated the scheme, not working, 1) the voltage controller is 2.6 V. 2) 7-th controller output is the 0.00 level. 3) removed the controller from the socket the voltage went up to 4.6 V. checked all I can not understand where a jamb. Checked the controller, the worker. Checked with a simple diagram flashing led everything works checked the tester on the 5th leg went the pulses, that is, the controller working. Explain where the jamb I can not understand have tried everything re-checked several times, didn't work, so it is the electrons ripped, just a matter of principle.

s
seamen73 05.08.19

it is to be zamorochena

S
Shumsky90 05.08.19

um... And what the hell a MK where can blunt the multivibrator to Paphnuty?

H
HTORMA 05.08.19

Fun and easy, it is necessary to repeat. Thank you.

M
Mirage1609 05.08.19

colleagues and take orders? I need an analogue A0025427619 MERCEDES BENZ
Compressor relay
transistors

M
Mirage1609 05.08.19

I understand the profit code compressor suspension have ceased to be turned off . Just the fatigue of the contact group

J
Jozyk 05.08.19

and what is the meaning of this "relay"? I know, modify the relay, that would be when you tap the turn signal lamp blinked three times, but then what's the profit?

s
seamen73 05.08.19

I did it before the Chinese began to produce

G
Glavnyiy-Mehanik 05.08.19

Tried in vain, the Chinese have already done here is the link ali.pub/1zwltn copy and paste into the address bar .

D
DeniskaNNN 05.08.19

On my Audi A4 as we sow it is the clicking relay. It seems there so long that all transistors have, and clicked something special to driver heard.
So without clicking it really was uncomfortable, I even diagnostics to dealer in another city went.

C
Cohobah 05.08.19

But what about all the familiar clicking of the relay ))))

A
AndreyKiev911 05.08.19

When you burnt the bulb current decreases, the bimetal is sub cooled, the regular relay starts two times faster to work by alerting the driver about this serious problem. Yes and no ticks, forgetting to turn off rotate, it is possible for someone to mislead and to create an emergency situation. I would not change. Both almost like the idle stop signal, is fraught with...

r
r4seryoga 05.08.19

L200MINSKBajaT1

The author of the brain
In new carts all the smaller relays and all spatimouth on microprocessors and controllers

Yes, but to put led bulbs in the turn signal does not work anyway β€” very often blinks

v
vec1971 05.08.19

Zoomer clicks in the dashboard, and this relay should be finished, to be polite turns and Zoomer also connected.

A
Andron-Chik 05.08.19

What a 555 timer is not pleased?

s
seamen73 05.08.19

will not work. The fact that the 629 no ADC.

C
CergeyAV 05.08.19

I wish You good health.If You do not complicate, do the firmware for pic12f629,because 10 of them,and 675 no.Relay repeated runs on the machine for almost a year, thank you.