Show Posts
Pages: 1 ... 104 105 [106] 107 108 ... 115
1576  Using Arduino / Project Guidance / Re: Controlling USB output voltages on: November 15, 2011, 08:18:38 am
Your explanation seems a bit confusing, but I guess you mean controlling the bightness of a series of leds by communication with a computer?
that is definetly possible and quite easy,
look into pwm, as well as serial communication

1577  Using Arduino / Project Guidance / Re: Help with Arduino and a Joystick on: November 15, 2011, 08:06:48 am
First did you notice how any number that it gives is both > 0 and < 355? They both ring true and do nothing or flash real fast,
depending on your goal you could find the absolute value from 160 then map it to the pwm range,
like
Val = sensorvalue - 160;
val = abs(val);
Ledpwm = map(val, 0, 160, 0, 255);
analogWrite(6, ledpwm);

And maybe add something to smooth out the jitters for a smooth led that changed brightness depending on the position, even maybe multiple leds that light up in the direction moved

Or do something less variable
If(sensorvalue > 160){
digitalWrite(13,1);
}
if(sensorvalue < 160{
digitalWrite(13,0);
}
 This is probably the most simple
1578  Using Arduino / Project Guidance / Re: interface with vex? on: November 12, 2011, 06:47:24 pm
Thank you, your googling skills are definetly better than mine lol
i did search some,  not too deep and I read abit about ppm and how it works, which is wat I believe it uses, but I have no clue what the reciever module puts out and how to read it
I was hoping somebody tried this before me and would have either a great example or great resource
I don't have a logic analyzer or oscilloscope to use, so figuring it out myslef would probably not work and just blow up the module
Sorry if I seem unwise in the ways of searching but I do understand the idea of finding the answer yourself which is why I offer myself up to the forum gods in a pitiful plea for guidance, a yellow brick road to the holy grail of answers and a plethora of easy to examine example of which I can use to the advantage of furthering my knowledge without blowing up the one module I have that I am using as a cheap( I already have it) and extensive controller
lol thanks for any help
1579  Using Arduino / Project Guidance / interface with vex? on: November 12, 2011, 04:29:47 pm
Idk if anyone has ever heard of vex before, but does it seem possible to use a vex reciever with the arduino? I have a real nice 8 channel remote for the vex and the reciever module that I want to use with my arduino
it is normally connected with a 4 pin connector so I would imagine vcc,gnd, and serial?
any help would be appreciated
Here's the module
 http://www.vexrobotics.com/276-2034.html
1580  Using Arduino / Microcontrollers / Re: arduino share crystal? on: November 11, 2011, 01:41:24 pm
O i get it, than you
1581  Using Arduino / Microcontrollers / Re: arduino share crystal? on: November 11, 2011, 06:58:01 am
So it is okay to leave xtal 2 of the second chip floating?
1582  Using Arduino / Microcontrollers / Re: arduino share crystal? on: November 10, 2011, 08:26:59 pm
I don't need to have them programmed at the same time, and I probably will program them before insertion into the project, and since I am buying them with the bootloader I will just use an uno board to program then insert into a socket
my plan would be to have the chips as close to each other as possible and have the crystal in parrallel to each, basically just to save space since they will be on a mega shield
If the datasheet says it can be used by another device then I guess no fuses need to be changed?
The reset line really is not needed in my particular use but I will have them wired to the reset line of the host mega just in case,
1583  Using Arduino / Microcontrollers / arduino share crystal? on: November 10, 2011, 03:42:59 pm
Can a regular arduino share its crystal with another arduino? More accuratly can I put two atmega328p on the same board and share the crystal? Also if it wouldn't matter if I shared the same reset button right?
1584  Using Arduino / Displays / Re: searching example for 2.8" TFT Touch Shield on: November 06, 2011, 08:07:26 pm
I wish I had it, id like to make some tweaks but I lost it  my thumbdrive somwheree, and Im still searching for it, because it took maybe 3 hours to really get the hang of it,
that hang I know lost : (
1585  Using Arduino / Programming Questions / Re: wdt on mega2560 on: November 06, 2011, 09:50:04 am
But if I have it set for two seconds isn't that plenty of time for the bootloader? It doesn't take more than a second on a reular sketch
1586  Using Arduino / Programming Questions / Re: wdt on mega2560 on: November 06, 2011, 02:29:18 am
This is the exact webiste I got the code from
 http://tushev.org/articles/electronics/48-arduino-and-watchdog-timer
I set the timeout to be 2 seconds and added various timer, like before during and after my sd writes, just to be safe
however when I uploaded it defaulted somehow, a bug that I saw after it happened and I researched more, the only indicator being the led constantly lit as the bootloader constantly runs and resets

And the default wdt time I believe is like 200ms, which is not long enough for ,the bootloader so my mega was basically bricked, until I was able to catch it at just the right time to upload a new program without it, which required alot of time and luck, and I really don't wanna have to get lucky twice
1587  Using Arduino / Programming Questions / wdt on mega2560 on: November 05, 2011, 10:31:11 am
Hey I was wondering what the correct way to use the watchdog timer on a mega2560?
I tried the normal way for say an uno and after finding out that it works, I also found out that the mega2560 has a bug where the wdt time defaults and it eternally resets
I want to use it but, I guess the normal way is not an option for the mega?
1588  Using Arduino / Programming Questions / Re: Why, if I set a serial speed above 9600, serial text gets garbled? on: November 05, 2011, 09:39:48 am
Are you using the regular serial port on the ide? If your not using 9600 you need to select which rate on the bottom of the screen, it doesn't automatically know
1589  Using Arduino / Project Guidance / Re: The Arduino Editor on: November 04, 2011, 10:55:38 pm
Same with the shift bckspc,
Very annoying at times, mostly when im editing
1590  Using Arduino / Audio / Re: msgeq7 help on: November 04, 2011, 10:51:29 pm
Solved it,
found out my breadboard was missing a row,  worked when I put it on another spot lol
simple problem simpel fix
and now my projects coming along nice
Pages: 1 ... 104 105 [106] 107 108 ... 115