User Tools

Site Tools


data_logger_errled

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
data_logger_errled [2011/11/22 04:49]
admin created
data_logger_errled [2011/11/22 05:22]
admin
Line 1: Line 1:
-**Data Logger** PCB +**[[data_logger|Data Logger]]** PCB 
-====== BASIC INFORMATION ====== +====== ​Error LED ====== 
- +===== Description ​=====
-Name: **DATA LOGER**\\ +
-Type: **Arduino MEGA Shield**\\ +
-Version: **1.0.0**\\ +
-Author: **Dubravko Penezic**\\ +
-Copyright: **Creative Commons BY-NC-SA v 3.0**\\ +
-Implemented function: +
-  * **[[data_logger_errLED|Error LED]]** +
-  * **[[data_logger_RTC|Real Time Clock]]** +
-  * **[[data_logger_EEPROM|EEPROM memory]]** +
-  * **[[data_logger_LCDkey|LCD & Keypad connector]]** +
-  * **[[data_logger_miniSD|miniSD memory card]]** +
-  * **[[data_logger_support|supported function]]** +
-==== PCB image ==== +
-\\ PCB Top image:\\ +
-{{:​dl_1_0_0:​top-dl.jpg}} +
-\\ PCB Bottom image:\\ +
-{{:​dl_1_0_0:​bot-dl.jpg}} +
-\\  +
-==== Used Pins ==== +
-Digital Pin: **5, 20, 21, 23, 25, 27, 29, 30, 31, 32, 33, 34, 35, 36, 38, 40, 42, 44**\\ +
-Analogue Pin: **2, 3**\\ +
-Bus: **ICSP**\\ +
-Power Pin: **GND, +5V, +3.3V, VIN**\\ +
-Other Pin: **RESET**\\ +
-\\ \\ +
-{{:​dl_1_0_0:​board_pin_dl.png}}\\ +
-====== Implemented function ​====== +
-===== Error LED ===== +
-==== Description ​====+
 Maximum 8 Digital Pin in OUTPUT mode are used for serial connected LEDs (one is always on). Maximum 8 Digital Pin in OUTPUT mode are used for serial connected LEDs (one is always on).
-==== Used Pins ====+===== Used Pins =====
 Digital Output Pin: **30, 32, 34, 36, 38, 40, 42, 44**\\ Digital Output Pin: **30, 32, 34, 36, 38, 40, 42, 44**\\
-Power Pin: GND, +5V (see [[data_logger#​supported_function|supported function]])\\ \\+Power Pin: GND, +5V (see [[data_logger_support|supported function]])\\ \\
 {{:​dl_1_0_0:​board_pin_dl_erled.png}}\\ {{:​dl_1_0_0:​board_pin_dl_erled.png}}\\
-==== Example ====+===== Example ​=====
 <file pde ErrorLED_DL_V1_0_0.pde>​ <file pde ErrorLED_DL_V1_0_0.pde>​
 /* Error LED example /* Error LED example
Line 113: Line 84:
 } }
 </​file>​ </​file>​
-===== Real Time Clock (RTC) ===== 
-==== Description ==== 
-DS1307 IC, connected to standard SDA & SCL Pin on MEGA board with battery backup. 
-==== Used Pins ==== 
-Digital Pin: **20, 21 (as SDA, SCL)**\\ 
-Power Pin: GND, +5V (see [[data_logger#​supported_function|supported function]])\\ \\ 
-{{:​dl_1_0_0:​board_pin_dl_rtc.png}}\\ 
-==== Example ==== 
-=== Jumpers === 
-{{:​dl_1_0_0:​top-i2c_rtc_sqw.png}} 
-=== Code === 
-PCB and component are tested with [[https://​github.com/​davidhbrown/​RealTimeClockDS1307|RealTimeClock1307]] Arduino library.\\ \\ 
-Please use example RealTimeClockDS1307_Test.pde\\ 
-===== EEPROM memory ===== 
-==== Description ==== 
-AT24Cxxx group of I2C EEPROM with possibility to set address and write protect mode. 
-==== Used Pins ==== 
-Digital Pin: **20, 21 (as SDA, SCL)**\\ 
-Power Pin: GND, +5V (see [[data_logger#​supported_function|supported function]])\\ \\ 
-{{:​dl_1_0_0:​board_pin_dl_rtc.png}}\\ 
-==== Example ==== 
-=== Jumpers === 
-{{:​dl_1_0_0:​top-i2c_eeprom_address.png}}\\ 
-{{:​dl_1_0_0:​top-i2c_eeprom_wp.png}}\\ 
-=== Code === 
-Arduino library {{:​dl_1_0_0:​i2ceeprom.zip|i2ceeprom}} also available from URL [[http://​arduino.cc/​playground/​Main/​LibraryForI2CEEPROM|http://​arduino.cc/​playground/​Main/​LibraryForI2CEEPROM]]\\ \\ 
-Please use example I2C_demo.pde\\ 
-===== LCD & Keypad connector ===== 
-==== Description ==== 
-Connect header (5x2) to connect to LCD & Keypad extension board.\\ 
-Use 4 digital line for data transfer to LCD, 3 digital line to control LCD, and 1 analogue line to transfer information of key pressed. 
-==== Used Pins ==== 
-Digital Output Pin: **23, 25, 27, 29, 31, 33, 35** (BackLite, EN, RS, DB4, DB5, DB6, DB7)\\ 
-Analogue Input Pin: **A3** (Keypads)\\ 
-Power Pin: GND, +5V (see [[data_logger#​supported_function|supported function]])\\ \\ 
-{{:​dl_1_0_0:​board_pin_dl_lcd_keypad.png}}\\ 
-==== Example ==== 
-<file pde LCD_Keypad_DL_V1_0_0.pde>​ 
-/* LCD & Keypad example 
-    
-   ​Board:​ DATA LOGER ARDUINO MEGA SHIELD, 24.11.2011, V 1.0.0 
-   ​Author:​ Dubravko Penezić 2011, Creative Commons BY-NC-SA 
-    
-   Used pins: 
-     ​DOP-23,​ DOP-25, DOP-27, DOP-29, DOP-31, DOP-33, DOP-35, A3 
- 
-*/ 
- 
-// LCD pins 
-int BeLi_LCD_pin = 23; 
-int RS_LCD_pin = 27; 
-int En_LCD_pin = 25; 
-int D4_LCD_pin = 29; 
-int D5_LCD_pin = 31; 
-int D6_LCD_pin = 33; 
-int D7_LCD_pin = 35; 
- 
-// include the library code: 
-#include <​LiquidCrystal.h>​ 
-// initialize the library with the numbers of the interface pins 
-LiquidCrystal lcd(RS_LCD_pin,​ En_LCD_pin, D4_LCD_pin, D5_LCD_pin, D6_LCD_pin, D7_LCD_pin);​ 
- 
-//Key message 
-char msgs[6][15] = {"​Right Key OK ", ​ 
-                    "Up Key OK    ", ​ 
-                    "Down Key OK  ", ​ 
-                    "Left Key OK  ", ​ 
-                    "​Select Key OK", 
-                    " ​            "​ }; 
-//Analogue value for key 
-int  adc_key_val[6] ={30, 150, 360, 535, 760, 1024 }; 
-//Number of keys 
-int NUM_KEYS = 6; 
-//Analog pin 
-int aKeyPin = 3; 
- 
-//other variable 
-int adc_key_in; 
-int key=-1; 
-int oldkey=-1; 
- 
-void setup() {  
-  pinMode(13, OUTPUT); ​ //​we'​ll use the debug LED to output a heartbeat 
-  // set up the LCD's number of columns and rows:  
-  pinMode(BeLi_LCD_pin,​ OUTPUT); 
-  digitalWrite(BeLi_LCD_pin,​ LOW); 
-  lcd.begin(20,​ 2); 
-  // Print a message to the LCD. 
-  lcd.print("​KEYPAD testing press"​); ​   
-} 
- 
-void loop() { 
- 
-  adc_key_in = analogRead(aKeyPin); ​   // read the value from the sensor  ​ 
-  ​ 
-  digitalWrite(13,​ HIGH);  ​ 
-  ​ 
-  key = get_key(adc_key_in);​  ​              // convert into key press 
-  
-  if (key != oldkey) {                // if keypress is detected 
-    delay(50);​  ​              // wait for debounce time 
-    adc_key_in = analogRead(aKeyPin); ​ // read the value from the sensor  ​ 
-    key = get_key(adc_key_in);​  ​      // convert into key press 
-    if (key != oldkey) { 
-      if(key < 5) digitalWrite(BeLi_LCD_pin,​ HIGH); 
-      else digitalWrite(BeLi_LCD_pin,​ LOW); 
-  
-      oldkey = key; 
-      if (key >=0){ 
-        lcd.setCursor(0,​ 1); 
-        lcd.print(" ​                   "); 
-        lcd.setCursor(0,​ 1); 
-        lcd.print(msgs[key]);​ 
-        lcd.print("​ "); 
-        lcd.print(adc_key_in);​ 
-      } 
-    } 
-  } 
-  ​ 
-  //​delay(1000);​ 
-  digitalWrite(13,​ LOW); 
-} 
- 
-// Convert ADC value to key number 
-int get_key(unsigned int input) { 
- 
-  int k; 
-    ​ 
-  for (k = 0; k < NUM_KEYS; k++) { 
-    if (input < adc_key_val[k]) { 
-      return k; 
-    } 
-  } 
-    ​ 
-  if (k >= NUM_KEYS) 
-    k = -1;     // No valid key pressed 
-    ​ 
-  return k; 
-} 
- 
-</​file>​ 
-===== miniSD memory card ===== 
-==== Description ==== 
-miniSD card slot, connected to standard ICSP bus, and using digital pin 5 for SD card select, and analogue pin 2 for detecting SD card present. 
-==== Used Pins ==== 
-Digital Pin: **5**\\ 
-Analogue Pin: **2**\\ 
-Bus: **ICSP**\\ 
-Power Pin: GND, +5V & +3V (see [[data_logger#​supported_function|supported function]])\\ \\ 
-{{:​dl_1_0_0:​board_pin_dl_microsd.png}}\\ 
-==== Example ==== 
-PCB and SD card are tested with [[http://​code.google.com/​p/​sdfatlib/​downloads/​list|sdfatlib]] Arduino library.\\ \\ 
-Please use example SdInfo.pde\\ 
-===== supported function ===== 
-==== Description ==== 
-Two standard function on Arduino shileds : 
-  * RESET button 
-  * LED on digital pin 13 
-\\ Power regulator for +5 V and +3.3 V using AMS1117 IC 
-==== Used Pins ==== 
-Digital Pin: **13**\\ 
-Power Pin: **GND, +5V, +3.3V, VIN**\\ 
-Other Pin: **RESET**\\ 
-\\ \\ 
-{{:​dl_1_0_0:​board_pin_dl_support.png}}\\ 
-==== Example ==== 
-=== Jumpers === 
-{{:​dl_1_0_0:​top-i2c_eeprom_address.png}}\\ 
-{{:​dl_1_0_0:​top-i2c_eeprom_wp.png}}\\ 
-=== Code === 
-Arduino library {{:​dl_1_0_0:​i2ceeprom.zip|i2ceeprom}} also available from URL [[http://​arduino.cc/​playground/​Main/​LibraryForI2CEEPROM|http://​arduino.cc/​playground/​Main/​LibraryForI2CEEPROM]]\\ \\ 
-Please use example I2C_demo.pde\\ 
  
data_logger_errled.txt · Last modified: 2016/09/01 14:17 (external edit)