Loading...
  Show Posts
Pages: [1] 2 3
1  Using Arduino / Audio / can i kreate 2 Khz -1/1 V signal some how with an arduino ? on: December 15, 2012, 09:47:52 am
i have an Arduino mega and i want to create 2 Khz -1/1 v sine waves !

can i do it ? and how ?

thank you very much !
2  Using Arduino / General Electronics / Re: does any one have schematics for vlf rx/tx module ? on: December 12, 2012, 12:23:19 pm
salt water for sure !

i've quikly checked them and i thing that they are ok  ! haven't got the time to experiment my self on them yet ! thank you very much !
3  Using Arduino / General Electronics / Re: does any one have schematics for vlf rx/tx module ? on: December 12, 2012, 11:04:23 am
well it is going to be submerged ! and it is going to receive and send text ! but not more than a Km and not more that 100 m depth ! ALSO ! financially i am not able to buy a VW beatle, for sure not a Nuclear submarine  smiley-lol ! but thank you anyway !
4  Using Arduino / General Electronics / Re: does any one have schematics for vlf rx/tx module ? on: December 12, 2012, 06:55:15 am
vlf transmiter and vlf receiver !
5  Using Arduino / General Electronics / does any one have schematics for vlf rx/tx module ? on: December 12, 2012, 05:08:14 am
hello arduino friends smiley

does any one have arduino compartible vlf rx / tx module schematics ?

any help or guidence acceptable !

thank you all very musch for your time reading this !
6  Using Arduino / Project Guidance / Re: how to send text over rf ? on: December 11, 2012, 02:37:00 pm
no i don't ! i am just experimenting !

hope noone hears about that !

smiley-grin !

thanks for your time !
7  Using Arduino / Project Guidance / Re: how to send text over rf ? on: December 11, 2012, 02:29:41 pm
i was more like thinking over vlf ! is there any sugestion over vlf ? schematics and code !
8  Using Arduino / Project Guidance / how to send text over rf ? on: December 11, 2012, 02:18:43 pm
hello arduino friends.

i am trying to make two arduino based devices that sends text one to an other !
until now everything is ok !

i have a 4x4 keypad and a 16x2 lcd connected and they both work fine !

the input method is like a normal sms creation, a few presses over a keypad changes the character on the lcd and if the time between the two presses is more that 1 seccond it moves the cursor to the next step !

how can i send those chars over rf ?
and are there any schematics that i can download to test ?

Code:
#include <Time.h>
#include <Keypad.h>
#include <ctype.h>
#include <MorseEnDecoder.h>
// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
const byte ROWS = 4; //four rows
const byte COLS = 4; //three columns
// Define the keymaps.  The blank spot (lower left) is the space character.
char alphaKeys[ROWS][COLS] = {
  {'a','d','g','A'},
  {'j','m','p','B'},
  {'s','v','y','C'},
  {' ','.',',','D'}
};

char numberKeys[ROWS][COLS] = {
  {'1','2','3','A'},
  {'4','5','6','B'},
  {'7','8','9','C'},
  {' ','0','.','D'}
};

boolean alpha = false;   // Start with the numeric keypad.
char* keypadMap = (alpha == true) ? makeKeymap(alphaKeys) : makeKeymap(numberKeys);

byte rowPins[ROWS] = {
  45, 47, 49, 51}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {
  37, 39, 41, 43}; //connect to the column pinouts of the keypad

//create a new Keypad
Keypad keypad = Keypad(keypadMap, rowPins, colPins, sizeof(rowPins), sizeof(colPins));

unsigned long startTime;
const byte ledPin = 13;
int i = -1;
int j = 0;
int k=0;
long puss=0;
long puss2=1;
int flag=0;
int flag2=1;
int flag3=0;
int functionKey = 0;
String messageComplete[34];
char message1[ ] = "                ";
char message[ ] = "                ";
int morseOutPin = 13;
int morseInPin = 7;
char temp;
morseDecoder morseInput(morseInPin, MORSE_KEYER, MORSE_ACTIVE_LOW);
morseEncoder morseOutput(morseOutPin);


void setup(){
  lcd.begin(16, 2); // Starts the LCD library and sets 2 coloumns of 16 chars each
  Serial.begin(9600); // begins the serial communication over usb with the computer at 9600 bauds
  pinMode(ledPin, OUTPUT); // sets the led on the arduino as an output device
  digitalWrite(ledPin, LOW);                                                // Turns the LED on.
  keypad.addEventListener(keypadEvent);                                      // Add an event listener.
  keypad.setHoldTime(500);
  morseInput.setspeed(64); // sets the input to 64 chars per minute
  morseOutput.setspeed(64); // sets the output to 64 chars per minute
};

void loop(){
  char key = keypad.getKey();
  if (alpha && millis()-startTime>100) {           // Flash the LED if we are using the letter keymap.
    digitalWrite(ledPin,!digitalRead(ledPin));
    startTime = millis();
  }
};
//transmition protocol
void transmit(){

}

// Take care of some special events.
void keypadEvent(KeypadEvent key) {
  static char virtKey = NO_KEY;      // Stores the last virtual key press. (Alpha keys only)
  static char physKey = NO_KEY;      // Stores the last physical key press. (Alpha keys only)
  static char buildStr[12];
  static byte buildCount;
  static byte pressCount;
  switch (keypad.getState())
  {
  case PRESSED:
    if (flag2==0 & isalpha(key)) {              // Pressed the same key again...
      puss=millis();
      if (puss != puss2){
        if ((puss - puss2)>1000){
          flag3=1;
        }
        else {
          flag3=0;
        }
        puss2=millis();
      }

    }
    if (isalpha(key)) {          // This is a letter key so we're using the letter keymap.
      if (physKey != key) {        // New key so start with the first of 3 characters.
        pressCount = 0;
        virtKey = key;
        physKey = key;
        flag2 = 1;
      }
      else {              // Pressed the same key again...
        if (flag3==1){
          virtKey++;               // so select the next character on that key.
          pressCount++;            // Tracks how many times we press the same key.
          flag2 = 0;
          flag = 0;
        }
        else {
          virtKey++;               // so select the next character on that key.
          pressCount++;            // Tracks how many times we press the same key.
          i--;
          flag2 = 0;
          flag=1;
        }
      }
    }

    if (pressCount > 2) {        // Last character reached so cycle back to start.
      pressCount = 0;
      virtKey = key;
    }

    if (isdigit(key) || key == ' ' || key == '.' || key == ',') {
      virtKey = key ;
    }
    if (key == 'A'){
      key = 'A';
      functionKey = 1;
    }
      if (key == 'C'){
      functionKey = 1;
      lcd.begin(16, 2);
      i=0;
      j=0;
      i--;
      i--;
      virtKey = 'C';
    } 
    if (key == 'D'){
      functionKey = 1;
      virtKey= 'D';
      if (i<0 & j==1){
        i=16;
        j=0;
      }
      lcd.setCursor(i,j);
      lcd.print(" ");
      lcd.print(" ");
      i--;
      i--;
    }
    if (i > 14  & j == 0){
      i = -1;
      j = 1;
    } else if (i == 15 & j == 1){
      i = -1;
      j = 0;
    }
    else {
      i++;
    }
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    lcd.setCursor(i,j);  // prosexe apo edo !!!!!!!!!!!!!!!!!!!!!!!
    if (functionKey == 0){
      lcd.print(virtKey);    // Used for testing.
      if (j==1){
       message1[i] = virtKey;
      } else {
       message[i] = virtKey;
      } // mexri edo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    }
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//to message 1 einai i kato grammi tis lcd kai to message einai i epano
// pos mporo na ta kano auta binary ?
break;

  case HOLD:
    if (key == 'B')  {      // Toggle between keymaps.
      virtKey='B';
      functionKey = 1;
      if (alpha == true)  {            // We are currently using a keymap with letters
        keypad.begin(*numberKeys);   // and want to change to numbers.
        alpha = false;
        digitalWrite(ledPin, LOW);
      }
      else  {                          // Or, we are currently using a keymap with numbers
        keypad.begin(*alphaKeys);    // and want to change to letters.
        alpha = true;
      }
    }
    break;

  case RELEASED:
    break;

  }  // end switch-case
}  // end keypad events
9  Using Arduino / General Electronics / Re: ultrasounds to send and receive Morse code on: October 24, 2012, 05:23:56 pm
OK ! finaly I moved from 0 ! NOW I GET VALUES TO MY SENSOR PIN !  smiley-grin !

the only problem is that they go from 340 to 370 up and down every 2 secconds gradualy ! is there a chance that is an echo or is it normal ?
10  Using Arduino / General Electronics / Re: does any one know what this 14 pin chip is ? on: October 23, 2012, 11:34:30 pm
thank you for confirming that ! I wasn't sure !
11  Using Arduino / General Electronics / Re: does any one know what this 14 pin chip is ? on: October 23, 2012, 02:38:05 pm
i am sorry !

http://discovercircuits.com/PDF-FILES/ULTRA40KHZXTR1.pdf

take a look here !
12  Using Arduino / General Electronics / does any one know what this 14 pin chip is ? on: October 23, 2012, 02:36:46 pm


this U1 with the 14069 code under !
is there any one out there that has any idea what that would be ?
13  Using Arduino / General Electronics / Re: ultrasounds to send and receive Morse code on: October 23, 2012, 02:01:46 pm
First of all thank you very much for your quick responses.

correct me if I am wrong but I sent every thing from one pin on the arduino ( my output pin ), those are two should I just split that wire that is connected to arduino output pin and connect it to both pins ? am i missing something here ?
14  Using Arduino / General Electronics / Re: ultrasounds to send and receive Morse code on: October 23, 2012, 01:08:06 pm
Quote
The transmitter just replace the crystal oscillator circuit with the aduino.

that's the 40khz in between the 2 capasitors 22 and 20 pf . right ?
15  Using Arduino / General Electronics / Re: ultrasounds to send and receive Morse code on: October 23, 2012, 12:32:31 pm
http://discovercircuits.com/PDF-FILES/ULTRA40KHZXTR1.pdf
http://discovercircuits.com/PDF-FILES/40KULTRASOUNDRVR2.pdf

do you think that they would work ?
Pages: [1] 2 3