Serial comms on VCC line


Closed Thread
Results 1 to 24 of 24

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Ah... in this case it was easy...

    MegaAdy earlier today asked me for a schematic off-list reminding me of that thread... as I was about to reply I noticed he had posted the question again on-list as well, so I posted the schematic publicly. So no great feat of mental prowess in this instance... and all this from a girl who mislays her car keys a dozen times a week!

  2. #2
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Just looking at that schematic, it may be necicary to note that you will get a voltage drop accross the R1 resistor as well as a voltage drop across the diode. You would want to make sure the voltage getting to the slave pic is sufficient.

    As for the large capacitor, you can get 5v, 0.047F (or 47000uF) caps. They are small, quite cheap, and will maintain power for your PIC for a number of seconds.
    Last edited by Kamikaze47; - 23rd November 2005 at 19:59.

  3. #3
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Don't worry Melanie, we can fix your car keys problem...


  4. #4
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Surgically implanted obviously! Great idea. Now all I got to do is get all the locks in my life changed to be chip proximity activated.

    Kamikaze...

    The Voltage drop across R1 will be negligible once C1 has charged since the micropower PICs draw only a few uA. However I do have issue with Caps that size... they'll take forever to charge and the voltage rise-time at the Slave end will be so slow that the PIC will not initialise for the best part of a minute! Just work out the CR time constant!

  5. #5
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Melanie
    Ah... in this case it was easy...

    MegaAdy earlier today asked me for a schematic off-list reminding me of that thread...
    You disappoint me Melanie

    After all those superb code examples, I thought you had some magical formula for finding previously written information


    Quote Originally Posted by Melanie
    So no great feat of mental prowess in this instance... and all this from a girl who mislays her car keys a dozen times a week!
    Good to know you suffer from the same problems as the rest of us.

    I have lost count of the number of times I have put down a screwdriver and two minutes later when I go to pick it up it isnt there!

    Nice solution to the problem BTW. My initial thoughts were for a choke at each end and use a carrier to modulate a tone onto the power rail. Much higher component count and cost.

    Regards
    Keith

    www.diyha.co.uk
    www.kat5.tv

  6. #6
    Join Date
    Jun 2004
    Posts
    43


    Did you find this post helpful? Yes | No

    Default

    Thank you for schematic Melanie ! You were right, I posted this question some months ago. You didn't understand my setup here. So, once again,
    I have two devices ( not pics ). A master device, and a slave device that get power from the slave (5v, 3-400 mA ). Now, I want to put a PIC in the slave device which should send to the pic I put in the master device a few bytes ( 1200 baud ). The problem is the power consumption of the slave ( 4-500mA). And I can not use too big caps like ... 4700u@25v. I can not test the schematic right now, but I got the ideea. But do you thing it will work in the context I explained you ? The power on that slave device ( and the transmitting pic also ) should be kept as close as it can to 5V. Thank you .

  7. #7
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    If your Slave device is power hungry, then the only way is to modulate a signal onto the Power Supply lines as suggested by Keith. The schematic I've posted would not be appropriate in that instance.

  8. #8
    Join Date
    Jun 2004
    Posts
    43


    Did you find this post helpful? Yes | No

    Default

    hm ... can you please be more specific ?

  9. #9
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    I dont think you can even use the modulation technique in this instance because its the slave device he wants sending the data (i.e. the device that doesnt have a power supply).

    You can use the mondulation technique if you were transmitting data from the master to the slave, but not slave to master.

    If you already have 2 wires between the 2 devices, whats so hard about running a 3rd wire for data?

  10. #10
    Join Date
    Jun 2004
    Posts
    43


    Did you find this post helpful? Yes | No

    Default

    You got the point ! That's why I thought it might not work ! Although, someone did it, I don't know exactly how... Forget the 3rd wire...I just can not use more than 2 wires

  11. #11
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kamikaze47
    I dont think you can even use the modulation technique in this instance because its the slave device he wants sending the data (i.e. the device that doesnt have a power supply).

    You can use the mondulation technique if you were transmitting data from the master to the slave, but not slave to master.

    If you already have 2 wires between the 2 devices, whats so hard about running a 3rd wire for data?
    I beg to differ.

    The data would be used to turn on and off a carrier which would become an AC signal. This can be superimposed on top of a DC signal quite easily.

    It doesnt matter which direction power or data are heading. They simply use the same piece of wire as their connection.

    A phantom powered electret microphone effectively does what is requested here. Power is fed from the mixer (MASTER) whilst the audio (or Data) is fed along the exact same wires by the Microphone (SLAVE).

    See attached diagram for how data and power would be connected. I havent draw the modulator and demodulator as I dont have a suitable design to hand but generating the signal could be as easy as running the PWM on the SLAVE PIC ad using a transistor driven the the TX data pin to modulate it. At the MASTER end you would need a circuit to detect the carrier and provide a logic level to drive the RX data pin on the Master Pic.

    The inductors allow DC power to pass but block the AC carrier so that PSU compoments dont attenuate the carrier.

    The capacitors allow the AC carrier to pass but block the DC supply voltage.
    Attached Images Attached Images  
    Keith

    www.diyha.co.uk
    www.kat5.tv

Similar Threads

  1. Serial Comms through TX/RX pair jumbled
    By altech6983 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th July 2009, 21:04
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  3. Some comments on serial comms please.
    By muddy0409 in forum Schematics
    Replies: 1
    Last Post: - 15th June 2007, 09:53
  4. having problems with Hantronix 20x4 lcd
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd December 2005, 12:22
  5. One wire serial comms on +5V line
    By MegaADY in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st May 2005, 12:49

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts