Show Posts
Pages: [1]
1  Products / Arduino Due / Re: Timer Interrupts on Due on: February 24, 2013, 11:41:09 am
I had a chance to use your timer, SomeRandomGuy. It works perfectly, and has tidied up my code somewhat.
2  Products / Arduino Due / Re: Timer Interrupts on Due on: February 23, 2013, 12:30:05 pm
Hi SomeRandomGuy.

That looks pretty good to me! I've already implemented two timers in my own code - one for lights and the other to debounce/read some buttons. I think that your library will make things much neater. I'll try it next weekend.
3  Products / Arduino Due / Re: [Fixed] Timer on Due not working for me - any ideas? on: February 17, 2013, 12:17:14 pm
I know that no one else was currently interested in this topic, but I hate it when I Google a problem, and find an orphan question with no replies. smiley-mr-green

I sorted this issue by painstakingly testing every line in the code, to see what broke the interrupt calls.

I found that there was a 'delay(1)' in the LED driver code. I commented this out, and it worked.

So no delays in interrupt code, folks!
4  Products / Arduino Due / [Fixed] Timer on Due not working for me - any ideas? on: January 25, 2013, 12:23:56 pm
Hi,

I posted this in the Timer thread, but that seems to have died. Sorry for posting again in a new thread...

I've implemented Sebastian Vik & cmaglie's timer code (http://arduino.cc/forum/index.php/topic,130423.msg1013688.html#msg1013688) . I've got it working as is, with the LED. And I also tried a Serial.println and that works fine too.

However after transplanting the code to something more meaty (a RGB Pixel light string) - the TC3_Handler only executes once.

The LEDs driver is using the hardware SPI channel - could it be anything to do with that? To rule out a clash of interrupts with the LED driver, I tried TC4/5 then TC0, and also only 1Hz - but I still get nothing.

Any ideas? I'll post a video of the lights, if I get it working. (The code works otherwise - if I base the timer on time, it works fine)

I'll post the code, but you'd need the lights to see it:

https://github.com/MarkEMarkEMark/WS2801MEO

(note the previous version of the code on GitHub works without the timer)
5  Products / Arduino Due / Only fires once, when not in test code on: January 23, 2013, 03:19:39 pm
Hi all. I've implemented Sebastian Vik & cmaglie's timer code. I've got it working as is, with the LED. And I also tried a Serial.println and that works fine too.

However after transplanting the code to something more meaty (RGB Pixel light string) - the TC3_Handler only executes once.

The LEDs driver is using the hardware SPI channel - could it be anything to do with that? To rule out a clash of interrupts with the LED driver, I tried TC4/5 then TC0, but I still only get the first frame.

Any ideas? I'll post a video of the lights, if I get it working. (The code works otherwise - if I base the timer on time, it works fine)

I'll post the code, but you'd need the lights to see it:

https://github.com/MarkEMarkEMark/WS2801MEO

(note the previous version of the code works without the timer)
6  Products / The Arduino Starter Kit / Re: Starter kit Code on: November 13, 2012, 11:29:06 am
I'm pretty sure that this code hasn't actually been checked. I've only tried 04 Color Mixing Lamp, but variables have their case wrong meaning it won't compile. This is both on GitHub and in the 1.0.2 Examples built into the development environment. example: greenLEDPin / greenLedPin.

This was easy enough for me to figure out, but would cause a real headache to the beginners that this kit was designed for.

The kit is excellent otherwise.
7  Products / The Arduino Starter Kit / Re: Arduino Starter Kit Section Guidelines on: November 12, 2012, 01:16:28 pm
I've just received this kit. (RS in the UK still have some)

I have to say, it is absolutely beautiful! The book is so well designed and colourful - making it worthwhile not being a Kindle version.

I can't wait to get started tinkering. I'm not a total beginner - but I like supporting Arduino.

The only slight issue is that the bolts that are to attach the arduino to the board are stick out about twice as far as the legs, meaning they can't be used. I'm sure that I can pick up some from a hardware store - or I could put them in upside-down and have the bolts stick out on top.

Well done Massimo for such a lovely product. Thanks.
Pages: [1]