Introduction: ASCII, Arduino and Oscilloscope

In questo progetto andremo a visualizzare su un oscilloscopio un carattere ASCII a nostro piacimento (io ho scelto il numero 0).

In this project we will see on an oscilloscope an ASCII character at will (I have chosen the number 0).

Step 1: Material

I materiali necessari per l'esecuzione dell'esperienza sono i seguenti:

  • Cavi,
  • Oscilloscopio e relativi connettori,
  • Arduino Uno,
  • IDE Arduino.
The materials necessary for the execution of the experience are the following:

  • Cables,
  • Oscilloscope and related connectors,
  • Arduino Uno,
  • IDE Arduino.

Step 2: Preparation of the Program

Per prima cosa, nell'IDE Arduino scriviamo e carichiamo il soprastante programma.

First of all, in the Arduino IDE we write and upload the following program.

Step 3: Oscilloscope Connection and Signal Display

Una volta caricato il programma su Arduino, è sufficiente collegare quest'ultimo per mezzo dei cavetti (Bnc-coccodrillo) dell'oscilloscopio ai pin 1 Tx (Collegato al CH2),13 (Collegato al CH1) e GND. Finiti i collegamenti sarà necessario calibrare i vari parametri dell'oscilloscopio in modo da ottenere una serie di oscillazioni ben definite al fine di distinguere i vari valori logici (0 e 1). Il valore del pin 13 è stato adottato come riferimento per la misurazione, regolato dal trigger. Si possono visualizzare i valori logici Alti del valore a riposo del segnale (agli estremi), che non vanno presi in considerazione, quinidi, nel mio caso, leggendo da destra verso sinistra i vari valori, si vede la successione 00110000, cioè il numero 0 che avevo messo in Output dal mio Arduino.Nella figura soprastante è indicata con il colore giallo l'andamento del segnale sul pin 13, in celeste è indicato l'andamento del pin 1.


The program on Arduino, it is sufficient to connect by means of the wires (Bnc-crocodile) of the oscilloscope to pins 1 Tx (Connected to CH2), 13 (Connected to CH1) and GND. Once the connections are finished, it will be necessary to calibrate the oscilloscope's various parameters in order to obtain a series of well-defined oscillations to the best of distinguishing the logical values (0 and 1). The value of pin 13 has been used as a reference for the measurement, regulated by the trigger. Foods of the value to sign (to the extremes), that are not taken into consideration, quinidi, in my case, reading from the right to the left the values, we see the succession 00110000, that is the number 0 that I had put in Output from my Arduino.
In the above figure the signal trend on pin 13 is indicated with yellow color, the trend of pin 1 is shown in light blue.