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.

Will this circuit work

Status
Not open for further replies.
Lew Just had a look at HC-12 data sheet looks like good stuff , I worked recently with serial over 433Mhz, but the (Aurel RTX ) it has a power up sequence , this looks like a more useful module, 1000m is impressive have you tried it.
I would go for Mike's P MOSFET circuit.
 
Maximum of 100mA it's actually more like 16mA
yes Its a brilliant module, works really well

I didn;t see Mike's Mosfet circuit at first, its a nice circuit but too many components, if the 3904 can be used as a switch why does it need a mosfet?

Switch the 5v line o the gnd line?
(last circuit on the previous page)
 
The transistor is working as a simple switch, to switch the 5v supply to the module on or off
Absolutely NOT! An emitter-follower is not a switch. 3.2V input gives 2.5V output.
But a switching transistor with 0V input gives +5V output. When its input is a little more than 0.7V with a resistor limiting the current from the PIC then the output is close to 0.1V so it makes a good switch.
 
Another options is this

It's a poor option, using an emitter follower as an analogue amplifier - you need a 'switch'.

Assuming the PIC is run from 3.3V, then you can do it with an NPN transistor and a PNP one - check the 'Hardware Extras' section of my PIC tutorials.

Or if the PIC is 5V, just a PNP transistor and a resistor or two is all that's needed, with the PIC switching LOW to turn the transistor ON.
 
Nigel
I did read your hardware extra bit and I thought I had got it right
post "5"

isn't my post 5 the same (or similar) to this?

The only difference I can see is I'm using 5v for the +ve and a module instead of a lamp

Would I be better off with a 1K resistor?


"The 'sinking' example is probably the easiest to understand, as the PIC pin goes high current flows through R1 turning the transistor ON, effectively connecting the bottom end of the lamp to ground. This method has a rather useful property, the +ve supply to the lamp isn't related in any way to the supply voltage of the PIC, so you could quite happily have the PIC fed from 5V, and a 12V supply feeding the lamp, you just need to make sure that they share a common 0V or Gnd connection."


Post 5's circuit

**broken link removed**
 
Last edited:
Still leaves the problem that the PIC port TX and RX pins will always be sinking current, even if they are tri-stated off!

Here is another way to do it: The Vf of the Red LED is used as a 2V level shifter. Note that the logic levels at pin 16 of the PIC must be inverted.

360a.gif
 
Nigel
I did read your hardware extra bit and I thought I had got it right
post "5"

isn't my post 5 the same (or similar) to this?

The only difference I can see is I'm using 5v for the +ve and a module instead of a lamp

Would I be better off with a 1K resistor?


"The 'sinking' example is probably the easiest to understand, as the PIC pin goes high current flows through R1 turning the transistor ON, effectively connecting the bottom end of the lamp to ground. This method has a rather useful property, the +ve supply to the lamp isn't related in any way to the supply voltage of the PIC, so you could quite happily have the PIC fed from 5V, and a 12V supply feeding the lamp, you just need to make sure that they share a common 0V or Gnd connection."

That's fine if you're sinking current, but sourcing (with different supply voltages) requires two transistors. (or an LED like Mike has posted - or various other means as well).

From a personal point of view, I'd prefer to switch the positive :D

I'm currently doing a project with an FDTI USB/Serial board, and I was planning simply feeding it from a PIC pin to switch it ON and OFF. However, I haven't measured the current it takes yet :D

Plan 2 is to feed the FDTI from the USB socket, with a diode powering the PIC, and a PIC pin to detect when it's connected to USB.
 
I don't get the "sinking current and sourcing"
but
Hopefully this will work?

but Why the LED? is it on or off when the switch is off?

The only thing I don't understand is does the pic pin go high or low to make the HC-12 work? (get power) I'm assuming low???

**broken link removed**
 
That's no good then,
The idea of the switch is to conserve battery consumption not increase it

Although if the pin was high on power on (or told to go high) wouldn't that stop the led working and have no current draw?

Then if the pic pin went low, the transistor would conduct?
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top