Skip to content

jihoonkimtech/ElectroSensor_Lib

Repository files navigation

ElectroSensor_Lib

this library for Voltage Sensing and Current Sensing.


arduino-library-badge
NPM Version Build Status

Follows the MIT license ( Please check LICENSE file for more information. )


Function and How to Use

Code

Library Import

  • in case of Library file in Arduino/Library folder
    #include <ElectroSensor.h>
  • In case of Library file in Source code file
    #include <"ElectroSensor_Lib/ElectroSensor.h">

Create Object

  • Current Sensor
    ElectroSensor elec_sensor(CURRENT, (int)pin);
    //elec_sensor is object name
    //sensorType CURRENT = Current Sensor
  • Voltage Sensor
    ElectroSensor elec_sensor(VOLTAGE, (int)pin);
    //elec_sensor is object name
    //sensorType VOLTAGE = Voltage Sensor

Function

  • printVoltage(char lastChr = '\n')
    elec_sensor.printVoltage();
  • readVoltage(int unit = NORMAL);
    elec_sensor.readVoltage();
  • printCurrent(int unit = NORMAL);
    elec_sensor.readVoltage();
  • readCurrent(int unit = NORMAL);
    elec_sensor.readVoltage();

Hardware

  • Supports the sensors below.

    • Voltage Sensor
    • Current Sensor
  • The boards below are supported.

    • Test Finished.
      • Arduino UNO
      • Arduino MEGA
      • Arduino NANO
    • Support Forecast
      • All boards using Arduino IDE

Example

The contents of the example are see Exemples folder.


Update History

  • 0.0.1
    • Start of Develop

Information

Maker

About

this library for Voltage Sensing and Current Sensing.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages