SoftModem Data Communication (a)
by Linksprite in Circuits > Electronics
8281 Views, 13 Favorites, 0 Comments
SoftModem Data Communication (a)
Arduino connects to the PC using an USB port. Anyway, that USB connection is actually used like a Serial (RS232)
connection (remember the old 56K external modems? most of them where connected using a Serial interface). The Arduino IDE uses it to upload our programs to the board but the serial connection can also be used for any other kind of communication.
Arduino also has digital pins 0 (RX) and 1 (TX) which can be used to directly connect Serial interfaced wires into Arduino. They deliver the same signals sent on the USB Serial interface.
Step 1: Parts List and Wire Diagram
Parts list: two Arduino , two Arduino UNO, three Dupont wires
Wire diagram:
Step 3: Softmodem for Arduino
There are some versions about Softmodem Arduino library, you can click
https://code.google.com/p/arms22/downloads/list?can=2&q=Softmodem&colspec=Filename+Summary+Upload
to download.
Step 3: Some Problems About Softmodem.h File
I chose Softmodem-005.zip, after downloading ,input to Arduino and when
compiler ,there are some errors (I use 1.5.6 version of the Arduino IDE), can modify the SoftModem.h file under SoftModem.h file ,the results as follows:
code in here :
http://learn.linksprite.com/uncategorized/softmodem-data-communication-a/
Step 4:softmodem.cpp File
softmodem.cpp file is here :
http://learn.linksprite.com/uncategorized/softmodem-data-communication-a/
Step 5: Sample Code
The code is very simple, it is a Arduino sending data, another is Arduino receiving data.
Code one is responsible for sending data:
code is here:
http://learn.linksprite.com/uncategorized/softmodem-data-communication-a/