Loading...
  Show Posts
Pages: 1 ... 7 8 [9] 10 11 ... 16
121  Using Arduino / Programming Questions / Re: I Keep getting errors when I try to upload on: October 16, 2012, 04:53:45 pm
I see you are using a different library than I'm familiar with. A quick google turned up the .h file though.

http://www.kwantlen.ca/science/physics/faculty/mcoombes/APSC/Homework/Ass1%20-%20code/serLCD.h

Code:
//****************************************************************************************
//
// serLCD.h
//
// Simplifies the use of the SparkFUN LCD
//
// Mike Coombes, 25 May 2007
//
//****************************************************************************************

#include <usart.h>       // library containing serial communtication functions

void LCD_ClearDisplay(void);
void LCD_CursorOn(void);
void LCD_CursorOff(void);
void LCD_MoveRight(void);
void LCD_MoveLeft(void);
void LCD_ScrollRight(void);
void LCD_ScrollLeft(void);
void LCD_BlinkOn(void);
void LCD_BlinkOff(void);
void LCD_DisplayOn(void);
void LCD_DisplayOff(void);
void LCD_UnderlineOn(void);
void LCD_UnderlineOff(void);
void LCD_Position(unsigned char line, unsigned char column);

I don't see a cursorTo function in there which is why the error occurs. I do see an LCD_Position function that takes line and column. That list there is actually the function prototypes for the library.
122  Community / Bar Sport / Re: Recycling/Hacking joke video on: October 16, 2012, 04:36:24 pm
damn. they dont sell marshmellows in my part of the world :-/

In the DIY spirit:

http://www.joyofbaking.com/candy/HomemadeMarshmallows.html

That video is hilarious. I still have a functioning VCR in my theatre room.
123  Using Arduino / Programming Questions / Re: I Keep getting errors when I try to upload on: October 16, 2012, 04:28:00 pm
You might want to post your current code.
124  Using Arduino / Programming Questions / Re: I Keep getting errors when I try to upload on: October 16, 2012, 03:49:34 pm
The location you want to move the cursor to before printing. IIRC it's position and line. Positions from 0..15 and lines 0 and 1. (My apologies if it's actually vice versa.)
125  Using Arduino / Programming Questions / Re: I Keep getting errors when I try to upload on: October 15, 2012, 04:06:47 pm
You have lcd.printIn with an I (an eye) it's probably lcd.println with an L (actually lower case L).

I had no problems with the serialLCD.h library. It only has a print function not a println, which I don't see much need for on a 16x2 display.
126  Community / Bar Sport / Re: An idiot says what? on: October 15, 2012, 01:24:54 pm

not bright enough ...
127  Community / Bar Sport / Re: An idiot says what? on: October 13, 2012, 11:58:54 am
what ???
128  Community / Bar Sport / Re: I'll be honest. on: October 12, 2012, 04:11:53 pm
I have noticed that my pot smoking group of friends have more PHDs among them than my beer drinking group of friends.
129  Using Arduino / Programming Questions / Re: Multiple classes in a single library with shared functionality? on: October 12, 2012, 11:31:01 am
Bump

I hope someone answers this, I'm curious myself.

I know you can pass pointers to classes. My gut says that I would want bar to instance foos but I'd be worried that foo would only scope to bar. When an instance of bar is declared you could tell it how many foos you want.

I think to do that, you would need the foo class already defined and prototyped in the bar class header.

I'm learning too.  smiley-grin
130  Using Arduino / Project Guidance / Re: Lifting up to 100 pounds with motor on: October 11, 2012, 05:22:01 pm
I think I'd be looking for a way to give the motor a big mechanical advantage for both opening and holding. Something like a scissor jack or counter weights. Hard to say without seeing the whole setup.

131  Using Arduino / Programming Questions / Re: convert int to string and then... on: October 10, 2012, 07:59:09 pm
Code:
unsigned long number = 123662012;     // assign the value you need to number
byte n[10];                           // to keep results 10 digits max
byte i = 0;                           // to index array
       while (number)
        {
n[i] = number % 10;
number /= 10;
i++;
}

A different approach that came to me. This will store the digits from a number as elements of array n[] from least to most significant. It simply uses modulo to get the current ones digit then uses divide to drop that digit. When the loop runs out of number n[] contains the digits and i has the count and number is gone so save it you don't want to lose it.

Obviously only works on integers and the size is only limited by the size of array n[].
132  Using Arduino / Project Guidance / Re: minimum temperature for electronics/mini-heater on: October 10, 2012, 06:33:17 pm
Quote
* WOW!  I just realized that -40 is an "interesting" number when converting between Fahrenheit and Centegrade! 

It's the only one Fahrenheit got right. I only know this because I live in a place that gets -40 temperatures on occasion.

People used to Centigrade often don't realize how cold 0 Fahrenheit is. (-18C - a chilly day, better wear a touque)
133  Community / Bar Sport / Re: Let's do a rally of meaningless complaints on: October 10, 2012, 04:05:15 pm
If you think you guys have complaints, well, it snowed here today.
134  Using Arduino / Programming Questions / Re: Excel on: October 10, 2012, 03:51:06 pm
It appears that the first column is simply a counter. It isn't really needed. (I recently went through this with my project.) It's trivial to number the data in the spreadsheet. If it goes to the first cell the row numbers should do it. 

I don't know what you are doing with the data in the spreadsheet. Maybe you need each line numbered but if you think about it you might find that you don't.
135  Using Arduino / Programming Questions / Re: Excel on: October 10, 2012, 12:13:45 pm
If all you want to do is make graphs consider trying gnuplot (www.gnuplot.info). It wants data in a plain text file in columns. It's very fast. A week's worth of data from my log file has around 35,000 data points and the graph snaps onto my screen even on my old Toshiba laptop. It has zooming and auto ranging. It isn't the most straight forward thing but if you can program Arduino it shouldn't be too hard.

It even does Windows now.
Pages: 1 ... 7 8 [9] 10 11 ... 16