Show Posts
Pages: [1] 2 3
1  Topics / E-Textiles and Craft / Re: Small powersource based on motion needed! on: September 06, 2012, 01:20:13 am
this is what I would like to build for my bike for lighting
http://www.instructables.com/id/Contactless-dynamo-powering-bike-safety-lights/

let me know if you make this.

thanks
bryan
2  Using Arduino / LEDs and Multiplexing / Re: direct wire 8x8 led matrix compile error on: June 19, 2012, 07:22:25 pm
commented the math.h one using arduino 22
this is my error
C:\Documents and Settings\Administrator\My Documents\Dropbox\arduino backups\libraries\FrequencyTimer2\FrequencyTimer2.cpp: In static member function 'static void FrequencyTimer2::setOnOverflow(void (*)())':
C:\Documents and Settings\Administrator\My Documents\Dropbox\arduino backups\libraries\FrequencyTimer2\FrequencyTimer2.cpp:51: error: 'TIMSK' was not declared in this scope
C:\Documents and Settings\Administrator\My Documents\Dropbox\arduino backups\libraries\FrequencyTimer2\FrequencyTimer2.cpp:51: error: 'OCIE2' was not declared in this scope
C:\Documents and Settings\Administrator\My Documents\Dropbox\arduino backups\libraries\FrequencyTimer2\FrequencyTimer2.cpp:52: error: 'TIMSK' was not declared in this scope
C:\Documents and Settings\Administrator\My Documents\Dropbox\arduino backups\libraries\FrequencyTimer2\FrequencyTimer2.cpp:52: error: 'OCIE2' was not declared in this scope
C:\Documents and Settings\Administrator\My Documents\Dropbox\arduino backups\libraries\FrequencyTimer2\FrequencyTimer2.cpp: In static member function 'static void FrequencyTimer2::setPeriod(long unsigned int)':
C:\Documents and Settings\Administrator\My Documents\Dropbox\arduino backups\libraries\FrequencyTimer2\FrequencyTimer2.cpp:99: error: 'TCCR2' was not declared in this scope
C:\Documents and Settings\Administrator\My Documents\Dropbox\arduino backups\libraries\FrequencyTimer2\FrequencyTimer2.cpp:102: error: 'OCR2' was not declared in this scope
C:\Documents and Settings\Administrator\My Documents\Dropbox\arduino backups\libraries\FrequencyTimer2\FrequencyTimer2.cpp:103: error: 'COM20' was not declared in this scope
C:\Documents and Settings\Administrator\My Documents\Dropbox\arduino backups\libraries\FrequencyTimer2\FrequencyTimer2.cpp: In static member function 'static long unsigned int FrequencyTimer2::getPeriod()':
C:\Documents and Settings\Administrator\My Documents\Dropbox\arduino backups\libraries\FrequencyTimer2\FrequencyTimer2.cpp:113: error: 'TCCR2' was not declared in this scope
C:\Documents and Settings\Administrator\My Documents\Dropbox\arduino backups\libraries\FrequencyTimer2\FrequencyTimer2.cpp:114: error: 'OCR2' was not declared in this scope
C:\Documents and Settings\Administrator\My Documents\Dropbox\arduino backups\libraries\FrequencyTimer2\FrequencyTimer2.cpp: In static member function 'static void FrequencyTimer2::enable()':
C:\Documents and Settings\Administrator\My Documents\Dropbox\arduino backups\libraries\FrequencyTimer2\FrequencyTimer2.cpp:150: error: 'TCCR2' was not declared in this scope
C:\Documents and Settings\Administrator\My Documents\Dropbox\arduino backups\libraries\FrequencyTimer2\FrequencyTimer2.cpp:150: error: 'COM20' was not declared in this scope
C:\Documents and Settings\Administrator\My Documents\Dropbox\arduino backups\libraries\FrequencyTimer2\FrequencyTimer2.cpp: In static member function 'static void FrequencyTimer2::disable()':
C:\Documents and Settings\Administrator\My Documents\Dropbox\arduino backups\libraries\FrequencyTimer2\FrequencyTimer2.cpp:160: error: 'TCCR2' was not declared in this scope
C:\Documents and Settings\Administrator\My Documents\Dropbox\arduino backups\libraries\FrequencyTimer2\FrequencyTimer2.cpp:160: error: 'COM20' was not declared in this scope
3  Using Arduino / LEDs and Multiplexing / Re: direct wire 8x8 led matrix compile error on: June 19, 2012, 07:10:04 pm
when using the test example for frequencytimer2 in arduino 1.01 I get this error

