SPLDuino Programming Guide
|
|
- Lauren Poole
- 5 years ago
- Views:
Transcription
1 SPLDuino Programming Guide V Mail: HelloApps Co., Ltd.
2 1. Programming with SPLDuino 1.1 Programming with Arduino Sketch SPLDuino board is a Arduino Uno compatible board. So you can use SPLDuino board with same way in Uno board in Sketch tool. You can download Sketch tool from If you install USB Driver of SPLDuino board before launch Sketch tool, you can select COM port from the port list. More information, please refer
3 1.2 Programming with SPLDuino Editor As shown in its name of SPL (Simple Programming Language), SPLDuino editor supports simple and easy script for beginner and non-expert for Arduino programming. 1) Download editor tool from below page 2) Install editor tool 3) Run USB driver if you don t install USB Driver yet. Execute Install SPL-Duino USB Driver from the SPL folder on desktop or program menu. 4) Run SPL-Duino. Execute SPL-Duino from the SPL folder on desktop or program menu.
4 1.3 LED Blink Example with SPLDuino 1) Click right-mouse button within the loop procedure area on the editor. And choose DigitalWrite(13, HIGH) command from the list.
5 2) Then, Click right-mouse button again and choose Delay(1000) command. 3) Next, Click right-mouse button again and choose DigitalWrite(13, LOW).
6 4) Fianlly, Click right-mouse button again and choose Delay(1000).
7 5) Now, click Run button or press F5 key. Then console window will be shown as below. If there is no error, you can see your LED on board blinks.
8 1.4 Generated Sketch code from the SPLDuino Editor SPLDuino Editor convert SPL script into sketch script before compilation. So you can see this converted sketch script by click Generated Sketch tab. Also, you can use C syntax script within the SPL script. If there is a error during compiling and displayed error line number, you need to check converted sketch tab. Or you can copy sketch script by click View Sketch Code button on the bottom area.
9
10 1.5 SPL vs. Sketch vs. AVR C++ You can change the compile mode from the console window. Below scripts show each script to implement blink scenario with three scripts. 1) SPL Script procedure loop DigitalWrite(13, HIGH) Delay(1000) DigitalWrite(13, LOW) Delay(1000) End
11 2) Sketch Script #include <SPLLib.h> void setup() { pinmode(13, OUTPUT); } void loop() { digitalwrite(13, HIGH); delay(1000); digitalwrite(13, LOW); delay(1000); } 3) AVR C++ Script #include <avr/io.h> #include <util/delay.h> int main (void) { unsigned char counter; /* set PORTB for output*/ DDRB = 0xFF; while (1)
12 { /* set PORTB.2 high */ PORTB = 0xFF; /* wait (10 * ) cycles = wait cycles */ counter = 0; while (counter!= 50) { /* wait (30000 x 4) cycles = wait cycles */ _delay_loop_2(30000); counter++; } /* set PORTB.2 low */ PORTB = 0x00; /* wait (10 * ) cycles = wait cycles */ counter = 0; while (counter!= 50) { /* wait (30000 x 4) cycles = wait cycles */ _delay_loop_2(30000); counter++; }
13 } return 1; }
14 2. Variables and Loop Variables a = 0 procedure loop a = a + 1 PrintLine(a) Delay(1000) End Simple for loop procedure loop for (i=0; i < 10; i++) { PrintLine(i) Delay(1000) } end
15 Multi for loop procedure loop for (i=0; i < 10; i++) { for (j=0; j < 10; j++) { PrintLine(i + j) Delay(1000) } } end
16 3. Digital Sensors 3.1 Digital Sensors Examples of digital sensors are below. You should connect your digital sensors (3 pin sensor) on bellow digital sensor pin.
17 3.2 Morse code with LED SOS message of Morse code can be implement with LED as below. procedure loop //S DigitalWrite(13, HIGH) Delay(200) DigitalWrite(13, LOW) Delay(200) DigitalWrite(13, HIGH) Delay(200) DigitalWrite(13, LOW)
18 Delay(200) DigitalWrite(13, HIGH) Delay(200) DigitalWrite(13, LOW) Delay(200) //O DigitalWrite(13, HIGH) Delay(600) DigitalWrite(13, LOW) Delay(200) DigitalWrite(13, HIGH) Delay(600) DigitalWrite(13, LOW) Delay(200) DigitalWrite(13, HIGH) Delay(600) DigitalWrite(13, LOW) Delay(200) //S
19 DigitalWrite(13, HIGH) Delay(200) DigitalWrite(13, LOW) Delay(200) DigitalWrite(13, HIGH) Delay(200) DigitalWrite(13, LOW) Delay(200) DigitalWrite(13, HIGH) Delay(200) DigitalWrite(13, LOW) Delay(200) End
20 3.3 Read Digital Push Button In order to read digital push button, you can use below script. procedure loop a = DigitalRead(2) PrintLine(a) Delay(1000) end
21 3.4 Control LED with Digital Push Button procedure loop a = DigitalRead(2) if (a == 0) { DigitalWrite(13, HIGH) } else { DigitalWrite(13, LOW) } Delay(100) End
22 3.5 Implement Toggle Button with Digital Push Button s = 0 procedure loop a = DigitalRead(2) //Button Pressed if (a == 0) { if (s == 0) s = 1 else s = 0 } if (s == 0) DigitalWrite(13, HIGH) else DigitalWrite(13, LOW) Delay(100) end
23 4. Create Sound Melody using Tone Command 4.1 Connect Speaker on the Digital Pin 4.2 Tone Command Tone (pin, frequency, duration)
24 c = 3830 d = 3400 procedure loop Tone(2, c, 10000) Delay(250) Tone(2, d, 10000) Delay(250) End 4.3 Simple Melody c = 3830 d = 3400 e = 3038 f = 2864 g = 2550 a = 2272
25 b = 2028 C = 1912 procedure loop Tone(2, c, 10000) Delay(250) Tone(2, d, 10000) Delay(500) Tone(2, f, 10000) Delay(500) Tone(2, g, 10000) Delay(250) Tone(2, e, 10000) Delay(250) Tone(2, a, 10000) Delay(1000) Tone(2, b, 10000) Delay(250)
26 Tone(2, C, 10000) Delay(250) end 4.4 Play using Array m[8] = {3830, 3400, 2864, 2550, 3038, 2272, 2028, 1912} c[8] = {25, 50, 50, 25, 25, 100, 25, 25} procedure loop for (i = 0; i < 8; i++) { Tone(2, m[i], 10000) Delay(10 * c[i]) } end
27 5. Analog Sensors 5.1 Example of Analog Sensors
28
29 5.2 CDS Sensor of SPLDuino You can access CDS sensor by using below command. - AnalogRead(6) or - CDSRead() Below codes print CDS values. procedure loop a = CDSRead() //equal to a = AnalogRead(6) PrintLine(a) Delay(1000) end
30 5.3 Change blink period by using CDS Sensor value procedure loop a = AnalogRead(6) DigitalWrite(13, HIGH) Delay(a) DigitalWrite(13, LOW) Delay(a) end
31 5.4 Print IR sensor value procedure loop a = AnalogRead(0) PrintLine(a) Delay(1000) End
32 5.5 Play Sound using IR sensor m[8] = {3830, 3400, 2864, 2550, 3038, 2272, 2028, 1912} procedure loop a = AnalogRead(0)
33 if (a < 130) Tone(2, m[0], 10000) else if (a >= 130 && a < 260) Tone(2, m[1], 10000) else if (a >= 260 && a < 390) Tone(2, m[2], 10000) else if (a >= 390 && a < 520) Tone(2, m[3], 10000) else if (a >= 520 && a < 650) Tone(2, m[4], 10000) else if (a >= 650 && a < 780) Tone(2, m[5], 10000) else if (a >= 780 && a < 910) Tone(2, m[6], 10000) else if (a >= 910) Tone(2, m[7], 10000) Delay(250) end
34 6. Use DC Motor Pins 6.1 How to use DIP switch If you want to use DC motor pin, you need to change DIP switch. In default, DIP switches are set all off as shown in below. In this mode (Off mode), you can use SPLDuino board as below: - You can use all digital and analog pins. - You can t use DC motor pins. If you set these DIP switch all ON, you can use SPLDuino board as below:
35 - You can t use digital pin 4 (Direction) and 7 (Direction). - You can t use digital pin 5 (PWM) and 6 (PWM). - You can use two DC motor pins (DC motor1 and motor2). 6.2 Example to use DC motor pins In order to use DC motor pins, you should set all DIP switch as ON. In this case, motor pins generate 0V ~ 5V power with PWM. Below codes shows how to use these two DC motor pins in
36 order to control robot DC motors. void Motor1Write(int power) { int v = abs(power); if (v > 255) v = 255; if (power >= 0) digitalwrite(4, LOW); else digitalwrite(4, HIGH); analogwrite(5, v); } void Motor2Write(int power) { int v = abs(power); if (v > 255) v = 255;
37 if (power >= 0) digitalwrite(7, LOW); else digitalwrite(7, HIGH); analogwrite(6, v); } In above code, digital pin 4 and 7 are used to control direction (+ or voltage). And digital pin 5 and 6 are used as power (PWM).
38 6.3 Control Mini Pan using DC Motor Pin procedure loop
39 Motor1Write(255) Delay(1000) end 6.4 Change Power of Mini Pan procedure loop for (i = 100; i <= 220; i = i + 10) { Motor1Write(i) Delay(1000) } for (i = 220; i >= 100; i = i - 10) { Motor1Write(i) Delay(1000) } end
40 6.5 Change Power of Mini Pan with CDS Sensor procedure loop a = CDSRead() a = a / 4 if (a > 255) a = 255 Motor1Write(a) Delay(100) end
41 6.6 Change Power of Mini Pan with Button Sensor Below code print pressed button value.
42 procedure loop b = ButtonRead() PrintLine(b) Delay(1000) End Below code shows how to change the power of pan by using button sensor. procedure loop b = ButtonRead() if (b >= 0 && b < 300) //first button Motor1Write(0) else if (b >= 300 && b < 600) //stop //second button Motor1Write(100) //power 1 else if (b >= 600 && b < 1000) //third button Motor1Write(200) //power 2
43 Delay(100) end 6.7 Turn On/Off LED Light procedure loop c = CDSRead()
44 if (c < 500) Motor1Write(255) else Motor1Write(0) Delay(100) end 6.8 Water Motor Pump
45 To turn on motor pump, use below code. procedure loop Motor1Write(255) Delay(1000) end
46 6.9 Automatic Water Supply for Plant
47 procedure loop a = AnalogRead(0) //Read Soil Moisture Sensor if (a < 200) Motor1Write(255) //Turn On Motor else Motor1Write(0) //Turn Off Motor Delay(10000) end
48 6.10 Implement Fountain Connect Temperature sensor.
49 procedure loop a = AnalogRead(0) if (a >= 62) Motor1Write(255) else Motor1Write(0) Delay(10000) end
50 7. Robot Control 7.1 Connect wheels
51 7.2 Connect IR sensors
52 7.3 Driving Commands - DriveWrite(Left Power, Right Power) Left Power : -255 ~ 255 Right Power : -255 ~ Max Go Forwards : DriveWrite(255, 255) - Stop: DriveWrite(0, 0) - Go Backwards: DriveWrite(-150, -150) - Turn: DriveWrite(-150, 150)
53 7.4 Go Forwards procedure loop DriveWrite(200, 200) Delay(1000) end procedure loop DriveWrite(200, 200) Delay(1000) DriveWrite(0, 0) Delay(1000) End
54 7.5 Go Backwards and Turn procedure loop DriveWrite(200, 200) Delay(1000) DriveWrite(-150, -150) Delay(1000) DriveWrite(-150, 150) Delay(1000) End
55 7.6 Make Stop Robot by using IR Sensor procedure loop a0 = AnalogRead(0) a1 = AnalogRead(1) stop = false if (a0 > 300) stop = true //first IR sensor, set stop true if (a1 > 300) //second IR sensor, set stop true stop = true if (stop) DriveWrite(0, 0) else DriveWrite(200, 200) Delay(100) end
56 7.7 Obstacle Avoider procedure loop d1 = Sensor1Read() d2 = Sensor2Read() if (d1 > 200) { DriveWrite(-200, -200) Delay(1000) DriveWrite(150, -150) Delay(1000) DriveWrite(200, 200) } else if (d2 > 200) { DriveWrite(-200, -200) Delay(1000) DriveWrite(-150, 150) Delay(1000) DriveWrite(200, 200) } else DriveWrite(200, 200) end
57 7.8 Joystick Sensor - X Axis (Analog) : 0, 511, Y Axis (Analog) : 0, 513, Digital Push Button : 0 or 1
58 procedure loop x = AnalogRead(0) y = AnalogRead(1) //X //Y Print(x) Print(" : ") PrintLine(y) Delay(100) end 7.9 Robot Control using Joystick Sensor procedure loop x = AnalogRead(0) y = AnalogRead(1) //X //Y if (x == 0) DriveWrite(-250, 250) //Left Turn else if (x == 1023) DriveWrite(250, -250) //Right Turn
59 else if (y == 0) DriveWrite(250, 250) //Forwards else if (y == 1023) DriveWrite(-250, -250) //Backwards else DriveWrite(0, 0) //Stop Delay(100) end 7.10 Analog Sound Sensor
60 procedure loop a = AnalogRead(0) PrintLine(a) Delay(100) End 7.11 Control Robot by Using Analog Sound Sensor s0 = 0 s1 = 0 procedure loop a0 = AnalogRead(0) a1 = AnalogRead(1) if (a0 > 50 && a0 <= 150 ) s0 = 0 else if (a0 > 150 )
61 s0 = a0 / 4 if (a1 > 50 && a1 <= 150 ) s1 = 0 else if (a1 > 150 ) s1 = a1 / 4 DriveWrite(s0, s1) Delay(100) end
62 8. LED Chain
63 8.1 Change All Color SetAllColor(Red, Green, Blue) procedure loop SetAllColor(255, 0, 0) //Red Delay(1000) SetAllColor(0, 255, 0) //Green Delay(1000) SetAllColor(0, 0, 255) //Blue Delay(1000) end 8.2 Blink LED Chain procedure loop SetAllColor(255, 0, 0) Delay(1000) SetAllColor(0, 0, 0) Delay(1000)
64 End 8.3 Change Brightness by using CDS sensor procedure loop c = CDSRead() c = c / 4 if (c > 255) c = 255 SetAllColor(c, c, c) End
65 8.4 Change each color of cell - SetColor(position, Red, Green, Blue) Blink first LED cell script procedure loop SetColor(0, 0, 0, 255) //first : 0 Delay(1000) end SetColor(0, 0, 0, 0) Delay(1000) 8.5 Change color procedure loop for (i=0; i < 50; i++) { SetColor(i, 255, 0, 0) Delay(100) }
66 for (i=0; i < 50; i++) { SetColor(i, 0, 255, 0) Delay(100) } for (i=0; i < 50; i++) { SetColor(i, 0, 0, 255) Delay(100) } for (i=0; i < 50; i++) { SetColor(i, 255, 255, 0) Delay(100) } for (i=0; i < 50; i++) { SetColor(i, 0, 255, 255) Delay(100) }
67 for (i=0; i < 50; i++) { SetColor(i, 255, 0, 255) Delay(100) } for (i=0; i < 50; i++) { SetColor(i, 255, 255, 255) Delay(100) } end 8.6 Display Digit
68 byte m[5][5] = {{24,23,22,21,20},{15,16,17,18,19},{14,13,12,11,10},{5,6,7,8,9},{4,3,2,1,0}} //Define Digit byte n[10][5] = {{14,10,10,10,14},{4,4,4,4,4},{14,2,14,8,14},{14,2,14,2,14},{10,10,14,2,2},{14,8,14,2,14},{1 4,8,14,10,14},{14,2,2,2,2},{14,10,14,10,14},{14,10,14,2,2}} procedure loop for (i=0; i < 10; i++) { SetDigit(i) Delay(1000) } end procedure SetDigit(int s) for (i=0; i < 5; i++) { a = n[s][i] a0 = (a & 16) * 255 a1 = (a & 8) * 255 a2 = (a & 4) * 255 a3 = (a & 2) * 255 a4 = (a & 1) * 255 SetColor(m[i][0], a0, 0, 0, false) SetColor(m[i][1], a1, 0, 0, false)
69 SetColor(m[i][2], a2, 0, 0, false) SetColor(m[i][3], a3, 0, 0, false) SetColor(m[i][4], a4, 0, 0, false) } SetColorShow() end
70 9. Servo Motor 9.1 Change Degrees procedure loop ServoWrite(2, 0)
71 Delay(1000) ServoWrite(2, 45) Delay(1000) ServoWrite(2, 90) Delay(1000) ServoWrite(2, 135) Delay(1000) ServoWrite(2, 180) Delay(1000) ServoWrite(2, 135) Delay(1000) ServoWrite(2, 90) Delay(1000) ServoWrite(2, 45) Delay(1000) end
72 10. Crystal LCD 10.1 Print Hello World // set the LCD address to 0x27 for a 16 chars and 2 line display LiquidCrystal_I2C lcd(0x27,16,2); void setup()
73 { // initialize the lcd lcd.init(); // Print a message to the LCD. lcd.backlight(); lcd.print("hello, world!"); } void loop() { } 10.2 Print Custom Character #define printbyte(args) write(args); uint8_t bell[8] = {0x4,0xe,0xe,0xe,0x1f,0x0,0x4}; uint8_t note[8] = {0x2,0x3,0x2,0xe,0x1e,0xc,0x0}; uint8_t clock[8] = {0x0,0xe,0x15,0x17,0x11,0xe,0x0}; uint8_t heart[8] = {0x0,0xa,0x1f,0x1f,0xe,0x4,0x0}; uint8_t duck[8] = {0x0,0xc,0x1d,0xf,0xf,0x6,0x0}; uint8_t check[8] = {0x0,0x1,0x3,0x16,0x1c,0x8,0x0}; uint8_t cross[8] = {0x0,0x1b,0xe,0x4,0xe,0x1b,0x0};
74 uint8_t retarrow[8] = { 0x1,0x1,0x5,0x9,0x1f,0x8,0x4}; // set the LCD address to 0x27 for a 16 chars and 2 line display LiquidCrystal_I2C lcd(0x27,16,2); void setup() { lcd.init(); // initialize the lcd lcd.backlight(); lcd.createchar(0, bell); lcd.createchar(1, note); lcd.createchar(2, clock); lcd.createchar(3, heart); lcd.createchar(4, duck); lcd.createchar(5, check); lcd.createchar(6, cross); lcd.createchar(7, retarrow); lcd.home(); lcd.print("hello world..."); lcd.setcursor(0, 1); lcd.print(" i "); lcd.printbyte(3);
75 lcd.print(" arduinos!"); delay(5000); displaykeycodes(); } // display all keycodes void displaykeycodes(void) { uint8_t i = 0; while (1) { lcd.clear(); lcd.print("codes 0x"); lcd.print(i, HEX); lcd.print("-0x"); lcd.print(i+16, HEX); lcd.setcursor(0, 1); for (int j=0; j<16; j++) { lcd.printbyte(i+j); } i = i + 16; delay(4000);
76 } } void loop() { }
77 11. Control through Smartphone using Bluetooth 11.1 Install Android app from Google Play - Search with SPL-Duino - Use PIN Number: 0000
78 11.2 Control LED from Smartphone SPLDuino Script on the Board procedure loop a = SerialRead() if (a == 1) DigitalWrite(13, HIGH) else if (a == 2) DigitalWrite(13, LOW) Delay(100) End Now, execute second example on the app.
79 11.3 Control Pan from Smartphone procedure loop a = SerialRead() if (a == 1) Motor1Write(200) else if (a == 2) Motor1Write(0) Delay(100)
80 End 11.4 Control Robot from Smartphone procedure loop a = SerialRead() if (a == 1) DriveWrite(200, 200) else if (a == 2) DriveWrite(-150, 150) else if (a == 3) DriveWrite(0, 0) else if (a == 4) DriveWrite(150, -150) else if (a == 5) DriveWrite(-150, -150) Delay(100) End
81 Execute fourth example from the app.
82
83 12. Additional Information HelloApps is going to provide more documents and samples soon Mail: splduino@gmail.com
I2C TWI LCD2004 Module (Arduino/Gadgeteer Compatible) (SKU:DFR0154)
I2C TWI LCD2004 Module (Arduino/Gadgeteer Compatible) (SKU:DFR0154) Introduction I2C/TWI LCD2004 module compatible with Gadgeteer is a cool lcd display with a high speed I2C serial bus from DFRobot. With
More informationARDUINO. By Kiran Tiwari BCT 2072 CoTS.
ARDUINO By Kiran Tiwari BCT 2072 CoTS www.kirantiwari.com.np SO What is an Arduino? WELL!! Arduino is an open-source prototyping platform based on easy-to-use hardware and software. Why Arduino? Simplifies
More informationArduino Prof. Dr. Magdy M. Abdelhameed
Course Code: MDP 454, Course Name:, Second Semester 2014 Arduino What is Arduino? Microcontroller Platform Okay but what s a Microcontroller? Tiny, self-contained computers in an IC Often contain peripherals
More informationI2C/TWI LCD1602 Module (Gadgeteer Compatible) (SKU: DFR0063)
I2C/TWI LCD1602 Module (Gadgeteer Compatible) (SKU: DFR0063) Introduction This is another great I2C 16x2 LCD display compatible with Gadgeteer modules from DFRobot. With limited pin resources, your project
More informationUSER MANUAL ARDUINO I/O EXPANSION SHIELD
USER MANUAL ARDUINO I/O EXPANSION SHIELD Description: Sometimes Arduino Uno users run short of pins because there s a lot of projects that requires more than 20 signal pins. The only option they are left
More informationArduino Programming. Arduino UNO & Innoesys Educational Shield
Arduino Programming Arduino UNO & Innoesys Educational Shield www.devobox.com Electronic Components & Prototyping Tools 79 Leandrou, 10443, Athens +30 210 51 55 513, info@devobox.com ARDUINO UNO... 3 INNOESYS
More informationMore Arduino Programming
Introductory Medical Device Prototyping Arduino Part 2, http://saliterman.umn.edu/ Department of Biomedical Engineering, University of Minnesota More Arduino Programming Digital I/O (Read/Write) Analog
More informationIntroduction to Arduino
Introduction to Arduino Paco Abad May 20 th, 2011 WGM #21 Outline What is Arduino? Where to start Types Shields Alternatives Know your board Installing and using the IDE Digital output Serial communication
More informationArduino Part 2. Introductory Medical Device Prototyping
Introductory Medical Device Prototyping Arduino Part 2, http://saliterman.umn.edu/ Department of Biomedical Engineering, University of Minnesota More Arduino Programming Digital I/O (Read/Write) Analog
More informationArduino Uno Microcontroller Overview
Innovation Fellows Program Arduino Uno Microcontroller Overview, http://saliterman.umn.edu/ Department of Biomedical Engineering, University of Minnesota Arduino Uno Power & Interface Reset Button USB
More informationGUIDE TO SP STARTER SHIELD (V3.0)
OVERVIEW: The SP Starter shield provides a complete learning platform for beginners and newbies. The board is equipped with loads of sensors and components like relays, user button, LED, IR Remote and
More informationUniversity of Portland EE 271 Electrical Circuits Laboratory. Experiment: Arduino
University of Portland EE 271 Electrical Circuits Laboratory Experiment: Arduino I. Objective The objective of this experiment is to learn how to use the Arduino microcontroller to monitor switches and
More informationLab 01 Arduino 程式設計實驗. Essential Arduino Programming and Digital Signal Process
Lab 01 Arduino 程式設計實驗 Essential Arduino Programming and Digital Signal Process Arduino Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. It's
More informationRobotics/Electronics Review for the Final Exam
Robotics/Electronics Review for the Final Exam Unit 1 Review. 1. The battery is 12V, R1 is 400 ohms, and the current through R1 is 20 ma. How many ohms is R2? ohms What is the voltage drop across R1? V
More informationArduino 101 AN INTRODUCTION TO ARDUINO BY WOMEN IN ENGINEERING FT T I NA A ND AW E S O ME ME NTO R S
Arduino 101 AN INTRODUCTION TO ARDUINO BY WOMEN IN ENGINEERING FT T I NA A ND AW E S O ME ME NTO R S Overview Motivation Circuit Design and Arduino Architecture Projects Blink the LED Switch Night Lamp
More information3.The circuit board is composed of 4 sets which are 16x2 LCD Shield, 3 pieces of Switch, 2
Part Number : Product Name : FK-FA1416 MULTI-FUNCTION 16x2 LCD SHIELD This is the experimental board of Multi-Function 16x2 LCD Shield as the fundamental programming about the digits, alphabets and symbols.
More informationIME-100 ECE. Lab 3. Electrical and Computer Engineering Department Kettering University. G. Tewolde, IME100-ECE,
IME-100 ECE Lab 3 Electrical and Computer Engineering Department Kettering University 3-1 1. Laboratory Computers Getting Started i. Log-in with User Name: Kettering Student (no password required) ii.
More information// sets the position of cursor in row and column
CODE: 1] // YES_LCD_SKETCH_10_14_12 #include //lcd(rs, E, D4, D5, D6, D7) LiquidCrystal lcd(8, 9, 4, 5, 6, 7); int numrows = 2; int numcols = 16; void setup() Serial.begin(9600); lcd.begin(numrows,
More informationIME-100 Interdisciplinary Design and Manufacturing
IME-100 Interdisciplinary Design and Manufacturing Introduction Arduino and Programming Topics: 1. Introduction to Microprocessors/Microcontrollers 2. Introduction to Arduino 3. Arduino Programming Basics
More informationRobosoft Systems in association with JNCE presents. Swarm Robotics
Robosoft Systems in association with JNCE presents Swarm Robotics What is a Robot Wall-E Asimo ABB Superior Moti ABB FlexPicker What is Swarm Robotics RoboCup ~ 07 Lets Prepare for the Robotics Age The
More informationkeyestudio Keyestudio MEGA 2560 R3 Board
Keyestudio MEGA 2560 R3 Board Introduction: Keyestudio Mega 2560 R3 is a microcontroller board based on the ATMEGA2560-16AU, fully compatible with ARDUINO MEGA 2560 REV3. It has 54 digital input/output
More informationSerial.begin ( ); Serial.println( ); analogread ( ); map ( );
Control and Serial.begin ( ); Serial.println( ); analogread ( ); map ( ); A system output can be changed through the use of knobs, motion, or environmental conditions. Many electronic systems in our world
More informationNote. The above image and many others are courtesy of - this is a wonderful resource for designing circuits.
Robotics and Electronics Unit 2. Arduino Objectives. Students will understand the basic characteristics of an Arduino Uno microcontroller. understand the basic structure of an Arduino program. know how
More informationARDUINO UNO R3 BASED 20A ROBOT CONTROL BOARD [RKI-1580] Page 1
ARDUINO UNO R3 BASED 20A ROBOT CONTROL BOARD [RKI-1580] http://www.robokitsworld.com Page 1 1. Introduction: The Arduino UNO R3 based 20A robot control board is a versatile motor controller for driving
More informationUpdate: Ver 1.3 Dec Arduino Learning Guide For Beginner Using. Created by Cytron Technologies Sdn Bhd - All Rights Reserved
Update: Ver 1.3 Dec 2018 Arduino Learning Guide For Beginner Using Created by Cytron Technologies Sdn Bhd - All Rights Reserved LESSON 0 SETTING UP HARDWARE & SOFTWARE Part 1: Put Up Label Stickers for
More informationProcedure: Determine the polarity of the LED. Use the following image to help:
Section 2: Lab Activity Section 2.1 Getting started: LED Blink Purpose: To understand how to upload a program to the Arduino and to understand the function of each line of code in a simple program. This
More informationAdapted from a lab originally written by Simon Hastings and Bill Ashmanskas
Physics 364 Arduino Lab 1 Adapted from a lab originally written by Simon Hastings and Bill Ashmanskas Vithayathil/Kroll Introduction Last revised: 2014-11-12 This lab introduces you to an electronic development
More informationFUNCTIONS For controlling the Arduino board and performing computations.
d i g i t a l R e a d ( ) [Digital I/O] Reads the value from a specified digital pin, either HIGH or LOW. digitalread(pin) pin: the number of the digital pin you want to read HIGH or LOW Sets pin 13 to
More informationArduino Programming and Interfacing
Arduino Programming and Interfacing Stensat Group LLC, Copyright 2017 1 Robotic Arm Experimenters Kit 2 Legal Stuff Stensat Group LLC assumes no responsibility and/or liability for the use of the kit and
More informationWelcome to Apollo. For more information, please visit the website and select Apollo. Default Code
Welcome to Apollo For more information, please visit the website and select Apollo Arduino Pins Default Code D49 LED Digital Pins digitalwrite digitalread pinmode Analog Pins analogread digitalread D33
More informationIntroduction To Arduino
Introduction To Arduino What is Arduino? Hardware Boards / microcontrollers Shields Software Arduino IDE Simplified C Community Tutorials Forums Sample projects Arduino Uno Power: 5v (7-12v input) Digital
More informationEEG 101L INTRODUCTION TO ENGINEERING EXPERIENCE
EEG 101L INTRODUCTION TO ENGINEERING EXPERIENCE LABORATORY 1: INTRODUCTION TO ARDUINO IDE AND PROGRAMMING DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING UNIVERSITY OF NEVADA, LAS VEGAS 1. FYS KIT COMPONENTS
More informationanalogwrite(); The analogwrite function writes an analog value (PWM wave) to a PWM-enabled pin.
analogwrite(); The analogwrite function writes an analog value (PWM wave) to a PWM-enabled pin. Syntax analogwrite(pin, value); For example: analogwrite(2, 255); or analogwrite(13, 0); Note: Capitalization
More informationFUNCTIONS USED IN CODING pinmode()
FUNCTIONS USED IN CODING pinmode() Configures the specified pin to behave either as an input or an output. See the description of digital pins for details on the functionality of the pins. As of Arduino
More informationEXPERIMENT 7 Please visit https://www.arduino.cc/en/reference/homepage to learn all features of arduino before you start the experiments
EXPERIMENT 7 Please visit https://www.arduino.cc/en/reference/homepage to learn all features of arduino before you start the experiments TEMPERATURE MEASUREMENT AND CONTROL USING LM35 Purpose: To measure
More informationRobotics Adventure Book Scouter manual STEM 1
Robotics Robotics Adventure Book Scouter Manual Robotics Adventure Book Scouter manual STEM 1 A word with our Scouters: This activity is designed around a space exploration theme. Your Scouts will learn
More informationm-block By Wilmer Arellano
m-block By Wilmer Arellano You are free: to Share to copy, distribute and transmit the work Under the following conditions: Attribution You must attribute the work in the manner specified by the author
More informationTANGIBLE MEDIA & PHYSICAL COMPUTING INTRODUCTION TO ARDUINO
TANGIBLE MEDIA & PHYSICAL COMPUTING INTRODUCTION TO ARDUINO AGENDA ARDUINO HARDWARE THE IDE & SETUP BASIC PROGRAMMING CONCEPTS DEBUGGING & HELLO WORLD INPUTS AND OUTPUTS DEMOS ARDUINO HISTORY IN 2003 HERNANDO
More informationComputer Architectures
Implementing the door lock with Arduino Gábor Horváth 2017. február 24. Budapest associate professor BUTE Dept. Of Networked Systems and Services ghorvath@hit.bme.hu Outline Aim of the lecture: To show
More informationElectronic Brick Starter Kit
Electronic Brick Starter Kit Getting Started Guide v1.0 by Introduction Hello and thank you for purchasing the Electronic Brick Starter Pack from Little Bird Electronics. We hope that you will find learning
More informationm-block By Wilmer Arellano
m-block By Wilmer Arellano You are free: to Share to copy, distribute and transmit the work Under the following conditions: Attribution You must attribute the work in the manner specified by the author
More informationRobotics and Electronics Unit 5
Robotics and Electronics Unit 5 Objectives. Students will work with mechanical push buttons understand the shortcomings of the delay function and how to use the millis function. In this unit we will use
More informationUpdate: Ver 1.3 Dec Arduino Learning Guide For Beginner Using. Created by Cytron Technologies Sdn Bhd - All Rights Reserved
Update: Ver 1.3 Dec 2018 Arduino Learning Guide For Beginner Using Created by Cytron Technologies Sdn Bhd - All Rights Reserved LESSON 0 SETTING UP HARDWARE & SOFTWARE Part 1: Put Up Label Stickers for
More information1.0. Presents. techathon 3.0
1.0 Presents techathon 3.0 Course Content - techathon techathon 3.0 is a Robotics and Embedded systems Workshop designed by team Robo-Minions. It is a 2 days workshop with each day divided into two sessions
More informationArduino and Matlab for prototyping and manufacturing
Arduino and Matlab for prototyping and manufacturing Enrique Chacón Tanarro 11th - 15th December 2017 UBORA First Design School - Nairobi Enrique Chacón Tanarro e.chacon@upm.es Index 1. Arduino 2. Arduino
More informationModules For Six Months Industrial Training On WIRELESS EMBEDDED SYSTEM DESIGN
Modules For Six Months Industrial Training On WIRELESS EMBEDDED SYSTEM DESIGN 1 st Week Introduction to Embedded System a) Tool Hardware tool and Software tool b) Embedded designing, course study c) Board
More informationMEDIS Module 2. Microcontroller based systems for controlling industrial processes. Chapter 4: Timer and interrupts. M. Seyfarth, Version 0.
MEDIS Module 2 Microcontroller based systems for controlling industrial processes Chapter 4: Timer and interrupts M. Seyfarth, Version 0.1 Steuerungstechnik 1: Speicherprogrammierbare Steuerungstechnik
More information1 Introduction. 1.1 Overview. 1.2 Supported Hardware. 1.3 Recommended Hardware. 1.4 Installation
1 Introduction 1.1 Overview The RobotOpen Arduino Library provides an easy to use abstraction layer to quickly begin programming and controlling your robots with RobotOpen. The 1.0.x release is currently
More informationRhino Robot Control Board [RKI-1550]
Rhino Robot Control Board [RKI-1550] Users Manual Robokits India info@robokits.co.in http://www.robokitsworld.com Page 1 The Rhino Robot control board is versatile and expandable platform for robotics.
More informationWorkshop Arduino English starters workshop 2
Workshop Arduino English starters workshop 2 We advice to finish part 1 of this workshop before following this one. There are a set of assignments in this workshop that can be taken individually. First
More informationDAQ-1000 Data Acquisition and Control System Application
WWW.INHAOS.COM DAQ-1000 Data Acquisition and Control System Application Based on the DAQ-1000 Arduino UNO Data Acquisition shield Tony Tan 2015/11/10 1. Summary This document gives an example of how to
More informationDesigned & Developed By: Ms. Jasleen Kaur, PhD Scholar, CSE. Computer Science & Engineering Department
Design & Development of IOT application using Intel based Galileo Gen2 board A Practical Approach (Experimental Manual For B.Tech & M.Tech Students) For SoC and Embedded systems in association with Intel
More informationBASIC ARDUINO WORKSHOP. Mr. Aldwin and Mr. Bernardo
BASIC ARDUINO WORKSHOP Mr. Aldwin and Mr. Bernardo 1 BASIC ARDUINO WORKSHOP Course Goals Introduce Arduino Hardware and Understand Input Software and Output Create simple project 2 Arduino Open-source
More informationIntroduction to Microcontrollers Using Arduino. PhilRobotics
Introduction to Microcontrollers Using Arduino PhilRobotics Objectives Know what is a microcontroller Learn the capabilities of a microcontroller Understand how microcontroller execute instructions Objectives
More informationBASIC Arduino. Part I
BASIC Arduino Part I Objectives Introduction to Arduino Build a 1-60MHz DDS VFO prototype, breadboard and write Sketches, with Buffer amps to be designed, and PCB Using your own laptop Go on to build other
More informationSECOND EDITION. Arduino Cookbook. Michael Margolis O'REILLY- Tokyo. Farnham Koln Sebastopol. Cambridge. Beijing
SECOND EDITION Arduino Cookbook Michael Margolis Beijing Cambridge Farnham Koln Sebastopol O'REILLY- Tokyo Table of Contents Preface xi 1. Getting Started 1 1.1 Installing the Integrated Development Environment
More informationARDUINO EXPERIMENTS ARDUINO EXPERIMENTS
ARDUINO EXPERIMENTS IR OBSTACLE SENSOR... 3 OVERVIEW... 3 OBJECTIVE OF THE EXPERIMENT... 3 EXPERIMENTAL SETUP... 3 IR SENSOR ARDUINO CODE... 4 ARDUINO IDE SERIAL MONITOR... 5 GAS SENSOR... 6 OVERVIEW...
More informationTA0139 USER MANUAL ARDUINO 2 WHEEL DRIVE WIRELESS BLUETOOTH ROBOT KIT
TA0139 USER MANUAL ARDUINO 2 WHEEL DRIVE WIRELESS BLUETOOTH ROBOT KIT I Contents Overview TA0139... 1 Getting started: Arduino 2 Wheel Drive Wireless Bluetooth Robot Kit using Arduino UNO... 1 2.1. What
More informationUser manual. For Keenlon Rarduino.
User manual For Keenlon Rarduino Design & Executive Service Website Shanghai Keenlon Hi-Tech Co., Ltd. Techsupport@keenlon.com www.keenlon.com Contents 3 Programming software installation guide 5 Programming
More informationAdvance Robotics with Embedded System Design (ARESD)
Advance Robotics with Embedded System Design (ARESD) LEARN HOW TO: Use Arduino hardware &Arduino programming for microcontroller based hobby project development Use WinAVRcross compiler formicrocontroller
More informationI2C Serial 2.6 LCD Module
Ausgabe 08.09.2017 Copyright by Joy-IT 1 Index 1. Using with an Arduino 1.1 Connecting the display 1.2 Installing the library 1.3 Example-Code 2. Using with a Raspberry Pi 2.1 Installing the software 2.2
More informationI n t e r a c t i v e HA u t o m a t a _. Programming for Engineers Winter Andreas Zeller, Saarland University
I n t e r a c t i v e HA u t o m a t a _ Programming for Engineers Winter 2015 Andreas Zeller, Saarland University Today s Topics Strings Interaction Automata A Purchase Select Product Insert Coins Dispense
More informationTABLE OF CONTENTS INTRODUCTION LESSONS PROJECTS
TABLE OF CONTENTS INTRODUCTION Introduction to Components - Maker UNO 5 - Maker UNO Board 6 - Setting Up - Download Arduino IDE 7 - Install Maker UNO Drivers - Install Maker UNO Board Package 3 LESSONS.
More informationEP486 Microcontroller Applications
EP486 Microcontroller Applications Topic 6 Step & Servo Motors Joystick & Water Sensors Department of Engineering Physics University of Gaziantep Nov 2013 Sayfa 1 Step Motor http://en.wikipedia.org/wiki/stepper_motor
More informationCourseContents: 1.Introduction to MATLAB. 2. Handling data and data flow in MATLAB. 3. Editing and Debugging M-FILES
CourseContents: 1.Introduction to MATLAB Historical Background Demo & Applications Scope of MATLAB Importance to Engineers Features Vectors & Arrays Accessing MATLAB Help MATLAB Environment Workspace &
More informationSpecification. 1.Power Supply direct from Microcontroller Board. 2.The circuit can be used with Microcontroller Board such as Arduino UNO R3.
Part Number : Product Name : FK-FA1410 12-LED AND 3-BOTTON SHIELD This is the experimental board for receiving and transmitting data from the port of microcontroller. The function of FK-FA1401 is fundamental
More informationDIY Remote Control Robot Kit (Support Android) SKU:COMB0004
DIY Remote Control Robot Kit (Support Android) SKU:COMB0004 Contents [hide] 1 Overall o 1.1 Microcontroller 2 Part List o 2.1 Basic Kit o 2.2 Upgrade Components o 2.3 Additional Parts Required 3 Assembly
More informationArduino Programming Part 3. EAS 199A Fall 2010
Arduino Programming Part 3 EAS 199A Fall 2010 Overview Part I Circuits and code to control the speed of a small DC motor. Use potentiometer for dynamic user input. Use PWM output from Arduino to control
More informationThe speaker connection is circled in yellow, the button connection in red and the temperature sensor in blue
Connections While the board can be connected to a number of different Arduino versions I chose to use the Pro Mini as I wanted the completed unit to be fairly small. The Mini and the MP3 board run on 5
More informationAVR 40 Pin Rapid Robot controller board
AVR 40 Pin Rapid Robot controller board User Manual Robokits India http://www.robokits.org info@robokits.org - 1 - Thank you for purchasing the AVR 40 Pin Rapid Robot controller board. This unit has been
More informationLaboratory 1 Introduction to the Arduino boards
Laboratory 1 Introduction to the Arduino boards The set of Arduino development tools include µc (microcontroller) boards, accessories (peripheral modules, components etc.) and open source software tools
More informationWhat s inside the kit
What s inside the kit 1 set Jumper Wires 5 pcs Tact Switch 1 pc Photoresistor 1 pc 400 Points Breadboard 1 pc Potentiometer 1 pc LCD 5 pcs 5mm Red LED 5 pcs 5mm Green LED 5 pcs 5mm Yellow LED 30 pcs Resistors
More informationThe Arduino IDE. & ArduBlock
Systems of Technology - Robotics: Section 3 The Arduino IDE & ArduBlock Instructions/Build Plans v2.0 Team Members: 1. 3. 2. 4. Introduction 1. Locate/Open: The Arduino IDE & Ardublock - Video Tutorial.
More informationINDUSTRIAL TRAINING:6 MONTHS PROGRAM TEVATRON TECHNOLOGIES PVT LTD
MODULE-1 C Programming Language Introduction to C Objectives of C Applications of C Relational and logical operators Bit wise operators The assignment statement Intermixing of data types type conversion
More informationArduino Uno. Power & Interface. Arduino Part 1. Introductory Medical Device Prototyping. Digital I/O Pins. Reset Button. USB Interface.
Introductory Medical Device Prototyping Arduino Part 1, http://saliterman.umn.edu/ Department of Biomedical Engineering, University of Minnesota Arduino Uno Power & Interface Reset Button USB Interface
More informationArduino Programming Part 4: Flow Control
Arduino Programming Part 4: Flow Control EAS 199B, Winter 2010 Gerald Recktenwald Portland State University gerry@me.pdx.edu Goal Make choices based on conditions in the environment Logical expressions:
More informationThis tutorial will show you how to take temperature readings using the Freetronics temperature sensor and an Arduino Uno.
This tutorial will show you how to take temperature readings using the Freetronics temperature sensor and an Arduino Uno. Note that there are two different module types: the temperature sensor module and
More informationLaboratory 3 Working with the LCD shield and the interrupt system
Laboratory 3 Working with the LCD shield and the interrupt system 1. Working with the LCD shield The shields are PCBs (Printed Circuit Boards) that can be placed over the Arduino boards, extending their
More informationBlinking an LED 1 PARTS: Circuit 2 LED. Wire. 330Ω Resistor
Circuit PIN 3 RedBoard Blinking an LED LED (Light-Emitting Diode) Resistor (33 ohm) (Orange-Orange-Brown) LEDs (light-emitting diodes) are small, powerful lights that are used in many different applications.
More informationPDF of this portion of workshop notes:
PDF of this portion of workshop notes: http://goo.gl/jfpeym Teaching Engineering Design with Student-Owned Digital and Analog Lab Equipment John B. Schneider Washington State University June 15, 2015 Overview
More informationTA0297 WEMOS D1 R2 WIFI ARDUINO DEVELOPMENT BOARD ESP8266
TA0297 WEMOS D1 R2 WIFI ARDUINO DEVELOPMENT BOARD ESP8266 Contents 1. Overview TA0297... 3 2. Getting started:... 3 2.1. What is WeMos D1 R2 Wifi Arduino Development Board?... 3 2.2. What is IDUINO UNO?...
More informationUser Guide v1.0. v1.0 Oct 1, This guide is only available in English Ce manuel est seulement disponible en Anglais
ROVER ShiELD User Guide v1.0 v1.0 Oct 1, 2014 This guide is only available in English Ce manuel est seulement disponible en Anglais Description The DFRobotShop Rover Shield is the ideal all in one shield
More informationCircuit Diagram For Water Level Controller Using 8051 Microcontroller With Pin Configuration
Circuit Diagram For Water Level Controller Using 8051 Microcontroller With Pin Configuration This is the circuit diagram water level controller using microcontroller Free diagram for water level controller
More informationAn FTDI connection: The ATtiny microcontrollers don t have a hardware UART External Crystal header pins for an optional crystal
Getting Started with the T-Board The T-Board modules were designed to speed up your AVR prototyping. This guide will show you just how quickly you can get up and running with the Hello World for microcontrollers
More informationFIRE SENSOR ROBOT USING ATMEGA8L
PROJECT REPORT MICROCONTROLLER AND APPLICATIONS ECE 304 FIRE SENSOR ROBOT USING ATMEGA8L BY AKSHAY PATHAK (11BEC1104) SUBMITTED TO: PROF. VENKAT SUBRAMANIAN PRAKHAR SINGH (11BEC1108) PIYUSH BLAGGAN (11BEC1053)
More informationClark College Electrical Engineering & Computer Science
Clark College Electrical Engineering & Computer Science slide # 1 http://www.engrcs.com/ecsv5.pdf Electrical Engineering & Computer Science Artificial Intelligent (AI) Bio Medical Computers & Digital Systems
More informationThe Arduino IDE and coding in C (part 1)
The Arduino IDE and coding in C (part 1) Introduction to the Arduino IDE (integrated development environment) Based on C++ Latest version ARDUINO IDE 1.8.3 can be downloaded from: https://www.arduino.cc/en/main/software
More informationStuduino Programming Environment Manual
Studuino Programming Environment Manual Created 04//0 Revised 07/0/3 Version History Date Content 04//0 First version 07/0/6 Updated for new Studuino website 07/03/8 Revised with added features for Windows
More informationIME-100 ECE. Lab 4. Electrical and Computer Engineering Department Kettering University. G. Tewolde, IME100-ECE,
IME-100 ECE Lab 4 Electrical and Computer Engineering Department Kettering University 4-1 1. Laboratory Computers Getting Started i. Log-in with User Name: Kettering Student (no password required) ii.
More informationIoT with Intel Galileo Gerardo Carmona. makerobots.tk
IoT with Intel Galileo Gerardo Carmona Outline What is Intel Galileo? Hello world! In Arduino Arduino and Linux Linux via SSH Playing around in Linux Programming flexibility How GPIOs works Challenge 1:
More informationAppendix A Requirement and Verification Table
Appendix A Requirement and Table Table X System Requirements and s Buttons and LED Requirements 1. Buttons must be easily press able and accessible by the user. 2. LED must be visible from up to 15 ft
More informationuser manual Getting started... 3 Calibration... 3 Getting to know your robot... 4
user manual Table of Contents Getting started... 3 Calibration... 3 Getting to know your robot... 4 Battery pack and power supply... 4 USB connector and power... 4 Arduino hardware... 5 Proximity sensor...
More informationPrototyping & Engineering Electronics Kits Basic Kit Guide
Prototyping & Engineering Electronics Kits Basic Kit Guide odysseyboard.com Please refer to www.odysseyboard.com for a PDF updated version of this guide. Guide version 1.0, February, 2018. Copyright Odyssey
More informationFeatures 2.4 GHz Carrier Frequency RS232 UART interface with variable baud rate Input supply voltage: 5V to 12V 255 possible Channels frequencies (0 to 255) Programmable Device Address (255 per channel)
More informationCTEC 1802 Embedded Programming Labs
CTEC 1802 Embedded Programming Labs This document is intended to get you started using the Arduino and our I/O board in the laboratory - and at home! Many of the lab sessions this year will involve 'embedded
More informationLaboratory 4 Usage of timers
Laboratory 4 Usage of timers 1. Timer based interrupts Beside external interrupt, the MCU responds to internal ones which are triggered by external events (on the external pins). The source of the internal
More informationCopyright. Getting Started with Arduino Wiring for Windows 10 IoT Core Agus Kurniawan 1st Edition, Copyright 2016 Agus Kurniawan
Copyright Getting Started with Arduino Wiring for Windows 10 IoT Core Agus Kurniawan 1st Edition, 2016 Copyright 2016 Agus Kurniawan ** Windows 10 IoT Core, Visual Studio and Logo are trademark and copyright
More informationLab 3 XBees and LCDs and Accelerometers, Oh My! Part 1: Wireless Communication Using XBee Modules and the Arduino
University of Pennsylvania Department of Electrical and Systems Engineering ESE 205 Electrical Circuits and Systems Laboratory I Lab 3 XBees and LCDs and Accelerometers, Oh My! Introduction: In the first
More informationEng.mohammed Albhaisi. Lab#3 : arduino to proteus simulation. for simulate Arduino program that you wrote you have to have these programs :
Lab#3 : arduino to proteus simulation for simulate Arduino program that you wrote you have to have these programs : 1-Arduino C 2-proteus 3- Virtual Serial Port Driver 4-Arduino library to proteus You
More informationThis is the Arduino Uno: This is the Arduino motor shield: Digital pins (0-13) Ground Rail
Reacting to Sensors In this tutorial we will be going over how to program the Arduino to react to sensors. By the end of this workshop you will have an understanding of how to use sensors with the Arduino
More information