Ks0240 keyestudio EASY plug V2.0 Control Board: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
(Created page with "==EASY plug V2.0 Control Board == <br>500px|frameless|thumb<br> ==Introduction== The processor core of the EASY plug Control board V2.0 Control board is...")
 
Line 32: Line 32:
After selection, you can see that indicated area is the same with settings in “Device manager”.
After selection, you can see that indicated area is the same with settings in “Device manager”.
<br>[[File:KS0240-4.png|500px|frameless|thumb]]<br>
<br>[[File:KS0240-4.png|500px|frameless|thumb]]<br>
Copy the example sketch and paste it to the IDE; then click “Verify <br>[[File:KS0240-5.png|500px|frameless|thumb]]<br> ” to check compiling mistakes; click “Upload <br>[[File:KS0240-6.png|500px|frameless|thumb]]<br> ” to upload the program on the board.
Copy the example sketch and paste it to the IDE; then click “Verify [[File:KS0240-5.png|500px|frameless|thumb]]” to check compiling mistakes; click “Upload [[File:KS0240-6.png|500px|frameless|thumb]]” to upload the program on the board.
<br>[[File:KS0240-7.png|500px|frameless|thumb]]<br>
<br>[[File:KS0240-7.png|500px|frameless|thumb]]<br>


After uploading is done, open “serial monitor <br>[[File:KS0240-8.png|500px|frameless|thumb]]<br> ”; enter “R”; click “Send”, the serial monitor will display “Hello World!” and the D13 LED will blink once.
After uploading is done, open “serial monitor[[File:KS0240-8.png|500px|frameless|thumb]]”; enter “R”; click “Send”, the serial monitor will display “Hello World!” and the D13 LED will blink once.
<br>[[File:KS0240-9.png|500px|frameless|thumb]]<br>
<br>[[File:KS0240-9.png|500px|frameless|thumb]]<br>


==Sample Code==
==Sample Code==

Revision as of 13:17, 24 July 2017

EASY plug V2.0 Control Board


thumb

Introduction

The processor core of the EASY plug Control board V2.0 Control board is ATmega328.
Development board IO port with crystal head leads, and couples with power supply interface can allows you to connect external sensors and module with a line, which makes you don't worry that the wrong wiring will damage the external wiring products.
The development board leads to five digital ports input/output (including three PWM outputs), four analog input interfaces, one dual-digital interface, one SPI communication interface, one serial port communication interface, one IIC communication interface and one joystick module interface.

Specification

  • Microcontroller core: ATmega328P-PU
  • Working voltage: +5V
  • External input voltage:+7V~+12V(suggest)
  • External input voltage ( extremum ): +6V≤ Vin ≤ +20V
  • Digital signal I/O interface: 5 (of which 3provide PWM output)
  • Analog signal input interface: 4
  • DCI/O interface current: 20mA
  • FlashMemory: 32KB (ATmega328) of which 0.5 KB used by bootloader
  • SRAM static storage capacity:2KB
  • EEPROM storage capacity: 1KB
  • Clock frequency:16MHZ


Board test

Following is a board test example called “Hello World!”.
First, open Arduino IDE. In this example sketch, we program Arduino to display “Hello World!” in serial monitor when it receives a specific character string “R”; At the same time, the on-board D13 LED will blink once each time it receives “R”.
First, set up board; In “Tools”, select “Arduino Uno”.

thumb

Next, set up COM port; In “Tools”, select “COM3”.
thumb

After selection, you can see that indicated area is the same with settings in “Device manager”.
thumb
Copy the example sketch and paste it to the IDE; then click “Verify thumb” to check compiling mistakes; click “Upload thumb” to upload the program on the board.
thumb

After uploading is done, open “serial monitorthumb”; enter “R”; click “Send”, the serial monitor will display “Hello World!” and the D13 LED will blink once.
thumb

Sample Code

int val;
int ledpin=13
void setup()
{
Serial.begin(9600);
pinMode(ledpin,OUTPUT);
}
void loop()
{
val=Serial.read();
if(val=='R')
{
digitalWrite(ledpin,HIGH);
delay(500);
digitalWrite(ledpin,LOW);
delay(500);
Serial.println("Hello World!");
}
}

Resources

Datasheet http://www.keyestudio.com/files/index/download/id/1500357488/

Buy from

http://www.keyestudio.com/easy-plug-v2-0-control-board.html