![]() | ![]() | ![]() |
| | |||||||
| General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion? |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| Is it at all possible to communicate between PIC's using a DAC and a ADC. You can send a Digital signal to a off PIC DAC and have the other PIC use its internal ADC. You would need to supply the Comm line, 5VDC and GND lines for accuracy. It could work right? | |
| |
| | (permalink) |
| Yes of course, in fact if the PIC has an external memory interface many ADC and DACs can be hooked up directly to the address bus allowing the DAC or ADC interface to be as simple as reading/writing bytes from memory on the PIC. If your PIC doesn't have an external memory bus or you don't want to try to use it no big deal, just read the data sheet on the DAC/ADC and hook it up to an I/O port.
__________________ "Because I be what I be. I would tell you what you want to know if I could, mum, but I be a cat, and no cat anywhere ever gave anyone a straight answer, har har." Last edited by Sceadwian; 22nd July 2008 at 04:04 AM. | |
| |
| | (permalink) |
| You mean communicate between PICs using an analog voltage? Well, yes and no. You will get an approximate value. Say you want to send the number 0x55. You convert it to analog with one PIC and back to digital with another PIC and you might get 0x55. You might also get 0x56, 0x54 or something else "close" to 0x55.
__________________ --- The days of the digital watch are numbered. --- | |
| |
| | (permalink) |
| The answer is yes but why would you want to? Pics have several other ways to talk to each other. There are several serial methods. If you want parallel look at the communication between the inchworm and unicorn (schematic).
__________________ search engine for electronic partsJunebug USB PIC programmer kit., USB Bit Wacker, 3v0's Homepage The 15 Minute Printed Circuit Board! (+drill time) | |
| |
| | (permalink) |
| Like everyone else says, silly idea! - use a single line and send serial data, A2D and D2A conversions aren't 100% accurate, they are at least +/- one bit. | |
| |
| | (permalink) |
| Absolutely! We could also have them communicate with pneumatics, but why would we want to torture ourselves??????????!!!!!
__________________ "Everything that is done in the world is done by hope." -Martin Luther "There are two ways to live your life. One is as though nothing is a miracle. The other is as though everything is a miracle."-Albert Einstein | |
| |
| | (permalink) |
| You'd be better using a current loop rather than relying on voltages over a distance. I.e. putting a constant 20ma current through a cable will appear as 20ma at both ends. | |
| |
| | (permalink) |
| I was wondering if it was possible, I know that there would be a accuracy issue. I have no plans nor do I want to start trying A/D D/A communication. | |
| |
| | (permalink) |
| You pretty much do it anyway...after all, surely an output pin is simply a 1-bit DAC and an input pin a 1 bit ADC? 'Digital' is purely theoretical .. once you go into the real world you deal with analogue voltages which represent digital information Some have said its a silly idea, but not necessary.. It's used in RF comms, and even wired comms to increase the throughput without increasing bandwidth (which in RF is very much at a premium). If you have 4 voltage levels, then that represents 2 bits....I mean our cable provider uses 64 QAM to pump data through (64 signalling levels). Of course its a trade off between 'bandwidth' and 'dynamic range'....higher quantisation increases the risks of errors. Of course I didn't think you were actually going to use it over, say, SPI/USART/I2C, its theoretical. but interesting nonetheless. Hell, its a pretty good cheap form of very short range wireless comms...no line of sight like in IR, sounds goes through walls too...but yeah BIG hassle. My two, possibly three, cents. Blueteeth
__________________ Inconsistency is the key to flexibility! | |
| |
| | (permalink) |
| I can't remember the project but someone did this using a very basic direct DDS and a logic accumulator to do DAC to ADC back to DAC for a neuron project a ways back all completely on digital I/O lines. Elegant, but not very practical.
__________________ "Because I be what I be. I would tell you what you want to know if I could, mum, but I be a cat, and no cat anywhere ever gave anyone a straight answer, har har." | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| How to communicate between 2 or 3 8051 microcontrollers | prevravanth | Micro Controllers | 7 | 3rd March 2007 12:42 AM |
| how to communicate between keyboard with LCD (use 8951)? | hongquang0403 | Electronic Projects Design/Ideas/Reviews | 1 | 21st April 2006 07:13 PM |
| robot that can talk/communicate with human | cindy_ycm | Robotics Chat | 19 | 24th October 2004 05:49 PM |
| i want to communicate with my robot wireless. pls suggst ckt | gaurav_bhabhera | Robotics Chat | 3 | 29th February 2004 08:35 PM |