Home » Communications » Serial communication between the Ardunio and Processing
Jul
07
 

This week’s lab focused on exploring the Arduino’s capability to communicate using a Serial connection.  I was very excited to learn how to set up this kind of communication system as it opens up a whole new set of development possibilities.  Being able to interface physical computing components with Processing (or Flash) is just downright awesome!

I started by setting up the basic board that was outlined in the lab.  I used a potentiometer as I loaned my beloved force sensor to another student for a project.



potentiometer as an analog input


Next I programmed the board to send out a byte of information every 10 miliseconds that corresponds to the value of the poteniometer.  Once this was working in the Arduino’s Serial monitor I then moved onto Processing.  I copied the default sketch, rand it and – voila! – instant graphical data representation!


graph in processing of analog output coming from my arduino

graph in processing of analog output coming from my arduino


Once I got the basic setup working I began to think about how I could adapt the techniques outlined in the lab to my midterm project.  Without giving too much away just yet, our midterm uses six digital inputs and one (possibly two) servo motor outputs.  I peeked ahead at next week’s lab and was able to cobble together an Arduino program and Processing sketch that handles this kind of communication.  Once we get more into the project I will begin to document our progress and post code samples.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks

Related posts:

  1. serial data communication protocol Monitoring – ADC200/20This experiment demonstrates how a serial data communication protocol can be successfully monitored. Serial data communications represents the fundamental method by which information is transported in our modern world. Convergence between communications and computers has caused all forms of information to be digitized for easy transport in serial format. Unlike analog waveforms such as sine [...]...
  2. Free Serial Communication Software RS232-RS422-RS485Our new comDebug program lets you communicate with almost any RS232, RS422, RS485 or Modbus serial device. Whats more, its free! Its extensive trouble-shooting capabilities make it ideal for solving comms problems, or for quickly checking that you can communicate with your instrument before starting to automatically acquire data. Features No programming required Free technical [...]...
  3. Serial Communication Under Win32 to program on a PCSerial ports used to be easy to program on a PC. Then they got more complex, then unreachable. Now they can be made to look simple again. Introduction Anyone porting 16-bit serial communication code to 32-bit Windows NT or Windows 95 faces a common problem: the familiar methods of implementing communication are at the very [...]...
  4. A little bit of information about the PC serial portA little bit of information about the PC serial port Jan Axelson http://lvr.com/ has lots of information about RS-232 and RS-485 #rs485 http://sourceforge.net/projects/libserial/ “A collection of C++ classes which allow the serial port on POSIX systems to be accessed like an iostream object. …” Programming Notes For Central Data Serial Ports http://www.cd.com/prog.html has lots of [...]...
  5. Serial Ports and Digital I/O4.1 Serial Communication In the factory-default configuration, the TCP/IP Development Board has one RS-232 (3-wire) serial channel, one RS-485 serial channel, and one synchronous CMOS serial channel. The TCP/IP Development Board may be configured for 5-wire RS-232 or two 3-wire RS-232 channels. The exact configuration instructions depend on the version of the TCP/IP Development Board [...]...
  6. Serial Communications  “Serial Communications” is a comprehensive book which details various methods for implementing serial communications between a Microchip PIC microcontroller and an external device. Asynchronous serial communications is covered both by using an on-chip USART and by bit-bang methods. The RS-232 standard is explained. A discussion of synchronous serial communications includes the I2C (Philips Semiconductors), SPI [...]...
  7. serial communications roger stevens downloadSerial Communications”  is a comprehensive advanced level book which details various methods for implementing serial communications between a Microchip PIC (R) microcontroller and an external device. Asynchronous serial communications is covered both by using an on-chip USART and by bit-bang methods. The RS-232 standard is explained. A discussion of synchronous serial communications includes the I2C [...]...
  8. Wireless serial connection network wireless signal transmissionINTRODUCTION: Data collection, serial communication and wireless signal transmission are a common applications in industrial, medical and scientific area. Sensors data or even the machine control command are used serial communication protocol to transmit to other machines. The user has to carry around an RS232 cable as the communication media.   UART-Link is a low [...]...
  9. 4x Serial to Ethernet and Wi-Fi Module – Programmable Ethernet Module FeaturesThe EM1000W combines an EM1000 serial-to Ethernet module with an WA1000 wireless Wi-Fi Module that is mounted piggy-back on top. Programmable Ethernet Module Features High-performance (88 MHz) RISC processor. One 100BaseT Ethernet port with Auto-MDX (detection of straight-through or crossover cable). Standard Ethernet magnetics are not integrated into the Module. Support for UDP(1), TCP(1), ICMP [...]...
  10. Microsoft Digital Communication ProductsLife Cam NX3000 thumb 320 dpi jpg (197.9 KB)72 dpi jpg (27.0 KB) Life Cam VX7000 thumb 320 dpi jpg (906.7 KB)72 dpi jpg (25.7 KB) LifeCam NX-6000 72 dpi jpg (30.5 KB)320 dpi tif (4,360.1 KB) LifeCam VX-1000 72 dpi jpg (49.5 KB)320 dpi tif (6,464.2 KB) LifeCam VX-3000 320 dpi jpg (161.9 KB)320 [...]...
  11. Communication standardsstandard protocols http://webopedia.internet.com/Standards/Communications_Standards/ (pointers to the Hayes AT command set for modems, the RS-232c standard, the RS-485 standard, the CCITT Group 4 fax standard, and several file transfer protocols). [FIXME: last time I checked, left out any mention of S11 -- perhaps give them the pointers below ?] ...
  12. Serial Communications A C++ Developers Guide 2nd EditionBill Jacques noticed that the SendSingleFile() function in Zmodem.cpp gets stuck in an infinite loop if the remote end has an allocation problem. He sends an update of the function (as a Word Doc.) Bill wrote a Win32-specific version of the function, so dont try to include this code if you are running in some other environment. You will have to replace the existing function in Zmodem.cpp....
  13. serial protocol convertersserial protocol converters See also FIXME serial ADCs and DACs. RS-232 to PC keyboard (often called “wedges” — the most common versions allow you to plug a barcode reader FIXME barcode (RS-232) and a standard PC keyboard into the wedge, and then you plug the wedge into the keyboard port of a PC.) Often used [...]...
  14. Mac Serial PortMac Serial Port I have pushed the Mac serial ports to 1 Mbps; email me for more info. Comments? the communications protocol for the Mac QuickCam takes advantage of many of the Mac serial ports to communicate at 918 Kbps (synchronous). /* the protocol description *was* available at http://www.connectix.com/connect/files/driver/mac.pdf */ [1.4] How fast can the [...]...
  15. SoR annoucement: microcontroller productAs many of you have realized, I have not really been happy with any of the microcontrollers available on the market. They are all missing something . . .So I am developing a microcontroller for SoR to sell (called the Axon), with revenue going to further develop/grow the SoR website. Ive done a manufacturing run and it mostly works, but Im working out the final bugs and documentation. Ive been working hard on this for the last ~6 months, and it should be ready within a month or two from now for shipment.For those who have used the Arduino, it will basically be the Arduino x 3 (in features, support, and cost). Yet it will be smaller and lighter, too.A few teaser features:16 ADCbuilt in USB3 additional UART (for camera, wireless, hyperterminal, etc)no programmer requiredcontrol up to 40 servos (building a hexapod/biped, anyone?)has a power busdesigned for the intermediate/expert builder, simple enough for a beginner  -actually, much much easier than the $50 Robot2.5"x2.5"x.7" profilefull support, easy to use software/codeRoHS compliant (environmentally friendly, no lead, etc)Price will be between $100 and $150. Send me an IM if you want to reserve one (no money down) so I can better judge how many to initially make. Those who reserve for the first produced limited batch will get ~20% off....

100 views

Add reply

 3000 characters available