Show Posts
Pages: [1] 2 3 4
1  Using Arduino / Programming Questions / Re: Stuck in a while loop... on: July 18, 2013, 06:40:45 pm
Figured it out! Even added an "off" button in the process smiley

https://gist.github.com/gtrstitch/6017642

It was all in the send_1M_strip function. I had the right idea, wrong area.

~Gtr_Stitch
2  Using Arduino / Programming Questions / Re: Stuck in a while loop... on: July 17, 2013, 10:43:06 pm
I do apologize about the shoddy indentation, and appreciate the response!

the "1 != 0" was intended to give a pseudo-never-ending loop, which is why I put the digitalRead() inside the loop. That way when the value of c1 or c2 changes, the conditions become false and we exit the while loop.

[EDIT] I see now that also the "1 != 0" is rather redundant. It was a first crude attempt to keep the loop going as needed, since 1 will obviously never equal 0.

However, I think I've found some errors in my code that may be causing my problems. I may have rushed the sketch a little bit, so I'll correct the mistakes and see how it goes...

Again, I appreciate the response and will update later!

~Gtr_Stitch
3  Using Arduino / Programming Questions / Stuck in a while loop... on: July 16, 2013, 11:10:28 pm
Haven't been back here in a while (sorry for all the 'while' puns!), but frankly, I am stuck in a while loop.

It runs through the first time just fine, and actually continues to run fine, the problem I am having with this is that the function in the while loop only seems to run once.

Here is the link to the sketch in gist...

https://gist.github.com/gtrstitch/6017642

I'm pretty good at figuring out what I did, but for this particular problem...i be stuck :S

And don't let some of the stuff in this sketch fool you. Most of it was just copied from the example provided by Radio Shack's website. It seems like a lot of low level code, and I'm not really that advanced!

Any help would be much appreciated!

~Gtr_Stitch
4  Community / Exhibition / Gallery / Re: "Security" System = Arduino+PIR+LCD+DS1307 on: April 24, 2013, 02:51:32 pm
okay then...
5  Using Arduino / Microcontrollers / Re: ATMega1284P Issues on: April 24, 2013, 02:05:57 pm
Still out of sync. I guess I'll just scrap the 1284s. I don't have the resources to purchase an external programmer or whatever will work with these uC's. Oh well.
6  Using Arduino / Microcontrollers / Re: A Unique Problem - W27C512-45 EEPROM on: April 20, 2013, 05:52:08 pm
That's the datasheet I have. Awesome! Thanks, man!
7  Using Arduino / Microcontrollers / A Unique Problem - W27C512-45 EEPROM on: April 20, 2013, 05:45:21 pm
So, I need a little bit of advice, really. I have a guitar amp that I'm trying to fix up, but I don't know where the problem is. Well, I know for the most part where it's not, but I'm making my way across the board until I can pinpoint the issue. Anyways, the guitar amp has a W27C512-45 EEPROM on it (for effects, I'm assuming) and I've looked up it's datasheet, but it doesn't specify whether it's SPI or I2C, so I'm not exactly sure how to make sure it still (or doesn't) work(s). It does state that it's directly TTL/CMOS compatible on all pins. At any rate, any help would be greatly appreciated!

~Gtr_Stitch
8  Using Arduino / Networking, Protocols, and Devices / Re: m41t00 rtc on: April 13, 2013, 10:34:45 pm
Sorry it took me forever and a month to respond, but thanks for your help! I have since then gotten a DS1307, and the corresponding libraries. I noticed something, though... The m41t00 clock and the DS1307 seem to have the same I2C address. Registers are different, though. Peculiar?
9  Using Arduino / Microcontrollers / Re: 7 segment clock using rtc ds1307 on: April 13, 2013, 09:36:51 pm
LOL, sorry. I just had to do it. I myself may come on here and ask for a lot of advice when I'm stuck and research isn't producing viable results, but google is swamped with arduino clocks using the ds1307 (and similar). Just do a google search and pick your favorite.

As well, if there's one thing I've learned, start by getting each part to operate alone, and then bring it all together. Get you 7-seg up and running, then your RTC. Just the other night, I played around with a pan/tilt thing involving a stepper motor, servo, and the Wii nunchuk. All use different separate libraries. I would start on one, then move on to the next, integrating them all at the end.

So, just do a google search and you're almost guaranteed to find a few tutorials on how to do what you're looking to do. Best of luck! And post some pics as you go smiley

~Stitch
10  Using Arduino / Microcontrollers / Re: ATMega1284P Issues on: April 13, 2013, 09:28:06 pm
Tak - Refer to image. I simply used jumpers to connect the onboard 16Mhz resonator.

And a lot of great info. Ill surely look into that and post back. Much appreciated!
11  Using Arduino / Microcontrollers / Re: 7 segment clock using rtc ds1307 on: April 13, 2013, 09:24:31 pm
digitalWrite (http://www.google.com , HIGH);
12  Using Arduino / Microcontrollers / Re: ATMega1284P Issues on: April 12, 2013, 09:13:05 pm
I believe so...
mighty_opt.bootloader.low_fuses=0xf7
mighty_opt.bootloader.high_fuses=0xde
mighty_opt.bootloader.extended_fuses=0xfd

I have OptiBoot burned onto both...although...the first one, upon cycling the power, the led blinks a little erratically. the second one is the usual three blinks...
And, dumb moment...I didn't read the resonator well. It says 16.93 (not 16). I used that to while burning the first bootloader, but, I created the monster you see below for the second, and tapped into the onboard 16Mhz crystal on the Uno, while using an ATMega328 on a breadboard at 8Mhz to burn the bootloader on the second chip. However, I am still getting those not in sync error messages...
13  Using Arduino / Microcontrollers / Re: ATMega1284P Issues on: April 12, 2013, 05:42:20 pm
I've got a 16Mhz ceramic resonator as the crystal. Would that have something to do with it?
14  Using Arduino / Microcontrollers / Re: ATMega1284P Issues on: April 11, 2013, 09:38:42 pm
I don't know if this is any information that'll help me, but I'm not really using the Arduino as ISP, rather, using the 16u2. I don't know if it makes a difference. I read here (http://nathan.chantrell.net/20120811/using-the-atmega1284p-with-the-arduino-ide-wiz820io/) and noticed he was using a .1uF cap in conjunction with a 10K resistor on the dtr line (dtr is the same as Reset on the arduino board, correct?). If so, I think i'll implement his setup alongside the RC filter, and see if that gives me any results.
15  Using Arduino / Microcontrollers / Re: ATMega1284P Issues on: April 11, 2013, 09:10:09 pm
I'll give the RC filter a go. I did change the fuse value from 0xFF to 0xF7. I'm doing this all on a breadboard. The bootloader seems to have burned fine, it's just uploading a sketch that is proving problematic.
Pages: [1] 2 3 4