Show Posts
Pages: 1 2 [3] 4 5 ... 379
31  Using Arduino / Microcontrollers / Re: arduino uno dead? on: September 15, 2014, 01:42:38 pm
I suspect the part where you say "the relay board was connected properly" isn't true.

(How did you connect it, exactly?)
32  Using Arduino / LEDs and Multiplexing / Re: QTouch IC (Pic Heavy) on: September 15, 2014, 01:25:27 pm
Does anyone know anything about QTouch IC like these???
They are Atmel QTouch IC AT42QT1012

There's a company called Atmel that knows quite a lot about chips like that one.

I think they even provide downloadable files called "datasheets" with information.

33  Using Arduino / General Electronics / Re: Measuring battery voltage to Arduino on: September 15, 2014, 10:11:28 am
This might be a stupid question, but this planned setup won't pull down the 9v current on the main power line that goes to the Arduino's barrel jack?

Yes, it will !!!

(But only by about 2% of what the Arduino will pull it down - see reply #1).

PS: If your "9V battery" is one of those square PP9 batteries then prepare to be very disappointed by how long it lasts.

34  Using Arduino / General Electronics / Re: opto isolator causes indicators to dim on: September 15, 2014, 10:02:31 am
You need a 220 Ohm resistor to the LED.
35  Using Arduino / LEDs and Multiplexing / Re: 12v LED strip fade and stairs movment sensors on: September 15, 2014, 07:58:09 am
The BD140-16 is a PNP transistor, you need an NPN.

http://www.st.com/web/en/resource/technical/document/datasheet/CD00001225.pdf


(...and the answer to the next question is: "No, not with a 12V supply.")
36  Using Arduino / Microcontrollers / Re: Timer interrupts with ATtiny on: September 15, 2014, 06:18:15 am
I haven't tried running it but I can't see anything obviously wrong in the code.

Is that the exact same code you're using?

37  Using Arduino / Microcontrollers / Re: Timer interrupts with ATtiny on: September 15, 2014, 06:03:48 am
Try calling it "TIMER0_OVF_vect" instead of "TIM0_OVF_vect"
Nothing, I get this warning from avr-gcc, and when i load it I have not changes.
Code:
warning: ‘TIMER0_OVF_vect’ appears to be a misspelled signal handler
I noticed that interrupt functions makes the micro crazy: if I comment them, leaving registers inizialised, the main program is executed.

OK. The name changes depending on which "ATtiny" you're using (which you're keeping secret). I'm guessing it's not a Tiny85 because you use PORTA. If you're getting an error then you probably picked the right name.



38  Using Arduino / LEDs and Multiplexing / Re: Executing simultaneous loops on: September 15, 2014, 04:45:01 am
You need to interleave the loops.

39  Using Arduino / Microcontrollers / Re: Timer interrupts with ATtiny on: September 14, 2014, 02:43:48 pm
Try calling it "TIMER0_OVF_vect" instead of "TIM0_OVF_vect"
40  Using Arduino / Microcontrollers / Re: Timer interrupts with ATtiny on: September 14, 2014, 02:09:29 pm
Code:
    TCCR0A = _BV(COM0A1) | _BV(COM0B1) | ...;

If I connect two LED to PORTA.0 and PORTB.0 I should see them blinking

Nope. You told it to set the outputs LOW when the timer gets a compare match.

Maybe you want to toggle them instead (or something...)

41  Using Arduino / Microcontrollers / Re: Watchdog Timer with Attiny 85 on: September 14, 2014, 11:48:04 am
those 4 secs are really essential to my system...

So your very first post should have described that system - just to avoid wasting everybody's time.


(I'm trying to build a light installation made of many individual lights,  after a light lights up it shouldn't do anything for 4 secs)

Nope. I still have no idea *exactly* what the lights are supposed to do.

42  Using Arduino / General Electronics / Re: LED holder on: September 14, 2014, 11:45:43 am
Have you searched for "5mm led panel mount" (or whatever) on eBay?

43  Using Arduino / General Electronics / Re: simple simulation of pins on arduino? on: September 14, 2014, 11:02:52 am
Look in the "I/O ports" section of the ATmega328 datasheet.

44  Using Arduino / General Electronics / Re: opto coupler Current transfer ratio - very simple explaination? on: September 14, 2014, 02:59:30 am
If the above is correct does this mean you can control how much the opt coupler is fully turned on?

Yes, but it's probably very non-linear and there's probably a lot of variation between individual devices (just like ordinary BJTs). Don't count on having any particular ratio of input->output.

45  Using Arduino / Microcontrollers / Re: attiny85 analog pins wont work on: September 14, 2014, 02:19:38 am
can some give me a example code for the attiny 85 analog pins

int n = analogRead(1);

Pages: 1 2 [3] 4 5 ... 379