Skip to content

Sudharshan-S007/Arduino-Oscilloscope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tinkercad Project : Arduino Oscilloscope Simulation

This repository contains a Tinkercad simulation of a simple Arduino-based oscilloscope. The project reads analog input values and outputs them via the serial monitor, mimicking the functionality of an oscilloscope. View the Project on Tinkercad

Project Description

This repository contains a Tinkercad simulation of a simple Arduino-based oscilloscope. The project reads analog input values and outputs them via the serial monitor, mimicking the functionality of an oscilloscope.

Components Used

  • Arduino UNO
  • Function Generator
  • 2 Equal Resistors

Circuit Diagram

  • The analog signal is connected to A0.
  • Power lines are connected to 5V and GND.
  • Output is shown via Serial Monitor.

Code

const float R1 = 100000.0;  
const float R2 = 100000.0;  
const float Vref = 5.0;     
const float scale = (R1 + R2) / R2;  

void setup() {
  Serial.begin(115200);
}

void loop() {
  int raw = analogRead(A0);         
  float voltage5 = raw * (Vref / 1023.0);  
  float voltage10 = voltage5 * scale;     

  Serial.println(voltage10, 3);     

  delay(1);  
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published