Capacimeter with Arduino
A Capacimeter is an instrument used to measure the capacitance of a capacitor. In this tutorial, we will guide you step by step to build your own Capacimeter using an Arduino board, basic components, and some code.
More info and updates in https://rogerbit.com/wprb/2024/06/capacimetro/
Electronic components of the project
Arduino Nano
The Arduino Nano is a small, complete, breadboard-compatible board based on the ATmega328 (Arduino Nano 3.x). It has more or less the same functionality of the Arduino Duemilanove, but in a different package. It only lacks a DC power connector and works with a Mini-B USB cable instead of a standard one.
A socket for arduino
female pins
Male female dupont cables
Display oled sh1106
It is a 128x64 dot monochrome OLED display module with I2C interface. It has several advantages compared to LCD screens, and we can highlight its high brightness, very good contrast, a wider viewing angle, and low consumption. of energy. It is compatible with Arduino Rasberry Pi and PIC microcontrollers among others. It works with logic levels from 3.3V to 5V and has a viewing angle greater than 160 degrees. Screen Size is 1.3 inches. It is powered with a voltage of 3.3V to 5V. It can be used in applications such as smart watches, MP3s, thermometers, instruments, and various projects, etc.
Characteristics
Interface: I2C(3.3V / 5V logic level)
Resolution: 128 x 64
Angle of view: >160 degree
Display color: Blue
Display size: 1.3 inch
Driver IC: SH1106
Power supply: DC 3.3V~5V
Operating temperature: -20~70’C
Application: smart watch, MP3, thermometer, instruments, DIY projects, etc.
A KY-004 pulse module
PCB
electronic pcb diagram
Circuit
#include <Capacitor.h>
#include <U8glib.h>
#define PULSADOR_PIN 4 // Pin del pulsador
// Condensador en prueba.
// Ten en cuenta que para los electrolíticos el primer pin (en este caso D7)
// debe ser positivo, y el segundo (en este caso A2) negativo.
Capacitor condensador(7, A2);
// Configurar la pantalla OLED SH1106
U8GLIB_SH1106_128X64 oled(U8G_I2C_OPT_NONE);
void setup() {
Serial.begin(9600);
oled.setFont(u8g_font_6x10); // Establecer la fuente para la pantalla OLED
pinMode(PULSADOR_PIN, INPUT_PULLUP); // Configurar el pin del pulsador como entrada con resistencia pull-up
// Mostrar mensaje inicial en la pantalla OLED
oled.firstPage();
do {
oled.drawStr(0, 20, "Apriete el boton");
oled.drawStr(0, 40, "para leer el capacitor");
} while (oled.nextPage());
}
void loop() {
if (digitalRead(PULSADOR_PIN) == LOW) { // Si el pulsador está presionado
float capacitancia = condensador.Measure(); // Medir la capacitancia (en pF)
// Convertir capacitancia a nF y uF
float capacitancia_nF = capacitancia / 1000.0;
float capacitancia_uF = capacitancia / 1000000.0;
// Imprimir en el Monitor Serie
Serial.print("Capacitancia: ");
Serial.print(capacitancia);
Serial.print(" pF, ");
Serial.print(capacitancia_nF, 3);
Serial.print(" nF, ");
Serial.print(capacitancia_uF, 6);
Serial.println(" uF");
// Dibujar en la pantalla OLED
oled.firstPage();
do {
oled.drawStr(0, 10, "Capacitancia:");
// Mostrar en pF
oled.setPrintPos(0, 30); // Posición del texto
oled.print(capacitancia);
oled.print(" pF");
// Mostrar en nF
oled.setPrintPos(0, 45); // Posición del texto
oled.print(capacitancia_nF, 3);
oled.print(" nF");
// Mostrar en uF
oled.setPrintPos(0, 60); // Posición del texto
oled.print(capacitancia_uF, 6);
oled.print(" uF");
} while (oled.nextPage());
delay(1000); // Esperar 1 segundo antes de permitir otra lectura
}
}
Capacimeter with Arduino
*PCBWay community is a shared platform and we are not responsible for any design issues.
- Comments(0)
- Likes(0)
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by CarlosVolt Tutoriales
- Robot with WiFi control and servos driven by ESP32 More info and updates in https://rogerbit.com/wprb/2023/07/robot-wifi/A robot controlled by Wi-Fi, s...
- How to make a water level meter with uln2803 In this tutorial we will see how to make a water level meter circuit with the built-in uln2803.The p...
- Electronic scale with Arduino with HX711 module and tare function More info and updates in https://rogerbit.com/wprb/2024/03/balanza-electronica/In this tutorial, you...
- Capacimeter with Arduino A Capacimeter is an instrument used to measure the capacitance of a capacitor. In this tutorial, we ...
- Start of section with fingerprint module and arduino micro Project descriptionMore info and update in $ https://rogerbit.com/wprb/2023/08/inicio-seccion-finger...
- Frequency meter with alarm A frequency meter is a device that measures the frequency of a periodic signal. In combination with ...
- Emular mouse y teclado con arduino muy fácil En este tutorial, aprenderemos cómo utilizar un Arduino para emular tanto un mouse como un teclado e...
- Control of apc220 modules with smartphone and app Controlling APC220 modules using a smartphone and an app involves connecting via a serial USB adapte...
- Exploring the potential of the SI5351 module in electronic projects In this tutorial, you will dive into the depths of this amazing device and discover its limitless po...
- Gas leak detector alarm system with arduino nano In this tutorial we will see how to assemble a gas leak detector alarm system with arduino nano. We ...
- Build your own long-range weather station with Lora GPS anemometer module In this tutorial we will see how to create a weather station, for places where there is no internet ...
- Dual Synchronized Radio Frequency Control for Motor Lights and more In this tutorial we will see how to do a synchronized radio frequency control, since one control can...
- Object lifter with servo and Arduino Nano Does your waist or back hurt when you bend down? So this invention, it's for you and it can help you...
- 8-channel dual light ignition system, infrared and pushbuttons In this tutorial we will put together a dual light ignition system, since we can control the ignitio...
- How to turn on lights with telegram and esp32 from anywhere in the world In this tutorial we will see how to make a system that allows us to turn on lights with telegram, fr...
- Motion detector with light, esp32 and telegram notifications In this tutorial we will see how to make a motion detector system, with a PIR sensor, a relay module...
- Alcoholimeter with MQ3 sensor and arduino nano (Includes printed circuit) In this tutorial we will see how to make a breathalyzer, simple economical and easy to make. We’ll s...
- GPS tracker without cellular network with LORA module In this tutorial we will see how to make a tracker to GPS tracker, with LORA and Arduino module. We ...
-
-
-
PCB Rule with resistor color code, full color printed with the UV technology
231 0 2 -
Robot with WiFi control and servos driven by ESP32
119 0 1 -
Commodore 1551 Drive Cartridge Replacement
409 0 2 -
RCMHardwareByte-v2.3
319 0 0 -
Terminal Curiosity PCB Ruler
479 0 1 -
(DIY) COMMODORE 64 DEAD-TEST (781220) DIAGNOSTIC CARTRIDGE
513 0 2 -
Creative Micro Designs Inc. CMD FD-2000 / FD-4000 3D Printable Case
528 0 1 -
Creative Micro Designs Inc. CMD FD-2000 / FD-4000 Metal Case
772 0 1