I want to connect the oscilloscope to an opto-coupler (6N135) to monitor serial messages from an Attiny2313a. I have a sketch that sends different variables (bytes, integers) to the TX port using Serial.write command at different baud rates.
I’ve used this schematic from here http://www.instructables.com/id/Send-and-Receive-MIDI-with-Arduino/?ALLSTEPS:
Instead of the Arduino I have the oscilloscope, and the input (midi socket) is coming from the Attiny. I’ve used this midi circuit because later I want to use oscilloscope to display midi messages.
So I have a few questions:
- I connected the
Attiny 5V pin to 6N135 pin 2
Attiny TX pin to 6N135 pin 3.
Is this the correct?
(I’ve replaced the diode between pins 2,3 with a LED).
- I don’t know how to connect the scope, since it only has the probe and the ground connector. The opto-coupler has 3 connections, 5V, Data, and ground. How do I connect them? I’ve tried different combinations, but I either get a steady 4.5 volt line (I use three 1.5V batts to power the 6N135) or no reading at all.
So for now the only way I can monitor the data from Attiny is if I connect the scope directly, i.e. the probe to the TX pin and the ground connector to the ground pin on the chip.
I would appreciate any help on this, thanks