In file included from Test.cpp:4:
C:\Documents and Settings\Administrator\My Documents\Dropbox\arduino backups\libraries\FrequencyTimer2/FrequencyTimer2.h:30: error: 'uint8_t' does not name a type
Test.cpp: In function 'void setup()':
Test.pde:-1: error: 'FREQUENCYTIMER2_PIN' was not declared in this scope
4  Using Arduino / LEDs and Multiplexing / Re: direct wire 8x8 led matrix compile error on: June 19, 2012, 07:04:39 pm
downloaded arduino 1.01 and this is my new error


In file included from sketch_jun19a.cpp:13:
C:\Documents and Settings\Administrator\My Documents\Dropbox\arduino backups\libraries\FrequencyTimer2/FrequencyTimer2.h:30: error: 'uint8_t' does not name a type
5  Using Arduino / LEDs and Multiplexing / direct wire 8x8 led matrix compile error on: June 18, 2012, 04:27:13 am
I am trying to get the playground direct wire led matrix working and I keep getting compile errors
this is the code i am using


Code:
/*
 * Show messages on an 8x8 led matrix,
 * scrolling from right to left.
 *
 * Uses FrequencyTimer2 library to
 * constantly run an interrupt routine
 * at a specified frequency. This
 * refreshes the display without the
 * main loop having to do anything.
 *
 */

#include <FrequencyTimer2.h>

#define SPACE { \
    {0, 0, 0, 0, 0, 0, 0, 0},  \
    {0, 0, 0, 0, 0, 0, 0, 0}, \
    {0, 0, 0, 0, 0, 0, 0, 0}, \
    {0, 0, 0, 0, 0, 0, 0, 0}, \
    {0, 0, 0, 0, 0, 0, 0, 0}, \
    {0, 0, 0, 0, 0, 0, 0, 0}, \
    {0, 0, 0, 0, 0, 0, 0, 0}, \
    {0, 0, 0, 0, 0, 0, 0, 0} \
}

#define H { \
    {0, 1, 0, 0, 0, 0, 1, 0}, \
    {0, 1, 0, 0, 0, 0, 1, 0}, \
    {0, 1, 0, 0, 0, 0, 1, 0}, \
    {0, 1, 1, 1, 1, 1, 1, 0}, \
    {0, 1, 0, 0, 0, 0, 1, 0}, \
    {0, 1, 0, 0, 0, 0, 1, 0}, \
    {0, 1, 0, 0, 0, 0, 1, 0}, \
    {0, 1, 0, 0, 0, 0, 1, 0}  \
}

#define E  { \
    {0, 1, 1, 1, 1, 1, 1, 0}, \
    {0, 1, 0, 0, 0, 0, 0, 0}, \
    {0, 1, 0, 0, 0, 0, 0, 0}, \
    {0, 1, 1, 1, 1, 1, 1, 0}, \
    {0, 1, 0, 0, 0, 0, 0, 0}, \
    {0, 1, 0, 0, 0, 0, 0, 0}, \
    {0, 1, 0, 0, 0, 0, 0, 0}, \
    {0, 1, 1, 1, 1, 1, 1, 0}  \
}

#define L { \
    {0, 1, 0, 0, 0, 0, 0, 0}, \
    {0, 1, 0, 0, 0, 0, 0, 0}, \
    {0, 1, 0, 0, 0, 0, 0, 0}, \
    {0, 1, 0, 0, 0, 0, 0, 0}, \
    {0, 1, 0, 0, 0, 0, 0, 0}, \
    {0, 1, 0, 0, 0, 0, 0, 0}, \
    {0, 1, 0, 0, 0, 0, 0, 0}, \
    {0, 1, 1, 1, 1, 1, 1, 0}  \
}

#define O { \
    {0, 0, 0, 1, 1, 0, 0, 0}, \
    {0, 0, 1, 0, 0, 1, 0, 0}, \
    {0, 1, 0, 0, 0, 0, 1, 0}, \
    {0, 1, 0, 0, 0, 0, 1, 0}, \
    {0, 1, 0, 0, 0, 0, 1, 0}, \
    {0, 1, 0, 0, 0, 0, 1, 0}, \
    {0, 0, 1, 0, 0, 1, 0, 0}, \
    {0, 0, 0, 1, 1, 0, 0, 0}  \
}

