Show Posts
|
|
Pages: 1 [2] 3 4
|
|
16
|
Forum 2005-2010 (read only) / Bugs & Suggestions / saving issues
|
on: April 14, 2010, 06:54:28 pm
|
ok so my laptop has no battery (the one wouldent take a charge so i took it out and saved 3 lbs sometimes i am working on code and i click save so then i think it is saved and the program says so, HOWEVER sometimes i am in a rush so i just hit save then pull the plug when it says it is saved but it isent this has happened many times where i have written large ammounts of code like a hundred lines or so and it all just magically disappears, taken by the digital gnome this is a really serious problem an autosave feature would help too
|
|
|
|
|
17
|
Forum 2005-2010 (read only) / Syntax & Programs / Re: Faster interrupts needed
|
on: April 28, 2010, 06:48:39 pm
|
|
Thing is i cant use delays it makes it too slow (and the interrupt flips a sh*t if you use even the smallest delay go figure) it just reads the value, to a variable then turn on the light if one of the three variables is true then resets the variable to give it a mild delay(that is surprisingly effective ) and then turns it off and moves to the next light
|
|
|
|
|
18
|
Forum 2005-2010 (read only) / Syntax & Programs / Re: Faster interrupts needed
|
on: April 28, 2010, 04:51:05 pm
|
|
Oh very cool i dident know there was a timer1 anyway the isr is for a display of a 3x3x3 rgb led matrix( described in a different post search ticktack^3) and this isr runes through 3 arrays of 27 reg green blue and disoplays the corresponding color for each light if it has been selected or if there is data for it in the array and then turns it off and goes to the next light because if multiple lights are o at the same time the colors mix = BAD so it uses the POV effect to display solid colors and brightness is linked with time on so the faster it goes the brighter it is, ie it can only be played indoors i can put a video link if you want which describes the project with info btw this is patent pending but will be opensource
|
|
|
|
|
20
|
Forum 2005-2010 (read only) / Syntax & Programs / Re: Faster interrupts needed
|
on: April 25, 2010, 01:33:59 am
|
|
Jbbiz i am NOT amused at all at this, you have just lost quite alot of respect points with me dude, post your own thread like i did an wait for an answer or do what i have done for a very difficult project that i have done and TEACH YOURSELF look it up online? Many people are willing to help you including myself but not if you follow the rules of common sense aditionally this is the wrong way to get your problem solved, you make a thread, post a question AFTER you have done your research come up with a plan tried a few out and have some specific questions to ask whyle providing as much detail as possible [/rant end] Now please remove your post from this thread immediatly thank you
|
|
|
|
|
21
|
Forum 2005-2010 (read only) / Syntax & Programs / Re: Faster interrupts needed
|
on: April 24, 2010, 04:29:14 pm
|
IT VERKS !! I made a seperate entry in the boards.txt file and copied all the atmega128 info but changed the clock speed to one mhz even though it had a 16 mhz crystal in it so it corrected the time if it was running at 1mhz so 2 miliseconds set in the interupt originally becomes .125th of a second running at 16mhz so all the light timing issues are fixed !!! it worked like a charm [code]##############################################################
diecimila.name=Arduino Diecimila, Duemilanove, or Nano w/ ATmega168
diecimila.upload.protocol=stk500 diecimila.upload.maximum_size=14336 diecimila.upload.speed=19200
diecimila.bootloader.low_fuses=0xff diecimila.bootloader.high_fuses=0xdd diecimila.bootloader.extended_fuses=0x00 diecimila.bootloader.path=atmega diecimila.bootloader.file=ATmegaBOOT_168_diecimila.hex diecimila.bootloader.unlock_bits=0x3F diecimila.bootloader.lock_bits=0x0F
diecimila.build.mcu=atmega168 diecimila.build.f_cpu=16000000L diecimila.build.core=arduino
##############################################################
diecimila.name=cube
diecimila.upload.protocol=stk500 diecimila.upload.maximum_size=14336 diecimila.upload.speed=19200
diecimila.bootloader.low_fuses=0xff diecimila.bootloader.high_fuses=0xdd diecimila.bootloader.extended_fuses=0x00 diecimila.bootloader.path=atmega diecimila.bootloader.file=ATmegaBOOT_168_diecimila.hex diecimila.bootloader.unlock_bits=0x3F diecimila.bootloader.lock_bits=0x0F
diecimila.build.mcu=atmega168 diecimila.build.f_cpu=1000000L diecimila.build.core=arduino
[/code] notice the change? diecimila.build.f_cpu=16000000L to diecimila.build.f_cpu=1000000L thats all ! (sorry im really happy that it worked )
|
|
|
|
|
22
|
Forum 2005-2010 (read only) / Syntax & Programs / Re: Faster interrupts needed
|
on: April 18, 2010, 08:13:12 am
|
|
@chris i think i understand but with the timing measuring, its not that it doesent show its that it isent as bright as it could be and you completly lost be on the last paragraph also get some sleep :p nobody codes well when their tired( trust me i know from experience of waking up and not knowing what the hell i did to my sketch)
@CB thanks and i will try it and let you all know how it turns out
|
|
|
|
|
23
|
Forum 2005-2010 (read only) / Syntax & Programs / Re: Faster interrupts needed
|
on: April 17, 2010, 10:07:44 pm
|
|
I just thought, if i were to tell the chip when it uploads that it will be at something like 10 MHz to properly set the time delays and then run it with a 20 MHz oscillator would that solve my problem? Because it is not time sensitive or would that damage the chip? I have one or two 20mhz osc's that i can use and i can change what the chip thinks its running at if need be. So anybody think that might work? Thanks
|
|
|
|
|
26
|
Forum 2005-2010 (read only) / Syntax & Programs / Faster interrupts needed
|
on: March 30, 2010, 10:43:16 pm
|
|
Hello everyone, i have been working on a program that involves a whole bunch of leds (27 rgb ) and i have an interrupt ( MsTimer2 to be exact) and every 2 miliseconds it reads info from 3 arrays of 27 one per color and then lights the light then turns it off and goes to the next light and its quite dim compared to a fully lit led so i have 2 options that i know of, first is to use a faster interrupt system, ditch mstimer2 because aparently the minimum time is 2 ms cus things go a bit strange with any less, the other option is to somehow lengthen the time the led is lit but w/o using the delay() because if i do that causes problems, as of now my code works but i just need it to be brighter so it can easily be seen in the daytime outside 8-)
Thanks ~Katzmatt
|
|
|
|
|
27
|
Forum 2005-2010 (read only) / Syntax & Programs / Re: im a starter who needs some tips
|
on: April 25, 2010, 01:41:20 am
|
|
Jbbiz we need more information to solve your issue and i will strongly recommend that you look at serial communication and a seperate code with processing to do the computer side of the action, and to better help you we would need some more information, like what key why are you pressing it, how do you intend to press it , when do you want to press it and what drives the pressing? Most important is probabally the context like if it is say a presentation device or a pause button or something also do some research into processing and the demo programs for both that and the duino
|
|
|
|
|
29
|
Forum 2005-2010 (read only) / Troubleshooting / errors on transplanted 328 on the decimilia
|
on: April 11, 2010, 10:17:11 pm
|
so i bought some (3) atmega328 chips with regulators and oscilators and the like from sparkfun a few weeks ago and dident get to test them up until now so i removed the 128 chip and fit in the shiny 328, then i set "board " to the duemilanove with 328 chip and uploaded blink to try it out , however it dident upload and i think i pissed off avrdude here is what he said to me when i hit upload (it compiles like normal) avrdude: Version 5.4-arduino, compiled on Oct 11 2007 at 19:12:32 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
System wide configuration file is "C:\Documents and Settings\Alexa\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf"
Using Port : \\.\COM5 Using Programmer : stk500v1 Overriding Baud Rate : 57600 avrdude: ser_open(): setting dtr avrdude: Send: 0 [30] [20] avrdude: Send: 0 [30] [20] avrdude: Send: 0 [30] [20] avrdude: Recv: avrdude: stk500_getsync(): not in sync: resp=0x00 avrdude: Send: Q [51] [20] avrdude: Recv: avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
avrdude done. Thank you.
side note, i replaced the 128 chip in the duino and it works again ..WTF!!! thanks
|
|
|
|
|