Arduino can not communicate serial (MIDI), when the USB is unplugged - arduino

I wanted to test the arduino MIDI example code:
https://www.arduino.cc/en/Tutorial/Midi
I tried it with a 9V 500mA AC/DC adapter, and i used a MIDI-USB cable to get the MIDI messages to my software (Hauptwerk).
When the Arduino's USB cable was connected to the computer (the MIDI-USB cable was connected too) it worked fine, but when I tried with the adapter and plugged out Arduino's USB cable, the software didn't received the MIDI messages.
To the serial communication I used the TX-pin like in the tutorial.

Related

SIM900 module not responding on hardware COM port

I've got my sim900 module working with arduino by using their software serial library, however, I want to eliminate arduino from the equation and have serial communication directly to sim900 module.
I'm using putty as my terminal emulator. It's serial is configured to COM1 19200 8 N 1 the same as device manager configuration for this port.
I connect straight from hardware serial on my PCs motherboard into serial-to-ttl interface board which connects to sim900 module. The board has 4 pins - VCC GND TX RX. They're all connected to my sim900 hardware serial as follows: VCC=5V GND=GND TX=TX RX=RX (Yes I know that it's always actually TX=RX and RX=TX, but when I connect it that way my interface board doesn't blink any led to indicate a transfer whereas it does when I connect TX=TX and RX=RX). The switch on the module is set to hardware serial pins as well.
So the only thing that happens when I send AT commands such as AT or ATI and press enter is that puttys cursor comes back to the beginning of command that I typed. No response.
I'm thinking that I'm not doing something that the arduinos software serial port is doing when it sends commands to sim900.
Can anyone help please ? It's literally been days of trying different configurations with no results.
In that time besides getting sim900 working with arduino software serial I verified that the hardware serial port on my motherboard is working correctly and the interface board is working correctly as well.

USB to USB serial communication from PC to PC

I am currently connecting 2 PCs using serial communication and at this time I am using a USB to Serial converter, then a serial cable, then another USB to Serial converter going into the other PC in order to get the communication sent and received.
Is there a way to program the USB ports as COM ports without these converters and still be able to transfer the serial data over the USB using software rather than hardware, thus eliminating the need for the conversions and rather have just a straight USB cable to USB cable connection?
Thanks!

Atmega328p sending data through USB

I'm using the atmega328p and I would like to send data through the USB to use like the serial monitor in the arduino for code testing purposes, so I doesn't need an LCD to print data. I used USART when simulating my code in proteus, and I believe there is a similar approach using the data pins of the USB connector.
When you send data over the UART on the ATmega328, it is converted to serial over USB by the Arduino. The Arduino will enumerate as a virtual serial port on your computer, and you can connect to this with the serial terminal of your choice (screen, PuTTY, RealTerm, etc). The Arduino IDE also has an built-in serial monitor. Note that you cannot use this serial connection while programming the Arduino via the USB port, as it will interfere with the programming.
If you are using the hardware UART for other purposes, then you can use an external TTL serial-USB converter and SoftwareSerial on the Arduino.

Arduino Leonardo serial communication

The USB port on my Arduino Leonardo broke off and I don't have a USB-to-serial adapter. Is it possible to wire a USB cable to the TX, RX, Vin, and GND pins so that I can use serial communication between it and my computer?
(It already has my sketch on it.)
Yes, you can solder a USB cable (just cut the type B end off of a standard A-B cable) onto the exposed pads where the port used to be.
Unlike other Arduinos, the Leonardo does not have a built-in USB-to-serial converter the drives the USB port. The microcontroller firmware provides USB device-mode support directly. It also has serial I/O pins.

Can't get serial output while using Ethernet

I started to experimenting with the Arduino Ethernet shield and got it working with not much effort. However, when I try to debug through the hardware serial port of the board, I get nothing, and though the program still runs, and I know it should be giving me something, it doesn't. Truth be told, I haven't got a clue of what's going on. How do I fix this problem?
P.S. I am using one of the example sketches included in the Arduino IDE.
The Ethernet shield does not use the RX and TX pins (0,1) and I have personally used Serial communication with the shield before.
So it definitely had to do with your code. Can you post your code?
Also have you connected anything to digital pins 0 and 1?
The Arduino Ethernet board is not equivalent to Arduino Uno + Etherent shield. In the Arduino Ethernet board the USB-to-serial chip is not present.
From the official Arduino Ethernet board page
The Ethernet differs from other boards in that it does not have an
onboard USB-to-serial driver chip, but has a Wiznet Ethernet
interface.
So I don't think you can print any values in the serial monitor.
Update:
You need an external FTDI adapter like http://arduino.cc/en/Main/USBSerial get the serial communication between Arduino and your computer to work.

Resources