Show Posts
Pages: [1] 2 3 ... 5
1  Using Arduino / General Electronics / knock box help on: September 06, 2014, 02:45:45 pm
hi everyone
i want to make the knock box from hackaday
http://hackaday.com/2012/12/21/wooden-box-repeats-rhythm-used-when-knocking-on-the-lid/
but i can not find the sketch or schematic for it
could someone help please
thanks
marko
2  Using Arduino / Project Guidance / ShiftPWM with 56 RGB LEDs on: March 08, 2014, 04:13:36 pm
hi everyone
I'm looking for the schematic for this project on you tube for   Shift PWM with 56 RGB LEDs
original youtube vid

could any one help
thanks
marko



3  Using Arduino / LEDs and Multiplexing / music to operate 16 channel relay on: March 23, 2013, 03:09:00 pm
hi every one
is there any software i can get to generate the sequence for the arduino
to control a 16 channel relay board so i can make a song with a light sequence

something like this

cheers  every one
marko
4  Using Arduino / Programming Questions / Re: button error on: October 25, 2012, 04:29:09 pm
yes tried and got link
but still no joy will try again later
5  Using Arduino / Programming Questions / Re: button error on: October 25, 2012, 04:10:47 pm
got it here
http://arduino.cc/playground/Code/Button
6  Using Arduino / Programming Questions / Re: button error on: October 25, 2012, 03:56:35 pm
is there a button update for the Version 1.0 of the IDE
i am still having problems
i have changed the  #include "WProgram.h"


If you get errors try locating such places and changing that line to:

Code:

#include "Arduino.h"

but still no joy so i must be doing some thing wrong
is there an online tutorial ?

all i want is a button to begin sequence on the sketch
7  Using Arduino / Programming Questions / button error on: October 25, 2012, 03:12:12 pm
hi all
im trying to add a button function to a sketch but befor i add the code i tried the example but get errors why ??
Code:
/*
||
|| @file Button.pde
|| @version 1.1
|| @author Alexander Brevig
|| @contact alexanderbrevig@gmail.com
||
|| @description
|| | Display the intuitive way of using a button when using this Hardware Abstraction class
|| #
||
|| @license
|| | Copyright (c) 2009 Alexander Brevig. All rights reserved.
|| | This code is subject to AlphaLicence.txt
|| | alphabeta.alexanderbrevig.com/AlphaLicense.txt
|| #
||
*/

#include <Button.h>

//create a Button object at pin 12
/*
|| Wiring:
|| GND -----/ ------ pin 12
*/
Button button12 = Button(12,PULLUP);


void setup(){
  Serial.begin(9600);
  pinMode(13,OUTPUT); //debug to led 13 ^show led if button pushed
}

void loop(){
  if(button12.isPressed()){
      digitalWrite(13,HIGH);
        Serial.print("12"); //attempt to print to serial as well
        delay(250); //set delay
  }else{
      digitalWrite(13,LOW);
  }

}