byte col = 0;
byte leds[8][8];

// pin[xx] on led matrix connected to nn on Arduino (-1 is dummy to make array start at pos 1)
int pins[17]= {-1, 5, 4, 3, 2, 14, 15, 16, 17, 13, 12, 11, 10, 9, 8, 7, 6};

// col[xx] of leds = pin yy on led matrix
int cols[8] = {pins[13], pins[3], pins[4], pins[10], pins[06], pins[11], pins[15], pins[16]};

// row[xx] of leds = pin yy on led matrix
int rows[8] = {pins[9], pins[14], pins[8], pins[12], pins[1], pins[7], pins[2], pins[5]};

const int numPatterns = 6;
byte patterns[numPatterns][8][8] = {
  H,E,L,L,O,SPACE
};

int pattern = 0;

void setup() {
  // sets the pins as output
  for (int i = 1; i <= 16; i++) {
    pinMode(pins[i], OUTPUT);
  }

  // set up cols and rows
  for (int i = 1; i <= 8; i++) {
    digitalWrite(cols[i - 1], LOW);
  }

  for (int i = 1; i <= 8; i++) {
    digitalWrite(rows[i - 1], LOW);
  }

  clearLeds();

  // Turn off toggling of pin 11
  FrequencyTimer2::disable();
  // Set refresh rate (interrupt timeout period)
  FrequencyTimer2::setPeriod(2000);
  // Set interrupt routine to be called
  FrequencyTimer2::setOnOverflow(display);

  setPattern(pattern);
}

void loop() {
    pattern = ++pattern % numPatterns;
    slidePattern(pattern, 60);
}

void clearLeds() {
  // Clear display array
  for (int i = 0; i < 8; i++) {
    for (int j = 0; j < 8; j++) {
      leds[i][j] = 0;
    }
  }
}

void setPattern(int pattern) {
  for (int i = 0; i < 8; i++) {
    for (int j = 0; j < 8; j++) {
      leds[i][j] = patterns[pattern][i][j];
    }
  }
}

void slidePattern(int pattern, int del) {
  for (int l = 0; l < 8; l++) {
    for (int i = 0; i < 7; i++) {
      for (int j = 0; j < 8; j++) {
        leds[j][i] = leds[j][i+1];
      }
    }
    for (int j = 0; j < 8; j++) {
      leds[j][7] = patterns[pattern][j][0 + l];
    }
    delay(del);
  }
}

// Interrupt routine
void display() {
  digitalWrite(cols[col], LOW);  // Turn whole previous column off
  col++;
  if (col == 8) {
    col = 0;
  }
  for (int row = 0; row < 8; row++) {
    if (leds[col][7 - row] == 1) {
      digitalWrite(rows[row], LOW);  // Turn on this led
    }
    else {
      digitalWrite(rows[row], HIGH); // Turn off this led
    }
  }
  digitalWrite(cols[col], HIGH); // Turn whole column on at once (for equal lighting times)
}


here is the error I am getting in arduino 22
I have tried arduino 1.0 as well no dice
yes my frequencytimer2 is installed in libraries for both arduino 22 and 1.0


In file included from C:\Documents and Settings\Administrator\My Documents\Dropbox\arduino-0022\arduino-0022\hardware\arduino\cores\arduino/WProgram.h:6,
                 from sketch_jun18a.cpp:70:
c:/documents and settings/administrator/my documents/dropbox/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected unqualified-id before 'double'
c:/documents and settings/administrator/my documents/dropbox/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected `)' before 'double'
c:/documents and settings/administrator/my documents/dropbox/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected `)' before 'double'

any suggestions
thanks
bryan
6  Community / Exhibition / Gallery / Re: Connecting Arduino to Android Phone using Bluetooth on: May 29, 2012, 08:32:13 pm
that link is giving me a 404

I have been playing around with the jy mcu bluetooth module and have had some success. I used this instructable
http://www.instructables.com/id/Androino-Talk-with-an-Arduino-from-your-Android-d/

