Show Posts
Pages: 1 2 3 [4] 5 6
46  Using Arduino / Programming Questions / Re: wireless apperatus on: December 14, 2011, 11:30:08 am
that does not matter
realy it doesent
47  Using Arduino / Programming Questions / Re: wireless apperatus on: December 14, 2011, 11:04:34 am
there is one frequentie
one recever 15 transmitters

i am in a room blind

my buddy's (1 and 2)

have airhorns
but they both sound diverent
and i know witch tones they have (i can poke them without seeing)

like i said

when i press the button the remote (number 1) send 1001 1000
when i press the button the remote (number 2) sends 1001 0100

the code of the system is 1001 and when this is receved
the recever looks for the second code
and this is the remote (the diverent sounding horn)

so the recever makes the binairy decimal

instead of 1000 or 0100 that is 1-2 (remote 1-2)


but it receves 2 parts
system code
remote id
48  Using Arduino / Programming Questions / Re: wireless apperatus on: December 14, 2011, 10:52:08 am
erm with the id code of the remote

there should be a system code so other remotes cannot interfear
this is the same in all 15

and the id code this code is remote bound

and the recever looks and detects whitch remote sends the signal

so id the system id matches
it looks witch remote it is


49  Using Arduino / Programming Questions / Re: wireless apperatus on: December 14, 2011, 10:44:27 am
interference is not a problem in this setup

you pres the button system code and id code gets send like 1001 1100  (systemcode and remote 3)
and the light 3 comes on (and remains on until reset is pressed)

if somone can give me a pde for one remote (with encription and code)
and the recever side i can do the rest myself

it is almost like ir remotes but only on the rf
50  Using Arduino / Programming Questions / Re: wireless apperatus on: December 14, 2011, 10:22:42 am
well sorry to say but you have understoud it wrong

the transmitters are for problems (then we need to find team **)

you have 15 transmitters with one button

if you press the button it sends the code of the system and send it's id number (binairy)

the recever just lisens to the code (of the system)
when that is receved and after that the id code it will turn on the light that is equal to the number of the transmitter who has send it

and the atiny85 can be programed with the arduino ide and i want to use that becaus it is smal en cheap (as a transmitter)
51  Using Arduino / Programming Questions / wireless apperatus on: December 13, 2011, 11:36:03 pm
hey guys
i have got an question
if i want to make a device for a game that
takes one recever with 15 leds (all chanals encripted)
this runs on a arduino

and 15 transmitters
all with a encription on the transmitter (so that not all transmitters work)
this should run on a attiny85

who can help me?
52  Using Arduino / Programming Questions / Re: mcp23008 on: August 07, 2011, 12:10:30 pm
same error exept it now shows

In function 'void setup()':
error: 'WriteLCDByte' was not declared in this scope
53  Using Arduino / Programming Questions / Re: mcp23008 on: August 07, 2011, 10:43:48 am
the page sais it is a library
so the example (sketch is in the library)
when i remove the lcd write (moving cursor around the dislay)
i see nothing
the backlight turns on whyle uploading and that is it

so i have a library called LCDI2C4Bit
with LCDI2C4Bit.h
LCDI2C4Bit.cpp
(example) LCDI2C4Bit.pde
54  Using Arduino / Programming Questions / Re: mcp23008 on: August 07, 2011, 09:29:45 am
well this is the error

In function 'void setup()':
error: 'WriteLCD' was not declared in this scope

and the example script calls for the <LCDI2C4Bit.h>

http://www.arduino.cc/playground/Code/I2CPortExpanderAndLCDs


LCDI2C4Bit_pde.cpp: In function 'void setup()':
LCDI2C4Bit_pde:30: error: 'WriteLCD' was not declared in this scope

and when i remove it nothing happens
55  Using Arduino / Programming Questions / mcp23008 on: August 07, 2011, 07:35:38 am
I'm trying to get the LCD/i2c/port expander working as posted at arduinowebsite /playground/Code/I2CPortExpanderAndLCDs
but the sample code doesn't compile.  I get the following error:

In function 'void setup()':
error: 'WriteLCD' was not declared in this scope

I looked in the .cpp file and don't see a WriteLCD() function but there is a WriteLCDByte() function so I changed it to WriteLCDByte but that fails the same. 

Is this old code?  Am I missing something?  I added the .h and .cpp files to the hardware library and it is finding them.  Is there an easier solution?   Any help is very welcome.

this is asked bevore but is not solved
56  Using Arduino / Programming Questions / another question on: August 01, 2011, 11:21:10 pm
i have a device that controlls my car with a 8000 puls trigger and it works from 55-155 km/h
but when i drive i never go past 140 km/h

is there a way to make the arduino make an puls based on the input puls (normaly the puls that controls the devie)
that can controll my car with 8500 puls triggers instead of 8000 (more pulses mean that it starts earlyer and stops earlyer)

thank you
peter
57  Using Arduino / Programming Questions / Re: how to use the a6810 on: July 31, 2011, 12:09:27 pm
sooo i can use it like a 595
i can program 595
58  Using Arduino / Programming Questions / how to use the a6810 on: July 31, 2011, 07:31:28 am
how can i use the a6810
for a clock
with a vfd as a display
i already have a project but that is using a pic and i cant programs pic's
but if somone can help me adjust the code to be a clock or give me the way to program it
(like the way how the send the time in 00.00.00 format)
here
is the code/circut i want to use

http://uzzors2k.4hv.org/projectfiles/uvledbox/UV%20LED%20Developer%20Box.zip

it is from this site
http://uzzors2k.4hv.org/index.php?page=uvledbox
59  Forum 2005-2010 (read only) / Troubleshooting / Re: help me on: April 06, 2010, 11:27:48 am
well i cheat a little
when i need to use something

i copy it from bevor in my script
60  Forum 2005-2010 (read only) / Troubleshooting / Re: help me on: April 06, 2010, 10:29:23 am
I GOT IT YAY

i updated alll the code and the secematics

Code:

#include "Servo.h"

Servo gasservo; // create servo object to control a servo
Servo oilbypassservo; // create servo object to control a servo


// constants won't change. They're used here to
// set pin numbers:

int potPin = 0;                       // Analog pin 0 connected to the potentiometer
int dieselpumptransistorPin = 3;                // connected from digital pin 9 to the base of the transistor
int potValue = 0;                      // value returned from the potentiometer

const int switchthatstartsPin = 4;     // the number of the start button pin
const int keythatcontrollsallbuttonPin = 2;     // the number of the pushbutton pin
const int powerledpin =  12;      // the number of the LED pin
const int oilpumpledpin =  13;      // the number of the LED pin
const int propaneinjectionledpin =  11;      // the number of the LED pin
const int oilpumptransistorPin = 9;    // connected to the base of the transistor


// variables will change:

// switch is connected to pin 2
int buttonState = 0;         // variable for reading the keybutton status
int inputVariable1 = 0;     // oil pump check
int inputVariable2 = 0;     // start up check
int inputVariable3 = 0;     // diesel check
int inputVariable4 = 0;     // diesel pump check
int val;                        // variable for reading the pin status
int val2;                       // variable for reading the delayed/debounced status
int buttonState2 = 0;                // variable to hold the button state
int lightMode = 0;              // Is the light on or off?

void setup() {
  // Set the switch pin as input
  pinMode(switchthatstartsPin, INPUT);
  // initialize the LED pin as an output:
  pinMode(powerledpin, OUTPUT);
  pinMode(oilpumpledpin, OUTPUT);  
  pinMode(propaneinjectionledpin, OUTPUT);    
  // initialize the keybutton pin as an input:
  pinMode(keythatcontrollsallbuttonPin, INPUT);
  // attaches the servo on pin 3 to the servo object
  gasservo.attach(5);  
  // attaches the servo on pin 5 to the servo object
  oilbypassservo.attach(6);
  // set  the transistor pin as output:
  pinMode(oilpumptransistorPin, OUTPUT);
  // set  the motor pin as an output
  pinMode(dieselpumptransistorPin, OUTPUT);
  // set up Serial library at 9600 bps
  Serial.begin(9600);        

}

void loop()
{//0
  // read the state of the keybutton value:
  buttonState = digitalRead(keythatcontrollsallbuttonPin);
  // check if the keybutton is pressed.
  // if it is, the buttonState is HIGH:
  if (buttonState == HIGH)
{//1

  //---------------------------------
  //diesel pump pwm routine
  //---------------------------------
  //checks if oil pump is on
  if (inputVariable4 == 1)
{//
    // read the value from the sensor:
    potValue = analogRead(potPin) / 4;        // read the potentiometer, convert it to between 0 - 255 for the value accepted by the digital pin.
    analogWrite(dieselpumptransistorPin, potValue); // potValue alters the supply from pin 9 which in turn controls the power running through the transistor
    //
    Serial.print("test2");
}//
    else
{//
}//

    //---------------------------------
    //start button check
    //---------------------------------
    // turn LED on:
    digitalWrite(powerledpin, HIGH);
     val = digitalRead(switchthatstartsPin);      // read input value and store it in val
     delay(10);                         // 10 milliseconds is a good amount of time
     val2 = digitalRead(switchthatstartsPin);     // read the input again to check for bounces
     if (val == val2) {        //2         // make sure we got 2 consistant readings!
       if (val != buttonState2) { //3         // the button state has changed!
         if (val == LOW) {        //4        // check if the button is pressed
           if (lightMode == 0) {    //5      // is the light off?
             lightMode = 1;               // turn light on!
      Serial.print("test");
  
 
  //---------------------------------
  //oil pump start cannot be removed
  //---------------------------------
  //checks if oil pump is on
  if (inputVariable1 == 0)
{//6
    //oil pump on
    digitalWrite(oilpumptransistorPin, HIGH);
    //turns this part off
    inputVariable1 = 1;
    delay(100);
    // turn LED on:
    digitalWrite(oilpumpledpin, HIGH);
    Serial.print("test2");
}//6
    else
{//7
}//7
    
    
  //---------------------------------
  //starting sequence
  //---------------------------------
  if (inputVariable2 == 0)
{//8
    //oil bypass open
    oilbypassservo.write(180);
    //gas valve open
    gasservo.write(180);
    // waits for the servo to get there    
    delay(15);                            
    //gas valve open
    delay(1000);
    oilbypassservo.write(1);
    gasservo.write(25);
    // waits for the servo to get there    
    delay(15);
    //turns this part off
    // turn LED on:
    digitalWrite(propaneinjectionledpin, HIGH);
    //turns this part off
    inputVariable2 = 1;
    delay(10);
    inputVariable4 = 1;
}//8
    else
{//9
}//9
} //5
     else
{//10
     lightMode = 0;               // turn light off!
}//10
}//4        
} //3
     buttonState2 = val;                 // save the new state in our variable
}//2
}//1
  //if key goes away
  else
{//11
  // turn LED off:
    digitalWrite(powerledpin, LOW);    
  //---------------------------------
  //oil pump stop cannot be removed
  //---------------------------------
  //checks if oil pump is on
  if (inputVariable1 == 1)
{//13
    // turn LED off:
    digitalWrite(powerledpin, LOW);
    digitalWrite(oilpumpledpin, LOW);
    digitalWrite(propaneinjectionledpin, LOW);
    inputVariable2 = 0;     // zerro check
    inputVariable4 = 0;
    analogWrite(dieselpumptransistorPin, LOW);
    Serial.print("blank             ");
    delay(10000);
    //oil pump on
    digitalWrite(oilpumptransistorPin, LOW);
    //turns this part off
    inputVariable1 = 0;
    Serial.print("test4");
}//13
    else
{//14
}//14
}//11
}//0

  


Pages: 1 2 3 [4] 5 6