In file included from sketch_oct25a.cpp:20:
C:\Documents and Settings\Administrator\My Documents\Downloads\arduino-1.0-windows\arduino-1.0\libraries\Button/Button.h:23:22: error: WProgram.h: No such file or directory
In file included from sketch_oct25a.cpp:20:
C:\Documents and Settings\Administrator\My Documents\Downloads\arduino-1.0-windows\arduino-1.0\libraries\Button/Button.h:34: error: expected `)' before 'buttonPin'
C:\Documents and Settings\Administrator\My Documents\Downloads\arduino-1.0-windows\arduino-1.0\libraries\Button/Button.h:42: error: 'uint8_t' does not name a type
C:\Documents and Settings\Administrator\My Documents\Downloads\arduino-1.0-windows\arduino-1.0\libraries\Button/Button.h:43: error: 'uint8_t' does not name a type
C:\Documents and Settings\Administrator\My Documents\Downloads\arduino-1.0-windows\arduino-1.0\libraries\Button/Button.h:44: error: 'uint8_t' does not name a type
sketch_oct25a:26: error: no matching function for call to 'Button::Button(int, int)'
C:\Documents and Settings\Administrator\My Documents\Downloads\arduino-1.0-windows\arduino-1.0\libraries\Button/Button.h:32: note: candidates are: Button::Button()
C:\Documents and Settings\Administrator\My Documents\Downloads\arduino-1.0-windows\arduino-1.0\libraries\Button/Button.h:32: note:                 Button::Button(const Button&)
8  Using Arduino / Project Guidance / Re: Arduino Stand Alone on Fritzing? on: October 14, 2012, 04:52:14 pm
i used this for reference
http://flickrhivemind.net/Tags/arduino,standalone/Recent

http://1.bp.blogspot.com/-tz0EuFLXqdo/Tp1-IF4E38I/AAAAAAAAJYQ/lrhm2BipCX8/s1600/ADC_PCB+-+GROUND.PNG
9  Using Arduino / Project Guidance / Re: halloween project with button on: October 14, 2012, 04:48:21 pm
so where do i go for a sketch for it
10  Using Arduino / Project Guidance / Re: halloween project with button on: October 14, 2012, 03:32:08 pm
the arduino is connected to a 9 volt power supply
but what i want is a momentary swich connected to the arduino to start the sketch
11  Using Arduino / Project Guidance / halloween project with button on: October 14, 2012, 03:03:35 pm
hi all i'm making a halloween project
when a button is pressed on my door which is connected to my arduino i want it to start a sketch for lightning
 i have the sketch but what i want is how to make the sketch run via a button ( code )
any help appreciated
cheers
marko


Code:
//    FILE: lightning.pde
//  AUTHOR: Rob Tillaart
//    DATE: 2012-05-08
//
// PUPROSE: simulate lighning POC
//
//
#define BETWEEN 2579
#define DURATION 43
#define TIMES 7

#define LEDPIN 13

unsigned long lastTime = 0;
int waitTime = 0;

void setup()
{
  Serial.begin(115200);
  Serial.println("lightning 0.0");

  pinMode(LEDPIN, OUTPUT);
}

void loop()
{
  if (millis() - waitTime > lastTime)  // time for a new flash
  {
    // adjust timing params
    lastTime += waitTime;
    waitTime = random(BETWEEN);

    for (int i=0; i< random(TIMES); i++)
    {
      Serial.println(millis());
      digitalWrite(LEDPIN, HIGH);
      delay(20 + random(DURATION));
      digitalWrite(LEDPIN, LOW);
      delay(10);
    }
  }
 
  // do other stuff here

}
12  Using Arduino / Programming Questions / Re: simple sketch question on: September 22, 2012, 02:22:44 pm
so how do i make 3 pins blink sepperate to each other like an eye blinking while mouth chatting ?
13  Using Arduino / Programming Questions / Re: simple sketch question on: September 22, 2012, 01:45:31 pm
if i used this sketch how do i make each led have its own delay ?


Code:
/* Blink without Delay
 
 Turns on and off a light emitting diode(LED) connected to a digital 
 pin, without using the delay() function.  This means that other code
 can run at the same time without being interrupted by the LED code.
 
 The circuit:
 * LED attached from pin 13 to ground.
 * Note: on most Arduinos, there is already an LED on the board
 that's attached to pin 13, so no hardware is needed for this example.
 
 
 created 2005
 by David A. Mellis
 modified 8 Feb 2010
 by Paul Stoffregen
 
 This example code is in the public domain.

 
 http://www.arduino.cc/en/Tutorial/BlinkWithoutDelay
 */

// constants won't change. Used here to
// set pin numbers:
const int ledPin1 =  10;      // the number of the LED pin
const int ledPin2 =  11;      // the number of the LED pin
const int ledPin3 =  12;      // the number of the LED pin

// Variables will change:
int ledState = LOW;             // ledState used to set the LED
long previousMillis = 0;        // will store last time LED was updated

// the follow variables is a long because the time, measured in miliseconds,
// will quickly become a bigger number than can be stored in an int.
long interval = 100;           // interval at which to blink (milliseconds)

void setup() {
  // set the digital pin as output:
  pinMode(ledPin1, OUTPUT);
  pinMode(ledPin2, OUTPUT);
  pinMode(ledPin3, OUTPUT);
}

void loop()
{
  // here is where you'd put code that needs to be running all the time.

  // check to see if it's time to blink the LED; that is, if the
  // difference between the current time and last time you blinked
  // the LED is bigger than the interval at which you want to
  // blink the LED.
  unsigned long currentMillis = millis( );
 
  if(currentMillis - previousMillis > interval) {
    // save the last time you blinked the LED
    previousMillis = currentMillis; 

    // if the LED is off turn it on and vice-versa:
    if (ledState == LOW)
      ledState = HIGH;
    else
      ledState = LOW;

    // set the LED with the ledState of the variable:
    digitalWrite(ledPin1, ledState);
    digitalWrite(ledPin2, ledState);
    digitalWrite(ledPin3, ledState);
  }
}
14  Using Arduino / Programming Questions / simple sketch question on: September 22, 2012, 10:51:23 am
hi all
i have this sketch but it aal runs as one sketch i would like for it to 3 different sketches in one
i would like led1 to blink constantly led2 to blink more slowly as led 3 but the problem i have is thet led 2 follows led 1 and led 3 follows led2 i would like them to blink seperatly can this be done and how i'm still a noob ?
the idea is for a halloween mouth
led1 blink eyes
led2 mouth open
led3 mouth close

cheers marko

sketch

Code:
/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.
 
  This example code is in the public domain.
 */
 
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led1 = 9;
int led2 = 10;
int led3 = 11;

// the setup routine runs once when you press reset:
void setup() {               
  // initialize the digital pin as an output.
  pinMode(led1, OUTPUT);
  pinMode(led2, OUTPUT);
  pinMode(led3, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led1, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(150);               // wait for a second
  digitalWrite(led1, LOW);    // turn the LED off by making the voltage LOW
  delay(150);               // wait for a second
    digitalWrite(led2, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(150);               // wait for a second
  digitalWrite(led2, LOW);    // turn the LED off by making the voltage LOW
  delay(150);
    digitalWrite(led3, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);               // wait for a second
  digitalWrite(led3, LOW);    // turn the LED off by making the voltage LOW
  delay(500);
   
 
}
15  Using Arduino / Programming Questions / Re: sketch error ?? help on: September 18, 2012, 05:50:27 pm
ahhhh got it now but where do i put the <AccelStepper.h> ?
Pages: [1] 2 3 ... 5