Osciloscopio Digital Usando Arduino

24/5/2018 Osciloscopio Digital Usando Arduino Osciloscopio Digital Usando Arduino Osciloscopio Digital con Arduino h

Views 131 Downloads 6 File size 732KB

Report DMCA / Copyright

DOWNLOAD FILE

Recommend stories

Citation preview

24/5/2018

Osciloscopio Digital Usando Arduino

Osciloscopio Digital Usando Arduino

Osciloscopio Digital con Arduino

http://blog.novaeletronica.com.br/osciloscopio-usando-arduino/

1/7

24/5/2018

http://blog.novaeletronica.com.br/osciloscopio-usando-arduino/

Osciloscopio Digital Usando Arduino

2/7

24/5/2018

Osciloscopio Digital Usando Arduino

Lista de componentes del Osciloscopio con Arduino

Abajo el Sketch del Osciloscopio Usando Arduino http://blog.novaeletronica.com.br/osciloscopio-usando-arduino/

3/7

24/5/2018

Osciloscopio Digital Usando Arduino / * ################################################## ######### Title: Arduino Oscilloscope Purpose: Utilice el Nokia 3310 GLCD screen con el arduino Created by:

Filear k. see Fil eark. com for more info.

Note:

Please reuse, repurpose, and redistribute this code.

Note:

This code uses the Adafruit PDC8544 LCD library

########################################################### */ #include "PCD8544.h" // pin 3 - Serial clock out (SCLK) // pin 4 - Serial data out (DIN) // pin 5 - Data/Command select (D/C) // pin 7 - LCD chip select (CS) // pin 6 - LCD reset (RST) PCD8544 nokia = PCD8544(3, 4, 5, 7, 6); // a bitmap of a 16x16 fruit icon static unsigned char __attribute__ ((progmem)) logo16_glcd_bmp[]={ 0x06, 0x0D, 0x29, 0x22, 0x66, 0x24, 0x00, 0x01, 0x87, 0x00, 0x27, 0x6C, 0x20, 0x23, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x10, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; #define LOGO16_GLCD_HEIGHT 16 #define LOGO16_GLCD_WIDTH

16

int channelAI = A0;

// select the input pin for the Oscilioscope

int scaleYAI = A1;

// select the input pin for the Y (horizontal) potentiometer

int scaleXAI = A2;

// select the input pin for the X (Vertical) potentiometer

int delayVariable = 0;

// define a variable for the Y scale / delay

int xVariable = 0;

// define a variable for the x scale

int yCtr = 0;

// define a variable for the y counter used to collect y position into array

int posy = 0;

// define a variable for the y position of the dot

int myArray[85];

// define an array to hold the data coming in

void setup(void) { nokia.init();

http://blog.novaeletronica.com.br/osciloscopio-usando-arduino/

4/7

24/5/2018

Osciloscopio Digital Usando Arduino

// turn all the pixels on (a handy test) nokia.command(PCD8544_DISPLAYCONTROL | PCD8544_DISPLAYALLON); delay(500); // back to normal nokia.command(PCD8544_DISPLAYCONTROL | PCD8544_DISPLAYNORMAL); // show splashscreen nokia.display(); delay(500); nokia.clear(); } void loop() { delayVariable = analogRead(scaleYAI); delayVariable = (delayVariable/50); xVariable = analogRead(scaleXAI); xVariable = (xVariable/22); for(yCtr = 0; yCtr < 85; yCtr += 1)

// the for loop runs from 0 and < 85, it fills the array with 84 records

{ posy = analogRead(channelAI);

// read the value from the sensor:

myArray[yCtr] = (posy/xVariable); delay (delayVariable);

// scale the value based on the x scale potentiometer // scale the y collection of data using the delay from the y potentiometer

} yCtr == 0;

// set the counter to zero so we can use it again

nokia.clear();

// clear the LCD screen so we can draw new pixels

for(yCtr = 0; yCtr < 85; yCtr += 1)

// for loop runs 84 times

{ nokia.setPixel(yCtr, myArray[yCtr], BLACK); // draw the 84 pixels on the screen } nokia.display();

// show the changes to the buffer

yCtr == 0;

// set the counter to zero so we can use it again

}

http://blog.novaeletronica.com.br/osciloscopio-usando-arduino/

5/7

24/5/2018

Osciloscopio Digital Usando Arduino

Vídeo do Osciloscópio Arduino em funcionamento DIY Arduino Oscilloscope with the Nokia 3310 GLCD screen

http://blog.novaeletronica.com.br/osciloscopio-usando-arduino/

6/7

24/5/2018

Osciloscopio Digital Usando Arduino

Etherner a RS232

Como Usar seu PC como um Osciloscópio

ERP para grandes empresas

Osciloscópio OnLine - Simulador

Anúncio cl.ipc2u.com

novaeletronica.com.br

Anúncio Epicor

novaeletronica.com.br

Nuevo CorelDRAW 2018

Circuito Seguidor e Injetor de Sinais

Estetoscópio Eletrônico

Circuito Localizador de cabos e Fios Elétricos

Anúncio CorelDRAW

novaeletronica.com.br

novaeletronica.com.br

novaeletronica.com.br

http://blog.novaeletronica.com.br/osciloscopio-usando-arduino/

7/7