Show Posts
|
|
Pages: [1] 2 3
|
|
2
|
Using Arduino / General Electronics / rgb led on lcd not white
|
on: May 28, 2013, 11:09:45 am
|
|
hello I bought a LCD with RGB backlight..but when I put the 3 leds at max voltage I don't get a white color, but a blue-ish white, light azur. And of course every other color that uses the 3 led at the same time is slightly different. the resistors are soldered on the LCD pcb. Which one should I change, and how?
|
|
|
|
|
7
|
Using Arduino / Project Guidance / multiple capsense input and multiple AVR chips
|
on: May 21, 2013, 12:28:50 pm
|
|
hello everyone I'd like to make a small project that requires more than 30 touch input, a sort of touch keyboard. I only need to know if the input is pressed or not, I don't need a variable value. Since I'll make the pcb/soldering job on my own, I can only use a PDIP Atmega chip, like the one on Arduino UNO R3, but since I need lot of inputs, I will use something like 2 or 3 of those chips on the same pcb. That would cost less than every other dedicated "touch sensing" ic. Of course I will use ICSP for every chip to program them. My questions are: 1) is CapSense reliable enough for such application? 2) If I use the internal oscillator for those AVR that should only detect the touch, the CapSense would still work well? 3) if I don't use an external oscillator, can I still obtain reliable communication between the AVRs using the serial connection? 4) alternatives?
thank you Dimitri
|
|
|
|
|
9
|
Using Arduino / Installation & Troubleshooting / can't upload a code that is bigger than 20kb
|
on: April 26, 2013, 08:14:39 am
|
|
hi everyone today I noticed that I can't manage to upload a code on my Arduino Mega 2560, if the code is bigger than 20.000 bytes (or more or less), it takes forever to upload: it does compile fine, than it says "uploading" but it stucks there, without saying nothing. The ON led lights up, TX and RX flashes togheter every 2-3 seconds. My sketch is "21.408 bytes (of a 258.048 byte maximum)", I tried to cut out some code to get more or less 19.000 bytes, and it uploads fine, even other sketches works fine. I'm on Windows 7 64.. what could be the problem?
|
|
|
|
|
11
|
Using Arduino / Programming Questions / Re: fastest timer interrupt
|
on: April 10, 2013, 03:13:15 pm
|
|
ok now I set the whole thing like this:
TCCR2A = 0b01000001; TCCR2B = 0b00001100;
so now I'm using Phase correct PWM, toggling OC2A pin when it reaches OCR2A, and changing the frequency by changing the value of OCR2A, that would automatically give me 50% duty cycle, without setting OCR2B, right?
|
|
|
|
|
13
|
Using Arduino / Programming Questions / Re: fastest timer interrupt
|
on: April 05, 2013, 07:25:55 pm
|
If you just want a 50% cycle you could use CTC and toggle the output pin. Indeed, what I read on the AVR datasheet says (at the end of Fast PWM mode section) that I can achieve a 50% duty cycle waveform in fast PWM mode by setting OC2x to toggle on each compare match, by setting COM2x1:0 = 1. I did that but I couldn't get anything from the output (OCR2B output). Also, I don't understand if the prescaler is used in this mode too (if yes, I guess the calculation for the frequency is the same).
|
|
|
|
|
14
|
Using Arduino / Programming Questions / Re: fastest timer interrupt
|
on: April 05, 2013, 05:37:08 pm
|
|
I've been studying the Fast Pwm mode on the 3 timers on those days (using OCRxA as TOP and so varying the frequency). please correct me if I'm wrong, but seems like I can only use even values for OCRxA if I want a 50% duty cycle, since to get 50% duty cycle it should result OCRxB+1 / OCRxA+1 = 0,5. is this correct?
|
|
|
|
|
15
|
Using Arduino / Programming Questions / Re: fastest timer interrupt
|
on: April 03, 2013, 07:02:02 am
|
|
I see.. so for now I will try to get a better accurance using timer overflow interrupt (of course doing some math based on the access-exit timer of ISR and every operation I will do there), If I can't get better accurance I will move to Mega2560
|
|
|
|
|