Arduino Voltage And Current Sensor 3~25V 0~3A (MAX471) [B145]




https://www.youtube.com/watch?v=iqT9ZTLlVZc


* GitHubhttps://github.com/rdiot/rdiot-b145.git


* Specs

This module can be used to test the current and voltage

The principle of voltage test based on principle of resistive voltage divider design, can make the red terminal connector input voltage to 5 times smaller

for Arduino analog input voltages up to 5 v, the voltage detection module input voltage not greater than 5Vx5=25V (if using 3.3V systems, input voltage not greater than 3.3Vx5=16.5V).for Arduino AVR chips have 10-bit AD, so this module simulates a resolution of 0.00489V (5V/1023), so the minimum voltage of input voltage detection module is 0.00489Vx5=0.02445V

The MAX471 chip on the board used to test the consume current of the load

Test Voltage range: DC3 - 25V (for Arduino work on 5V) or DC3 - 16.5V (for Arduino work on 3.3V)

Test Current range: DC0 - 3A

PCB Size: 22*21*7mm/0.86*0.82*0.27"

Quantity:1pc


* Content

- Connect

VT - A0

AT - A1

GND - GND

GND - GND


VIN - 3V~25V

GND - GND

VOUT - LOAD LED 12V VCC

GND - LOAD LED GND


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>


#define VT_PIN A0 // connect VT

#define AT_PIN A1 // connect AT


#define ARDUINO_WORK_VOLTAGE 5.0


LiquidCrystal_I2C lcd(0x27,20,4);  // LCD2004


void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");


  delay(1000);


  lcd.clear();

}


void loop()

{

 

  lcd.setCursor(0,0);

  lcd.print("B145:MAX471");


  int vt_temp = analogRead(VT_PIN);

  int at_temp = analogRead(AT_PIN);


  double voltage = vt_temp * (ARDUINO_WORK_VOLTAGE / 1023.0) * 5;

  double current = at_temp * (ARDUINO_WORK_VOLTAGE / 1023.0);

  

  lcd.setCursor(0,1);

  lcd.print("Voltage= " + (String)voltage + "V  ");


  lcd.setCursor(0,2);

  lcd.print("Current= " + (String)current + "A  ");


  delay(500);

}



Posted by RDIoT
|

Red Laser Point Linear Module [D079] 




https://www.youtube.com/watch?v=gONTWDl5HcE

* Specs

Output Power : 5mw

Wavelength : 650nm


Working Voltage : 3~5V

Working Temperature : +10 ~ +40C

Laser Shape Point

Focusable : Yes

Material and Color Metal

Lens Glass

Dimensions : 12*12*40mm


* Content

- Connect

+ - 3~5V

- - GND



Posted by RDIoT
|

MAX7219 Dot Matrix 4 in One Module (MAX7219) [D080]




https://www.youtube.com/watch?v=HQFkxxBsr1Y


* Specs

Using a LED Dot Matrix in your next project can be a way to incorporate some cool little animations.

By using these 8X8 matrix modules you can  create your own.

Since these modules use the MAX7219 LED driver chip, we will be able to turn on and off the 64 LEDs of each modules, using only 3 pins on our Arduino.


* Content

- Connect

VCC - 5V

GND - GND

DIN - D12

CS - D10

CLK - D11


- Library : https://brainy-bits.com/wp-content/uploads/2015/01/LedControl.zip

- Sketch : https://brainy-bits.com/wp-content/uploads/2015/01/MAX7219_Tutorial.zip


- Key Code

#include "LedControl.h"

LedControl lc=LedControl(12,11,10,2);  // Pins: DIN,CLK,CS, # of Display connected


unsigned long delayTime=500;


// Put values in arrays

byte invader1a[] =

{

   B00011000,  // First frame of invader #1

   B00111100,

   B01111110,

   B11011011,

   B11111111,

   B00100100,

   B01011010,

   B10100101

};



void setup()

{

  lc.shutdown(0,false);  // Wake up displays

  lc.shutdown(1,false);

  lc.setIntensity(0,5);  // Set intensity levels

  lc.setIntensity(1,5);

  lc.clearDisplay(0);  // Clear Displays

  lc.clearDisplay(1);

}



'3) Actuator > LED_Dot_Matrix' 카테고리의 다른 글

MAX7219 Dot Matrix Module (MAX7219) [D057]  (0) 2016.09.21
8x8 LED dot Matrix (1588AS) [D015]  (0) 2016.09.21
Posted by RDIoT
|