Show Posts
|
|
Pages: 1 ... 3 4 [5] 6 7 ... 11
|
|
61
|
Using Arduino / Programming Questions / Re: Using millis() instead of delay
|
on: May 15, 2012, 12:44:28 pm
|
|
I agree with John that by making prev static, you will be mixing up the usage of the two calls to timer. You are thinking that each timer call has its "own" copy of prev that is not reset. but actually, both timer calls are using the same prev variable.
when you say "use my library in separate classes", if you meant converting your timer function by wrapping it in a class that contains timer function and creating two instances of the class, then yes it will work, as each class instance will keep its own copy of prev. The Routine class you posted does exactly that.
|
|
|
|
|
62
|
Using Arduino / Programming Questions / Re: What pins to use for I2C bus with AVR Mega2560
|
on: May 15, 2012, 03:42:22 am
|
This is a case of knowing enough to be dangerous  I think OP (original poster) should have just admitted a clear mistake and moved on, but instead tried to find some things to blame. the fact that the question was even asked tells us the level of knowledge the OP has, and people here are helpful and responded instead f ignoring the question.
|
|
|
|
|
65
|
Using Arduino / Programming Questions / Re: 3.3V / 8Mhz Breadboard ATMEGA328P
|
on: May 09, 2012, 03:08:13 pm
|
|
your successful burn was selecting Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega328 but only using 5v without connecting 3.3v?
I think that is all you need, since the fuse setting for that board is for external 8mhz crystal. the bootloader file itself is the same for 5v and 3.3v.
|
|
|
|
|
72
|
Using Arduino / Networking, Protocols, and Devices / Re: Wi-Fi, where to start?
|
on: May 04, 2012, 11:16:47 am
|
I did this research before. when choosing, always go with the most popular/widely used. And that appears to be wifly. get the wifly on xbee footprint. like this http://www.sparkfun.com/products/10822or this http://www.sparkfun.com/products/10822I think it is exactly the same as your first link. UK prices seems really high. For the adapter, make sure you get one with actual level converter (5v to 3.3v) chip, like this https://www.adafruit.com/products/126some just use a resistor voltage divider to convert 5v to 3.3v. Anyway, I ended up not using wifi for ethernet, because cost becomes prohibitively high. You can get a decent ethernet shield on ebay for as low as $15 shipped. Then just add a wireless router like this for $24 shipped. http://www.tp-link.us/products/details/?categoryid=241&model=TL-WR702N
|
|
|
|
|