I am working on a matlab script that sends data over Serial to an arduino-powered robot. I have an old Arduino NG (lowest option in the 'board' menu :P) and I tested the matlab function to send stuff to Serial port on it, and it was getting read properly with the Serial.read() function.
Now, I cannot keep the whole board on the bot, so I'm thinking of putting together a circuit with the bare necessities. I'd need the minimum atmega168 on breadboard, with the crystal, reset and caps.
Could u please suggest how and what more to put in the circuit to enable the chip to receive data over serial just like with the whole arduino board? Pl note that I use a USB-SERIAL cable from my comp to the board, and my arduino has a regular serial port, not a USB socket.
So according to this, all I have to do is connect the cable to my PC usb socket, wire the TXD pin of serial socket to RX of arduino, and short both GNDs.. two connections that is. When I try to do a screen /dev/ttyUSB0 (it was working with the cable connected directly to the arduino earlier), it says 'device or resource busy... could not find a PTY'
Is ther something I've missed?
My bad. Forgot to mention, I had loaded a code to blink the led on 13 if a '1' was transmitted over serial. Which is why I thought only the TXD-tx connection was needed. Anyway, I've wired up gnd-gnd, txd(cable)-rx(arduino) and rxd-tx. Still not working
When I'd connected the arduino the proper way, with the cable into the serial female socket on the board, the led did blink when a '1' was sent from screen