I had to install the sla4 android and python for android but it works pretty well. As of now I can only receive sensor data from one pin but I havent played around with the code too much to see how I can get data from more pins and send data back to the arduino which is my ultimate goal
as for the amarino project I havent had as much luck with it. I have changed my baud rate and the test event is sending data but I get nothing from my serial monitor. I really want to get this up and running.

7  Using Arduino / Networking, Protocols, and Devices / Re: How to get the JY-MCU bt board to work on: May 28, 2012, 07:51:41 pm
thanks that was it I needed to paste it in at once. knew it was something simple

thanks
bryan
8  Using Arduino / Networking, Protocols, and Devices / Re: How to get the JY-MCU bt board to work on: May 28, 2012, 06:58:23 pm
I am using the modern device usb bub and putty to change the baud rate. using this tutorial http://wiki.openpilot.org/display/Doc/Serial+Bluetooth+Telemetry I have done everything it asked me to do. I can send it the AT command and it sends back OK but when I try and put AT+BAUD7 IT DOESNT WORK. I hit AT and it sends back OK before I can add the plus and baud rate. I know its something simple that I am doing wrong. I have the module working with my android phone at 9600 but I want to use the amarino toolkit and it tells me I need it at a higher rate. Any thoughts?

thanks
bryan
9  Using Arduino / Networking, Protocols, and Devices / Re: strange ethernet shield problem on: February 03, 2011, 12:49:52 pm
Thanks that was it. Seems the reset button on my shield isnt working
10  Using Arduino / Motors, Mechanics, and Power / Re: arduino variable speed fan controller on: February 03, 2011, 12:26:29 pm
Thanks for the advice. Seems i will be going back to my original design
11  Using Arduino / Motors, Mechanics, and Power / Re: arduino variable speed fan controller on: February 03, 2011, 01:30:02 am
here is one controller
http://www.randmsupply.com/productdisp.php?pid=114&navid=6

seems this controller uses a relay
guess I should just go with a relay
12  Using Arduino / Networking, Protocols, and Devices / Re: strange ethernet shield problem on: February 03, 2011, 01:02:33 am
Im using the stock ethernet web server sketch. works perfectly when connected to puter with proper drivers

the power is from a wall wart. I dont think its a power issue because it starts to work when the computer it is plugged into has the proper usb drivers.

I am really stumped on this one. I am so glad I figured out the problem though.
I am sure it is something simple.
13  Using Arduino / Networking, Protocols, and Devices / strange ethernet shield problem on: February 02, 2011, 08:18:53 pm
ok i have the official Ethernet card and am having some strange problems

I was trying to connect using a linksys wrt54g router with no success. The router is away from my reg computer so I never had them connected at the same time.
So I hook up another router near my home computer and hook them both up at the same time and everything works as it should. Im excited at this point until I unplug my duino from my puter and plug in the barrel jack. Nothing happens none of the tx rx lights come on. So I plug it back into my computer and it works again. I was thinking that there was some issue with my barrel jack not providing enough juice or something but it seems the only way my duino will connect to the router is if it is connected to a computer with the proper drivers. I plugged it into my roomates computer without drivers and it didnt work. When I installed them it did.

What gives here?

I have an Arduino Duemilanove 2009 purchased from adafruit
official wiz net ethernet shield without sd card

thanks
14  Using Arduino / Displays / Re: displaying sensor readings with the nokia 5110 on: February 02, 2011, 07:50:22 pm
I hooked it up according to this file

#ifdef PB1
#define LCD_RST PB1
#define SPI_CS  PB2
#define SPI_MOSI PB3
#define SPI_SCK PB5
#define LCD_DC  PB0
#define LCD_BL  PD7
#else
#define LCD_RST PORTB1
#define SPI_CS  PORTB2
#define SPI_MOSI PORTB3
#define SPI_SCK PORTB5
#define LCD_DC  PORTB0
#define LCD_BL  PORTD7
#endif

It doesnt want to work for me still. Using another example I can get the hello world but don't understand how to use that to display sensor data
15  Using Arduino / Motors, Mechanics, and Power / Re: arduino variable speed fan controller on: February 02, 2011, 07:46:09 pm
hmmm
my friend insists that these controllers I want to mimic are varying the speed of the fan dependent of temp. I figured a relay circuit would accomplish the same goal. I figured I would use  pwm to tell the switch how much current to let pass. Am I barking up the wrong tree?
should I go with a motor driver circuit with a l293d?

thanks
Pages: [1] 2 3